/* RESETEO BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f4f7f6; /* Un gris muy suave en lugar de verde neón para mejorar la lectura */
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Personalización básica del reproductor para que no se vea "de la burger" */
audio {
    filter: invert(100%) hue-rotate(90deg) brightness(1.5); /* Esto le da un tono verdoso/oscuro */
    width: 100%;
    margin: 0;
    border-radius: 50px;
    border: 2px solid greenyellow;
}

/* IMÁGENES RESPONSIVAS (Arregla tu error del 30%) */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* CONTENEDOR PRINCIPAL - CSS GRID */
.container {
    max-width: 1200px;
    margin: 0px auto;
    background-color: rgb(46, 43, 43);
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    display: grid;
    /* Define la estructura: Sidebar Izquierdo | Contenido | Sidebar Derecho */
    grid-template-columns: 250px 1fr 200px;
    grid-template-rows: auto 1fr auto;
    grid-template-areas: 
        "header header header"
        "left main right"
        "footer footer footer";
}

h2 {
  color: greenyellow;
  border-bottom: red 70%;
  margin-bottom: 20px;
}
/* HEADER */
header {
    grid-area: header;
    background-color: black;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 3px greenyellow double;
}

header .logo img {
    max-width: 150px;
}

header nav ul {
    list-style: none;
    display: flex;

}

header nav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: color 0.3s;
    padding: 20px;
}

header nav a:hover {
    color: greenyellow;
    background-color: black;
  
}

/* SIDEBARS */
.sidebar {
    background-color: black;
    padding: 20px;
    border:5px solid red;
}

.Titulos-articulos {
  text-align: center;
  color: greenyellow;
  border-bottom: 2px solid red;
}

.left-sidebar { grid-area: left; }
.right-sidebar { grid-area: right; border-left: 1px solid #eee; border-right: none; }

.sidebar h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: greenyellow;
    font-family: 'Times New Roman', Times, serif;
}

.mini-post {
    margin-bottom: 20px;
}


.mini-post img {
    border-radius: 5px;
    margin-bottom: 10px;
}

.mini-post p {
    color: goldenrod;
    font-family: 'Times New Roman', Times, serif;
}

.ads img {
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

/* CONTENIDO PRINCIPAL */
main.content {
    grid-area: main;
    padding: 30px;
}

section {
    margin-bottom: 40px;
}

section h2 {
    text-align: center;
    margin-bottom: 25px;
    color: greenyellow;
    border-bottom: 2px solid red;
    display: inline-block;
    padding-bottom: 5px;
}

/* GRID DE PERSONAS (Tarjetas) */
.grid-personas, .grid-ventajas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.card-persona, .card-ventaja {
    background: black;
    color: goldenrod;
    border: 5px solid #eee;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.card-persona:hover, .card-ventaja:hover {
    transform: translateY(-5px);
    border: goldenrod;
}

.card-persona img, .card-ventaja img {
    border-radius: 50%; /* Hace las imágenes circulares */
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin: 0 auto 15px auto;
}

/* BOTONES */
.btn {
    background-color: black;
    color: greenyellow;
    border: 2px red solid;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 15px;
    transition: background 0.3s;
}

.btn:hover {
    background-color: greenyellow;
    border: goldenrod;
    color: black;
}

/* HISTORIA */
.img-historia {
    border-radius: 10px;
    margin-bottom: 20px;
}

/* FORMULARIOS Y CONTACTO */
.info-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
}

.newsletter-form label {
    margin-top: 10px;
    font-weight: bold;
}

.newsletter-form input {
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-weight: bold;
}

.contact-list img {
    width: 30px;
    margin-right: 15px;
}

/* Estilos Generales del Footer */
.main-footer {
    background-color: #1a1a1a; /* Un negro mate más elegante */
    color: #ffffff;
    padding: 40px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-top: 4px solid #2ecc71; /* Una línea verde sutil arriba */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column; /* Apilado en móviles */
    align-items: center;
    text-align: center;
    gap: 30px;
}

/* Responsivo para pantallas grandes */
@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-around;
        text-align: left;
    }
}

/* Sección de Redes */
.redes-sociales h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2ecc71; /* El verde de acento */
}

.social-links {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
}

.social-links a {
    color: #bbb;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
    background: #2c3e50;
}

/* Efecto Hover para que no sea aburrido */
.social-links a:hover {
    color: white;
    background-color: #2ecc71;
    transform: translateY(-3px);
}

/* Sección de Texto/Autor */
.info-clase .autor {
    font-size: 1rem;
    margin-bottom: 5px;
}

.info-clase .materia {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-clase strong {
    color: #2ecc71;
}

/* DISEÑO RESPONSIVE (Para celulares) */
@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "header"
            "main"
            "left"
            "right"
            "footer";
    }
    
    .info-blocks {
        grid-template-columns: 1fr;
    }
    
    header {
        flex-direction: column;
        text-align: center;
    }
    
    header nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
}