/* ==========================================================================
   ZAMTOS-TECH MODERN 3D & GLASSMORPHISM DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #009da2;
    --primary-glow: rgba(0, 157, 162, 0.35);
    --primary-accent: #00d2d8;
    --primary-gradient: linear-gradient(135deg, #009da2 0%, #00d2d8 100%);
    --secondary-color: #6a6e71;
    --light-gray: #f4f7f9;
    --dark-text: #1e293b;
    --white: #ffffff;
    --black: #000000;
    
    /* Dark mode futuristic color tokens */
    --dark-mode-bg: #0b0f19;
    --dark-mode-card-bg: rgba(21, 29, 46, 0.75);
    --dark-mode-card-border: rgba(0, 157, 162, 0.25);
    --dark-mode-navbar-bg: rgba(11, 15, 25, 0.88);
    --dark-mode-form-bg: rgba(30, 41, 59, 0.7);
    --dark-mode-footer-bg: #070a11;
    
    --glass-bg-light: rgba(255, 255, 255, 0.85);
    --glass-border-light: rgba(0, 157, 162, 0.15);
    --shadow-soft: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 15px 35px -5px rgba(0, 157, 162, 0.25);
    --radius-lg: 16px;
    --radius-sm: 10px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--dark-text);
    background-color: var(--white);
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .section-title, .navbar-brand {
    font-family: 'Outfit', sans-serif;
}

/* --- Dark Mode Body --- */
body.dark-mode {
    background-color: var(--dark-mode-bg);
    color: #e2e8f0;
}

/* ==========================================================================
   NAVBAR (GLASSMORPHISM & NEON GLOW)
   ========================================================================== */
.navbar {
    background-color: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--glass-border-light);
    transition: all 0.3s ease;
    padding: 12px 0;
}

body.dark-mode .navbar {
    background-color: var(--dark-mode-navbar-bg) !important;
    border-bottom: 1px solid var(--dark-mode-card-border);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5) !important;
}

.logo-navbar {
    max-height: 75px;
    height: auto;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-navbar:hover {
    transform: scale(1.03);
}

.navbar-nav .nav-link {
    color: #475569 !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    border-radius: 20px;
    transition: all 0.3s ease;
}

body.dark-mode .navbar-nav .nav-link {
    color: #cbd5e1 !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(0, 157, 162, 0.08);
}

body.dark-mode .navbar-nav .nav-link:hover,
body.dark-mode .navbar-nav .nav-link.active {
    color: var(--primary-accent) !important;
    background: rgba(0, 157, 162, 0.2);
}

.dark-mode-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 157, 162, 0.1);
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-mode-toggle:hover {
    transform: rotate(20deg) scale(1.1);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 15px var(--primary-glow);
}

body.dark-mode .dark-mode-toggle {
    background: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

/* ==========================================================================
   HERO VIDEO SECTION (HIGH TECH & 3D OVERLAY)
   ========================================================================== */
.hero-video-section {
    position: relative;
    width: 100%;
    min-height: 92vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    background-color: var(--black);
}

.hero-video-section .video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-video-section .video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.45) contrast(1.15);
}

.hero-video-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 157, 162, 0.25) 0%, rgba(11, 15, 25, 0.75) 100%);
    z-index: 2;
}

.hero-video-section .hero-content {
    position: relative;
    z-index: 3;
    padding: 40px 30px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    max-width: 900px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 30px;
    background: rgba(0, 157, 162, 0.2);
    border: 1px solid rgba(0, 210, 216, 0.4);
    color: #00d2d8;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-video-section h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #ffffff 30%, #00d2d8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.25;
}

.hero-video-section .lead {
    font-size: 1.35rem;
    color: #cbd5e1;
    font-weight: 400;
    margin-bottom: 30px;
}

/* Floating Stats Bar */
.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat-card {
    text-align: center;
}

.hero-stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-accent);
}

.hero-stat-label {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   SECTION TITLES & HEADINGS
   ========================================================================== */
.section-title {
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    text-align: center;
    width: 100%;
}

body.dark-mode .section-title {
    color: var(--white);
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 4px;
    margin: 12px auto 0;
    box-shadow: 0 0 12px var(--primary-glow);
}

.section-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 680px;
    margin: 0 auto 45px;
    text-align: center;
}

body.dark-mode .section-subtitle {
    color: #94a3b8;
}

/* ==========================================================================
   QUIÉNES SOMOS (GLASS & TECH CHIPS)
   ========================================================================== */
.about-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 157, 162, 0.12);
    transition: all 0.4s ease;
}

body.dark-mode .about-card {
    background: var(--dark-mode-card-bg);
    border-color: var(--dark-mode-card-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.tech-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 157, 162, 0.08);
    border: 1px solid rgba(0, 157, 162, 0.2);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 6px 4px;
    transition: all 0.3s ease;
}

body.dark-mode .tech-chip {
    background: rgba(0, 157, 162, 0.18);
    color: var(--primary-accent);
    border-color: rgba(0, 210, 216, 0.3);
}

.tech-chip:hover {
    transform: translateY(-3px);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px var(--primary-glow);
}

/* ==========================================================================
   NUESTROS SERVICIOS (3D TILT CARDS & GLOW EFFECTS)
   ========================================================================== */
.bg-light-gray {
    background-color: var(--light-gray);
}

body.dark-mode .bg-light-gray {
    background-color: #0f172a !important;
}

.card-animated {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 157, 162, 0.12);
    padding: 30px 24px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

body.dark-mode .card-animated {
    background: var(--dark-mode-card-bg);
    border-color: var(--dark-mode-card-border);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.card-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0.7;
    transition: height 0.3s ease, opacity 0.3s ease;
}

.card-animated:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.card-animated:hover::before {
    height: 6px;
    opacity: 1;
}

.service-icon-box {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 157, 162, 0.12) 0%, rgba(0, 210, 216, 0.22) 100%);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

body.dark-mode .service-icon-box {
    color: var(--primary-accent);
}

.card-animated:hover .service-icon-box {
    background: var(--primary-gradient);
    color: white;
    transform: rotateY(180deg);
    box-shadow: 0 10px 20px var(--primary-glow);
}

.card-animated .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 12px;
}

body.dark-mode .card-animated .card-title {
    color: var(--white);
}

.card-animated .card-text {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

body.dark-mode .card-animated .card-text {
    color: #94a3b8;
}

/* Service Pill Items */
.service-pill-item {
    background: var(--white);
    border: 1px solid rgba(0, 157, 162, 0.18);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    color: var(--dark-text);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

body.dark-mode .service-pill-item {
    background: var(--dark-mode-card-bg);
    border-color: var(--dark-mode-card-border);
    color: #e2e8f0;
}

.service-pill-item:hover {
    transform: translateX(8px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 157, 162, 0.18);
}

.service-pill-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 157, 162, 0.12);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

body.dark-mode .service-pill-icon {
    color: var(--primary-accent);
}

/* ==========================================================================
   PERTENENCIA & CERTIFICACIONES
   ========================================================================== */
.member-card {
    background: linear-gradient(135deg, #009da2 0%, #007d81 100%);
    color: white;
    padding: 28px 20px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px rgba(0, 157, 162, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.member-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 18px 35px rgba(0, 157, 162, 0.45);
}

.member-card h5 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.certificate-card {
    background: var(--white);
    border: 1px solid rgba(0, 157, 162, 0.2);
    border-radius: var(--radius-lg);
    padding: 25px 22px;
    box-shadow: var(--shadow-soft);
    height: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

body.dark-mode .certificate-card {
    background: var(--dark-mode-card-bg);
    border-color: var(--dark-mode-card-border);
    color: #e2e8f0;
}

.certificate-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.cert-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 157, 162, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

body.dark-mode .cert-icon-badge {
    color: var(--primary-accent);
}

/* ==========================================================================
   CLIENTES SLIDER & CARDS
   ========================================================================== */
.client-swiper-wrapper {
    background: transparent;
    border-radius: var(--radius-lg);
    padding: 20px 10px;
}

.client-logo-card {
    background: var(--white);
    border-radius: 18px;
    padding: 22px 18px;
    min-height: 135px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 157, 162, 0.16);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 6px 0;
}

body.dark-mode .client-logo-card {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
}

.client-logo-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 16px 35px rgba(0, 157, 162, 0.3);
    border-color: var(--primary-color);
}

.client-logo {
    max-width: 220px;
    max-height: 110px;
    height: auto;
    width: auto;
    margin: 0 auto;
    display: block;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: transform 0.3s ease;
}

/* ==========================================================================
   CONTACTO (FLOATING INPUTS & CARDS)
   ========================================================================== */
.contact-info-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 157, 162, 0.15);
    height: 100%;
}

body.dark-mode .contact-info-box {
    background: var(--dark-mode-card-bg);
    border-color: var(--dark-mode-card-border);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0, 157, 162, 0.12);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

body.dark-mode .contact-item-icon {
    color: var(--primary-accent);
}

.form-control {
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    border: 1px solid #cbd5e1;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

body.dark-mode .form-control {
    background-color: var(--dark-mode-form-bg);
    color: var(--white);
    border-color: #334155;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.btn-primary-custom {
    background: var(--primary-gradient);
    border: none;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 14px 36px;
    border-radius: 30px;
    box-shadow: 0 8px 20px var(--primary-glow);
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0, 157, 162, 0.4);
    color: white;
}

/* ==========================================================================
   FOOTER & FLOATING WHATSAPP
   ========================================================================== */
footer {
    background-color: #0b0f19;
    color: #94a3b8;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
}

footer a {
    color: #94a3b8;
    transition: color 0.3s ease;
    text-decoration: none;
}

footer a:hover {
    color: var(--primary-accent);
}

.footer-logo {
    max-height: 85px;
    height: auto;
    width: auto;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 6px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary-gradient);
    transform: translateY(-4px);
    box-shadow: 0 6px 15px var(--primary-glow);
}

.whatsapp-float {
    position: fixed;
    width: 62px;
    height: 62px;
    bottom: 35px;
    right: 35px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none !important;
}

.whatsapp-float:hover {
    background-color: #1DA851;
    transform: scale(1.12) rotate(8deg);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

/* ==========================================================================
   ANIMATION UTILITIES & RESPONSIVE
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hero-video-section h1 {
        font-size: 2.2rem;
    }
    .hero-video-section .lead {
        font-size: 1.1rem;
    }
    .hero-video-section .hero-content {
        padding: 25px 15px;
    }
    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 20px;
    }
}