/* 
 * ULTRA-PREMIUM B2B DESIGN SYSTEM
 * Aligned with Stitch's "Servas Access" Redesign
 */

:root {
    /* Brand Colors */
    --p-50: #f0fdfd;
    --p-100: #ccfbf9;
    --p-500: #05A29B;
    --p-600: #048a84;
    --p-700: #036b66;

    /* Slate Scale - Modern & Deep */
    --s-50: #f8fafc;
    --s-400: #94a3b8;
    --s-700: #334155;
    --s-800: #1e293b;
    --s-900: #0f172a;
    --s-950: #020617;

    --white: #ffffff;

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Premium Tokens */
    --radius-xxl: 40px;
    --radius-xl: 32px;
    --radius-lg: 20px;

    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(5, 162, 155, 0.2);

    --transition-premium: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    background-color: var(--white);
    color: var(--s-900);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography Enhancements */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    letter-spacing: -0.03em;
    font-weight: 800;
}

/* Glassmorphism Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 32px 0;
    transition: var(--transition-premium);
}

header.scrolled {
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
    height: 50px;
    width: auto;
}

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

.nav-links {
    display: flex;
    gap: 48px;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition-premium);
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--p-500);
}

header.scrolled .nav-links a {
    color: var(--s-700);
}

header.scrolled .nav-links a:hover {
    color: var(--p-500);
}

.btn-contact {
    background: var(--s-900);
    color: white !important;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 13px;
    box-shadow: var(--shadow-premium);
}

.btn-contact:hover {
    background: var(--p-700);
    transform: translateY(-2px);
}

/* Hero Section - The Most Important Visual */
.hero {
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 120px;
    /* Space for the fixed header */
    background: var(--s-950);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: white;
}

.hero-video-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(2, 6, 23, 0.8) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(2, 6, 23, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 64px;
    width: 100%;
}

.hero-title {
    font-size: clamp(64px, 10vw, 120px);
    line-height: 0.95;
    margin-bottom: 32px;
}

.hero-subtitle {
    font-size: clamp(18px, 1.5vw, 24px);
    color: var(--s-400);
    max-width: 700px;
    font-weight: 400;
    margin-bottom: 56px;
}

.hero-sm {
    min-height: 40vh;
    padding-bottom: 80px;
}

.hero-sm .text-huge {
    max-width: 800px;
    margin-inline: auto;
}

.badge {
    display: inline-flex;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 32px;
}

/* Bento Grid - Sophisticated Layout */
.bento-section {
    padding: 160px 64px;
    background: var(--s-50);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(450px, auto);
    gap: 32px;
    max-width: 1600px;
    margin: 0 auto;
}

.bento-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-premium);
}

.bento-card:hover {
    transform: translateY(-8px);
}

.card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-premium);
}

.bento-card:hover .card-img {
    transform: scale(1.1);
}

/* Card Stacked (for product pages) */
.card-product {
    display: flex;
    flex-direction: column;
}

.card-product .card-img {
    position: relative;
    height: 300px;
    width: 100%;
    inset: auto;
}

/* Project Cards Specifics */
.project-card {
    aspect-ratio: 16/10;
    background: var(--s-900);
}

.project-card .card-img {
    opacity: 0.5;
}

.project-title {
    font-size: 24px;
    color: white;
    margin-bottom: 4px;
}

.project-subtitle {
    color: var(--s-400);
    font-size: 14px;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.9) 0%, transparent 70%);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
}

.card-title {
    font-size: 32px;
    margin-bottom: 12px;
}

.card-tag {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--p-500);
    margin-bottom: 8px;
}

/* Variations */
.col-2 {
    grid-column: span 2;
}

.row-2 {
    grid-row: span 2;
}

.featured-card {
    border: 4px solid var(--p-500);
    position: relative;
    box-shadow: 0 30px 60px -12px rgba(5, 162, 155, 0.3);
}

.featured-card::after {
    content: "MÁS POPULAR";
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--p-500);
    color: white;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    z-index: 5;
}

/* WhatsApp Floating - Custom & Large */
.wa-float {
    position: fixed;
    bottom: 48px;
    right: 48px;
    z-index: 100;
    width: 64px;
    height: 64px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    transition: var(--transition-premium);
    border: 4px solid white;
}

.wa-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5);
}

.wa-float svg {
    width: 32px;
    height: 32px;
    fill: white;
    display: block;
}

/* Premium Button */
.btn-main, .button-primary {
    padding: 20px 48px;
    background: var(--p-500);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 100px;
    display: inline-block;
    font-weight: 700;
    font-family: var(--font-heading);
    box-shadow: 0 10px 30px rgba(5, 162, 155, 0.3);
    text-decoration: none;
    transition: var(--transition-premium);
}

.btn-main:hover, .button-primary:hover {
    background: var(--p-700);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(5, 162, 155, 0.4);
}

/* More projects card hover effect */
.more-projects-card:hover {
    background: var(--s-800) !important;
    border-color: var(--p-500) !important;
    transform: translateY(-8px);
}

.more-projects-card:hover .more-projects-icon {
    background: var(--p-500) !important;
    color: white !important;
    transform: rotate(-45deg);
}

.section-xl { padding: 160px 64px; }
.section-lg { padding: 120px 64px; }
.section-md { padding: 80px 64px; }
.section-white { background: white; }
.section-dark { background: var(--s-950); color: white; }
.bg-light { background: var(--s-50); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-xxl { margin-bottom: 80px; }
.mb-xl { margin-bottom: 60px; }
.mb-lg { margin-bottom: 32px; }
.mb-md { margin-bottom: 24px; }
.mb-sm { margin-bottom: 16px; }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 32px; }
.mt-xl { margin-top: 40px; }
.text-huge { font-size: 64px; line-height: 1.1; letter-spacing: -0.04em; }
.text-large { font-size: 48px; line-height: 1.1; }
.text-medium { font-size: 24px; }
.text-lead { font-size: 18px; line-height: 1.6; }
.text-small { font-size: 14px; line-height: 1.6; }
.text-highlight { color: var(--p-500); }
.text-muted { color: var(--s-400); }
.text-dark { color: var(--s-900); }
.text-white { color: white; }
.max-w-1600 { max-width: 1600px; margin: 0 auto; }
.max-w-1400 { max-width: 1400px; margin: 0 auto; }
.max-w-1200 { max-width: 1200px; margin: 0 auto; }
.max-w-900 { max-width: 900px; margin: 0 auto; }
.max-w-800 { max-width: 800px; margin: 0 auto; }
.max-w-700 { max-width: 700px; margin: 0 auto; }
.max-w-600 { max-width: 600px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.grid-cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.grid-cols-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 64px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 80px; }
.flex-center-col { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.w-full { width: 100%; }
.h-auto { height: auto; }
.no-shadow { box-shadow: none; }
.border-none { border: none; }
.list-none { list-style: none; }
.list-check {
    list-style: none;
    padding-left: 0;
}

.list-check li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
}

.list-check li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--p-500);
    font-size: 12px;
    top: 4px;
}
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.gap-sm { gap: 16px; }
.gap-md { gap: 24px; }
.gap-lg { gap: 32px; }

.p-xl { padding: 48px; }
.p-lg { padding: 32px; }
.p-md { padding: 24px; }
.p-sm { padding: 16px; }
.rounded-xxl { border-radius: var(--radius-xxl); }
.border { border: 1px solid; }
.border-s-200 { border-color: #e2e8f0; }
.grid { display: grid; }
.img-fluid { max-width: 100%; height: auto; }
.shadow-premium { box-shadow: var(--shadow-premium); }

/* Product Specific Components */
.product-spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.spec-card {
    background: var(--s-50);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition-premium);
}

.spec-card:hover {
    border-color: var(--p-500);
    background: white;
    box-shadow: var(--shadow-premium);
}

.technical-table {
    width: 100%;
    border-collapse: collapse;
}

.technical-table td {
    padding: 16px 8px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 14px;
    color: var(--s-700);
}

.technical-table td:first-child {
    font-weight: 700;
    color: var(--s-900);
    width: 50%;
}

.section-dark .technical-table td {
    border-bottom-color: rgba(255,255,255,0.1);
    color: var(--s-400);
}

.section-dark .technical-table td:first-child {
    color: white;
}

/* Accordion Styles */
.details-clean summary {
    list-style: none;
    cursor: pointer;
    color: var(--p-500);
    font-weight: 600;
    font-size: 14px;
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.details-clean summary::-webkit-details-marker { display: none; }

.details-clean summary:hover {
    color: var(--p-700);
}

.details-clean summary::after {
    content: '+';
    font-size: 18px;
    line-height: 1;
    margin-left: auto;
}

.details-clean[open] summary::after {
    content: '-';
}

.details-clean-content {
    font-size: 13px;
    color: var(--s-600);
    padding-bottom: 16px;
    border-top: 1px solid rgba(0,0,0,0.05);
    margin-top: 8px;
    animation: fadeIn 0.3s ease-in-out;
}

.section-dark .details-clean-content {
    color: var(--s-400);
    border-top-color: rgba(255,255,255,0.1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Menu Components */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--s-900);
    cursor: pointer;
    padding: 8px;
    transition: var(--transition-premium);
}

.mobile-menu-btn:hover {
    color: var(--p-500);
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1900;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    background: var(--s-950);
    z-index: 2000;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.5);
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition-premium);
}

.mobile-menu a:hover {
    color: var(--p-500);
    padding-left: 8px;
    border-bottom-color: var(--p-500);
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    align-self: flex-end;
    cursor: pointer;
    padding: 8px;
    margin-bottom: 16px;
    transition: var(--transition-premium);
}

.mobile-menu-close:hover {
    color: var(--p-500);
    transform: rotate(90deg);
}

/* Responsive adjustments for mid-size screens */
@media (max-width: 1366px) {
    .nav-links {
        gap: 24px;
    }
    
    .nav-links a {
        font-size: 13px;
    }
}

/* Responsive Navigation */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-container {
        padding: 0 24px;
    }

    .hero-title {
        font-size: clamp(40px, 12vw, 64px);
    }
    
    .hero-content {
        padding: 0 24px;
    }

    .section-xl, .section-lg {
        padding: 80px 24px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .col-2, .row-2 {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-card {
        min-height: 300px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
