/* assets/css/style.css */
/* Variables y Reset */
:root {
    --reflex-blue: #060580;
    --medium-purple: #50009e;
    --cyan-accent: #00aced;
    --violet-soft: #b797d8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #f8f9fc;
    color: #1a1a2e;
    overflow-x: hidden;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes slideInfinite {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Utilidades de Animacion */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.6s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.6s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    background: transparent;
    padding: 1.25rem 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(6, 5, 128, 0.08);
    padding: 0.75rem 0;
}

.nav-link {
    color: white;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.navbar.scrolled .nav-link {
    color: var(--reflex-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan-accent), var(--medium-purple));
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* LOGO VIAJERO - IMPORTANTE */
.logo-hero {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 15%;
    z-index: 20;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.logo-hero.traveling {
    position: fixed;
    left: 1.5rem;
    top: 0.5rem;
    transform: translateX(0);
    z-index: 1001;
}

/* ESTILO DEL LOGO (Modifica aqui el tamano inicial) */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-container img {
    width: 320px;
    height: auto;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.logo-hero.traveling .logo-container img {
    width: 120px;
}

/* Tamano cuando viaja */

/* Placeholder SVG (Estilo temporal hasta que pongas tu imagen) */
.logo-placeholder {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-placeholder .logo-icon {
    width: 50px;
    height: 50px;
    transition: all 0.5s ease;
}

.logo-hero.traveling .logo-placeholder .logo-icon {
    width: 36px;
    height: 36px;
}

.logo-placeholder .logo-text {
    font-weight: 800;
    font-size: 2.25rem;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
}

.logo-hero.traveling .logo-placeholder .logo-text {
    font-size: 1.4rem;
    color: var(--reflex-blue);
    text-shadow: none;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00aced 0%, #50009e 50%, #060580 100%);
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(183, 151, 216, 0.25), transparent 50%), radial-gradient(circle at 80% 20%, rgba(0, 172, 237, 0.35), transparent 50%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    background-image: url('../img/LogoIconBco.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center right;
    opacity: 0.15;
    z-index: 2;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 1.5rem;
    max-width: 850px;
    margin-top: 200px;
}

/* Botones */
.btn-primary {
    background: linear-gradient(135deg, var(--reflex-blue), var(--medium-purple));
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(6, 5, 128, 0.3);
}

.btn-white {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: 0.875rem;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-white:hover {
    background: white;
    color: var(--reflex-blue);
}

/* Cards y Componentes */
.service-card {
    background: white;
    border-radius: 1.5rem;
    padding: 1.75rem;
    border: 1px solid rgba(6, 5, 128, 0.06);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cyan-accent), var(--medium-purple));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(6, 5, 128, 0.1);
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(6, 5, 128, 0.1);
    border-radius: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--cyan-accent);
    box-shadow: 0 0 0 3px rgba(0, 172, 237, 0.1);
}

.form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--reflex-blue);
    font-size: 0.875rem;
}

/* Carrusel */
.carousel-track {
    display: flex;
    width: max-content;
    animation: slideInfinite 30s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.client-logo {
    flex-shrink: 0;
    width: 300px;
    height: 130px;
    margin: 0 1.25rem;
    background: white;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.client-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

/* Testimonios */
.testimonial-card {
    background: white;
    border-radius: 1.5rem;
    padding: 1.75rem;
    position: relative;
    box-shadow: 0 10px 40px rgba(6, 5, 128, 0.06);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 0.5rem;
    left: 1.25rem;
    font-size: 4rem;
    color: var(--reflex-blue);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 5, 128, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 1.5rem;
    max-width: 650px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: all 0.3s;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* Menu Movil */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: white;
    z-index: 1002;
    transition: right 0.3s ease;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    padding: 2rem;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 5, 128, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-link {
    display: block;
    padding: 0.875rem 0;
    font-weight: 600;
    color: var(--reflex-blue);
    border-bottom: 1px solid rgba(6, 5, 128, 0.08);
    text-decoration: none;
}

/* Hamburger */
.hamburger {
    width: 26px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 1003;
    background: transparent;
    border: none;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    position: absolute;
    border-radius: 3px;
    transition: all 0.3s;
}

.navbar.scrolled .hamburger span {
    background: var(--reflex-blue);
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 8px;
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 8px;
    background: var(--reflex-blue);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 9px;
    background: var(--reflex-blue);
}

/* Scroll Top */
.scroll-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--cyan-accent), var(--medium-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 172, 237, 0.3);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--reflex-blue);
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    z-index: 3000;
    opacity: 0;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* Galeria Lightbox */
.lightbox {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 5, 128, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightbox-media-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--cyan-accent);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 24px;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
    transition: all 0.3s;
    z-index: 10000;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--cyan-accent);
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    cursor: pointer;
    aspect-ratio: 1;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.05);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 5, 128, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

/* Estadisticas */
.stat-number {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--cyan-accent), var(--medium-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* Use standard property along with vendor prefixed one */
    -webkit-text-fill-color: transparent;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar.scrolled {
        padding: 1rem 0;
    }

    .hero-content {
        margin-top: 170px;
    }

    .hero::after {
        width: 350px;
        height: 350px;
        right: -15%;
        top: 60%;
    }

    .logo-hero {
        top: 12%;
    }

    .logo-hero.traveling {
        left: 1rem;
        top: 0.6rem;
    }

    .logo-container img {
        width: 220px;
    }

    .logo-hero.traveling .logo-container img {
        width: 100px;
    }

    .logo-placeholder .logo-text {
        font-size: 1.75rem;
    }

    .logo-hero.traveling .logo-placeholder .logo-text {
        font-size: 1.2rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

/* MOBILE ACCORDION STYLES */
@media (max-width: 1023px) {
    .mobile-accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out, opacity 0.4s ease-out;
        opacity: 0;
        visibility: hidden;
    }
    
    .mobile-accordion-content.active {
        max-height: 5000px; /* Suficiente para el contenido */
        opacity: 1;
        visibility: visible;
        transition: max-height 0.6s ease-in, opacity 0.6s ease-in;
    }
    
    .mobile-accordion-header {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(6, 5, 128, 0.1);
        margin-bottom: 1rem;
    }
    
    .mobile-accordion-section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    @keyframes pulsebtn {
        0% { box-shadow: 0 0 0 0 rgba(0, 172, 237, 0.4); }
        70% { box-shadow: 0 0 0 10px rgba(0, 172, 237, 0); }
        100% { box-shadow: 0 0 0 0 rgba(0, 172, 237, 0); }
    }

    .accordion-icon {
        animation: pulsebtn 2s infinite;
        border-radius: 50%;
    }
    
    .accordion-icon.active {
        transform: rotate(180deg);
        background-color: var(--reflex-blue);
        color: white;
        animation: none;
    }
}
