/* ===================================
   AETSA - Landing Page Styles
   Aparatos de Energía Termal SA de CV
   ================================== */

/* ===== CSS VARIABLES ===== */
:root {
    --blue: #2B3A8E;
    --blue-dark: #1E2A6E;
    --blue-light: #3D4FA8;
    --red: #8B2332;
    --red-light: #A83344;
    --red-dark: #6E1A27;

    --white: #FFFFFF;
    --off-white: #F8F9FC;
    --gray-100: #F1F3F8;
    --gray-200: #E2E6F0;
    --gray-300: #C8CEDB;
    --gray-400: #9AA0B4;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    --font: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --shadow-glow: 0 0 40px rgba(43,58,142,0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.15s; }
.reveal:nth-child(4) { transition-delay: 0.2s; }
.reveal:nth-child(5) { transition-delay: 0.25s; }
.reveal:nth-child(6) { transition-delay: 0.3s; }

/* ===== TYPOGRAPHY ===== */
.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
    background: rgba(43, 58, 142, 0.08);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.15;
    color: var(--gray-900);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.text-accent {
    color: var(--blue);
    position: relative;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 600px;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-desc {
    margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(43, 58, 142, 0.3);
}

.btn--primary:hover {
    background: var(--blue-dark);
    box-shadow: 0 6px 25px rgba(43, 58, 142, 0.4);
    transform: translateY(-2px);
}

.btn--ghost {
    color: var(--blue);
    border: 2px solid rgba(43, 58, 142, 0.2);
}

.btn--ghost:hover {
    border-color: var(--blue);
    background: rgba(43, 58, 142, 0.05);
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 10px 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.nav-logo-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 4px;
}

.navbar:not(.scrolled) .logo-red {
    fill: var(--red-light);
}

.nav-logo-text {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: var(--blue);
}

.navbar:not(.scrolled) .nav-logo-text {
    color: var(--white);
}

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    position: relative;
}

.navbar:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: var(--transition);
    border-radius: 1px;
}

.navbar:not(.scrolled) .nav-link::after {
    background: var(--white);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link--cta {
    background: var(--blue);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.nav-link--cta::after {
    display: none;
}

.nav-link--cta:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
}

.navbar:not(.scrolled) .nav-link--cta {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar:not(.scrolled) .nav-link--cta:hover {
    background: rgba(255, 255, 255, 0.25);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gray-800);
    transition: var(--transition);
    border-radius: 2px;
}

.navbar:not(.scrolled) .nav-toggle span {
    background: var(--white);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 40%, #3D4FA8 70%, var(--blue-dark) 100%);
}

.hero-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(139, 35, 50, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(61, 79, 168, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(139, 35, 50, 0.2) 0%, transparent 50%);
    animation: meshMove 15s ease-in-out infinite alternate;
}

@keyframes meshMove {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.05) translate(-2%, 1%); }
    100% { transform: scale(1) translate(1%, -1%); }
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 32px;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: #4ADE80;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-title--accent {
    background: linear-gradient(135deg, #FFFFFF 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-title--accent::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--red);
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.hero .btn--primary {
    background: var(--white);
    color: var(--blue);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero .btn--primary:hover {
    background: var(--off-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.hero .btn--ghost {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero .btn--ghost:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
}

.hero-fluids {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.hero-fluid {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-fluid-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-fluid-icon svg {
    stroke: rgba(255, 255, 255, 0.6);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    position: relative;
    overflow: hidden;
}

.hero-scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--white);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { top: -50%; }
    100% { top: 120%; }
}

/* ===== ABOUT ===== */
.about {
    padding: 120px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text {
    font-size: 1.05rem;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-text strong {
    color: var(--gray-700);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-200);
}

.stat-card--accent {
    background: var(--blue);
    color: var(--white);
}

.stat-card--accent .stat-label {
    color: rgba(255,255,255,0.7);
}

.stat-card--dark {
    background: var(--gray-900);
    color: var(--white);
}

.stat-card--dark .stat-label {
    color: rgba(255,255,255,0.6);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
    display: inline;
    letter-spacing: -0.02em;
}

.stat-suffix {
    font-size: 1.4rem;
    font-weight: 700;
    opacity: 0.7;
    display: inline;
    margin-left: 2px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
    margin-top: 8px;
}

/* ===== SERVICES (BENTO GRID) ===== */
.services {
    padding: 120px 0;
    background: var(--off-white);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bento-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.bento-card:hover::before {
    transform: scaleX(1);
}

.bento-card--large {
    grid-column: span 2;
}

.bento-card--engineering {
    position: relative;
    padding: 0;
}

.bento-card--engineering .bento-card-content {
    position: relative;
    z-index: 2;
    padding: 36px 28px;
    max-width: 55%;
}

.bento-card--with-bg {
    position: relative;
    padding: 0;
}

.bento-card--with-bg .bento-card-content {
    position: relative;
    z-index: 2;
    padding: 36px 28px;
}

.bento-card--with-bg .bento-card-bg-img {
    right: 0;
    top: 0;
    transform: none;
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
    opacity: 0.1;
    border-radius: var(--radius-lg);
}

.bento-card--with-bg:hover .bento-card-bg-img {
    opacity: 0.3;
}

.bento-card--accent.bento-card--with-bg .bento-card-bg-img {
    opacity: 0.15;
}

.bento-card--accent.bento-card--with-bg:hover .bento-card-bg-img {
    opacity: 0.35;
}

.bento-card-bg-img {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    max-height: 90%;
    object-fit: contain;
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
    transition: var(--transition);
}

.bento-card--engineering:hover .bento-card-bg-img {
    opacity: 0.3;
    right: -10px;
}

@media (max-width: 768px) {
    .bento-card--engineering .bento-card-content {
        max-width: 100%;
    }
    .bento-card--engineering .bento-card-bg-img {
        width: 60%;
        opacity: 0.07;
        right: -10px;
    }
}

@media (max-width: 480px) {
    .bento-card--with-bg {
        padding: 0;
    }
    .bento-card--with-bg .bento-card-content {
        padding: 28px 20px;
    }
    .bento-card--engineering {
        padding: 0;
    }
    .bento-card--engineering .bento-card-content {
        padding: 28px 20px;
    }
}

.bento-card--wide {
    grid-column: span 2;
}

.bento-card--accent {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
}

.bento-card--accent .bento-card-text {
    color: rgba(255, 255, 255, 0.75);
}

.bento-card--accent .bento-card-icon {
    background: rgba(255, 255, 255, 0.15);
}

.bento-card--accent .bento-card-icon svg {
    stroke: var(--white);
}

.bento-card--accent::before {
    background: var(--red);
}

.bento-card--dark {
    background: var(--gray-900);
    border-color: var(--gray-900);
    color: var(--white);
}

.bento-card--dark .bento-card-text {
    color: rgba(255, 255, 255, 0.65);
}

.bento-card--dark .bento-card-icon {
    background: rgba(255, 255, 255, 0.1);
}

.bento-card--dark .bento-card-icon svg {
    stroke: var(--white);
}

.bento-card--dark::before {
    background: var(--red);
}

.bento-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(43, 58, 142, 0.08);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.bento-card-icon svg {
    stroke: var(--blue);
}

.bento-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.bento-card-text {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.6;
}

.bento-card-tags {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(43, 58, 142, 0.08);
    color: var(--blue);
}

.bento-card--accent .tag {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.bento-card--dark .tag {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

/* ===== PRODUCTS ===== */
.products {
    padding: 120px 0;
    background: var(--white);
}

.products-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-500);
    border-radius: var(--radius-full);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    background: var(--white);
}

.tab-btn:hover {
    color: var(--blue);
    border-color: var(--blue);
}

.tab-btn.active {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

.tab-panel {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.product-card {
    background: var(--off-white);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

.product-card:hover {
    background: var(--white);
    border-color: var(--gray-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.product-card-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: var(--white);
    padding: 6px;
    flex-shrink: 0;
}

.product-card-body {
    flex: 1;
    min-width: 0;
}

.product-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--gray-800);
}

.product-card p {
    font-size: 0.85rem;
    color: var(--gray-400);
    line-height: 1.5;
}

/* Specs bar */
.specs-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 60px;
    padding: 28px 40px;
    background: var(--gray-900);
    border-radius: var(--radius-xl);
    flex-wrap: wrap;
}

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

.spec-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 4px;
}

.spec-value {
    font-size: 0.85rem;
    color: var(--white);
    font-weight: 500;
}

.spec-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* ===== PARTNERS MARQUEE ===== */
.partners {
    padding: 120px 0 80px;
    background: var(--off-white);
}

.marquee-wrapper {
    overflow: hidden;
    margin-top: 0;
    padding: 20px 0;
}

.marquee {
    display: flex;
    width: max-content;
}

.marquee-content {
    display: flex;
    gap: 16px;
    animation: marqueeScroll 40s linear infinite;
    padding-right: 16px;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.marquee-item {
    flex-shrink: 0;
    padding: 16px 28px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-600);
    white-space: nowrap;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    min-width: 160px;
}

.marquee-item img {
    max-height: 48px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.marquee-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.marquee-item--text {
    font-weight: 700;
    color: var(--gray-500);
    letter-spacing: 0.02em;
}

.marquee-item:hover {
    border-color: var(--blue);
    color: var(--blue);
    box-shadow: var(--shadow-md);
}

/* ===== CLIENTS ===== */
.clients {
    padding: 80px 0 120px;
    background: var(--off-white);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.client-item {
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    transition: var(--transition);
}

.client-item img {
    max-height: 55px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: var(--transition);
}

.client-item:hover {
    border-color: var(--blue);
    background: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.client-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ===== CONTACT ===== */
.contact {
    padding: 120px 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-desc {
    font-size: 1.05rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 36px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-detail-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(43, 58, 142, 0.08);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.contact-detail-icon svg {
    stroke: var(--blue);
}

.contact-detail-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
    margin-bottom: 2px;
}

.contact-detail-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
}

.contact-detail-value:hover {
    color: var(--blue);
}

/* Contact form */
.contact-form-wrapper {
    background: var(--off-white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group--full {
    grid-column: span 2;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 16px 8px;
    font-size: 0.95rem;
    font-family: var(--font);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--gray-800);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(43, 58, 142, 0.1);
}

.form-group label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: var(--gray-400);
    pointer-events: none;
    transition: var(--transition);
}

.form-group textarea ~ label {
    top: 20px;
    transform: none;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: 6px;
    transform: none;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--blue);
    letter-spacing: 0.02em;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form .btn {
    grid-column: span 2;
    margin-top: 8px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-900);
    padding: 80px 0 0;
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
}

.footer-logo span {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.footer-tagline {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 8px;
}

.footer-slogan {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.footer-grid h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
}

.footer-nav a,
.footer-services a,
.footer-contact a {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-nav a:hover,
.footer-services a:hover,
.footer-contact a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer-fluids {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer-dot {
    width: 4px;
    height: 4px;
    background: var(--red);
    border-radius: 50%;
}

/* ===== HOVER ONLY FOR POINTER DEVICES ===== */
@media (hover: hover) and (pointer: fine) {
    .bento-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-xl);
        border-color: transparent;
    }

    .bento-card:hover::before {
        transform: scaleX(1);
    }

    .product-card:hover {
        transform: translateY(-2px);
    }

    .stat-card:hover {
        transform: translateY(-4px);
    }

    .client-item:hover {
        transform: translateY(-3px);
    }
}

/* Touch device active states */
@media (hover: none) {
    .bento-card:active {
        box-shadow: var(--shadow-lg);
        border-color: var(--blue);
    }

    .product-card:active {
        background: var(--white);
        border-color: var(--blue);
    }

    .client-item:active {
        border-color: var(--blue);
    }

    .client-item:active img {
        filter: grayscale(0%);
        opacity: 1;
    }

    .marquee-item:active img {
        filter: grayscale(0%);
        opacity: 1;
    }

    .btn--primary:active {
        transform: scale(0.97);
    }
}

/* ===== RESPONSIVE ===== */

/* Extra large screens */
@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }

    .hero-content {
        max-width: 1320px;
    }

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

    .section-title {
        font-size: 3.5rem;
    }

    .clients-grid {
        max-width: 1100px;
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }
}

/* Tablet landscape */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

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

    .bento-card--large,
    .bento-card--wide {
        grid-column: span 2;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .clients-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

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

    .specs-bar {
        gap: 20px;
        padding: 24px 28px;
    }

    .partners,
    .services,
    .products,
    .about,
    .contact,
    .clients {
        padding: 90px 0;
    }

    .clients {
        padding-top: 60px;
    }
}

/* Tablet portrait / Large phones */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100dvh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        transition: var(--transition-slow);
        padding: 24px;
        padding-top: env(safe-area-inset-top, 0px);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links .nav-link {
        font-size: 1.2rem;
        color: var(--gray-800) !important;
        padding: 10px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .nav-links .nav-link--cta {
        color: var(--white) !important;
        width: 100%;
        text-align: center;
        justify-content: center;
        min-height: 48px;
    }

    .nav-toggle {
        display: flex;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

    .nav-toggle.active span {
        background: var(--gray-800) !important;
    }

    .hero {
        min-height: 100dvh;
    }

    .hero-content {
        padding: 100px 24px 80px;
    }

    .hero-title {
        font-size: clamp(2.2rem, 9vw, 3.5rem);
    }

    .hero-fluids {
        gap: 16px;
    }

    .hero-fluid {
        min-height: 44px;
    }

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

    .bento-card--large,
    .bento-card--wide {
        grid-column: span 1;
    }

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

    .products-tabs {
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    .products-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        padding: 10px 18px;
        font-size: 0.8rem;
        flex-shrink: 0;
        min-height: 44px;
    }

    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .client-item {
        height: 75px;
        padding: 14px;
    }

    .client-item img {
        max-height: 42px;
        max-width: 100px;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-group--full,
    .contact-form .btn {
        grid-column: span 1;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    .contact-form-wrapper {
        padding: 28px 20px;
    }

    .contact-form .btn {
        min-height: 48px;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    }

    .specs-bar {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .spec-divider {
        width: 40px;
        height: 1px;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 24px 16px;
    }

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

    .section-header {
        margin-bottom: 40px;
    }

    .partners,
    .services,
    .products,
    .about,
    .contact {
        padding: 70px 0;
    }

    .clients {
        padding: 50px 0 70px;
    }

    .marquee-item {
        height: 65px;
        min-width: 130px;
        padding: 12px 20px;
    }

    .marquee-item img {
        max-height: 36px;
        max-width: 110px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .client-item {
        height: 68px;
        padding: 12px;
    }

    .client-item img {
        max-height: 36px;
        max-width: 85px;
    }

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

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }

    .hero-fluids {
        flex-direction: column;
        gap: 12px;
    }

    .hero-badge {
        font-size: 0.75rem;
    }

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

    .bento-card {
        padding: 28px 20px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-text {
        font-size: 0.95rem;
    }

    .partners,
    .services,
    .products,
    .about,
    .contact {
        padding: 56px 0;
    }

    .clients {
        padding: 40px 0 56px;
    }
}

/* Very small phones (iPhone SE, Galaxy Fold) */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }

    .hero-content {
        padding: 90px 12px 60px;
    }

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

    .section-title {
        font-size: 1.6rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 20px 16px;
    }

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

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

    .product-card {
        padding: 12px 14px;
        gap: 12px;
    }

    .product-card-img {
        width: 60px;
        height: 60px;
    }

    .tab-btn {
        padding: 8px 14px;
        font-size: 0.75rem;
    }

    .contact-form-wrapper {
        padding: 20px 14px;
    }

    .specs-bar {
        padding: 20px 16px;
        border-radius: var(--radius-md);
    }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 0 40px;
    }

    .hero-content {
        padding: 80px 24px 40px;
    }

    .hero-fluids {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .hero-scroll {
        display: none;
    }

    .nav-links {
        height: 100dvh;
        overflow-y: auto;
    }
}

/* Tablet landscape specific */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .hero-title {
        font-size: clamp(2.5rem, 5vw, 3.5rem);
    }

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

/* ===== PRINT ===== */
@media print {
    .navbar,
    .hero-bg,
    .hero-scroll,
    .hero-particles {
        display: none;
    }

    .hero {
        min-height: auto;
        background: var(--white);
        color: var(--gray-900);
    }

    .hero-title {
        color: var(--gray-900);
    }

    .hero-subtitle,
    .hero-badge {
        color: var(--gray-700);
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .marquee-content {
        animation: none;
    }

    .client-item img,
    .marquee-item img {
        filter: none;
        opacity: 1;
    }
}

/* ===== SPINNER ===== */
.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== SELECTION ===== */
::selection {
    background: var(--blue);
    color: var(--white);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .hero-mesh {
        animation: none;
    }

    .marquee-content {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 10px rgba(37, 211, 102, 0.4));
    z-index: 9999;
    transition: transform 0.3s ease, filter 0.3s ease;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 16px rgba(37, 211, 102, 0.5));
}

.whatsapp-float svg {
    width: 60px;
    height: 60px;
}

.whatsapp-float:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }
    .whatsapp-float svg {
        width: 52px;
        height: 52px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
    }
    .whatsapp-float svg {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 360px) {
    .whatsapp-float {
        bottom: 12px;
        right: 12px;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .whatsapp-float {
        bottom: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
    }
    .whatsapp-float svg {
        width: 44px;
        height: 44px;
    }
}
