/*==========================================================
    CONEXIÓN A.L.M
    indexcss.css
==========================================================*/


/*==========================================================
    GOOGLE VARIABLES
==========================================================*/

:root{

    --primary:#ED0015;
    --primary-light:#FF2D42;
    --primary-dark:#C80012;

    /* Azul Institucional Equilibrado (Término medio) */
    --accent-blue:#1D4ED8;
    --accent-blue-light:#3B82F6;
    --accent-blue-dark:#1E40AF;
    --accent-blue-soft:rgba(29, 78, 216, 0.08);

    /* Degradado Dual Institucional */
    --dual-gradient:linear-gradient(135deg, #1D4ED8 0%, #ED0015 100%);
    --dual-gradient-h:linear-gradient(90deg, #1D4ED8 0%, #ED0015 100%);

    --secondary:#F8FAFC;
    --secondary-blue:#F0F6FF;
    --secondary-red:#FFF5F5;

    --background:#F7F7F7;

    --white:#FFFFFF;

    --text:#1D1D1D;

    --gray:#6E6E6E;

    --border:#E8E8E8;

    --soft-purple:rgba(29, 78, 216, 0.08);
    --soft-red:rgba(237, 0, 21, 0.08);

    --shadow:0 18px 45px rgba(0,0,0,.08);

    --radius:24px;

    --transition:.35s ease;

}


/*==========================================================
    FONDO DECORATIVO SUAVE (manchas difuminadas + puntos)
    Se usa en index.php, noticias.php, eventos.php y
    logeado.php, y también dentro de algunas secciones con
    color sólido para que no se vean tan planas.
==========================================================*/

:root {

    --soft-blobs:
        radial-gradient(560px circle at 6% 8%, rgba(29, 78, 216, .07), transparent 60%),
        radial-gradient(520px circle at 96% 12%, rgba(237, 0, 21, .06), transparent 62%),
        radial-gradient(600px circle at 12% 96%, rgba(29, 78, 216, .06), transparent 60%),
        radial-gradient(460px circle at 90% 92%, rgba(237, 0, 21, .05), transparent 60%),
        radial-gradient(circle, rgba(29, 78, 216, .10) 1.3px, transparent 1.5px);

    --soft-blobs-size: auto, auto, auto, auto, 26px 26px;
    --soft-blobs-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat;

}

body.decorative-bg {

    background-color: var(--background);
    background-image: var(--soft-blobs);
    background-size: var(--soft-blobs-size);
    background-repeat: var(--soft-blobs-repeat);
    background-attachment: fixed;

}


/*==========================================================
    RESET
==========================================================*/

*{

    margin:0;

    padding:0;

    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:"Poppins",sans-serif;

    background:var(--background);

    color:var(--text);

    overflow-x:hidden;

}

img{

    display:block;

    width:100%;

}

a{

    text-decoration:none;

    color:inherit;

}

ul{

    list-style:none;

}

button{

    font-family:inherit;

}


/*==========================================================
    CONTENEDOR GENERAL
==========================================================*/

.container{

    width:min(1400px,92%);

    margin:auto;

}


/*==========================================================
    CONTENIDO PRINCIPAL GENÉRICO
    (usado por comunidad.php, contacto.php, historia.php,
    nivelaciones.php y horario.php — páginas sin su propio
    <main> con clase dedicada)
==========================================================*/

.main-content {

    width: min(1400px, 94%);
    margin: 0 auto;
    padding-top: calc(var(--header-height, 90px) + 24px);
    padding-bottom: 60px;

}


/*==========================================================
    HEADER
==========================================================*/

.header {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    background: rgba(255, 255, 255, .97);

    backdrop-filter: blur(18px);

    box-shadow: 0 8px 25px rgba(0, 0, 0, .06);

    transition: .4s ease;

}


/*==========================================================
    CONTENEDOR DEL HEADER
==========================================================*/

.header-container {

    width: min(1400px, 94%);

    min-height: 90px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

}


/*==========================================================
    LOGO
==========================================================*/

.logo {

    display: flex;

    align-items: center;

    flex-shrink: 0;

}


.logo img {

    width: 72px;

    height: 72px;

    object-fit: contain;

    display: block;

    transition: .35s ease;

}


/*==========================================================
    NAVEGACIÓN
==========================================================*/

.navigation {

    display: flex;

    align-items: center;

}


.navigation ul {

    display: flex;

    align-items: center;

    gap: 32px;

}


.navigation a {

    position: relative;

    display: block;

    color: var(--text);

    font-size: .95rem;

    font-weight: 500;

    white-space: nowrap;

    transition: .3s ease;

}


.navigation a:hover {

    color: var(--primary);

}


.navigation a.active {

    color: var(--primary);

    font-weight: 600;

}


.navigation a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -8px;

    width: 0;

    height: 2px;

    background: var(--primary);

    transition: .3s ease;

}


.navigation a:hover::after,

.navigation a.active::after {

    width: 100%;

}


/*==========================================================
    ACCIONES
==========================================================*/

.header-actions {

    display: flex;

    align-items: center;

    gap: 14px;

    flex-shrink: 0;

}


/*==========================================================
    BUSCADOR
==========================================================*/

.search-box {

    display: flex;

    align-items: center;

    gap: 10px;

    width: 190px;

    padding: 11px 16px;

    border-radius: 999px;

    background: #f1f1f1;

    border: 1px solid transparent;

}


.search-box span {

    color: #555;

}


.search-box input {

    width: 100%;

    border: none;

    outline: none;

    background: transparent;

    color: #333;

    font-family: inherit;

    font-size: .9rem;

}


.search-box input::placeholder {

    color: #888;

}


/*==========================================================
    BOTÓN PERFIL - APPLE LIQUID GLASS (Gris brillante)
==========================================================*/

.profile-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    outline: none;
    
    /* Apple Liquid Glass (Gris brillante / Frosted Silver Glass) */
    color: #1e1e24;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.76) 0%,
        rgba(236, 240, 248, 0.52) 50%,
        rgba(216, 222, 234, 0.68) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px) saturate(190%);
    -webkit-backdrop-filter: blur(20px) saturate(190%);
    
    box-shadow: 
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1.5px 2px 0 rgba(0, 0, 0, 0.08),
        0 6px 18px -3px rgba(0, 0, 0, 0.10),
        0 2px 5px 0 rgba(0, 0, 0, 0.04);
    
    overflow: hidden;
    transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reflejo de brillo superior de cristal */
.profile-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 46%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.85) 0%,
        rgba(255, 255, 255, 0.08) 100%
    );
    border-radius: 999px 999px 60% 60%;
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

/* Destello brillante en hover */
.profile-button::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        105deg,
        transparent 20%,
        rgba(255, 255, 255, 0.7) 50%,
        transparent 80%
    );
    transform: rotate(25deg);
    pointer-events: none;
    opacity: 0;
    transition: all 0.65s ease;
}

.profile-button:hover {
    color: #0b0b0e;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.94) 0%,
        rgba(244, 247, 254, 0.70) 50%,
        rgba(228, 233, 245, 0.82) 100%
    );
    border-color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 
        inset 0 1px 2px 0 rgba(255, 255, 255, 1),
        0 12px 28px -4px rgba(0, 0, 0, 0.16),
        0 0 20px 3px rgba(255, 255, 255, 0.7);
}

.profile-button:hover::after {
    left: 125%;
    opacity: 1;
}

.profile-button:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 
        inset 0 1px 2px 0 rgba(0, 0, 0, 0.12),
        0 2px 6px rgba(0, 0, 0, 0.08);
}

.profile-avatar-mini {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: -2px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.profile-avatar-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-chevron {
    font-size: 0.72rem;
    margin-left: 2px;
    color: #64748b;
    transition: transform 0.3s ease;
}

.profile-button[aria-expanded="true"] .profile-chevron {
    transform: rotate(180deg);
}

.notification-indicator-dot {
    position: absolute;
    top: 7px;
    right: 9px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 1.5px solid #ffffff;
    box-shadow: 0 0 6px #ef4444;
}

/*==========================================================
    MENÚ DESPLEGABLE DE USUARIO (Apple Frosted Glass Dropdown)
==========================================================*/

.user-menu-wrapper {
    position: relative;
    display: inline-block;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 275px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(24px) saturate(190%);
    -webkit-backdrop-filter: blur(24px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 12px;
    box-shadow: 
        0 20px 45px -10px rgba(0, 0, 0, 0.18),
        0 2px 6px rgba(0, 0, 0, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.95);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transform-origin: top right;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 14px;
    margin-bottom: 8px;
}

.dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ED0015, #FF2D42);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(237, 0, 21, 0.25);
}

.dropdown-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropdown-user-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dropdown-user-details strong {
    font-size: 0.88rem;
    color: #1e1e24;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-user-details span {
    font-size: 0.75rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    margin: 6px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: #334155;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(237, 0, 21, 0.08);
    color: var(--primary);
    transform: translateX(3px);
}

.dropdown-item-icon {
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #64748b;
    transition: color 0.2s ease;
}

.dropdown-item:hover .dropdown-item-icon {
    color: var(--primary);
}

.dropdown-badge {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    color: #475569;
}

.dropdown-badge.badge-unread {
    background: #fee2e2;
    color: #dc2626;
}

.dropdown-logout {
    color: #dc2626;
}

.dropdown-logout:hover {
    background: #fef2f2;
    color: #b91c1c;
}

.dropdown-logout .dropdown-item-icon {
    color: #dc2626;
}

.dropdown-logout:hover .dropdown-item-icon {
    color: #b91c1c;
}


/*==========================================================
    MENÚ HAMBURGUESA - APPLE LIQUID GLASS (Gris brillante)
==========================================================*/

.menu-toggle {
    position: relative;
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 14px;
    cursor: pointer;
    outline: none;
    
    /* Apple Liquid Glass (Gris brillante / Frosted Silver Glass) */
    color: #1e1e24;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.78) 0%,
        rgba(236, 240, 248, 0.54) 50%,
        rgba(216, 222, 234, 0.70) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(190%);
    -webkit-backdrop-filter: blur(20px) saturate(190%);
    
    box-shadow: 
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1.5px 2px 0 rgba(0, 0, 0, 0.08),
        0 4px 14px -2px rgba(0, 0, 0, 0.09),
        0 1px 3px 0 rgba(0, 0, 0, 0.04);
    
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-toggle::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 46%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.85) 0%,
        rgba(255, 255, 255, 0.08) 100%
    );
    border-radius: 14px 14px 50% 50%;
    pointer-events: none;
    opacity: 0.85;
}

.menu-toggle:hover {
    color: #0b0b0e;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(244, 247, 254, 0.72) 50%,
        rgba(228, 233, 245, 0.84) 100%
    );
    border-color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 
        inset 0 1px 2px 0 rgba(255, 255, 255, 1),
        0 8px 22px -3px rgba(0, 0, 0, 0.15),
        0 0 16px 2px rgba(255, 255, 255, 0.65);
}

.menu-toggle:active {
    transform: scale(0.94);
}

.menu-toggle span {
    font-size: 24px;
    line-height: 1;
    color: #1e1e24;
}


/*==========================================================
    HEADER SCROLLEADO
==========================================================*/

.header.scrolled {

    background: rgba(255,255,255,.97);

    backdrop-filter: blur(18px);

    box-shadow: 0 10px 35px rgba(0,0,0,.08);

}
/*==========================================================
    HERO
==========================================================*/

.hero {

    position: relative;

    width: 100%;

    height: 60vh;

    min-height: 750px;

    overflow: hidden;

}


/*==========================================================
    IMAGEN DE FONDO
==========================================================*/

.hero-image{

    position:absolute;

    inset:0;

}

.hero-image img{

    width:100%;

    height:100%;

    object-fit:cover;

    animation:zoomHero 18s ease-in-out infinite alternate;

}


/*==========================================================
    SLIDER DEL HERO (3 imágenes con crossfade)
==========================================================*/

.hero-slide {

    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
    object-fit: cover;

    opacity: 0;
    animation: none;

    transition: opacity 1.2s ease;

}

.hero-slide.active {

    opacity: 1;
    animation: zoomHero 18s ease-in-out infinite alternate;

}

.hero-slider-dots {

    position: absolute;
    z-index: 6;
    bottom: 30px;
    left: 8%;

    display: flex;
    gap: 10px;

}

.hero-slider-dots .slider-dot {

    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;

    background: rgba(255, 255, 255, .45);
    transition: var(--transition);

}

.hero-slider-dots .slider-dot.active {

    width: 26px;
    border-radius: 6px;
    background: var(--white);

}


/*==========================================================
    CAPA OSCURA
==========================================================*/

.hero-overlay{

    position:absolute;

    inset:0;

    background:

    linear-gradient(

        90deg,

        rgba(26,18,24,.82) 0%,

        rgba(50,28,42,.62) 35%,

        rgba(0,0,0,.18) 65%,

        rgba(0,0,0,.05) 100%

    );

}


/*==========================================================
    CONTENIDO HERO
==========================================================*/

.hero-content{

    position:relative;

    z-index:5;

    max-width:680px;

    height:100%;

    margin-left:8%;

    display:flex;

    flex-direction:column;

    justify-content:center;

    color:white;

}


.hero-label{

    display:inline-flex;

    width:max-content;

    padding:10px 22px;

    border-radius:999px;

    background:rgba(255,255,255,.14);

    backdrop-filter:blur(14px);

    margin-bottom:30px;

    font-weight:600;

    letter-spacing:.5px;

}


.hero-content h1{

    font-size:5rem;

    font-weight:700;

    line-height:1;

    margin-bottom:15px;

}


.hero-content h2{

    font-size:2.2rem;

    font-weight:500;

    margin-bottom:28px;

    color:#FFF5F5;

}


.hero-content p{

    font-size:1.1rem;

    line-height:2;

    max-width:620px;

    margin-bottom:45px;

}


/*==========================================================
    BOTÓN HERO
==========================================================*/

.hero-button{

    display:inline-flex;

    align-items:center;

    gap:12px;

    width:max-content;

    padding:18px 34px;

    border:none;

    border-radius:999px;

    cursor:pointer;

    background:var(--secondary);

    color:var(--primary);

    font-size:1rem;

    font-weight:600;

    transition:var(--transition);

}

.hero-button:hover{

    transform:translateY(-6px);

    box-shadow:0 18px 45px rgba(0,0,0,.18);

}

.hero-button span{

    transition:.3s;

}

.hero-button:hover span{

    transform:translateX(5px);

}



/*==========================================================
    ANIMACIÓN HERO
==========================================================*/

@keyframes zoomHero{

    from{

        transform:scale(1);

    }

    to{

        transform:scale(1.08);

    }

}


/*==========================================================
    RESPONSIVE
==========================================================*/

@media(max-width:1000px){

    .hero-content{

        margin:0 6%;

        max-width:90%;

    }

    .hero-content h1{

        font-size:3.7rem;

    }

    .hero-content h2{

        font-size:1.8rem;

    }

    .about-container{

        grid-template-columns:1fr;

    }

}

@media(max-width:768px){

    .hero{

        min-height:700px;

    }

    .hero-content h1{

        font-size:2.8rem;

    }

    .hero-content h2{

        font-size:1.5rem;

    }

    .hero-content p{

        font-size:.98rem;

    }

    .hero-button{

        padding:16px 28px;

    }
}
/*==========================================================
    NOTICIAS
==========================================================*/

.news{

    padding:120px 0;

    background:#fafafa;

}

.section-header{

    width:min(750px,90%);

    margin:0 auto 70px;

    text-align:center;

}

.section-tag{

    display:inline-block;

    padding:8px 18px;

    border-radius:999px;

    background:rgba(237, 0, 21,.08);

    color:var(--primary);

    font-weight:600;

    margin-bottom:20px;

}

.section-header h2{

    font-size:2.8rem;

    margin-bottom:20px;

}

.section-header p{

    color:var(--gray);

    line-height:1.9;

}

.news-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:35px;

}

.news-card{

    background:white;

    border-radius:28px;

    overflow:hidden;

    box-shadow:var(--shadow);

    transition:var(--transition);

}

.news-card:hover{

    transform:translateY(-10px);

}

/*==========================================================
    IMÁGENES ROTATIVAS DE NOTICIAS
==========================================================*/

.news-image{

    position:relative;

    height:250px;

    width:100%;

    overflow:hidden;

    background:#eee;

}


.news-slider-dots {

    position: absolute;
    z-index: 6;
    bottom: 12px;
    right: 12px;

    display: flex;
    gap: 6px;

}

.news-slider-dots .news-slider-dot {

    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;

    background: rgba(255, 255, 255, .55);
    transition: var(--transition);

}

.news-slider-dots .news-slider-dot.active {

    width: 18px;
    border-radius: 6px;
    background: var(--white);

}


/* Todas las imágenes ocupan exactamente el mismo espacio */

.news-slide{

    position:absolute;

    inset:0;

    width:100%;

    height:100%;

    object-fit:cover;

    opacity:0;

    transform:scale(1);

    transition:

        opacity .8s ease,

        transform 5s ease;

}


/* Imagen que está visible */

.news-slide.active{

    opacity:1;

    transform:scale(1.04);

}


/* Efecto al pasar el mouse */

.news-card:hover .news-slide.active{

    transform:scale(1.08);

}

.news-content{

    padding:30px;

}

.news-category{

    display:inline-block;

    padding:7px 16px;

    border-radius:999px;

    background:rgba(237, 0, 21,.08);

    color:var(--primary);

    font-size:.85rem;

    font-weight:600;

    margin-bottom:18px;

}

.news-content h3{

    margin-bottom:18px;

    font-size:1.4rem;

}

.news-content p{

    color:var(--gray);

    line-height:1.8;

    margin-bottom:22px;

}

.news-content a{

    color:var(--primary);

    font-weight:600;

}


/*==========================================================
    EVENTOS
==========================================================*/

.events{

    padding:120px 0;

    background-color: var(--secondary);

}

.news-empty-inline {

    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--gray);
    font-size: 14px;

}


.events-list{

    width:min(1100px,90%);

    margin:auto;

    display:flex;

    flex-direction:column;

    gap:25px;

}

.event-card{

    background:white;

    border-radius:24px;

    padding:30px;

    display:flex;

    align-items:center;

    gap:30px;

    box-shadow:var(--shadow);

    transition:var(--transition);

}

.event-card:hover{

    transform:translateX(10px);

}

.event-date{

    min-width:90px;

    height:90px;

    border-radius:20px;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    background:linear-gradient(
        135deg,
        var(--primary),
        var(--primary-light)
    );

    color:white;

}

.event-date span{

    font-size:2rem;

    font-weight:700;

}

.event-date small{

    letter-spacing:2px;

}

.event-content h3{

    margin-bottom:10px;

    font-size:1.3rem;

}

.event-content p{

    color:var(--gray);

}


/*==========================================================
    FOOTER
==========================================================*/

.footer{

    background:#1D1D1D;

    color:white;

}

.footer-container{

    display:grid;

    grid-template-columns:2fr 1fr 1fr;

    gap:60px;

    padding:90px 0;

}

.footer-logo{

    width:190px;

    margin-bottom:25px;

}

.footer-brand p{

    color:#d4d4d4;

    line-height:1.9;

    max-width:420px;

}

.footer-links h3,

.footer-contact h3,

.footer-location h3{

    margin-bottom:25px;

}

.footer-related-title{

    margin-top:26px;
    margin-bottom:14px;
    font-size:15px;

}

.footer-related-link{

    display:block;
    margin-bottom:12px;
    color:#dcdcdc;
    font-size:14px;
    transition:.3s;

}

.footer-related-link:hover{

    color:var(--secondary);

}

.footer-links a{

    display:block;

    margin-bottom:14px;

    color:#dcdcdc;

    transition:.3s;

}

.footer-links a:hover{

    color:var(--secondary);

}

.footer-contact p{

    margin-bottom:12px;

    color:#d4d4d4;

}

.footer-map{

    width:100%;
    height:150px;
    border-radius:12px;
    overflow:hidden;
    margin-bottom:16px;
    border:1px solid rgba(255,255,255,.08);

}

.footer-address{

    display:flex;
    align-items:flex-start;
    gap:8px;
    color:#d4d4d4;
    font-size:14px;
    line-height:1.6;
    margin-bottom:20px;

}

.footer-address i{

    color:var(--secondary);
    margin-top:3px;

}

.footer-social-title{

    margin-bottom:14px;
    font-size:15px;

}

.footer-social{

    display:flex;
    gap:12px;

}

.footer-social a{

    width:38px;
    height:38px;
    border-radius:50%;
    background:rgba(255,255,255,.08);
    display:flex;
    align-items:center;
    justify-content:center;
    color:white;
    font-size:15px;
    transition:.3s;

}

.footer-social a:hover{

    background:var(--primary);
    color:white;

}

.footer-bottom{

    text-align:center;

    padding:22px;

    border-top:1px solid rgba(255,255,255,.08);

    color:#bdbdbd;

}


/*==========================================================
    RESPONSIVE
==========================================================*/

@media(max-width:1200px){

    .news-grid{

        grid-template-columns:repeat(2,1fr);

    }

    .footer-container{

        grid-template-columns:1fr;

        text-align:center;

    }

    .footer-brand p{

        margin:auto;

    }

    .footer-logo{

        margin:0 auto 25px;

    }

    .footer-address{

        justify-content:center;
        text-align:left;
        max-width:320px;
        margin-left:auto;
        margin-right:auto;

    }

    .footer-social{

        justify-content:center;

    }

}
/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1100px) {

    .header-container {

        width: 94%;

        gap: 18px;

    }


    .navigation ul {

        gap: 20px;

    }


    .navigation a {

        font-size: .88rem;

    }


    .search-box {

        width: 160px;

    }


    .profile-button {

        padding: 0 16px;

    }

}


/* ==========================================================
   TABLET PEQUEÑA
========================================================== */

@media (max-width: 900px) {

    .header-container {

        min-height: 75px;

    }


    /* LOGO */

    .logo img {

        width: 58px;

        height: 58px;

    }


    /* ACCIONES DE HEADER A LA DERECHA (Junto al botón hamburguesa como en Foto 2) */
    .header-actions {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* MOSTRAR HAMBURGUESA */
    .menu-toggle {
        display: flex;
        order: 10;
        margin-left: 4px;
    }


    /* OCULTAR NAVEGACIÓN */

    .navigation {
        position: absolute;
        top: calc(100% + 12px);
        left: 3%;
        width: 94%;
        display: none;
        padding: 14px;
        
        /* Apple Liquid Glass Mobile Drawer */
        background: rgba(255, 255, 255, 0.88);
        backdrop-filter: blur(25px) saturate(190%);
        -webkit-backdrop-filter: blur(25px) saturate(190%);
        border: 1px solid rgba(255, 255, 255, 0.95);
        border-radius: 22px;
        box-shadow: 
            0 20px 45px -10px rgba(0, 0, 0, 0.18),
            0 2px 6px rgba(0, 0, 0, 0.05),
            inset 0 1px 1px rgba(255, 255, 255, 0.95);
        z-index: 1040;
    }


    /* MENÚ ABIERTO */

    .navigation.open {

        display: block;

    }


    .navigation ul {

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 6px;

    }


    .navigation li {

        width: 100%;

    }


    .navigation a {

        width: 100%;

        padding: 12px 16px;

        border-radius: 12px;

        color: #1e1e24;

        font-size: .95rem;
        font-weight: 500;

    }


    .navigation a:hover {

        background: rgba(237, 0, 21,.08);

        color: var(--primary);

    }


    .navigation a.active {

        background: rgba(237, 0, 21,.08);

        color: var(--primary);

    }


    .navigation a::after {

        display: none;

    }


    /* OCULTAR BUSCADOR */

    .search-box {

        display: none;

    }


    /* PERFIL */

    .profile-button {

        min-height: 42px;

        padding: 0 15px;

        font-size: .85rem;

    }


    /* HERO */

    .hero-content {

        margin: 0 6%;

        max-width: 90%;

    }


    .hero-content h1 {

        font-size: 3.7rem;

    }


    .hero-content h2 {

        font-size: 1.8rem;

    }


    /* NOTICIAS */

    .news-grid {

        grid-template-columns: 1fr;

    }


    /* ABOUT */

    .about-container {

        grid-template-columns: 1fr;

    }


    /* EVENTOS */

    .event-card {

        flex-direction: column;

        text-align: center;

    }


    /* FOOTER */

    .footer-container {

        grid-template-columns: 1fr;

        text-align: center;

    }


    .footer-brand p {

        margin: auto;

    }


    .footer-logo {

        margin: 0 auto 25px;

    }

    .footer-address {

        justify-content: center;
        text-align: left;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;

    }

    .footer-social {

        justify-content: center;

    }

}


/* ==========================================================
   CELULAR
========================================================== */

@media (max-width: 600px) {

    .header-container {

        width: 92%;

        min-height: 70px;

    }


    /* LOGO MÁS PEQUEÑO */

    .logo img {

        width: 50px;

        height: 50px;

    }


    /* HAMBURGUESA */

    .menu-toggle {

        width: 42px;

        height: 42px;

        border-radius: 10px;

    }


    .menu-toggle span {

        font-size: 24px;

    }


    /* PERFIL */

    .profile-button {

        min-height: 40px;

        padding: 0 13px;

        gap: 6px;

        font-size: .78rem;

    }


    .profile-button span {
        font-size: inherit;
    }

    .profile-button span.material-symbols-outlined {
        font-size: 20px;
    }


    /* MENÚ */

    .navigation {

        left: 3%;

        width: 94%;

    }


    /* HERO */

    .hero {

        min-height: 650px;

    }


    .hero-content {

        margin: 0 7%;

    }


    .hero-content h1 {

        font-size: 2.4rem;

    }


    .hero-content h2 {

        font-size: 1.3rem;

    }


    .hero-content p {

        font-size: .95rem;

        line-height: 1.7;

    }



    /* SECCIONES */

    .section-header h2 {

        font-size: 2rem;

    }

}


/* ==========================================================
   CELULAR PEQUEÑO (logo más contenido)
   Ajuste adicional de responsive solicitado: el logo se veía
   demasiado grande en pantallas de celular angostas.
========================================================== */

@media (max-width: 420px) {

    .header-container {

        min-height: 64px;

        gap: 12px;

    }

    .logo img {

        width: 40px;

        height: 40px;

    }

}

/*==========================================================
    ANIMACIONES
==========================================================*/

.hidden{

    opacity:0;

    transform:translateY(50px);

    transition:

    opacity .8s ease,

    transform .8s ease;

}

.show{

    opacity:1;

    transform:translateY(0);

}
/*==========================================================
    SLIDER DE NOTICIAS
==========================================================*/

.news-image {

    position:relative;

    width:100%;

    height:260px;

    overflow:hidden;

}

.news-slide {

    position:absolute;

    inset:0;

    width:100%;

    height:100%;

    object-fit:cover;

    opacity:0;

    transition:opacity .8s ease;

}

.news-slide.active {

    opacity:1;

}
/* ==========================================================
   MISIÓN Y VISIÓN + REDES SOCIALES
========================================================== */

.about {

    width: 100%;

    padding: 85px 5.5%;

    background-color: #FFF5F5;

}


.about-container {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
}

/* ==========================================================
   TARJETAS
========================================================== */
.about-card,
.social-card {
    background: var(--white);
    border-radius: 26px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.about-card::before,
.social-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--dual-gradient);
    opacity: 0.85;
}

.about-card:hover,
.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.10);
}

/* ==========================================================
   MISIÓN Y VISIÓN CARD (DESKTOP)
========================================================== */
.about-card {
    padding: 42px 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.about-card-content {
    flex: 1;
    min-width: 0;
}

.about-card-art,
.social-card-art {
    flex-shrink: 0;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(237, 0, 21, 0.08);
    color: var(--primary);
    transition: var(--transition);
}

.about-card-art i,
.social-card-art i {
    font-size: 44px;
    color: var(--primary);
}

.about-card:hover .about-card-art,
.social-card:hover .social-card-art {
    transform: scale(1.06);
    background: rgba(237, 0, 21, 0.12);
}

/* ETIQUETA */
.about-card .social-label,
.social-card .social-label {
    display: inline-block;
    width: max-content;
    padding: 6px 14px;
    border-radius: 30px;
    background: rgba(237, 0, 21, 0.08);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

/* TÍTULOS */
.about-card h2 {
    margin: 0 0 12px;
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.18;
    color: var(--text);
    letter-spacing: -0.3px;
}

.about-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

/* ENLACE VER MÁS */
.about-card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.about-card a:hover {
    color: var(--primary-light);
    transform: translateX(4px);
}

/* ==========================================================
   REDES SOCIALES CARD (DESKTOP)
========================================================== */
.social-card {
    padding: 38px 36px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.social-card-content {
    flex: 1;
    min-width: 0;
}

.social-card h2 {
    margin: 0 0 10px;
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
    letter-spacing: -0.3px;
}

.social-card p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ENLACES DE REDES */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-links a {
    min-height: 48px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 14px;
    background: #F8FAFC;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: #FFF5F5;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(3px);
}

.social-links i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(237, 0, 21, 0.08);
    color: var(--primary);
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.social-links a:hover i {
    background: var(--primary);
    color: var(--white);
}

/* ==========================================================
   RESPONSIVE: TABLETS Y MÓVILES (Evita alargamientos y cortes)
========================================================== */
@media (max-width: 900px) {
    .about {
        padding: 50px 5%;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-card,
    .social-card {
        padding: 28px 24px;
        border-radius: 22px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        position: relative;
    }

    /* En móviles el círculo decorativo pasa a ser un ícono elegante en la esquina superior */
    .about-card-art,
    .social-card-art {
        position: absolute;
        top: 22px;
        right: 22px;
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: rgba(237, 0, 21, 0.08);
        pointer-events: none;
    }

    .about-card-art i,
    .social-card-art i {
        font-size: 22px;
    }

    .about-card-content,
    .social-card-content {
        width: 100%;
        padding-right: 56px; /* Espacio para que el texto no choque con el icono de la esquina */
    }

    .about-card h2 {
        font-size: 1.65rem;
        margin-bottom: 8px;
    }

    .social-card h2 {
        font-size: 1.55rem;
        margin-bottom: 8px;
    }

    .about-card p,
    .social-card p {
        font-size: 0.88rem;
        line-height: 1.6;
        margin-bottom: 18px;
    }

    .social-links {
        width: 100%;
        padding-right: 0;
    }

    .social-card-content {
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .about {
        padding: 36px 4%;
    }

    .about-card,
    .social-card {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .about-card-art,
    .social-card-art {
        top: 18px;
        right: 18px;
        width: 44px;
        height: 44px;
    }

    .about-card-art i,
    .social-card-art i {
        font-size: 18px;
    }

    .about-card-content {
        padding-right: 48px;
    }

    .about-card h2 {
        font-size: 1.4rem;
    }

    .social-card h2 {
        font-size: 1.35rem;
    }

    .social-links a {
        min-height: 44px;
        padding: 0 12px;
        font-size: 0.85rem;
    }
}