.autor {
  font-size: 0.9rem;
  color: #666;
  margin-top: 10px;
  font-style: italic;
}

/* --- Estilos generales --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
  }
  
  .contenedor {
    display: flex;
    min-height: 100vh;
  }
  
  /* --- Barra lateral --- */
  .sidebar {
    width: 250px;
    background-color: #c50000;
    color: white;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
  }
  
  .logo h1 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #fff;
  }
  
  .menu-botones {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .boton-sidebar {
    background-color: darkred;
    color: white;
    border: none;
    padding: 12px 15px;
    text-align: left;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
    text-decoration: none;
  }
  
  .boton-sidebar:hover {
    background-color: red;
  }
  
  .boton-sidebar.activo {
    background-color: red;
    font-weight: bold;
  }
  
  /* --- Contenido principal --- */
  .contenido-principal {
    flex: 1;
    padding: 30px;
  }
  
  /* --- Noticia destacada --- */
  .noticia-destacada {
    margin-bottom: 40px;
  }
  
  .noticia-destacada iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
  
  .noticia-destacada h2 {
    font-size: 2rem;
    margin: 10px 0;
  }
  
  .noticia-destacada .autor {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
  }
  
  /* --- Noticias en grilla --- */
  .grid-noticias {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
  }
  
  .noticia {
    background-color: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
  }
  
  .noticia:hover {
    transform: translateY(-5px);
  }
  .imagen-destacada {
    width: 100%;
    max-height: 500px; /* límite de altura */
    object-fit: cover; /* recorta la imagen para que no se deforme */
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
  .imagen-noticia {
    width: 100%;
    height: auto;
  }
  
  .noticia h3 {
    font-size: 1.4rem;
    margin: 15px 15px 5px;
  }
  
  .noticia .autor {
    font-size: 0.8rem;
    color: #777;
    margin: 0 15px 10px;
  }
  
  .noticia p {
    margin: 0 15px 15px;
    color: #666;
    font-size: 0.95rem;
  }
  
  .leer-mas {
    display: inline-block;
    margin: 0 15px 15px;
    color: #1abc9c;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
  }
  
  .leer-mas:hover {
    text-decoration: underline;
  }


.footer {
    text-align: center;
    padding: 20px;
    background-color: #111;
    color: #eee;
    font-size: 0.85rem;
}
  /* --- Responsive --- */
  @media (max-width: 768px) {
    .contenedor {
      flex-direction: column;
    }
  
    .sidebar {
      width: 100%;
      box-shadow: none;
    }
  
    .noticia-destacada iframe {
      height: 300px;
    }
  }
  
  .formulario-contacto {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    max-width: 700px;
    margin: 0 auto;
}

.formulario-contacto h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #333333;
}

.formulario {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.campo {
    display: flex;
    flex-direction: column;
}

.campo label {
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #555555;
}

.campo input,
.campo select,
.campo textarea {
    padding: 0.8rem;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
    border-color: red;
    outline: none;
}

.boton-enviar {
    background-color: red;
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.boton-enviar:hover {
    background-color: darkred;
}

/* Adaptable para pantallas pequeñas */
@media (max-width: 600px) {
    .formulario-contacto {
        padding: 1rem;
    }
}
