/* ==========================================================================
   1. REGISTRO DE TIPOGRAFÍAS DESDE TU CARPETA LOCAL FONTS/
   ========================================================================== */
@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-ExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

/* ==========================================================================
   2. REGLAS BASE Y MODO OSCURO ABSOLUTO
   ========================================================================== */
:root {
    --primary-blue: #0099cc;
    --primary-pink: #e6007e;
    --bg-absolute-dark: #000000;
    --bg-card-light: #ffffff;
    --text-light: #ffffff;
    --text-dark: #000000;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Gilroy', sans-serif;
}

body {
    background-color: #1a1a1a; /* Fondo gris externo para centrar la app */
    color: var(--text-light);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Contenedor Responsivo One-Page (Ancho exacto de maqueta móvil) */
.main-wrapper {
    width: 100%;
    max-width: 900px; 
    background-color: var(--bg-absolute-dark);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
	transition: max-width 0.3s ease; /* Transición suave */
}

/* ==========================================================================
   3. CABECERA, ENCABEZADOS Y BANNERS RESPONSIVOS
   ========================================================================== */
.top-gradient-bar {
    height: 6px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-pink));
    width: 100%;
}

.header-logos {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logos img {
    max-height: 45px;
    object-fit: contain;
}

.banner-responsive {
    width: 100%;
    padding: 0;
}

.banner-responsive img {
    width: 100%;
    height: auto;
    display: block;
}

.space-y {
    margin: 1.5rem 0;
}

/* ==========================================================================
   4. BOTONES CON GRADIENTES
   ========================================================================== */
.btn-vota-container {
    text-align: center;
    margin: 2rem 0;
}

.btn-vota-gradient {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-pink));
    color: var(--text-light);
    padding: 0.75rem 3.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    border: 2px solid var(--text-light);
    box-shadow: 0 4px 15px rgba(230, 0, 126, 0.3);
    transition: transform 0.2s;
}

.btn-vota-gradient:active {
    transform: scale(0.98);
}

/* ==========================================================================
   5. SECCIONES DE TEXTO PLANO
   ========================================================================== */
.text-section-dark {
    padding: 0 1.5rem;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.text-section-dark p {
    font-weight: 300;
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.text-section-dark p strong,
.eje-desc-box p strong {
    font-weight: 800;
}

/* Encabezados de categorías */
.eje-brand-header {
    padding: 2rem 1.5rem 1rem 1.5rem;
}

.eje-brand-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
}

.eje-brand-header.humedal h2 { color: var(--primary-blue); }
.eje-brand-header.deporte h2 { color: var(--primary-pink); }

.eje-brand-header h3 {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 0.2rem;
    margin-bottom: 1.2rem;
}

/* Cajas contenedoras con bordes personalizados */
.eje-desc-box {
    border-radius: 12px;
    padding: 1.2rem;
    background-color: rgba(255, 255, 255, 0.02);
}

.eje-desc-box.border-blue { border: 2px solid var(--primary-blue); }
.eje-desc-box.border-pink { border: 2px solid var(--primary-pink); }

.eje-desc-box p {
    font-weight: 300;
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 0.8rem;
	text-align: justify;
}
.eje-desc-box p:last-child { margin-bottom: 0; }

/* ==========================================================================
   6. MAQUETACIÓN DE LAS TARJETAS DE VOTACIÓN (BLANCAS)
   ========================================================================== */
.cards-container {
    padding: 1rem 1.5rem 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.card-vote {
    background-color: var(--bg-card-light);
    border-radius: 14px;
    overflow: hidden;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.card-img-holder img {
    width: 100%;
    height: auto;
    display: block;
}

/* Tiras de color dinámicas */
.card-meta-strip {
    color: var(--text-light);
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-meta-strip.bg-blue { background-color: var(--primary-blue); }
.card-meta-strip.bg-pink { background-color: var(--primary-pink); }

.card-meta-strip .option-id {
    font-weight: 800;
    font-size: 1rem;
}

.card-meta-strip .location-tag {
    font-size: 0.75rem;
    font-weight: 300;
}

.card-body-content {
    padding: 1.2rem;
}

.card-body-content h4 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.card-vote .text-blue h4 { color: var(--primary-blue); }
.card-vote .text-pink h4 { color: var(--primary-pink); }

.card-body-content .card-subtitle {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.card-body-content .card-text {
    font-weight: 300;
    font-size: 0.88rem;
    color: #222222;
    margin-bottom: 0.8rem;
	text-align: justify;
}
.card-body-content .card-text:last-child { margin-bottom: 0; }


.card-body-content .card-location-footer {
    font-weight: 300;
    font-size: 0.88rem;
    color: var(--text-dark);
    margin-top: 1.2rem; /* Espacio extra arriba para separarlo de los párrafos anteriores */
    text-align: left;   /* Este texto va alineado a la izquierda, no justificado */
}

/* Fuerza el peso 800 (ExtraBold) para la palabra Ubicación: */
.card-body-content .card-location-footer strong {
    font-weight: 800;
}

/* ==========================================================================
   7. SECCIÓN FOOTER DE CIERRE (image_a34e3f.png)
   ========================================================================== */
.footer-container {
    padding: 2rem 1.5rem 4rem 1.5rem;
    text-align: center;
    background-color: var(--bg-absolute-dark);
}

.bottom-spacing {
    margin-top: 0;
    margin-bottom: 3rem;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.footer-divider-line {
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-pink));
    width: 60%;
    margin: 0.8rem auto 2rem auto;
}

.footer-texts p {
    font-weight: 300;
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 1.2rem;
    line-height: 1.4;
}
.footer-texts p:last-child { margin-bottom: 0; }

/* ==========================================================================
   ESTILOS ADICIONALES PARA EL TITULO "LÍNEAS DE PROYECTOS"
   ========================================================================== */
.lineas-proyectos-container {
    padding: 4rem 1.5rem 3rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-absolute-dark);
}

/* Caja contenedora que simula el borde con gradiente de la maqueta */
.lineas-badge-gradient {
    display: inline-block;
    padding: 2px; /* Grosor del borde */
    border-radius: 12px; /* Esquinas redondeadas */
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-pink));
    width: 100%;
    max-width: 480px; /* Tamaño máximo para que luzca igual a la imagen */
}

/* Contenedor interno negro para tapar el centro del gradiente */
.lineas-badge-gradient h2 {
    background-color: var(--bg-absolute-dark);
    color: var(--text-light);
    font-family: 'Gilroy', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    text-align: center;
    padding: 0.8rem 1rem;
    border-radius: 10px; /* Un poco menor para acoplarse al borde exterior */
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ==========================================================================
   NUEVA ESTRUCTURA PARA ENCABEZADOS CON NÚMERO EN CUADRADO
   ========================================================================== */
.eje-title-container {
    display: flex;
    align-items: flex-start; /* Alinea el cuadrado con la parte superior del texto */
    gap: 1rem;               /* Espacio entre el cuadrado y el texto */
    margin-top: 2.5rem;
	margin-bottom: 1.5rem;
}

/* El contenedor cuadrado del número */
.eje-number {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Gilroy', sans-serif;
    font-weight: 800;
    color: var(--text-light); /* Número blanco */
    font-size: 2.5rem;        /* Tamaño del número en móvil */
    min-width: 55px;          /* Ancho fijo del cuadrado */
    height: 55px;             /* Alto fijo idéntico para que sea un cuadrado perfecto */
    flex-shrink: 0;           /* Evita que el cuadrado se deforme en pantallas chicas */
}

/* Colores dinámicos para el fondo del cuadrado según el eje */
.humedal .eje-number {
    background-color: var(--primary-blue);
}

.deporte .eje-number {
    background-color: var(--primary-pink);
}

/* Bloque contenedor del texto */
.eje-text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Ajustes de los textos al lado del número */
.eje-brand-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
}

/* Colores del texto del título */
.humedal .eje-text-block h2 { color: var(--primary-blue); }
.deporte .eje-text-block h2 { color: var(--primary-pink); }

.eje-brand-header h3 {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-light);
    margin-top: 0.3rem;
    margin-bottom: 0;
}

/* Desaparece el botón por completo sin reservar su espacio original */
.btn-vota-container.oculto {
    display: none !important;
}

/* ÚNICAMENTE cuando el primer botón de arriba está oculto, 
   le damos un margen superior suave a la introducción para que no se pegue al banner */
.btn-vota-container.oculto + .text-section-dark {
    margin-top: 1.8rem; /* Separación sutil en móviles */
}

/* Optimización para pantallas muy pequeñas (Celulares compactos) */
@media (max-width: 400px) {
    .lineas-badge-gradient h2 {
        font-size: 1.2rem;
        padding: 0.6rem 0.8rem;
    }
}

@media (min-width: 768px) {
    /* Escalamos el tamaño de fuente base del cuerpo */
    body {
        font-size: 1.25rem; /* Aumenta proporcionalmente todos los em/rem heredados */
    }

    /* Agrandamos la sección de introducción de textos */
    .text-section-dark p {
        font-size: 1.35rem; /* Textos de párrafos más grandes y legibles */
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    /* Escalamos los títulos de los ejes (Humedal / Deporte) */
    .eje-brand-header h2 {
        font-size: 2.4rem;
    }
    .eje-brand-header h3 {
        font-size: 1.5rem;
		margin-top: 0.5rem;
    }
    .eje-desc-box p {
        font-size: 1.25rem;
        line-height: 1.6;
		text-align: justify;
    }

    /* Escalamos los textos internos de las tarjetas blancas */
    .card-body-content h4 {
        font-size: 1.8rem;
    }
    .card-body-content .card-subtitle {
        font-size: 1.3rem;
    }
    .card-body-content .card-text {
        font-size: 1.2rem;
        line-height: 1.6;
		text-align: justify;
    }
	.card-body-content .card-location-footer {
        font-size: 1.2rem;
        margin-top: 1.5rem;
    }
    .card-meta-strip .option-id {
        font-size: 1.3rem;
    }

    /* El botón de "VOTA AQUÍ" se agranda para no verse diminuto */
    .btn-vota-gradient {
        font-size: 1.6rem;
        padding: 1rem 5rem;
    }
    
    /* El título "LÍNEAS DE PROYECTOS" se ensancha */
    .lineas-badge-gradient {
        max-width: 700px;
    }
    .lineas-badge-gradient h2 {
        font-size: 2.2rem;
    }
	
	.eje-title-container {
        margin-top: 4rem;
		gap: 1.5rem;
    }

    /* Escalamos el cuadrado en pantallas más grandes */
    .eje-number {
        font-size: 3.8rem;
        min-width: 85px;
        height: 85px;
    }
	
	.btn-vota-container.oculto + .text-section-dark {
        margin-top: 3rem; /* Separación limpia y elegante en escritorio */
    }
}