@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* ========== RESET Y VARIABLES ========== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

:root {
    --white: #FFFFFF;
    --black: #000000;
    --blue-primary: #034C8C;
    --blue-dark: #071D39;
    --red-dark: #74001F;
    --red-primary: #E30613;
    --red-accent: #EB3D2A;
}

body {
    font-family: "Poppins", sans-serif;
    line-height: 1.6;
    color: var(--black);
}

/* ========== NAVEGACIÓN ========== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo img {
    width: 180px;
    height: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--blue-dark);
    font-weight: 600;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-links a:hover {
    background: var(--red-primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 6, 19, 0.4);
}

.nav-links a.active {
    background: var(--blue-primary);
    color: var(--white);
}

/* Mobile Menu Toggle */
.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1001;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--blue-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Animación cuando el toggle está activo */
.mobile-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ========== HERO SECTION ========== */
.hero-about {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-primary) 50%, var(--red-primary) 100%);
    padding: 100px 0 60px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--white), #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 400;
}

.anniversary-badge-hero {
    display: inline-block;
    background: linear-gradient(135deg, var(--red-primary), var(--red-accent));
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(227, 6, 19, 0.3);
    margin-bottom: 0.5rem;
    margin-top: 1.2rem;
}

/* ========== STORY SECTION ========== */
.story-section {
    padding: 80px 0 20px 0;
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    overflow: visible;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.story-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    position: relative;
}

.story-content h2 .primary-text {
    color: var(--blue-dark);
}

.story-content h2 .accent-text {
    color: var(--red-primary);
}

.story-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--red-primary);
    border-radius: 2px;
}

.story-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.story-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.story-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border: none;
    outline: none;
}

.story-image:hover img {
    transform: scale(1.05);
}

/* ========== VALUES SECTION ========== */
.values-section {
    padding: 20px 0 50px 0;
    background: #f8fafb;
}

.values-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    position: relative;
}

.values-title .primary-text {
    color: var(--blue-dark);
}

.values-title .accent-text {
    color: var(--red-primary);
}

.values-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--red-primary);
    border-radius: 2px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.value-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--red-primary), var(--red-accent));
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size:2rem;
}

.value-icon .material-symbols-outlined {
    font-variation-settings: 
        'FILL' 1,
        'wght' 400,
        'GRAD' 0,
        'opsz' 48;
    font-size: 2.5rem !important;
    line-height: 1;
    display: block;
}

.value-card:hover .value-icon {
    background: linear-gradient(135deg, var(--red-primary), var(--red-accent));
    transform: scale(1.1);
}

.value-card h3 {
    color: var(--blue-dark);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.value-card p {
    color: #666;
    line-height: 1.6;
}

/* ========== TIMELINE SECTION ========== */
.timeline-section {
    padding: 80px 0;
    background: var(--white);
    overflow: visible;
}

.timeline-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-title .primary-text {
    color: var(--blue-dark);
}

.timeline-title .accent-text {
    color: var(--red-primary);
}

.timeline-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--red-primary);
    border-radius: 2px;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: visible;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--blue-primary), var(--red-primary));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    overflow: visible;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-end;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
}

.timeline-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 40%;
    position: relative;
    transition: all 0.3s ease;
    z-index: 1;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.timeline-year {
    background: linear-gradient(135deg, var(--blue-dark), var(--red-primary));
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
}

.timeline-content h3 {
    color: var(--blue-dark);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--red-primary);
    border: 4px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(227, 6, 19, 0.3);
    z-index: 2;
}

/* ========== STATS SECTION ========== */
.stats-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-primary));
    color: var(--white);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
}

/*------ws-----*/
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    text-decoration: none;
}

.whatsapp-float:hover {
    background: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--blue-dark);
    color: var(--white);
    padding: 2.3rem 1.5rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--red-primary);
    border-radius: 2px;
}

.footer-section p, .footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 1.8;
    transition: color 0.3s ease;
    margin-bottom: 0.8rem;
    font-size: 14px;
    display: block;
}

.footer-section a:hover {
    color: var(--red-primary);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
    display: block;
}

.footer-section ul li a {
    display: block;
    padding: 0.2rem 0;
}

.footer-logo {
    width: 250px;
    height: auto;
    margin-bottom: 1rem;
    display: block;
}

.footer-anniversary {
    width: 100px;
    height: auto;
    margin-right: 0.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    align-items: center;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-primary);
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--white);
    color: var(--red-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(227, 6, 19, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    text-align: center;
    margin-top: 2rem;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ========== BACK TO TOP BUTTON ========== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--red-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(227, 6, 19, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 998;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--red-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(227, 6, 19, 0.4);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 5px 25px rgba(0,0,0,0.15);
        border-radius: 15px;
        text-align: center;
        gap: 0.5rem;
        align-items: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: auto;
    }

    .nav-links a {
        display: inline-block;
        width: auto;
        padding: 0.8rem 1.5rem;
    }

    .mobile-menu {
        display: flex;
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .story-image {
        order: -1;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        justify-content: flex-start !important;
        padding-left: 50px;
    }

    .timeline-content {
        width: 100%;
    }

    .timeline-marker {
        left: 20px;
    }

    /* Imágenes del timeline en tablet */
    .timeline-image-wrapper {
        left: 20px !important;
        margin-left: 25px !important;
        width: 40px !important;
        height: 40px !important;
    }
    
    /* RESETEAR items pares - en tablet TODAS a la derecha */
    .timeline-item:nth-child(even) .timeline-image-wrapper {
        left: 20px !important;
        margin-left: 25px !important;
        width: 40px !important;
        height: 40px !important;
    }
    
    /* En tablet mostrar imagen COMPLETA sin cortar */
    .timeline-image {
        object-fit: contain !important;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }

    .logo img {
        width: 150px;
    }

    .mobile-menu span {
        width: 22px;
        height: 2.5px;
    }

    .nav-links a {
        padding: 0.7rem 1.2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .story-content h2,
    .values-title,
    .timeline-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .back-to-top {
        bottom: 20px;
    }

    .footer {
        padding: 3rem 1rem 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-section:first-child {
        text-align: center;
    }

    .footer-logo {
        width: 200px;
        margin: 0 auto 1rem;
    }

    .footer-anniversary {
        width: 100px;
        margin: 0  0.5rem;
    }

    .footer-social {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .footer-section ul {
        text-align: center;
    }

    .footer-section p {
        text-align: center;
    }

    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }

    /* Imágenes del timeline en móvil */
    .timeline-image-wrapper {
        left: 20px !important;
        width: 35px !important;
        height: 35px !important;
        margin-left: 20px !important;
    }
    
    /* RESETEAR items pares - en móvil TODAS a la derecha */
    .timeline-item:nth-child(even) .timeline-image-wrapper {
        left: 20px !important;
        margin-left: 20px !important;
        width: 35px !important;
        height: 35px !important;
    }
    
    /* En móvil mostrar imagen COMPLETA sin cortar */
    .timeline-image {
        object-fit: contain !important;
    }
    
    .timeline-image-wrapper:hover .timeline-image,
    .timeline-image-wrapper.zoom-active .timeline-image {
        transform: scale(4.5) translateX(15%);
        border: none;
    }
}

@media (max-width: 480px) {
    .logo img {
        width: 130px;
    }

    .nav-container {
        padding: 0.8rem 1rem;
    }

    .nav-links {
        width: 95%;
        padding: 1.5rem;
    }

    .nav-links a {
        padding: 0.6rem 1rem;
    }

    .mobile-menu span {
        width: 20px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .footer-social {
        justify-content: center;
        flex-wrap: wrap;
    }

    .back-to-top {
        bottom: 75px !important;
        right: 15px !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 1.1rem !important;
    }

    .footer {
        padding: 2rem 1rem 1.5rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-logo {
        width: 180px;
    }

    .footer-anniversary {
        width: 70px;
        margin: 0 0.5rem;
    }

    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .footer-section p, 
    .footer-section a {
        font-size: 0.9rem;
    }

    .footer-social {
        justify-content: center;
        align-items: center;
    }

    .whatsapp-float {
        bottom: 15px;
        left: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }

    /* Imágenes del timeline en móvil pequeño */
    .timeline-image-wrapper {
        left: 20px !important;
        width: 30px !important;
        height: 30px !important;
        margin-left: 18px !important;
    }
    
    /* RESETEAR items pares - en móvil TODAS a la derecha */
    .timeline-item:nth-child(even) .timeline-image-wrapper {
        left: 20px !important;
        margin-left: 18px !important;
        width: 30px !important;
        height: 30px !important;
    }
    
    /* En móvil pequeño mostrar imagen COMPLETA sin cortar */
    .timeline-image {
        object-fit: contain !important;
    }
    
    .timeline-image-wrapper:hover .timeline-image,
    .timeline-image-wrapper.zoom-active .timeline-image {
        transform: scale(4) translateX(15%);
        border: none;
    }
}

/* ========== ESTILOS PARA IMÁGENES EN TIMELINE ========== */
.timeline-image-wrapper {
    position: absolute;
    left: 50%;
    margin-left: 25px; /* Un poco más separado de la bolita */
    top: -10px; /* Centrado verticalmente con la bolita */
    width: auto;
    height: 40px;
    z-index: 100; /* Z-index más alto desde el inicio */
    cursor: pointer;
}

/* SOLO items PARES (2015, 2022) - imagen a la IZQUIERDA en desktop */
.timeline-item:nth-child(even) .timeline-image-wrapper {
    margin-left: -75px;
}

.timeline-image {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
    border: 2px solid var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Hacer zoom a la imagen al pasar el mouse - VERSION MEJORADA */
.timeline-image-wrapper:hover .timeline-image {
    transform: scale(5) translateX(20%); /* Zoom más grande y desplazado */
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    z-index: 9999; /* Z-index muy alto para estar encima de todo */
    border: none;
}

/* Zoom con CLICK/TOUCH para móviles */
.timeline-image-wrapper.zoom-active {
    z-index: 9999;
}

.timeline-image-wrapper.zoom-active .timeline-image {
    transform: scale(5) translateX(20%);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    z-index: 9999;
    border: none;
}

/* Asegurar que el timeline-content no tape la imagen */
.timeline-content {
    z-index: 1 !important;
}

/* Cuando hay hover en la imagen, el content debe estar debajo */
.timeline-image-wrapper:hover ~ .timeline-content {
    z-index: 0 !important;
}

/* Cuando hay zoom activo (móviles), el content debe estar debajo */
.timeline-image-wrapper.zoom-active ~ .timeline-content {
    z-index: 0 !important;
}