@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Paleta más clara y vibrante: Vino claro, Rojo brillante y Marrón cálido */
    --color-fondo-1: #E4C76D; /* Amarillo/oro mostaza de fondo general */
    --color-rojo-oscuro: #8C182A; /* Vino tinto principal para banner y texto */
    
    --color-fondo-3: #C0392B; /* Rojo brillante */
    --color-fondo-4: #A16A46; /* Marrón claro / Canela */
    
    --color-acento-principal: #FFDCA8;
    
    --color-texto: #FFFFFF;
    --color-texto-secundario: #FFE8D6; 
    
    --sombra-suave: 0 4px 15px rgba(0, 0, 0, 0.15);
    --sombra-hover: 0 10px 25px rgba(0, 0, 0, 0.25);
    
    --borde-radio: 20px;
    --transicion-suave: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent; /* Quita el flash azul en móviles */
    -webkit-text-size-adjust: 100%;           /* Evita que el navegador cambie el tamaño del texto al girar el cel */
    box-sizing: border-box;                   /* Evita problemas con el padding y el tamaño */
    user-select: none;                        /* Evita que el usuario seleccione el texto */
    -webkit-user-select: none;                /* Safari y Chrome móvil */
    -webkit-touch-callout: none;              /* Evita el menú de "Copiar" en iOS */
}

* :focus {
    outline: none;
}

* :focus-visible {
    outline: 2px solid var(--color-rojo-oscuro);
    outline-offset: 2px;
}

@keyframes entradaSuave {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

body {
    background-color: var(--color-fondo-1);
    font-family: 'Poppins', sans-serif;
    color: var(--color-texto);
    min-height: 100vh;
    padding: 0; /* Sin padding arriba para el banner */
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ─── BANNER SUPERIOR ─── */
.banner_superior_escuela {
    width: 100%;
    background-color: var(--color-rojo-oscuro);
    color: white;
    text-align: center;
    padding: 16px 0;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    margin-bottom: 25px;
}

.banner_superior_escuela p {
    margin: 4px 0;
}

.banner_superior_escuela p:nth-child(1) {
    font-weight: 600;
    font-size: 1.05rem;
}
.banner_superior_escuela p:nth-child(2) {
    font-weight: 400;
    font-size: 0.95rem;
}
.banner_superior_escuela p:nth-child(3) {
    font-weight: 500;
    font-size: 0.9rem;
}

/* ─── BARRA SUPERIOR Y PESTAÑAS ─── */
.barra_superior {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    padding: 0 40px; /* Para mantener los bordes separados */
    animation: entradaSuave 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.menu_superior {
    display: inline-flex;
    gap: 4px;
    padding: 6px;
    border-radius: 999px;
    background: #FFF9F2; /* Crema del botón de la imagen */
    box-shadow: var(--sombra-suave);
}

.menu_superior_boton {
    border: none;
    background: transparent;
    color: var(--color-rojo-oscuro);
    padding: 12px 28px;
    border-radius: 999px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    transition: var(--transicion-suave);
}

.menu_superior_boton:hover {
    background: rgba(140, 24, 42, 0.08);
}

.menu_superior_boton.activo {
    background: var(--color-rojo-oscuro);
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(140, 24, 42, 0.3);
}

/* ─── TÍTULO ─── */
.fondo_titulo {
    background: #FFF9F2;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    padding: 40px 60px;
    margin-bottom: 40px;
    margin-left: 20px;
    margin-right: 20px;
    width: calc(100% - 40px);
    max-width: 1200px;
    text-align: center;
    animation: entradaSuave 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.titulo {
    color: var(--color-rojo-oscuro);
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    line-height: 1.3;
}

.subtitulo_titulo {
    color: #5b4b45; /* Tono marrón grisáceo oscuro */
    font-size: 1.05rem;
    font-weight: 500;
    margin-top: 20px;
    margin-bottom: 0;
}

/* ─── SELECTOR LENGUAJE ─── */
.glass-radio-group {
    display: flex;
    position: relative;
    background: #FFF9F2;
    border-radius: 50px;
    box-shadow: var(--sombra-suave);
    overflow: hidden;
    width: fit-content;
    margin-bottom: 50px;
    animation: entradaSuave 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.glass-radio-group input {
    display: none;
}

.glass-radio-group label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    font-size: 1rem;
    padding: 14px 25px;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-rojo-oscuro);
    position: relative;
    z-index: 2;
    transition: color 0.3s ease-in-out;
}

.glass-radio-group input:checked+label {
    color: #FFFFFF;
}

.glass-glider {
    position: absolute;
    top: 6px;
    bottom: 6px;
    width: calc((100% / 3) - 12px);
    border-radius: 40px;
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.37, 1.95, 0.66, 0.56), background 0.4s ease-in-out;
    left: 6px;
    background: var(--color-rojo-oscuro);
    box-shadow: 0 0 10px rgba(140, 24, 42, 0.4);
}

#glass-silver:checked~.glass-glider {
    transform: translateX(0%);
}

#glass-gold:checked~.glass-glider {
    transform: translateX(calc(100% + 12px));
}

#glass-platinum:checked~.glass-glider {
    transform: translateX(calc(200% + 24px));
}

/* ─── CONTENIDO PRINCIPAL ─── */
.contenedor {
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    max-width: 1400px;
    gap: 60px;
    padding: 0 40px;
    animation: entradaSuave 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

/* IMAGEN + TEXTO */
.contenedor_imagen {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
}

.img_centro_de_acopio {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: var(--borde-radio);
    box-shadow: var(--sombra-suave);
    transition: var(--transicion-suave);
    border: 3px solid #FFF9F2;
    margin-bottom: 25px;
    object-fit: cover;
}

.img_centro_de_acopio:hover {
    transform: scale(1.02);
    border-color: var(--color-rojo-oscuro);
}

.texto_portada {
    color: #3b2a24;
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: justify;
    font-weight: 500;
    margin-bottom: 15px;
}

/* PANEL BOTONES */
.panel_botones {
    flex: 1 1 55%;
    min-width: 320px;
}

.seccion_botones {
    display: none;
    width: 100%;
}

.seccion_botones.activa {
    display: block;
    animation: entradaSuave 0.5s ease forwards;
}

/* GRID PARA BOTONES */
.botones {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    width: 100%;
}

/* ESTILO SÓLIDO DE LOS BOTONES */
.item_boton {
    width: 100%;
    height: 100%;
}

.item_boton a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    background: #FFF9F2;
    padding: 16px 20px;
    border-radius: 18px;
    text-decoration: none;
    transition: var(--transicion-suave);
    border: 2px solid transparent; 
    box-shadow: var(--sombra-suave);
    height: 100%;
}

.item_boton a:hover {
    background: #FFFFFF;
    transform: translateY(-5px);
    box-shadow: var(--sombra-hover);
    border-color: var(--color-rojo-oscuro);
}

/* Cuadrado delimitador para el icono */
.item_boton a button {
    background: #FFFFFF;
    border: 2px solid #E8D5CA;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 14px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
    transition: var(--transicion-suave);
}

.item_boton a:hover button {
    border-color: var(--color-rojo-oscuro);
    background: #FDF4F4;
}

.item_boton a button img {
    width: 36px;
    height: auto;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.15));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.item_boton a:hover button img {
    transform: scale(1.15) rotate(5deg);
}

.item_boton span {
    color: var(--color-rojo-oscuro);
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.3;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1200px) {
    .contenedor {
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .barra_superior {
        justify-content: center;
        padding: 0 20px;
    }

    .contenedor {
        flex-direction: column;
        align-items: center;
        padding: 0 20px;
    }

    .contenedor_imagen,
    .panel_botones {
        width: 100%;
        max-width: 700px;
    }
    
    .botones {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .banner_superior_escuela {
        font-size: 0.85rem;
        padding: 12px 10px;
    }

    .menu_superior_boton {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .fondo_titulo {
        padding: 25px 20px;
    }

    .titulo {
        font-size: 1.6rem;
    }
    
    .subtitulo_titulo {
        font-size: 0.95rem;
    }

    .botones {
        grid-template-columns: 1fr;
    }

    .item_boton a {
        padding: 16px 20px;
    }

    .item_boton a button {
        width: 50px;
        height: 50px;
    }

    .item_boton a button img {
        width: 28px;
    }
}