/* =========================
    VARIABLES
========================= */
:root {
    --azul-oscuro: #0f172a;
    --azul: #1e3a8a;
    --azul-claro: #3b82f6;

    --naranja: #f97316;
    --naranja-hover: #ea580c;

    --negro: #111827;
    --gris-oscuro: #374151;
    --gris: #6b7280;
    --gris-claro: #f3f4f6;
    --blanco: #ffffff;

    --shadow: 0 10px 25px rgba(0,0,0,0.1);
    --radius: 12px;
}

/* =========================
   🔧 RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--negro);
    background: whitesmoke;
    line-height: 1.6;
    font-size: 16px;
}


img {
    content-visibility: auto;
}

/* TITULOS */
h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--azul-oscuro);
    line-height: 1.2;
}

/* Tamaños */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
}

h4 {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Párrafos */
p {
    color: var(--gris-oscuro);
    margin-bottom: 1rem;
    max-width: 65ch;
}

/* LINKS */
a {
    transition: 0.3s;
}

/* etiquetas tipo badge */
.badge {
    display: inline-block;
    background: var(--azul-claro);
    color: white;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
}

#navMenu a.active {
    color: #ff6a00;
}


/* =========================
    LAYOUT GENERAL
========================= */
section {
    padding: 1rem 1rem;
    scroll-margin-top: 80px;
    
}

.about-full {
    padding-bottom: 1rem; /* reduce SOLO aquí */
}

.objectives-section {
    padding-top: 1rem; /*  acerca esta */
}


.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    position: relative;
  
}


/* CONTENEDORES CENTRADOS (IMPORTANTE) */
.header-container,
.contact-container,
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* separaciones internas */
.about-text p,
.contact-info p {
    margin-bottom: 1.2rem;
}

/* línea decorativa (detalle PRO) */
.section-title::after {
    content: "";
    width: 60px;
    height: 4px;
    background: var(--naranja);
    display: block;
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/*botones*/
.btn-submit{
    font-weight: 500;
    letter-spacing: 0.5px;
}

/*responsive tipografia*/

@media (max-width: 768px) {

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* =========================
    TABLET (769px - 1024px)
========================= */
@media (min-width: 769px) and (max-width: 1024px) {

    /* Layout general */
    section {
        padding: 4rem 2rem;
    }

    /* HERO */
    .hero img {
        height: 30vh;
    }

    .hero-content {
        background: linear-gradient(
            to top,
            rgba(15, 23, 42, 0.75) 0%,
            rgba(15, 23, 42, 0.5) 40%,
            rgba(15, 23, 42, 0.25) 70%,
            transparent 100%
        );
    }

    .hero-content {
        left: 8%;
        bottom: 15%;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    /* GRID ajustes */
    .about-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: center;
    }

    /* GALERÍA */
    .about-images img {
        width: 220px;
    }

    /* AGENDA */
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* NOTICIAS */
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* CONTACTO */
    .contact-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    /* FOOTER */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
    }

    /* MENÚ */
    nav ul {
        gap: 1rem;
    }
}

/* =========================
    HEADER
========================= */
header {
    background: var(--azul-oscuro);
    color: var(--blanco);
    position: sticky;
    top: 0;
    z-index: 1000;

    
   
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-img {
    height: 40px;
}

.logo-text h1 {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

/* Título principal */
.logo-text .main {
    font-size: 1rem;
    font-weight: 700;
    color: var(--naranja); /*  PROTAGONISTA */
}

/* Subtítulo */
.logo-text .sub {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--gris-claro);
}
nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    color: var(--blanco);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--naranja);
    transition: 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/*movil*/

@media (max-width: 768px) {

    .logo-text .main {
        font-size: 0.9rem;
    }

    .logo-text .sub {
        font-size: 0.65rem;
    }

    .logo-img {
        height: 35px;
    }
}

/* =========================
    MENÚ MOBILE
========================= */


@media (max-width: 768px) {

   nav ul {
        display: none;
        flex-direction: column;
        background: var(--azul-oscuro);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        margin:0;
        z-index: 999;
    }

    nav ul.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex !important;
    }
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background: white;
    margin-bottom: 4px;
}



/* =========================
   HERO PRO
========================= */
.hero {
    padding: 1rem 1.5rem; /* separa del header */
    margin-bottom: 2rem;
}

.hero-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: none;
    height: 85vh;
}

/* IMAGEN */
.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    /*  CLAVE: enfoca parte inferior */
    
    display: block;
}

/* TEXTO */
.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;

    padding: 1.5rem;

    /*  overlay degradado PRO */
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.5),
        transparent
    );

    border-radius: 0 0 var(--radius) var(--radius);
}

/* TITULOS */
.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;

    color: white;
}

.hero h3 {
    font-size: 1.1rem;
    font-weight: 300;

    color: var(--naranja);
}

/*movil*/

@media (max-width: 768px) {

    .hero-image {
        height: 50vh;
    }

    .hero h2 {
        font-size: 1.6rem;
    }

    .hero h3 {
        font-size: 0.95rem;
    }

    .hero-content {
        padding: 1.2rem;
        background: linear-gradient(
            to top,
            rgba(15, 23, 42, 0.9) 0%,
            rgba(15, 23, 42, 0.7) 40%,
            rgba(15, 23, 42, 0.4) 70%,
            transparent 100%);
    }
}

/*hero tablet*/
@media (min-width: 769px) and (max-width: 1024px) {

    .hero-image {
        height: 30vh;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero-content {
        background: linear-gradient(
            to top,
            rgba(15, 23, 42, 0.75) 0%,
            rgba(15, 23, 42, 0.5) 40%,
            rgba(15, 23, 42, 0.25) 70%,
            transparent 100%
        );
    }
}

/* =========================
   ABOUT
========================= */


.about-text {
    text-align: center;
    margin: 0 auto;
    max-width: 1100px;
    padding: 0 1rem;
}

.about-text p {
    margin: 0 auto;
    line-height: 1.7;
}

.about-mobile-controls,
.about-tablet-controls {
    display: none;
    width: 100%;
}

/* =========================
    GALERÍA
========================= */
.about-images {
    display: flex;
    flex: 0 0 auto;
    gap: 1.5rem;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 1.5rem 2rem;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    align-items: center; 
}

.about-images img {
    width: 320px;
    height: 200px; /*  CLAVE: ALTURA FIJA */

    content-visibility: visible;

    object-fit: cover;
    border-radius: var(--radius);

    scroll-snap-align: center;

    transition: transform 0.3s ease;

}

.about-images img:hover {
    transform: scale(1.05);
}

/* Scroll barra */
.about-images::-webkit-scrollbar {
    height: 8px;
}

/* Fondo */
.about-images::-webkit-scrollbar-track {
    background: var(--gris);
    border-radius: 10px;
    background: #e5e7eb;
}

/* Barra */
.about-images::-webkit-scrollbar-thumb {
    background: var(--naranja);
    border-radius: 10px;
}

/* Hover */
.about-images::-webkit-scrollbar-thumb:hover {
    background: var(--naranja-hover);
}

/* quitar flechas en algunos navegadores */
.about-images::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}


/*responsive*/
@media (max-width: 1024px) {

    .about-images {
        -ms-overflow-style: none; /* IE/Edge */
        scrollbar-width: none; /* Firefox */
    }

    .about-images::-webkit-scrollbar {
        display: none;
    }
}

/*movil*/
@media (max-width: 768px) {

    .about-images {
        overflow: hidden; /*  quitamos scroll */
        justify-content: center;
        padding: 0;
        margin-top: 1.5rem;
        display: block;
        position: relative;
    }

    .about-images img {
        width: 90%;
        height: auto;
        max-width: 350px;

        margin: 0 auto;
        display: none; /*  ocultamos todas */

        position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    
    opacity: 0;
    pointer-events: none;

    transition: opacity 0.3s ease;
    }

    
     .about-images img:first-child {
        display: block;
    }

    .about-images img:hover {
        transform: none;
    }

    .about-images img.active {
        display: block; /*  mostramos solo una */
        margin: 0 auto;
        
        opacity: 1;
        pointer-events: auto;
        position: relative;
        
    }

    .about-images::-webkit-scrollbar {
        display: none; /* Chrome */
    }

    .about-mobile-controls {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        margin-top: 1.5rem;
    }


    .about-btn {
        background: var(--naranja);
        color: white;
        border: none;

        width: 45px;
        height: 45px;

        border-radius: 50%;
        font-size: 1.2rem;

        display: flex;
        align-items: center;
        justify-content: center;

        cursor: pointer;
    }

    .about-btn:hover {
        background: var(--naranja);
        color: white;
    }



}

/*tablet*/

@media (min-width: 769px) and (max-width: 1024px) {
    .about-tablet-controls {
        display: flex;
        justify-content: flex-end; /*  centrados */
        align-items: center;
        width: 100%; /*  CLAVE */
        gap: 2rem;
        margin-top: 0rem;
        padding-right: 6rem;
        grid-column: 1 / -1;

        max-width: 700px; /*  mismo ancho que la imagen */
        margin: 0 auto;   /*  centra el bloque */
    }

    .about-images {
        overflow: hidden;
        justify-content: center;
        padding: 0;
        margin-top: 0rem;
    }

    .about-images img {
        display: none;
        width: 85%;
        max-width: 700px;
        margin: 0 auto;
    }

    .about-images img.active {
        display: block;
    }

  
    .about-btn {
        background: var(--naranja);
        color: white;
        border: none;

        width: 50px;
        height: 50px;

        border-radius: 50%;
        font-size: 1.3rem;

        display: flex;
        align-items: center;
        justify-content: center;

        cursor: pointer;
    }

}

/*botones about*/

.about-btn {
    background: var(--azul-oscuro);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.about-btn:hover {
    background: var(--naranja);
}


/* =========================
   ABOUT COMPLETO ocultar+animación
========================= */

.about-full {
    max-height: 0;
    overflow: hidden;
    opacity: 0;

    transition: all 0.5s ease;
}

/* cuando está abierto */
.about-full.open {
    opacity: 1;
    margin-top: 2rem;
}

/* botón */
.toggle-about-btn {
    display: block;
    margin: 2rem auto;
    
    background: var(--azul-oscuro);
    color: white;
    border: none;

    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);

    font-weight: 500;
    cursor: pointer;

    transition: 0.3s;
}

.toggle-about-btn:hover {
    background: var(--naranja);
}



/* =========================
   ABOUT COMPLETO
========================= */

.about-full {
    padding-bottom: 6rem;
}

.about-full-content {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-full-text {
    padding-left: 1rem;
}

.about-full-text p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* lista más bonita */
.about-full-text ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;

    margin-top: 0.8rem;
}

.about-full-text ul li {
    list-style: none;
    display: inline-block;

    background: var(--gris-claro);
    padding: 0.4rem 0.9rem;
    margin: 0rem;

    border-radius: 999px;
    font-size: 0.85rem;

    transition: 0.3s;
}

.about-full-text ul li:hover {
    background: var(--naranja);
    color: white;
}


/* text extra*/

.about-full-extra {
    margin-top: 3rem;
    width: 100%;
   
    
    
}

.about-full-extra-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
  

    background: linear-gradient(135deg, var(--azul), var(--azul-oscuro));
    padding: 2rem;

    border-radius: var(--radius);
    border: 1px solid #e5e7eb;

    box-shadow: var(--shadow);

    display: block; /*  importante */
}

.about-full-extra p {
    margin-bottom: 1.2rem;
    max-width: 900px; /* o 900px si lo quieres más ancho */
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: white;

    

}

.valores-title {
    margin-top: 1.5rem;
}

.valores-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.valores-list li {
    list-style: none;
    background: rgba(255,255,255,0.15);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    transition: 0.3s;
    color: white;
}

.valores-list li:hover {
    background: var(--naranja);
    color: white;
}




/*full media*/

.about-full-media {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-full-gallery {
    position: relative;
    height: 350px;
    overflow: hidden;
}


.about-full-gallery img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    opacity: 0;
    transition: opacity 0.6s ease;

    border-radius: var(--radius);
}

.about-full-gallery img.active {
    opacity: 1;
    z-index: 1;
}


/*video*/

.video-container {
    position: relative;
    overflow: hidden;
}

.video-container img {
    cursor: pointer;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;

    border-radius: var(--radius);
    display: block;
}

.video-container:hover video {
    transform: scale(1.02);
    transition: 0.3s;
}

.video-container::after {
  
    
    position: absolute;

    pointer-events: none;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 60px;
    height: 60px;

    background: rgba(0,0,0,0.5);
    color: white;
    font-size: 2rem;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

}

/*movil*/

@media (max-width: 768px) {

    .about-full-content {
        grid-template-columns: 1fr;
    }

    .about-full-text {
        padding-left: 0;
        text-align: center;
    }

    .about-full-text ul {
        text-align: center;
    }

    .about-full-gallery {
       
        height: 220px;
    }

   
}

/*tablet*/

@media (min-width: 769px) and (max-width: 1024px) {

    .about-full-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-full-text {
        text-align: center;
    }

    
}



/* =========================
    OBJETIVOS
========================= */

.objectives-section {
    margin-top: 50px;
}

.objectives-grid {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* TARJETAS */
.objective-card {
    background: var(--blanco);
    padding: 1.8rem;

    border-radius: var(--radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);

    transition: all 0.35s ease;

    position: relative;
    overflow: hidden;
}

/* línea decorativa (sutil) */
.objective-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 4px;
    background: var(--naranja);

    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

/* HOVER PRO */
.objective-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* activa línea */
.objective-card:hover::before {
    transform: scaleX(1);
}

/* TITULO */
.objective-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.objective-card:hover h3 {
    color: var(--azul);
}

/* LISTA */
.objective-card ul {
    padding-left: 1rem;
}

.objective-card ul li {
    margin-bottom: 0.6rem;
    color: var(--gris-oscuro);
    position: relative;
}

/* pequeño detalle visual */
.objective-card ul li::marker {
    color: var(--naranja);
}

/* =========================
    RESPONSIVE OBJETIVOS
========================= */

@media (min-width: 769px) and (max-width: 1024px) {
    .objectives-grid {
        grid-template-columns: 1fr;
    }

    .objective-card {
        padding: 1.4rem 1.6rem;
        border-left: 5px solid var(--naranja);
    }

    .objective-card::before {
        display: none;
    }

    .objective-card h3 {
        margin-bottom: 0.5rem;
    }
    
    .objective-card ul li {
        margin-bottom: 0.4rem;
    }

}

@media (max-width: 768px) {

    .objectives-grid {
        grid-template-columns: 1fr;
    }

    .objective-card {
        padding: 1.5rem;
    }
}



/* =========================
    VIDEO
========================= */
.video-container img {
    width: 100%;
    border-radius: var(--radius);
    cursor: pointer;
    transition: 0.3s;
}

.video-container img:hover {
    filter: brightness(0.8);
}

/* =========================
    FORMULARIOS
========================= */
.form-group {
    margin-bottom: 1rem;
}

input, textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: var(--radius);
    border: 1px solid #ddd;
}

.form-success {
    display: none;
    color: green;
    margin-top: 1rem;
}




/* =========================
   📱 RESPONSIVE
========================= */
@media (max-width: 768px) {

  

    .hero h2 {
        font-size: 1.8rem;
    }

    .events-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) {

    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* =========================
   AGENDA
========================= */

.agenda-section {
    padding: 5px 20px;
}

.agenda-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    max-width: 1200px;
    margin: auto;
}

/* =========================
   FILTROS
========================= */

.agenda-filters {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 40px;
    position: relative;
}

.agenda-filters .filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* BOTONES */
.filter-btn {
    padding: 10px 18px;
    border-radius: 999px;

    border: none;
    background: var(--azul-oscuro);
    color: var(--blanco);

    font-size: 14px;
    cursor: pointer;

    transition: all 0.3s ease;
}

/* hover */
.filter-btn:hover {
    background: var(--naranja-hover);
}

/* activo */
.filter-btn.active {
    background: var(--naranja-hover);
}

/* =========================
   AÑOS
========================= */

.year-filters {
    display: none;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.year-filters.active {
    display: flex;
}

.year-filters button {
    padding: 6px 12px;
    border-radius: 6px;

    border: none;
    background: var(--azul-oscuro);
    color: var(--blanco);

    cursor: pointer;
    transition: 0.3s;
}

.year-filters button:hover {
    background: var(--naranja-hover);
}

.year-filters button.active {
    background: var(--naranja-hover);
}

/* =========================
   TIMELINE CONTENEDOR (SCROLL)
========================= */

.agenda-timeline {
    position: relative;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 10px;
}

/* scrollbar */
.agenda-timeline::-webkit-scrollbar {
    width: 6px;
}

.agenda-timeline::-webkit-scrollbar-track {
    background: var(--gris-claro);
}

.agenda-timeline::-webkit-scrollbar-thumb {
    background: var(--naranja);
    border-radius: 10px;
}

/* =========================
   LÍNEA VERTICAL
========================= */

.agenda-timeline::before {
    content: "";
    position: absolute;
    left: 140px;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--gris);
}

/* =========================
   ITEM
========================= */

.timeline-item {
    display: grid;
    grid-template-columns: 120px 1fr 140px;
    align-items: center;
    gap: 20px;

    padding: 18px;
    margin-bottom: 15px;

    border-radius: var(--radius);
    background: var(--blanco);
    border: 1px solid var(--gris-claro);

    cursor: pointer;
    position: relative;

    background: var(--gris-claro);
    border-radius: var(--radius);

    opacity: 0;
    transform: translateY(40px);
    transition: all 0.5s ease;
}

.timeline-item.show {
    opacity: 1;
    transform: translateY(0);
}

/* hover */
.timeline-item:hover {
    border-color: var(--naranja);
    box-shadow: var(--shadow);
    background: #e5e7eb;
}

/* punto */
.timeline-item::before {
    content: "";
    position: absolute;
    left: 136px;
    width: 10px;
    height: 10px;
    background: var(--naranja);
    border-radius: 50%;
}

/* =========================
   CONTENIDO
========================= */

.timeline-date {
    font-weight: 600;
    font-size: 14px;
    color: var(--gris-oscuro);
}

.timeline-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--negro);
}

.timeline-location {
    font-size: 14px;
    color: var(--gris);
}

/* =========================
   IMAGEN
========================= */

.timeline-image {
    width: 100%;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* hover imagen */
.timeline-item:hover .timeline-image {
    transform: scale(1.05);
}

/* =========================
   PREVIEW
========================= */

.agenda-preview img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .agenda-container {
        grid-template-columns: 1fr;
    }

    .agenda-preview {
        order: -1;
        display: none;
    }

    .agenda-timeline {
        max-height: none;
    }

    .agenda-timeline::before {
        left: 10px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        padding-left: 30px;
    }

    .timeline-item::before {
        left: 6px;
    }

    .timeline-image {
        height: 120px;
        margin-top: 10px;
    }
}

/* =========================
   MODAL IMAGEN AGENDA
========================= */

.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);

    justify-content: center;
    align-items: center;

    z-index: 9999;
    padding: 20px;
}

/* cuando se activa */
.image-modal.active {
    display: flex;
}

/* imagen */
.image-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* botón cerrar */
.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    opacity: 0.7;
}

/* =========================
   ZOOM INTERACTIVO IMAGEN
========================= */

/* cursor lupa */
#previewImage,
.image-modal img {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

/* estado ampliado */
.image-modal img.zoomed {
    transform: scale(1.8);
    cursor: zoom-out;
}

@media (min-width: 769px) and (max-width: 1024px) {

    .agenda-container {
        grid-template-columns: 1fr 350px;
        gap: 30px;
    }

    .agenda-preview {
        display: block;
        order: 0;
    }

    .agenda-timeline {
        max-height: 500px;
    }
}







/* =========================
   SPONSORS
========================= */

.sponsors {
    margin-top: 3rem;
    text-align: center;
}


.sponsors-text:hover {
    color: var(--azul);
    letter-spacing: 0.5px;
}

/* GRID */

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(2, auto); /*  clave */
    gap: 20px; /*  menos separación */
    justify-content: center; /*  centra TODO el bloque */
    align-items: center;
}

.sponsors {
    margin-top: 4rem;
    margin-bottom: 5rem;
    text-align: center;
}



/* LOGOS (IMÁGENES) */
.sponsor-logo {
    width: 100%;
    max-width: 420px;
    height: auto;
    margin-top: 20px;
    margin-bottom: 40px;
    object-fit: contain;

    transition: all 0.3s ease;
}

/* HOVER PRO */
.sponsor-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.08);
}

/* PRIMERA FILA MÁS IMPORTANTE */
.sponsor-item:nth-child(-n+3) .sponsor-logo {
    max-width: 200px;
    height: 110px;
}

/* SEGUNDA FILA */
.sponsor-item:nth-child(n+4) .sponsor-logo {
    max-width: 150px;
    height: 110px;
    transform: scale(0.95);
}

/* MODAL FONDO IMAGEN LOGO SPONSOR*/
.sponsor-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;

    background: rgba(0,0,0,0.85);

    justify-content: center;
    align-items: center;
}

/* IMAGEN */
.sponsor-modal img {
    max-width: 90%;
    max-height: 80%;

    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);

    animation: zoomIn 0.3s ease;
}

/* BOTÓN CERRAR */
.close-sponsor {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
}

/* ANIMACIÓN */
@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* CURSOR CLICK */
.sponsor-logo[data-img] {
    cursor: pointer;
}



/* =========================
   CTA
========================= */

.sponsor-cta {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    width: calc(100% - 2rem); /*para los márgenes laterales*/

    background: linear-gradient(135deg, var(--azul), var(--azul-oscuro));
    color: white;

    border-radius: var(--radius);
    box-shadow: var(--shadow);

}

.sponsor-cta p {
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
}

.sponsor-cta h3 {
    color: white;
    margin-bottom: 1rem;
}

.sponsor-cta p {
    color: #e5e7eb;
    margin: 0 auto 1.5rem auto;
}

/* BOTÓN */
.btn-sponsor {
    display: inline-block;
    margin-top: 0.5rem;

    background: var(--naranja);
    color: white;

    padding: 0.9rem 2rem;
    border-radius: 999px;

    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;

    transition: all 0.3s ease;
}

.btn-sponsor:hover {
    background: var(--naranja-hover);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* =========================
   BENEFITS
========================= */

.sponsor-benefits {
    margin-top: 1.5rem;

    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.benefit-chip {
    background: rgba(255,255,255,0.15);
    padding: 0.5rem 1rem;
    border-radius: 999px;

    font-size: 0.85rem;
    backdrop-filter: blur(6px);

    transition: all 0.3s ease;
}

.benefit-chip:hover {
    background: white;
    color: var(--azul);
    transform: scale(1.05);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {



    .sponsors-grid {
        display: grid;
    grid-template-columns: repeat(2, auto); /* 👈 clave */
    gap: 20px; /* 👈 menos separación */
    justify-content: center; /* 👈 centra TODO el bloque */
    align-items: center;
    }

   

    .sponsor-logo {
        width: 100%;
        height: 60px;
        object-fit: contain;

        background: white;
        padding: 0.5rem;
        border-radius: 8px;

    }

    /* grandes */
    .sponsor-item:nth-child(-n+2) .sponsor-logo {
    height: 80px;
    }

    .sponsor-cta {
        padding: 2rem 1.5rem;
    }

    .sponsor-cta p {
        white-space: normal;
    }
}


@media (min-width: 769px) and (max-width: 1024px) {

    .sponsors-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 30px;
        justify-items: center;
    }

 
    /* tamaños base */
    .sponsor-logo {
        width: 100%;
        height: 110px;
        object-fit: contain;

        background: white;
        padding: 0.5rem;
        border-radius: 8px;
    }

    /* logos grandes */
    .sponsor-item:nth-child(-n+2) .sponsor-logo {
        height: 100px;
    }
}


/* =========================
    FORMULARIOS
========================= */
.form-group {
    margin-bottom: 1rem;
}

input, textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: var(--radius);
    border: 1px solid #ddd;
}

.form-success {
    display: none;
    color: green;
    margin-top: 1rem;
}

/* =========================
   CONTACTO
========================= */

.contact {
    background: linear-gradient(to bottom, #f9fafb, #ffffff);
    padding: 3rem 1.5rem;
    margin-bottom: 15px;
}

/* CONTENEDOR */
.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: flex-start;
    
}

.contact-section {
    background: #f7f9fc; /* fondo ligeramente distinto */
    padding: 1rem 1.5rem;
}

.contact-benefits {
    margin-top: 1rem;
    list-style: none;
    padding: 0 0 5px 0;
}

.contact-benefits li {
    margin-bottom: 0.5rem;
    transition: 0.3s;
    color: var(--gris-oscuro);
}

.contact-benefits li:hover {
    color: var(--naranja);
    transform: translateX(4px);
}

.contact-info {
    max-width: 420px;
   
}

.contact-info h3 {
    margin-top: 0.5rem;
    transition: 0.3s;
}

.contact-info h3:hover {
    color: var(--azul);
}

/* TARJETA */
.contact-card {
   
    padding: 1.2rem;
    max-width: 500px; 
    width: 100%; 
    border-radius: var(--radius);
    position: relative;
    transition: 0.3s;
    opacity: 0;
    transform: translateX(40px);
    animation: slideInForm 0.6s ease forwards;
    backdrop-filter: blur(6px);
    overflow: visible;
    
}

@keyframes slideInForm {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-card:hover {
    transform: translateY(-3px);
}

/* FORM */
.contact-form {
    display: flex;
    flex-direction: column;
    width:100%;
    
    background:var(--azul-oscuro);
    border: 1px solid rgba(0,0,0,0.08);   /* sutil */
    border-radius: 12px;
    padding: 2rem;

    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

/* GRUPO */
.form-group {
    position: relative;
}

/* INPUTS */
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.65rem 0.7rem;
    border-radius: var(--radius);
    border: 1px solid #e5e7eb;
    background: #f9fafb;

    font-size: 0.9rem;
    outline: none;
    transition: 0.3s;
}

/* FOCUS */
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--azul-claro);
    background: white;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.contact-form input:hover,
.contact-form textarea:hover {
    border-color: var(--azul-claro);
}

/* LABEL NORMAL (para select) */
.form-label {
    font-size: 0.8rem;
    color: var(--gris);
    margin-bottom: 0.3rem;
    display: block;
}





/* TEXTAREA */
textarea {
    resize: none;
    min-height: 80px;
}


/* =========================
   SELECT CUSTOM 
========================= */

.custom-select {
    position: relative;
    z-index: 1000;
}

.select-trigger {
    width: 100%;
    padding: 0.65rem 0.7rem;
    font-size: 0.9rem;
    border-radius: var(--radius);
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    text-align: left;
    cursor: pointer;
    position: relative;
}

.select-trigger::after {
    content: "⌄";
    position: absolute;
    pointer-events: none;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--gris);
}
.select-trigger.selected {
    border-color: var(--azul);
    background: white;
}

.select-options {
    position: absolute;
    width: 100%;
    top: 110%;
    left: 0;

    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);

    display: none;
    overflow: hidden;
    z-index: 2000;
}

.select-options div {
    padding: 0.6rem 0.7rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
}

.select-options div:hover {
    background: var(--gris-claro);
}

/* ACTIVO */
.custom-select.active .select-options {
    display: block;
}

/*aceptar política privacidad*/

.checkbox-group {
    margin-top: 0.3rem;
    margin-bottom: 1rem;
    position: static;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.3rem;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--gris);
    cursor: pointer;
    width: 100%;
}

.checkbox-group label {
    position: static !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    background: none !important;
    padding: 0 !important;
    pointer-events: auto !important;
}

.checkbox-label input {
   
    accent-color: var(--naranja);
    cursor: pointer;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* texto */
.checkbox-label span {
    display: block;
    line-height: 1.3;
    flex: 1;
}

.checkbox-group .checkbox-label {
    position: static !important;
    transform: none !important;
    display: flex;
}


/* BOTÓN  */
.btn-submit {
    margin-top: 0;
    padding: 0.9rem;
    border-radius: var(--radius);
    border: none;

    background: linear-gradient(135deg, var(--naranja), var(--naranja-hover));
    color: white;

    font-weight: 600;
    letter-spacing: 0.5px;

    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(249,115,22,0.3);
}

.btn-submit.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* =========================
   MODAL CONTACTO
========================= */

.contact-modal {
    display: none !important; /*  fuerza oculto */
    position: fixed;
    inset: 0;
    z-index: 4000;

    background: rgba(0,0,0,0.6);

    justify-content: center;
    align-items: center;
}

.contact-modal.active {
    display: flex !important;
}

.contact-modal-content {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    max-width: 350px;

    animation: fadeUp 0.3s ease;
}

@keyframes fadeUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.contact-modal-content h3 {
    margin-bottom: 0.5rem;
}

.contact-modal-content button {
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: var(--radius);

    background: var(--naranja);
    color: white;
    cursor: pointer;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/*____ whatsapp */

/* CONTENEDOR */
.contact-alt {
    margin-top: 1.2rem;
    text-align: center;
}

/* DIVISOR BONITO */
.divider {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: var(--gris);
    font-size: 0.8rem;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.divider span {
    margin: 0 0.6rem;
}

/* BOTÓN WHATSAPP */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    width: 100%;
    padding: 0.75rem;

    border-radius: var(--radius);
    text-decoration: none;

    background: #25D366;
    color: white;

    font-weight: 600;
    font-size: 0.9rem;

    transition: all 0.3s ease;
}

/* HOVER PRO */
.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37,211,102,0.25);
}

/* ICONO */
.whatsapp-icon {
    font-size: 1rem;
}


/* =========================
    FOOTER
========================= */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;

    background: var(--azul-oscuro);
    color: white;
    padding: 3rem 1.5rem;
}

.footer-content {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr auto auto;
    align-items: start;
    justify-items: stretch;
    max-width: 1000px;
    margin: 0 auto; 
}

/* PRIMERA COLUMNA (texto principal) centrada */
.footer-section:nth-child(1) {
    justify-self: start;
    text-align: left;
}

/* SEGUNDA Y TERCERA → empujadas a la derecha */
.footer-section:nth-child(2),
.footer-section:nth-child(3) {
    justify-self: end;
    text-align: left;
    
     
}


/* cada bloque */
.footer-section {
    display: flex;
    flex-direction: column;
    
}

footer h3 {
    color: white;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    position: relative;
}

footer h3::after {
    content: "";
    width: 30px;
    height: 2px;
    background: var(--naranja);
    display: block;
    margin-top: 0.4rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    position: relative;
}

/* línea animada tipo header */
.footer-section a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -3px;
    left: 0;
    background: var(--naranja);
    transition: 0.3s;
}

.footer-section a:hover::after {
    width: 100%;
}

.footer-section p {
    margin-bottom: 0.5rem;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    
   
    
}

.footer-legal a {
    display: inline-block;
    
    
}


.footer-legal a:last-child {
    grid-column: 1 / -1;
}



.footer-sponsors {
    grid-column: 1 / -1; /*  ocupa todo */
    text-align: center;
    margin-top: 3rem;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: nowrap;
}

.footer-sponsors img {
    background: rgba(255,255,255,0.9);        
    padding: 0.5rem 1rem;
    border-radius: 8px;

    max-height: 80px;
    object-fit: contain;

    transition: 0.3s;
}


.footer-sponsors img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.sponsors-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: nowrap;
}

.footer-bottom {
    width: 100%;
    margin-top: 2rem;
}

/* NUEVO: contenedor interno */
.footer-bottom p {
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 1rem;
    text-align: center;

    border-top: 1px solid rgba(255,255,255,0.1);
}

.break-mobile {
    display: none;
}

@media (max-width: 768px) {

    .footer-content {
        grid-template-columns: 1fr;
        justify-items: start;
    }

      /* Primera sección centrada */
      .footer-section:first-child {
        align-items: center;
        text-align: center;
        justify-self: center;
    }

      /* Legal + Síguenos a la izquierda */
      .footer-section:not(:first-child) {
        align-items: flex-start;
        text-align: left;
        justify-self: start;
    }

    .footer-section:first-child h3::after {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-sponsors {
        margin-top: 2rem;
        flex-wrap: wrap;

        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 por fila */
        gap: 1rem;
    }

    .footer-sponsors img {
        width: 100%;
        height: 70px;           /*  altura uniforme */
        object-fit: contain;    /* mantiene proporción */

        background: rgba(255,255,255,0.95);
        padding: 0.5rem;
        border-radius: 8px;
    }

    .footer-sponsors img:last-child {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 150px;
    }


    .sponsors-row {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .break-mobile {
        display: block;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {

    .footer-sponsors {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;   /*  CLAVE */
        gap: 1.5rem;
        max-width: 500px;          /*  evita que se estiren demasiado */
        margin: 0 auto;
        
    }


    .footer-sponsors img {
        
        max-width: 140px;
        height: 80px;
        object-fit: contain;
    }
}

@media (max-width: 1024px) {

    .sponsors-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
        max-width: 500px;
        margin: 0 auto;
    }
}



/* =========================
   BASE TRANSPARENCIA
========================= */


.transparency-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: auto;
}

.transparency-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.transparency-subtitle {
    text-align: center;
    margin-bottom: 50px;
    opacity: 0.8;
}

/* =========================
   BLOQUE MOTIVADOR
========================= */

.commitment-box {
    display: flex;
    align-items: center;
    gap: 40px;

    max-width: 900px;
    margin: 0 auto;
    padding: 30px;

    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Imagen */
.commitment-image img {
    width: 280px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

/* Texto */
.commitment-content {
    flex: 1;
}

.commitment-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.commitment-highlight {
    color: #ff6a00;
    font-weight: 600;
}

@media (max-width: 768px) {
    .commitment-box {
        flex-direction: column;
        text-align: center;
    }

    .commitment-image img {
        width: 100%;
        height: 200px;
    }
}

/* =========================
   IMPACTO AYUDAS
========================= */
.impact-intro{
    text-align: center;
}


.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.impact-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-5px);
}

.impact-year {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--azul);
}

.impact-value {
    font-size: 1.4rem;
    font-weight: bold;
}

/* =========================
   SUBVENCIONES
========================= */

.subvenciones-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.transparency-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
    line-height: 1.5;
    opacity: 0.8;
    font-size: 0.95rem;
}

.subvencion-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    max-width: 800px;
    margin: 0 auto 20px auto;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    /*transition: all 0.3s ease;*/
    transition: all 0.25s ease;
    border: 1px solid rgba(0,0,0,0.08);

}

.subvencion-card:hover {
    /*transform: scale(1.01);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);*/
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);

}

.subvencion-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-weight: bold;
}

.subvencion-year,
.subvencion-importe {
    color: #ff6a00; /*  naranja corporativo */
    font-weight: 700;
}

.subvencion-year {
    font-size: 1.1rem;
}

.subvencion-importe {
    font-size: 1.2rem;
    background: rgba(255,106,0,0.1);
    padding: 4px 10px;
    border-radius: 6px;
}

.subvencion-body {
    font-size: 0.95rem;
    line-height: 1.5;
}

.subvencion-body a {
    color: var(--azul);
    text-decoration: underline;
}

/* =========================
   LOGOS
========================= */

.logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
}

.logo-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
}

.logo-box img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {

    .logos-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

   

}

/* =========================
   BLOQUE EXTRA
========================= */

.extra-box {
    text-align: center;
    max-width: 800px;
    margin: 1px auto 40px auto;
    padding: 20px;
    background: rgba(255,106,0,0.05);
    border-radius: 10px;
    opacity: 0.9;
}

.extra-box p {
    max-width: 700px;
    margin: 0 auto;
}

/* =========================
   ANIMACIONES
========================= */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*fin transparencia*/

/* =========================
   PÁGINA PATROCINIO
========================= */

/* =========================
   HERO PATROCINIO
========================= */

.patrocinio-hero {
    position: relative;
    min-height: 80vh;
    padding: 120px 20px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* IMAGEN DE FONDO */
.patrocinio-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('./imagenes-lobosquad/lobosquad1.webp') center/cover no-repeat;
    z-index: 0;
}

/* OVERLAY */
.patrocinio-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    z-index: 1;
}

/* CONTENIDO HERO */
.patrocinio-hero-content {
    position: relative;
    margin-top: 200px;
    z-index: 2;
    color: #fff;
    max-width: 800px;
    animation: patrocinioFadeUp 0.8s ease;
}

@keyframes patrocinioFadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.patrocinio-hero-content h1 {
    font-size: 2.6rem;
    margin-bottom: 20px;
    color: var(--naranja-hover);
}

.patrocinio-hero-content p {
    font-size: 1.15rem;
    line-height: 1.7;
    opacity: 0.9;
    color: var(--blanco);
}

/* BOTÓN HERO */
.patrocinadores-cta {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 26px;
    background: #ff6a00;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.patrocinadores-cta:hover {
    background: #e55d00;
}


/* =========================
   SECCIONES GENERALES
========================= */

.patrocinadores-section {
    padding: 30px 20px;
    max-width: 1200px;
    margin: auto;
}

.patrocinadores-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
}

.patrocinadores-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
    opacity: 0.85;
}


/* =========================
   PLANES
========================= */

/* =========================
   GRID PLANES
========================= */

.patrocinadores-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 850px;   /*  ancho controlado */
    margin: 0 auto;
}


/* =========================
   CARD HORIZONTAL
========================= */

.patrocinadores-card {
    display: flex;
    align-items: stretch;
    gap: 30px;
    background: #fff;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}


/* =========================
   IZQUIERDA
========================= */

.patrocinadores-left {
    min-width: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
}

/* TITULO */
.patrocinadores-left h3 {
    margin: 0;
}

/* BADGE */
.patrocinadores-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255,106,0,0.1);
    color: #ff6a00;
    font-weight: 500;
}

/* PRECIO */
.precio {
    color: #ff6a00;
    font-weight: bold;
    margin: 5px 0;
}


/* =========================
   BOTÓN
========================= */

.patrocinadores-btn {
    margin-top: 10px;
    padding: 10px 18px;
    background: #ff6a00;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.patrocinadores-btn:hover {
    background: #e55d00;
}


/* =========================
   DERECHA (CONTENIDO)
========================= */

.patrocinadores-right {
    flex: 1;
    padding-right: 20px;
    max-width: 550px;
}

.patrocinadores-right ul {
    margin: 0;
    padding-left: 18px;
}

.patrocinadores-right li {
    margin-bottom: 8px;
    line-height: 1.5;
    font-size: 0.95rem;
}


/* =========================
   HOVER PRO
========================= */

.patrocinadores-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}


/* =========================
   DESTACADO (PLATINUM)
========================= */

.patrocinadores-card.destacado {
    border: 2px solid #ff6a00;
}

/* badge especial */
.patrocinadores-card.destacado .patrocinadores-badge {
    background: #ff6a00;
    color: #fff;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    .patrocinadores-card {
        flex-direction: column;
        text-align: center;
    }

    .patrocinadores-left {
        min-width: auto;
    }

    .patrocinadores-right {
        padding-right: 0;
        text-align: left; /* importante para lectura */
    }
}


/* =========================
   TABLA COMPARATIVA PRO
========================= */


.patrocinadores-table-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    max-height: 350px;
    overflow-y: auto;

    padding-right: 10px;
}

/* TABLA */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 12px;
    font-size: 0.9rem;
}

/* HEADER */
.comparison-table thead {
    background: #111;
    color: #fff;
}

.comparison-table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #111; 
    color: #fff;
}

/* mantener platinum */
.comparison-table thead th:nth-child(2) {
    background: #ff6a00;
    color: #fff;
}

.comparison-table th {
    
    text-align: center;
    font-weight: 600;
}

.comparison-table th,
.comparison-table td {
    padding: 10px 8px;
}

/* PRIMERA COLUMNA (conceptos) */
.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
    background: #f9f9f9;
}

/* CELDAS */
.comparison-table td {
    
    text-align: center;
    border-bottom: 1px solid #eee;
}

/* FILAS */
.comparison-table tbody tr:hover {
    background: rgba(255,106,0,0.05);
}

/* DESTACAR PLATINUM */
.comparison-table th:nth-child(2),
.comparison-table td:nth-child(2) {
    background: rgba(255,106,0,0.08);
    font-weight: 600;
}

/* CABECERA PLATINUM */
.comparison-table th:nth-child(2) {
    background: #ff6a00;
    color: #fff;
}

/* ÚLTIMA FILA SIN BORDE */
.comparison-table tr:last-child td {
    border-bottom: none;
}


/* SCROLL SOLO PARA ESTA TABLA */
.patrocinadores-table-container::-webkit-scrollbar {
    width: 8px;
}

.patrocinadores-table-container::-webkit-scrollbar-track {
    background: transparent;
    margin: 10px 0; /* 👈 separa la barra arriba/abajo */
}

.patrocinadores-table-container::-webkit-scrollbar-thumb {
    background: #ff6a00;
    border-radius: 10px;
}

/* Firefox */
.patrocinadores-table-container {
    scrollbar-color: #ff6a00 transparent;
    scrollbar-width: thin;
}


/* =========================
   COMPARATIVA RESPONSIVE
========================= */

@media (max-width: 768px) {

    .patrocinadores-table-container,
    .patrocinadores-comparativa-mobile {
        display: none;
    }
}


/* DESKTOP → ocultamos cards */
.patrocinadores-comparativa-mobile {
    display: none;
}

@media (max-width: 768px) {
    .patrocinadores-comparativa-mobile {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: 20px;
    }
}

/* CARDS */
.comparativa-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* DESTACADO */
.comparativa-card.platinum {
    border: 2px solid #ff6a00;
}

/* PRECIO */
.comparativa-card .precio {
    color: #ff6a00;
    font-weight: bold;
    margin-bottom: 10px;
}

/* LISTA */
.comparativa-card ul {
    padding-left: 18px;
}

.comparativa-card li {
    margin-bottom: 6px;
    font-size: 0.95rem;
}

/* =========================
   BOTÓN COMPARATIVA (MÓVIL)
========================= */

.patrocinadores-comparativa-btn {
    display: none;
    text-align: center;
    margin-top: 20px;
}

.patrocinadores-comparativa-btn button {
    padding: 12px 22px;
    background: #ff6a00;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

/* =========================
   MODAL COMPARATIVA
========================= */

.patrocinadores-comparativa-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

body.modal-open {
    overflow: hidden;
}

.patrocinadores-comparativa-content {
    background: #fff;
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    overflow: auto;
    border-radius: 14px;
    padding: 20px;
    position: relative;
}

.patrocinadores-comparativa-content h3 {
    margin-bottom: 15px;
    text-align: center;
}

.patrocinadores-comparativa-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
}

.patrocinadores-comparativa-table-wrap {
    overflow-x: auto;
}

/* MOSTRAR SOLO EN MÓVIL */
@media (max-width: 768px) {
    .patrocinadores-comparativa-btn {
        display: block;
    }
}



/* =========================
   FORMULARIO
========================= */

.patrocinadores-form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.patrocinadores-form.highlight {
    box-shadow: 0 0 0 3px rgba(255,106,0,0.3);
    transition: 0.4s;
}

.patrocinadores-form-section .patrocinadores-title {
    margin-bottom: 1px;
}

.patrocinadores-form-section .patrocinadores-text {
    margin-top: 0;
    margin-bottom: 0;
}

.patrocinadores-form input,
.patrocinadores-form textarea,
.patrocinadores-form select {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-family: inherit;
}

.patrocinadores-form button {
    background: #ff6a00;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
}


/* =========================
   LOGOS
========================= */

.patrocinadores-logos {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.patrocinadores-logos div {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
}

.patrocinadores-logos img {
    max-width: 300px;
    height: auto;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {
    .patrocinadores-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .patrocinadores-grid {
        grid-template-columns: 1fr;
    }

    .patrocinio-hero-content h1 {
        font-size: 2rem;
    }

    .patrocinio-hero-content p {
        font-size: 1rem;
    }
}

/* =========================
   NAV DROPDOWN PATROCINADORES
========================= */
/* SUBMENÚ BASE */
.nav-dropdown {
    position: relative;
}

.nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;

    background: var(--azul-oscuro);
    border-radius: 6px;

    padding: 4px 0;
    min-width: 120px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: 0.25s ease;

    z-index: 999;
}

/* LINKS */
.nav-submenu li {
    list-style: none;
    padding: 0 12px;
}

.nav-submenu a {
    display: inline-block !important;
    padding: 8px 0px !important;
    position: relative;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 1.5 !important;
}

.nav-submenu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 3px;

    width: 0;
    height: 2px;
    background: var(--naranja-hover);

    transition: width 0.25s ease;
}

.nav-submenu a:hover::after {
    width: 100%;
}

/* HOVER DESKTOP */
@media (min-width: 769px) {
    .nav-dropdown:hover .nav-submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {

    .nav-submenu {
        position: static;
        display: none;
        background: var(--azul-oscuro);
        padding-left: 15px;
    }

    .nav-submenu a {
        color: #fff;
        display: block;
        opacity: 1 !important;
        visibility: visible !important;
        
    }

    .nav-submenu.open {
        display: block;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .nav-submenu.open li {
        display: block;
    }
}

/* =========================
   BANNER COOKIES
========================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0f172a;
    border-top: 1px solid rgba(59, 130, 246, 0.3);
    z-index: 9999;
    padding: 1rem 1.5rem;
    display: none; /* JS lo muestra */
}

.cookie-banner.visible {
    display: block;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-banner-content p {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin: 0;
    max-width: none;
}

.cookie-banner-content a {
    color: #3b82f6;
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.cookie-btn.accept {
    background: var(--naranja);
    color: white;
}

.cookie-btn.accept:hover {
    background: var(--naranja-hover);
}

.cookie-btn.reject {
    background: transparent;
    color: #94a3b8;
    border: 1px solid #374151;
}

.cookie-btn.reject:hover {
    border-color: #94a3b8;
    color: #e2e8f0;
}

@media (max-width: 600px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cookie-banner-buttons {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
        text-align: center;
    }
}