/* ==========================================================================
   1. ESTILOS BASE Y VARIABLES DE DISEÑO
   ========================================================================== */
:root {
    --sys-brand-primary: #06b6d4; /* Cyan corporativo */
    --sys-brand-dark: #0891b2;
    --sys-bg-dark: #0f172a; /* Pizarra oscuro */
    --sys-bg-light: #f8fafc;
    --sys-text-dark: #1e293b;
    --sys-text-muted: #64748b;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #334155;
    scroll-behavior: smooth;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--sys-text-dark);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--sys-text-muted);
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.btn-primary-brand {
    background-color: var(--sys-brand-primary);
    border-color: var(--sys-brand-primary);
    color: white;
    padding: 0.8rem 1.8rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px rgba(6, 182, 212, 0.2);
}
.btn-primary-brand:hover {
    background-color: var(--sys-brand-dark);
    border-color: var(--sys-brand-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(6, 182, 212, 0.3);
}

.btn-secondary-brand {
    background-color: transparent;
    border: 2px solid #cbd5e1;
    color: var(--sys-text-dark);
    padding: 0.8rem 1.8rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.btn-secondary-brand:hover {
    border-color: var(--sys-brand-primary);
    color: var(--sys-brand-primary);
    transform: translateY(-3px);
}

/* Animaciones de entrada */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ==========================================================================
   2. ESTILOS POR SECCIÓN
   ========================================================================== */

/* --- Navbar --- */
.navbar-brand img {
    height: 55px;
}
.navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* --- Hero Section --- */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}
#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}
#hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    z-index: -1;
}
#hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
#hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 1.5rem auto 2.5rem auto;
    opacity: 0.9;
}
.trust-logos {
    margin-top: 3rem;
}
.trust-logos img {
    height: 30px;
    margin: 0 15px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.trust-logos img:hover { opacity: 1; }

/* --- Feature Highlights --- */

.feature-card {
    background-color: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--sys-brand-primary);
}
.feature-card:hover .feature-icon {
    transform: scale(1.15) translateY(-5px);
}
.feature-icon {
    font-size: 2.5rem;
    color: var(--sys-brand-primary);
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sys-text-dark);
    margin-bottom: 1rem;
}
.feature-card p {
    color: var(--sys-text-muted);
    font-size: 0.95rem;
}

/* --- Tabbed Features --- */
.nav-pills .nav-link {
    padding: 1rem 1.5rem;
    border-radius: 16px;
    font-weight: 700;
    color: var(--sys-text-muted);
    background-color: var(--sys-bg-light);
    border: 1px solid #e2e8f0;
    text-align: left;
    transition: all 0.3s ease;
}
.nav-pills .nav-link.active {
    background-color: var(--sys-brand-primary);
    color: white;
    box-shadow: 0 8px 15px rgba(6, 182, 212, 0.2);
}
.nav-pills .nav-link:not(.active):hover {
    background-color: white;
    color: var(--sys-brand-primary);
}
.tab-content-img {
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tab-content-img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.tab-content-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--sys-text-dark);
    margin-bottom: 1rem;
}
.tab-content-text p {
    color: var(--sys-text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* --- Security Section --- */
#security {
    background-color: var(--sys-bg-dark);
    color: white;
}
#security .section-title, #security .section-subtitle {
    color: white;
}
#security .section-subtitle {
    opacity: 0.8;
}
.security-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}
.security-icon {
    font-size: 1.8rem;
    color: var(--sys-brand-primary);
    background-color: rgba(6, 182, 212, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(6, 182, 212, 0.3);
}
.security-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.security-item p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin: 0;
}

/* --- Testimonials --- */
#testimonials {
    background-color: var(--sys-bg-light);
}
.testimonial-card {
    background-color: white;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
}
.testimonial-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--sys-text-dark);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 2rem;
}
.testimonial-quote::before {
    content: '“';
    position: absolute;
    left: 0;
    top: -0.5rem;
    font-size: 3rem;
    color: var(--sys-brand-primary);
    opacity: 0.3;
}
.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}
.author-name {
    font-weight: 700;
    color: var(--sys-text-dark);
}
.author-station {
    font-size: 0.9rem;
    color: var(--sys-text-muted);
}

/* --- Pricing --- */
.pricing-card {
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.3s ease;
}
.pricing-card.recommended {
    border-color: var(--sys-brand-primary);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.15);
    position: relative; /* Para el ribbon */
    overflow: hidden;   /* Para el ribbon */
}
.pricing-card h3 {
    font-weight: 700;
    color: var(--sys-text-dark);
}
.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--sys-brand-primary);
}
.pricing-card ul {
    list-style: none;
    padding: 0;
}
.pricing-card ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}
.pricing-card ul li i {
    color: var(--sys-brand-primary);
    margin-right: 0.5rem;
}

/* --- Ribbon para Plan Recomendado --- */
.ribbon-wrapper {
    width: 150px;
    height: 150px;
    overflow: hidden;
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 1;
}
.ribbon-text {
    font-weight: 700;
    font-size: 11px;
    color: var(--sys-brand-text);
    text-transform: uppercase;
    text-align: center;
    line-height: 25px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    width: 170px;
    display: block;
    background: var(--sys-brand-primary);
    box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 35px;
    right: -45px;
}

/* --- Lightbox / Image Modal --- */
.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}
.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: lightboxZoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    object-fit: contain;
}
.lightbox-close {
    position: absolute; top: 20px; right: 30px; color: #ffffff;
    font-size: 40px; font-weight: bold; cursor: pointer;
    transition: color 0.2s ease; line-height: 1; z-index: 2010;
}
.lightbox-close:hover { color: var(--sys-brand-primary); }

.lightbox-nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1); color: white;
    border: none; border-radius: 50%;
    width: 60px; height: 60px; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; cursor: pointer; z-index: 2010; transition: background 0.3s ease;
}
.lightbox-nav-btn:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox-nav-btn.prev-btn { left: 2rem; }
.lightbox-nav-btn.next-btn { right: 2rem; }

@keyframes lightboxZoomIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* --- Gallery Filmstrip --- */
.gallery-wrapper { position: relative; max-width: 100vw; }
.gallery-nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    background-color: var(--sys-bg-card); color: var(--sys-brand-primary);
    border: 1px solid var(--sys-border-color); border-radius: 50%;
    width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: all 0.3s ease;
}
.gallery-nav-btn:hover { background-color: var(--sys-brand-primary); color: white; box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4); }
.gallery-nav-btn.prev-btn { left: 1rem; }
.gallery-nav-btn.next-btn { right: 1rem; }

.gallery-filmstrip {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 2rem 3rem 2rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Oculta el scrollbar en Firefox */
    -webkit-overflow-scrolling: touch; /* Suavidad en iOS */
}
.gallery-filmstrip::-webkit-scrollbar { 
    display: none; /* Oculta el scrollbar en Chrome/Safari */
}
.gallery-item {
    flex: 0 0 auto;
    height: 320px; /* Altura ideal para pantallas de escritorio */
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    scroll-snap-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* --- FAQ --- */
.accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 16px !important;
    margin-bottom: 1rem;
    overflow: hidden;
}
.accordion-button {
    font-weight: 700;
    color: var(--sys-text-dark);
}
.accordion-button:not(.collapsed) {
    background-color: var(--sys-bg-light);
    color: var(--sys-brand-primary);
    box-shadow: none;
}
.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(6, 182, 212, 0.25);
}

/* --- Final CTA --- */
#final-cta {
    background-color: var(--sys-bg-dark);
    color: white;
    padding: 100px 0;
}
#final-cta h2 {
    font-size: 2.8rem;
    font-weight: 800;
}
#final-cta p {
    opacity: 0.8;
    margin-bottom: 2.5rem;
}

/* --- Footer --- */
footer {
    background-color: #1e293b;
    color: #94a3b8;
    padding: 40px 0;
    font-size: 0.9rem;
}
footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}
footer a:hover {
    color: var(--sys-brand-primary);
}
footer .footer-logo {
    height: 45px;
    margin-bottom: 1rem;
}

/* --- Botón Flotante WhatsApp --- */
.whatsapp-float {
    position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px;
    background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center;
    font-size: 32px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 1000;
    display: flex; align-items: center; justify-content: center; text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float:hover { transform: scale(1.1) translateY(-5px); color: white; box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4); }

/* --- Botón Volver Arriba --- */
.scroll-top-btn {
    position: fixed; width: 45px; height: 45px; bottom: 100px; right: 38px;
    background-color: var(--sys-bg-dark); color: white; border-radius: 12px;
    text-align: center; font-size: 1.5rem; box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 999; display: flex; align-items: center; justify-content: center;
    text-decoration: none; opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
}
.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}
.scroll-top-btn:hover {
    background-color: var(--sys-brand-primary);
    color: white;
}

/* --- Client Logos Section --- */
.client-logos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem 4rem;
    margin-top: 2rem;
}
.client-logos-container img {
    height: 45px;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(100%) opacity(60%);
    transition: all 0.3s ease;
}
.client-logos-container img:hover {
    filter: grayscale(0%) opacity(100%);
    transform: scale(1.1);
}

/* --- Responsive Adjustments --- */
@media (max-width: 991.98px) {
    .section-title { font-size: 2rem; }
    #hero h1 { font-size: 2.5rem; }
    #hero p { font-size: 1.1rem; }
    .pricing-card.recommended { transform: scale(1); }
}
@media (max-width: 767.98px) {
    .section-padding { padding: 60px 0; }
    .navbar-brand img { height: 45px; }
    #hero h1 { font-size: 2.2rem; }
    #final-cta h2 { font-size: 2rem; }
    .trust-logos img {
        height: 25px;
        margin: 0 10px;
    }
    .client-logos-container {
        gap: 2rem 2.5rem;
    }
    .client-logos-container img {
        height: 35px;
    }
    .gallery-nav-btn { width: 40px; height: 40px; font-size: 1.2rem; }
    .gallery-nav-btn.prev-btn { left: 0.5rem; }
    .gallery-nav-btn.next-btn { right: 0.5rem; }
    .lightbox-nav-btn { width: 40px; height: 40px; font-size: 1.5rem; }
    .lightbox-nav-btn.prev-btn { left: 0.5rem; }
    .lightbox-nav-btn.next-btn { right: 0.5rem; }
    .gallery-item {
        height: 220px; /* Altura reducida para celulares */
    }
}