/* =========================================
   VARIABLES GLOBALES
   ========================================= */

:root {
    --primary-blue: #1a237e;
    --accent-orange: #ff6600;
    --light-bg: #f8f9fa;
    --text-dark: #333333;
    --text-muted: #666666;
}


/* =========================================
   TIPOGRAFÍA Y RESET
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

h1,
h2,
h3,
.font-brand {
    font-family: 'Oswald', sans-serif;
}


/* =========================================
   BARRA DE NAVEGACIÓN
   ========================================= */

.navbar {
    padding: 1.2rem 2rem;
    background: white !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    color: var(--primary-blue) !important;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    color: #111 !important;
    margin: 0 12px;
    font-size: 15px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
}

.btn-donar {
    background-color: var(--accent-orange);
    color: white !important;
    border-radius: 8px;
    padding: 10px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-donar:hover {
    background-color: #e65c00;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.3);
}


/* Menú Desplegable (Hover en Desktop) */

@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: all 0.3s ease;
    }
    .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
        border-top: 3px solid var(--primary-blue) !important;
        border-radius: 0 0 8px 8px;
    }
}

.dropdown-item {
    font-weight: 500;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--primary-blue);
}


/* =========================================
   HERO EXACTO (SLIDER + MÁSCARA ORGÁNICA)
   ========================================= */

.hero-exact-container {
    position: relative;
    width: 100%;
    height: 900px;
    /* Altura para escritorio */
    background: #ffffff;
    overflow: hidden;
}


/* 1. Capa de Fondo (Slider Swiper) */

.hero-slider-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Al fondo */
}

.hero-slider-bg .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slider-overlay-dark {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    /* Oscurecimiento sutil */
    z-index: 2;
}


/* 2. Capa de Máscara SVG */

.hero-mask-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    /* Permite hacer clic a través del SVG vacío */
}


/* 3. Capa de Contenido y Logo Flotante */

.hero-content-layer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    max-width: 1440px;
    z-index: 20;
    pointer-events: none;
    /* Para no bloquear clics del slider, aunque no hay controles aquí */
}


/* Textos Superiores e Inferiores */

.hero-text-top {
    position: absolute;
    top: 130px;
    left: 22%;
    pointer-events: auto;
}

.hero-text-top h1 {
    color: white;
    font-size: 4rem;
    line-height: 1.1;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hero-text-bottom {
    position: absolute;
    top: 520px;
    left: 20%;
    width: 32%;
    pointer-events: auto;
}

.hero-text-bottom p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.title-juntos {
    color: var(--primary-blue);
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}


/* Logo Central Flotante */

.floating-logo-wrapper {
    position: absolute;
    top: 360px;
    left: 60%;
    transform: translate(-50%, -50%);
    /* Centrado exacto en el punto de anclaje */
    width: 340px;
    height: 340px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    z-index: 30;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-logo-wrapper:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

.logo-inner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-line {
    width: 100px;
    height: 4px;
    background: #000;
}

.logo-text {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 5px;
    color: #000;
    margin: 10px 0;
}


/* Responsividad para el Hero */

@media (max-width: 991px) {
    .hero-exact-container {
        height: 750px;
    }
    .hero-text-top {
        top: 100px;
        left: 8%;
    }
    .hero-text-top h1 {
        font-size: 3rem;
    }
    .hero-text-bottom {
        top: 460px;
        left: 8%;
        width: 84%;
    }
    .floating-logo-wrapper {
        top: 320px;
        left: 50%;
        width: 250px;
        height: 250px;
    }
    .logo-text {
        font-size: 2.5rem;
    }
    .logo-line {
        width: 70px;
    }
}


/* =========================================
   SECCIONES Y TARJETAS GENERALES
   ========================================= */

.section-padding {
    padding: 80px 0;
}

.section-title {
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.title-separator {
    width: 60px;
    height: 4px;
    background: var(--accent-orange);
    margin: 0 auto 3rem auto;
    border-radius: 2px;
}


/* Tarjetas de Acción */

.card-accion {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    border: 1px solid #f1f1f1;
}

.card-accion:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: #e2e8f0;
}

.icon-box {
    font-size: 2.5rem;
    color: #00bfff;
    /* Color de los iconos del bosquejo */
    margin-bottom: 20px;
}

.card-accion h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.card-accion p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 25px;
}

.btn-more {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 2px solid var(--accent-orange);
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.btn-more:hover {
    color: var(--accent-orange);
}


/* Tarjetas de Proyectos (Imagen superior) */

.card-proyecto {
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-proyecto .img-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.card-proyecto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-proyecto:hover img {
    transform: scale(1.1);
}

.card-proyecto .card-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}


/* Noticias (Diseño horizontal) */

.card-noticia {
    display: flex;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f1f1;
    transition: all 0.3s ease;
}

.card-noticia:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.card-noticia .img-wrapper {
    width: 220px;
    min-width: 220px;
    height: auto;
}

.card-noticia img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .card-noticia {
        flex-direction: column;
    }
    .card-noticia .img-wrapper {
        width: 100%;
        height: 200px;
    }
}


/* Shape Divider Sutil */

.shape-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 60px;
}


/* Card Acción */


/*.card-accion {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.card-accion:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.img-wrapper {
    height: 250px;
    overflow: hidden;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-accion:hover img {
    transform: scale(1.1);
}*/


/* Animación Entrada Lateral */

#about-img {
    animation: slideInLeft 1s ease-out forwards;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.shape-divider {
    position: relative;
    width: 100%;
    height: 120px;
    background: #080808;
}

.shape-divider::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 120px;
    background: #080808;
    border-bottom-left-radius: 55% 100%;
    border-bottom-right-radius: 45% 100%;
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    overflow: hidden;
    z-index: 3;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: 100%;
    height: 180px;
}


/* =========================================
   SVG DIVIDER
========================================= */

.footer-wave {
    position: relative;
    width: 100%;
    line-height: 0;
    overflow: hidden;
    background: #f8f9fa
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 160px;
}


/* COLOR DEL VECTOR */

.footer-wave-path {
    fill: #212529;
}


/* =========================================
   CIRCULO FLOTANTE
========================================= */

.floating-logo-wrapper {
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient( circle at top, rgba(255, 255, 255, .95), rgba(245, 245, 245, .92));
    border: 2px solid rgba(255, 255, 255, .6);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: floating 6s ease-in-out infinite, glow 5s ease-in-out infinite;
    transition: .4s ease;
}


/* =========================================
   EFECTO HOVER
========================================= */

.floating-logo-wrapper:hover {
    transform: scale(1.03);
}


/* =========================================
   IMAGEN LOGO
========================================= */

.logo-image {
    width: 88%;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, .15));
    animation: slowRotate 12s ease-in-out infinite alternate;
}


/* =========================================
   FLOATING
========================================= */

@keyframes floating {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-18px);
    }
    100% {
        transform: translateY(0px);
    }
}


/* =========================================
   GLOW
========================================= */

@keyframes glow {
    0% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, .08), 0 0 20px rgba(255, 255, 255, .2);
    }
    50% {
        box-shadow: 0 30px 70px rgba(0, 0, 0, .18), 0 0 40px rgba(255, 255, 255, .35);
    }
    100% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, .08), 0 0 20px rgba(255, 255, 255, .2);
    }
}


/* =========================================
   MOVIMIENTO SUAVE IMAGEN
========================================= */

@keyframes slowRotate {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
    100% {
        transform: scale(1);
    }
}


/* =========================================
   RESPONSIVE
========================================= */

@media(max-width:768px) {
    .floating-logo-wrapper {
        width: 280px;
        height: 280px;
    }
}


/* Colores de identidad */

.text-orange {
    color: #f97316;
}

.bg-orange-light {
    background-color: rgba(249, 115, 22, 0.1);
}

.bg-blue-light {
    background-color: rgba(0, 86, 179, 0.1);
}


/* Timeline Historia */

.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #eee;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}


/* Efecto de Vidrio (Glassmorphism) para tarjetas */

.card-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}


/* Estilos para Historia */

.main-timeline {
    font-family: 'Poppins', sans-serif;
}

.timeline {
    position: relative;
    padding-left: 50px;
    margin-bottom: 30px;
}

.timeline:before {
    content: "";
    width: 2px;
    height: 100%;
    background: #f97316;
    position: absolute;
    top: 0;
    left: 15px;
}

.timeline-year {
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    background: #f97316;
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}


/*=====================
    Mision -  vision
======================*/


/* Estilo premium de Tarjetas en Bootstrap */

.card-pilar {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px !important;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.card-pilar:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(26, 35, 126, 0.08);
    border-color: rgba(26, 35, 126, 0.15);
}


/* Adornos de fondo dinámicos */

.card-pilar::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    transition: all 0.4s ease;
    z-index: 1;
    opacity: 0.4;
}

.card-mision::after {
    background: radial-gradient(circle, rgba(255, 102, 0, 0.1) 0%, transparent 70%);
}

.card-vision::after {
    background: radial-gradient(circle, rgba(17, 202, 160, 0.15) 0%, transparent 70%);
}

.card-pilar:hover::after {
    transform: scale(1.3);
}


/* Contenedores de Iconos optimizados sin dependencias externas inestables */

.icon-shape-mision {
    width: 70px;
    height: 70px;
    background-color: rgba(255, 102, 0, 0.1);
    color: var(--accent-orange);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 102, 0, 0.15);
    transition: all 0.3s ease;
}

.card-pilar:hover .icon-shape-mision {
    background-color: var(--accent-orange);
    color: white;
    transform: rotate(5deg) scale(1.05);
}

.icon-shape-vision {
    width: 70px;
    height: 70px;
    background-color: rgba(17, 202, 160, 0.1);
    color: var(--teal-ecology);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(17, 202, 160, 0.15);
    transition: all 0.3s ease;
}

.card-pilar:hover .icon-shape-vision {
    background-color: var(--teal-ecology);
    color: white;
    transform: rotate(-5deg) scale(1.05);
}


/* Texto y detalles del contenido */

.card-pilar .badge-category {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 20px;
    display: inline-block;
}

.badge-mision {
    background-color: rgba(255, 102, 0, 0.08);
    color: var(--accent-orange);
}

.badge-vision {
    background-color: rgba(17, 202, 160, 0.08);
    color: var(--teal-ecology);
}

.card-title-custom {
    color: var(--primary-blue);
    font-size: 26px;
    margin-bottom: 20px;
}

.card-pilar p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-muted);
    text-align: justify;
}


/* Highlight de palabras clave */

.highlight-blue {
    color: var(--primary-blue);
    font-weight: 600;
}


/* Nota informativa inferior */

.legal-notice {
    background-color: #fffaf1;
    border-left: 4px solid var(--accent-orange);
    border-radius: 12px;
    padding: 20px;
    margin-top: 50px;
    font-size: 13.5px;
    color: #555;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}


/*================
 Custom Time Line
================*/


/* Hero Header Estilo Premium */


/* Estructura de la Línea de Tiempo (Timeline) */

.custom-timeline {
    position: relative;
    padding: 30px 0;
}


/* Línea vertical central */

.custom-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50px;
    width: 4px;
    background: linear-gradient(180, var(--primary-blue) 0%, var(--accent-orange) 50%, var(--teal-ecology) 100%);
    border-radius: 2px;
}

@media (min-width: 768px) {
    .custom-timeline::before {
        left: 50%;
        margin-left: -2px;
    }
}


/* Hitos / Contenedores */

.timeline-node {
    position: relative;
    margin-bottom: 50px;
    width: 100%;
}

.timeline-node::after {
    content: "";
    display: table;
    clear: both;
}


/* Bloque de Contenido de la Tarjeta */

.timeline-panel {
    position: relative;
    width: 100%;
    float: right;
    padding-left: 45px;
    transition: all 0.4s ease;
}

@media (min-width: 768px) {
    .timeline-panel {
        width: 45%;
        float: left;
        padding-left: 0;
        padding-right: 0;
    }
    .timeline-node.right-node .timeline-panel {
        float: right;
    }
}


/* Tarjeta de diseño premium */

.timeline-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(26, 35, 126, 0.08);
    border-color: rgba(26, 35, 126, 0.1);
}


/* Burbuja de Fecha / Timeline Badge */

.timeline-badge {
    position: absolute;
    top: 15px;
    left: 33px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 4px solid var(--primary-blue);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.timeline-node.right-node .timeline-badge {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.timeline-node.last-node .timeline-badge {
    border-color: var(--teal-ecology);
    color: var(--teal-ecology);
}

@media (min-width: 768px) {
    .timeline-badge {
        left: 50%;
        margin-left: -19px;
        top: 20px;
    }
}

.timeline-card:hover~.timeline-badge,
.timeline-badge:hover {
    transform: scale(1.2);
    background-color: var(--primary-blue);
    color: white !important;
}

.timeline-node.right-node .timeline-card:hover~.timeline-badge {
    background-color: var(--accent-orange);
}

.timeline-node.last-node .timeline-card:hover~.timeline-badge {
    background-color: var(--teal-ecology) important!;
}


/* Elementos decorativos */

.timeline-date-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 15px;
    display: inline-block;
}

.label-blue {
    background-color: rgba(26, 35, 126, 0.07);
    color: var(--primary-blue);
}

.label-orange {
    background-color: rgba(255, 102, 0, 0.07);
    color: var(--accent-orange);
}

.label-teal {
    background-color: rgba(17, 202, 160);
    color: var(--teal-ecology);
}


/* Sombras para fundadores y nombres clave */

.highlight-founder {
    color: var(--primary-blue);
    font-weight: 700;
    border-bottom: 2px dotted var(--accent-orange);
}

.highlight-pilar-text {
    color: var(--text-dark);
    font-weight: 600;
}


/* Sección de Trayectoria */

.trayectoria-box {
    background: linear-gradient(135deg, #ffffff 0%, #fffbf1 100%);
    border: 1px dashed rgba(255, 102, 0, 0.25);
    border-radius: 24px;
    padding: 40px;
    margin-top: 60px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.02);
}

.icon-shield-decor {
    font-size: 3rem;
    color: var(--accent-orange);
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.trayectoria-box:hover .icon-shield-decor {
    transform: scale(1.1) rotate(5deg);
}