/* ==========================================================================
   1. VARIABLES DE DISEÑO (Colores basados en el Logo de UNFUPOL)
   ========================================================================== */
:root {
    --primary-color: #0b3c5d;      /* Azul profundo institucional */
    --secondary-color: #328cc1;    /* Azul brillante metálico */
    --accent-color: #d9b310;       /* Oro/Amarillo del logo para detalles */
    --danger-color: #c0392b;       /* Rojo sutil para alertas y ejecutivos abandonados */
    --dark-bg: #1d2731;            /* Gris/Azul oscuro para secciones oscuras */
    --light-bg: #f5f7fa;           /* Blanco grisáceo muy limpio */
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --border-color: #dcdde1;
    --transition: all 0.3s ease;
}

/* ==========================================================================
   2. RESETS Y HOJAS GENERALES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.bg-light { background-color: var(--light-bg); }
.bg-blue-dark { background-color: var(--primary-color); }
.section-dark { background-color: var(--dark-bg); }

.text-light { color: var(--white); }
.text-muted { color: #b2bec3; }
.text-center { text-align: center; }
.margin-top { margin-top: 40px; }

/* Títulos de sección */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Subrayado estilizado para títulos */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

.section-dark .section-title::after {
    background-color: var(--accent-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Grillas genéricas */
.grid-2 { display: grid; grid-template-columns: repeat(2, 12fr); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

/* Botones */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(50, 140, 193, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* ==========================================================================
   3. BARRA DE NAVEGACIÓN (HEADER & NAV)
   ========================================================================== */
header {
    background-color: rgba(11, 60, 93, 0.95); /* Azul translúcido */
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 4%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.brand-name {
    color: var(--white);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(45deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: #e0e6ed;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links .alert-link {
    color: #ff7675;
    font-weight: 600;
}

.nav-links .alert-link:hover {
    color: #ff2121;
}

.btn-donate-nav {
    background-color: var(--accent-color) !important;
    color: var(--primary-color) !important;
    padding: 8px 18px !important;
    border-radius: 20px;
    font-weight: bold !important;
    box-shadow: 0 4px 10px rgba(217, 179, 16, 0.3);
}

.btn-donate-nav:hover {
    background-color: var(--white) !important;
    color: var(--primary-color) !important;
    transform: scale(1.05);
}

/* Menú Hamburguesa para Móvil */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px;
    transition: var(--transition);
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(11, 60, 93, 0.85), rgba(29, 39, 49, 0.9)), 
                url('https://images.unsplash.com/photo-1517048676732-d65bc937f952?auto=format&fit=crop&q=80&w=1920') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    margin-top: 0;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    max-width: 900px;
}

.hero-content p {
    font-size: 1.3rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ==========================================================================
   5. SECCIÓN SOBRE NOSOTROS
   ========================================================================== */
.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #4a5568;
    text-align: justify;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    border-left: 5px solid var(--primary-color);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.stat-card h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

/* ==========================================================================
   6. SECCIÓN LO QUE PEDIMOS (TARJETAS)
   ========================================================================== */
.card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid #e1e8ed;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(11, 60, 93, 0.1);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* ==========================================================================
   7. SECCIÓN EJECUTIVOS ABANDONADOS / CASOS CRÍTICOS
   ========================================================================== */
.case-card {
    background: #24313e;
    border: 1px solid #34495e;
    border-radius: 12px;
    padding: 35px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.case-status {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--danger-color);
    color: var(--white);
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 20px;
    letter-spacing: 1px;
}

.case-card h3 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.4rem;
    padding-right: 80px;
}

.case-card p {
    color: #bdc3c7;
    margin-bottom: 20px;
    font-size: 1rem;
}

.case-tag {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.alert-text {
    background-color: rgba(192, 57, 43, 0.15);
    border: 1px dashed var(--danger-color);
    color: #ff7675;
    padding: 20px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-block;
}

/* ==========================================================================
   8. TIMELINE / LOGROS Y ACCIONES
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item:nth-child(even) { left: 50%; }
.timeline-item:nth-child(odd) { left: 0; }

.timeline-badge {
    position: absolute;
    width: 40px;
    height: 40px;
    right: -20px;
    background-color: var(--secondary-color);
    border: 4px solid var(--white);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.timeline-item:nth-child(even) .timeline-badge { left: -20px; }

.timeline-content {
    padding: 25px;
    background-color: var(--light-bg);
    position: relative;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.timeline-content h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* ==========================================================================
   9. CAJA DE DONACIONES
   ========================================================================== */
.donation-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    margin: 30px auto 0 auto;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.donation-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-donate-amount {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-donate-amount:hover, .btn-donate-amount.active {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
    transform: scale(1.05);
}

/* ==========================================================================
   10. CONTACTO Y FORMULARIOS
   ========================================================================== */
.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.2);
}

/* Información de Contacto */
.contact-info h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-info h3:not(:first-child) {
    margin-top: 40px;
}

.info-list {
    list-style: none;
    margin-bottom: 30px;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.info-list i {
    color: var(--secondary-color);
    font-size: 1.3rem;
}

/* Enlaces de Redes Sociales */
.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
footer {
    background-color: #11171d;
    padding: 30px 0;
    border-top: 3px solid var(--primary-color);
}

footer p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* ==========================================================================
   12. MEDIA QUERIES (RESPONSIVO Teléfonos y Tablets)
   ========================================================================== */
@media screen and (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero-content h1 { font-size: 2.8rem; }
}

@media screen and (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 30px; }
    
    .section-padding { padding: 60px 0; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1.1rem; }
    
    /* Configuración menú responsivo */
    .burger { display: block; }
    
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--primary-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 70%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        padding-top: 50px;
        box-shadow: -10px 10px 20px rgba(0,0,0,0.2);
    }

    .nav-links li { opacity: 0; }
    .nav-links a { font-size: 1.1rem; }

    /* Timeline colapso a una columna */
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item:nth-child(even) { left: 0%; }
    .timeline-badge { left: 11px !important; }
    
    .donation-options { flex-wrap: wrap; }
    .btn-donate-amount { width: 45%; }
}

/* Animaciones del JS para el Menú */
.nav-active {
    transform: translateX(0%);
}

@keyframes navLinkFade {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0px); }
}

.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
.toggle .line2 { opacity: 0; }
.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }


.gallery-item img {
    width: 250px;
}

.gallery-item {
    text-align: center;
}

.galery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}


.gt-section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gt-banner-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 3rem 2.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2.5rem;
  border: 1px solid #e2e8f0;
}

.gt-col-text {
  flex: 1.2;
  min-width: 0;
}

.gt-col-icon {
  flex: 0.8;
  width: 100%;
  text-align: center;
}

.gt-icon-box {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  color: #0f172a;
}

.gt-badge {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gt-btn-action {
  display: inline-block;
  background: #0f172a;
  color: #ffffff;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  text-align: center;
}

.gt-btn-action:hover {
  background: #1e293b;
  transform: translateY(-2px);
}

/* Responsivo para móviles */
@media (max-width: 768px) {
  .gt-banner-card {
    flex-direction: column-reverse;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }

  .gt-col-text h2 {
    font-size: 1.5rem !important;
  }

  .gt-btn-action {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .gt-icon-box {
    padding: 1.5rem 1rem;
  }

  .gt-icon-box i {
    font-size: 3rem !important;
  }
}

.sm-section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sm-banner-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
}

.sm-col-text {
  flex: 1;
  min-width: 0;
  /* Previene desbordamiento de texto */
}

.sm-col-icon {
  flex: 1;
  width: 100%;
  text-align: center;
}

.sm-icon-box {
  background: #e0f2fe;
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  color: #0284c7;
}

.sm-badge {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.sm-btn-action {
  display: inline-block;
  background: #0284c7;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  text-align: center;
}

.sm-btn-action:hover {
  background: #0369a1;
}

/* Adaptación para Pantallas Pequeñas / Celulares */
@media (max-width: 768px) {
  .sm-banner-card {
    flex-direction: column-reverse;
    /* Pone el texto arriba y el ícono abajo */
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .sm-col-text h2 {
    font-size: 1.5rem !important;
  }

  .sm-btn-action {
    display: block;
    /* Botón a ancho completo en móviles */
    width: 100%;
    box-sizing: border-box;
  }

  .sm-icon-box {
    padding: 1.5rem 1rem;
  }

  .sm-icon-box i {
    font-size: 3rem !important;
  }
}

.ce-section-container {
        max-width: 1100px;
        margin: 0 auto;
        padding: 0 1.5rem;
    }
    .ce-banner-card {
        background: #ffffff;
        border-radius: 12px;
        padding: 3rem 2.5rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 2.5rem;
        border: 1px solid #e2e8f0;
    }
    .ce-col-text {
        flex: 1.2;
        min-width: 0;
    }
    .ce-col-icon {
        flex: 0.8;
        width: 100%;
        text-align: center;
    }
    .ce-icon-box {
        background: #f8fafc;
        border: 2px dashed #cbd5e1;
        border-radius: 12px;
        padding: 2.5rem 1.5rem;
        color: #0f172a;
    }
    .ce-badge {
        display: inline-block;
        background: #f1f5f9;
        color: #475569;
        padding: 0.35rem 0.85rem;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    .ce-btn-action {
        display: inline-block;
        background: #0f172a;
        color: #ffffff;
        padding: 0.85rem 1.75rem;
        border-radius: 6px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.2s ease;
        text-align: center;
    }
    .ce-btn-action:hover {
        background: #1e293b;
        transform: translateY(-2px);
    }

    /* Responsivo para móviles */
    @media (max-width: 768px) {
        .ce-banner-card {
            flex-direction: column-reverse;
            padding: 2rem 1.5rem;
            gap: 1.5rem;
        }
        .ce-col-text h2 {
            font-size: 1.5rem !important;
        }
        .ce-btn-action {
            display: block;
            width: 100%;
            box-sizing: border-box;
        }
        .ce-icon-box {
            padding: 1.5rem 1rem;
        }
        .ce-icon-box i {
            font-size: 3rem !important;
        }
    }