/* --- VARIABLES --- */
:root {
    --color-primario: #0F4094; /* Azul PRB */
    --color-secundario: #388E75; /* Verde PRB */
    --color-terciario: #D06B40; /* Naranja PRB */
    --color-texto: #333333;
    --color-fondo-claro: #f4f7f6;
    --blanco: #ffffff;
    --fuente-principal: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --- GENERAL --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--fuente-principal); color: var(--color-texto); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- HEADER --- */
header {
    background: var(--blanco);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
.container { max-width: 1100px; margin: auto; padding: 0 20px; }
nav { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-size: 1.5rem; font-weight: bold; color: var(--color-primario); display: flex; align-items: center; gap: 10px; }
.nav-links { display: flex; align-items: center; }
.nav-links li { padding: 0 15px; }
.nav-links a { color: var(--color-primario); font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: var(--color-secundario); }

/* Botón especial en el menú */
.btn-nav {
    background-color: var(--color-primario);
    color: var(--blanco) !important;
    padding: 8px 15px;
    border-radius: 4px;
}
.btn-nav:hover { background-color: var(--color-secundario); }

/* --- HERO SECTION --- */
#inicio {
    /* IMPORTANTE: Nombra tu imagen del edificio como 'fondo-hero.jpg' y ponla en la misma carpeta */
    background: linear-gradient(rgba(15, 40, 100, 0.7), rgba(15, 40, 100, 0.6)), url('fondo-hero.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh; /* Pantalla completa */
    color: var(--blanco);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}
#inicio h1 { font-size: 3.5rem; margin-bottom: 15px; line-height: 1.2; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
#inicio p { font-size: 1.5rem; margin-bottom: 30px; font-weight: 300; }
.hero-buttons { display: flex; gap: 15px; }

/* --- BOTONES --- */
.btn { padding: 12px 30px; border-radius: 5px; font-weight: bold; transition: 0.3s; display: inline-block; cursor: pointer; }
.btn-primary { background: var(--color-terciario); color: var(--blanco); }
.btn-primary:hover { background: #b05430; transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--blanco); color: var(--blanco); }
.btn-outline:hover { background: var(--blanco); color: var(--color-primario); }
.btn-big { font-size: 1.2rem; padding: 15px 40px; background: var(--color-secundario); color: var(--blanco); }
.btn-big:hover { background: #2a6e5a; transform: scale(1.05); }

/* --- SECCIONES COMUNES --- */
section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; color: var(--color-primario); font-size: 2.2rem; position: relative; }
.section-title::after {
    content: ''; display: block; width: 60px; height: 3px; background: var(--color-secundario); margin: 10px auto 0;
}
.bg-light { background-color: var(--color-fondo-claro); }
.bg-dark { background-color: var(--color-primario); color: var(--blanco); }
.white { color: var(--blanco) !important; }
.white-text { color: #ddd; text-align: center; font-size: 1.1rem; margin-bottom: 30px; }

/* --- NOSOTROS --- */
.nosotros-content { max-width: 800px; margin: auto; text-align: justify; font-size: 1.1rem; }

/* --- PILARES --- */
.pilares-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.pilar-card { background: var(--blanco); padding: 30px 20px; text-align: center; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; }
.pilar-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.icon-pilar { font-size: 2.5rem; color: var(--color-secundario); margin-bottom: 20px; }
.pilar-card h3 { margin-bottom: 15px; color: var(--color-primario); }

/* --- DOCUMENTACIÓN --- */
.docs-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.doc-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 150px; height: 120px;
    background: var(--blanco); border: 1px solid #ddd; border-radius: 8px;
    color: var(--color-texto); transition: 0.3s;
}
.doc-item i { font-size: 2rem; margin-bottom: 10px; color: var(--color-primario); }
.doc-item:hover { border-color: var(--color-primario); background: #eef2f5; color: var(--color-primario); }
.doc-item.spotify:hover i { color: #1DB954; } /* Verde Spotify */

/* --- CONTACTO --- */
.contact-wrapper { text-align: center; }
.cta-box { background: rgba(255,255,255,0.1); padding: 40px; border-radius: 10px; display: inline-block; width: 100%; max-width: 700px; }
.small-text { margin-top: 15px; font-size: 0.9rem; opacity: 0.7; color: var(--blanco); }
.direct-contact { margin-top: 30px; color: #aaa; }
.direct-contact a { color: var(--blanco); text-decoration: underline; }

/* --- FOOTER --- */
footer { background: #0a2a61; color: var(--blanco); text-align: center; padding: 40px 0; }
.social-links { margin-bottom: 20px; }
.social-links a {
    display: inline-flex; justify-content: center; align-items: center;
    width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1);
    color: var(--blanco); margin: 0 10px; transition: 0.3s; font-size: 1.2rem;
}
.social-links a:hover { background: var(--color-secundario); transform: scale(1.1); }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    #inicio h1 { font-size: 2.2rem; }
    nav { flex-direction: column; height: auto; padding: 15px 0; }
    .nav-links { flex-direction: column; width: 100%; margin-top: 15px; }
    .nav-links li { padding: 10px 0; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .btn { width: 100%; text-align: center; }
}

/* --- HOJA DE RUTA (TIMELINE) --- */
#hoja-ruta { background-color: var(--blanco); }

.timeline {
    position: relative;
    max-width: 800px;
    margin: auto;
}

/* Línea vertical central */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #ddd;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

/* Círculos (Iconos) */
.timeline-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    right: -20px;
    background-color: var(--blanco);
    border: 4px solid #ddd;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* Contenido de la tarjeta */
.timeline-content {
    padding: 20px;
    background: var(--color-fondo-claro);
    border-radius: 6px;
    border-left: 4px solid #ddd;
}

/* Estilos para izquierda y derecha */
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }

.timeline-item:nth-child(even) .timeline-icon { left: -20px; }
.timeline-item:nth-child(even) .timeline-content { border-left: none; border-right: 4px solid #ddd; }

/* ESTADO: COMPLETADO (Verde) */
.timeline-item.completed .timeline-icon { border-color: var(--color-secundario); color: var(--color-secundario); background: #e8f5e9; }
.timeline-item.completed .timeline-content { border-color: var(--color-secundario); }

/* ESTADO: ACTIVO (Azul/Naranja - Donde estamos ahora) */
.timeline-item.active .timeline-icon { border-color: var(--color-terciario); color: var(--color-terciario); background: #fff3e0; }
.timeline-item.active .timeline-content { border-color: var(--color-terciario); box-shadow: 0 0 10px rgba(0,0,0,0.1); }
.timeline-item.active h3 { color: var(--color-terciario); }

/* Tipografía */
.timeline h3 { font-size: 1.2rem; margin-bottom: 5px; }
.timeline .date { font-size: 0.9rem; font-weight: bold; color: #777; display: block; margin-bottom: 10px; }

/* RESPONSIVE TIMELINE (Móviles) */
@media (max-width: 600px) {
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item::before { left: 60px; border: medium solid white; border-width: 10px 10px 10px 0; border-color: transparent white transparent transparent; }
    .timeline-item:nth-child(even) { left: 0%; }
    .timeline-icon { left: 10px !important; }
    .timeline-item:nth-child(even) .timeline-content { border-left: 4px solid #ddd; border-right: none; }
    .timeline-item.active .timeline-content { border-left: 4px solid var(--color-terciario); border-right: none; }
}

.hero-buttons-container {
  display: flex;
  justify-content: center; /* Centra horizontalmente */
  gap: 15px; /* Espacio entre los botones */
}

/* Estilos para la Cinta de Estadísticas */
.stats-strip {
    width: 100%;
    background-color: #f8f9fa; /* Color de fondo suave (gris muy claro) */
    border-bottom: 1px solid #e9ecef; /* Una línea sutil abajo para separar */
    padding: 30px 20px;
    
    /* Configuración Flexbox para alinear */
    display: flex;
    justify-content: center; /* Centrado horizontal */
    align-items: center;
    gap: 60px; /* Espacio entre cada dato */
    flex-wrap: wrap; /* Permite que bajen los elementos en celulares */
}

.stat-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem; /* Tamaño grande para el número */
    font-weight: 800; /* Letra muy gruesa */
    color: #2c3e50; /* Azul oscuro corporativo */
    line-height: 1.2;
}

/* Agrega el símbolo '+' o '%' visualmente si lo deseas con CSS */
.stat-number::after {
    content: "+"; /* Agrega un + al lado del número */
    font-size: 1.5rem;
    color: #3498db; /* Azul más claro para el símbolo */
    vertical-align: super;
}

/* Excepción para el porcentaje para que no tenga '+' */
.stat-box:last-child .stat-number::after {
    content: "%"; 
}

.stat-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #7f8c8d; /* Gris medio para el texto */
    text-transform: uppercase; /* Todo mayúsculas */
    letter-spacing: 1px; /* Espaciado entre letras */
    margin-top: 5px;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .stats-strip {
        gap: 30px; /* Menos espacio en celulares */
        flex-direction: column; /* Pone uno debajo del otro en móviles */
    }
}

/* --- SECCIÓN DONACIONES --- */
.donation-section {
    background-color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.donation-content h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 15px;
}

.donation-intro {
    max-width: 600px;
    margin: 0 auto 40px;
    color: #666;
    line-height: 1.6;
}

/* --- TARJETA BANCARIA --- */
.bank-card {
    background-color: #f8f9fa;
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    text-align: left;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.card-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.badge {
    background-color: #e3f2fd;
    color: #3498db;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* --- META FINANCIERA (BARRA DE PROGRESO) --- */
.funding-goal {
    background-color: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
}

.goal-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #555;
}

.goal-title strong { color: #2c3e50; }

.goal-percentage {
    font-weight: bold;
    color: #27ae60;
}

.goal-bar-container {
    height: 8px;
    background-color: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.goal-bar {
    height: 100%;
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

.goal-amount {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #7f8c8d;
}

.goal-note {
    font-size: 0.7rem;
    color: #aaa;
    margin-top: 5px;
    text-align: right;
    font-style: italic;
}

/* --- DETALLES Y FILAS --- */
.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 1.05rem;
    align-items: center;
}

.label {
    color: #7f8c8d;
    font-weight: 500;
}

.value, .value-text {
    color: #2c3e50;
    font-weight: 700;
}

.email-row {
    margin-top: 20px;
    background-color: #fff;
    padding: 10px;
    border-radius: 6px;
    border: 1px dashed #cbd5e0;
}

.legal-note {
    font-size: 0.8rem;
    color: #95a5a6;
    margin-top: 20px;
    text-align: center;
    font-style: italic;
}

/* --- BOTÓN DE COPIAR Y TOOLTIP --- */
.value-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    position: relative;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #3498db;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
}

.copy-btn:hover { background-color: #e3f2fd; }
.copy-btn:active { transform: scale(0.95); }

.copy-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    background-color: #2ecc71;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-tooltip.show {
    opacity: 1;
    transform: translateY(-5px);
}

/* --- RESPONSIVE (MÓVIL) --- */
@media (max-width: 480px) {
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        margin-bottom: 15px;
    }
    .value-container { width: 100%; justify-content: space-between; }
    .value { text-align: left; }
}

/* --- CABECERA PRINCIPAL --- */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed; /* Fijo arriba para que siempre se vea */
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px; /* Espacio interno */
    max-width: 1200px;
    margin: 0 auto;
}

/* Estilos del Logo */
.logo-img {
    height: 50px; /* Ajusta esto según tu logo para que no se vea gigante */
    width: auto;
    display: block;
}

/* Menú en Escritorio */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px; /* Espacio entre enlaces */
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #3498db; /* Color de tu partido */
}

/* --- BOTÓN DE DONACIONES (CTA) --- */
.btn-donate-nav {
    background-color: #e74c3c; /* Un color que destaque (rojo/naranja) o azul fuerte */
    color: white !important; /* Texto blanco forzado */
    padding: 10px 20px;
    border-radius: 25px; /* Bordes redondeados */
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, background-color 0.2s;
}

.btn-donate-nav:hover {
    background-color: #c0392b; /* Color más oscuro al pasar mouse */
    transform: translateY(-2px); /* Efecto de elevación */
}

/* --- MENÚ HAMBURGUESA (MÓVIL) --- */
.menu-toggle {
    display: none; /* Oculto en escritorio */
    cursor: pointer;
    background: none;
    border: none;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #333;
    transition: all 0.3s ease-in-out;
}

/* --- RESPONSIVE (CELULARES) --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Mostrar hamburguesa */
    }

    /* Ocultar menú y darle estilo de panel desplegable */
    .nav-menu {
        position: fixed;
        left: -100%; /* Escondido a la izquierda */
        top: 70px; /* Altura del header aprox */
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
        gap: 20px;
    }

    /* Clase activa para mostrar menú */
    .nav-menu.active {
        left: 0; /* Traer al centro */
    }

    /* Animación de la hamburguesa a X */
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* --- BOTÓN VOLVER ARRIBA --- */
.scroll-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999; /* Asegura que flote sobre todo lo demás */
    
    background-color: #3498db; /* Azul corporativo (cámbialo si prefieres otro) */
    color: white;
    border: none;
    border-radius: 50%; /* Círculo perfecto */
    width: 50px;
    height: 50px;
    
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); /* Sombra para dar profundidad */
    
    /* Estado inicial: Invisible */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px); /* Ligeramente desplazado hacia abajo */
    transition: all 0.3s ease-in-out; /* Animación suave */
}

/* Estado activo: Visible (se activa con JS) */
.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Efecto Hover (al pasar el mouse) */
.scroll-top-btn:hover {
    background-color: #2980b9; /* Azul más oscuro */
    transform: scale(1.1); /* Crece un poquito */
}

/* --- SECCIÓN DOCUMENTOS --- */
.docs-section {
    padding: 60px 20px;
    background-color: #f9f9f9; /* Un fondo gris muy suave para diferenciar la sección */
}

.section-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 10px;
}

/* Grilla responsive */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Se ajusta solo */
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

/* --- TARJETA GENÉRICA --- */
.doc-card {
    background-color: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.doc-card:hover {
    transform: translateY(-5px); /* Se levanta al pasar el mouse */
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: #3498db;
}

/* Icono Izquierdo */
.doc-icon {
    width: 60px;
    height: 60px;
    background-color: #f0f4f8;
    color: #3498db; /* Azul corporativo */
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    flex-shrink: 0;
}

/* Contenido Texto */
.doc-info {
    flex-grow: 1;
    overflow: hidden; /* Evita que texto largo rompa el diseño */
}

.doc-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 700;
}

.doc-info p {
    margin: 0 0 5px 0;
    font-size: 0.85rem;
    color: #7f8c8d;
    line-height: 1.4;
}

.doc-meta {
    font-size: 0.75rem;
    color: #95a5a6;
    font-weight: 600;
    text-transform: uppercase;
    display: block;
}

/* Botón de Acción (Derecha) */
.doc-download-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: #3498db;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.2s;
    margin-left: 10px;
    border: 1px solid #eee;
}

.doc-download-btn:hover {
    background-color: #3498db;
    color: white;
}

/* --- ESTILOS ESPECIALES --- */

/* Podcast Spotify */
.spotify-card:hover {
    border-color: #1DB954; /* Verde Spotify */
}
.spotify-icon {
    color: #1DB954;
    background-color: #e8f5e9;
}
.spotify-btn:hover {
    background-color: #1DB954;
    color: white;
}

/* Estatutos (Destacado sutilmente) */
.featured-doc {
    border-left: 4px solid #f1c40f; /* Borde dorado para indicar importancia/borrador */
}