/* 
   SOHAM IoT - Custom Stylesheet
   Design Language: Deep Charcoal, Forge Orange, Steel Ice, DM Sans
   Aesthetics: Corporate B2B, Cloned Reference Layout, Premium Professional
   Inspiration: iottechnologies.mx
*/

/* ---------------------------------- */
/* 1. variables & Reset               */
/* ---------------------------------- */
:root {
    --bg-dark: #070A10; /* Fondo negro azulado profundo / Carbón */
    --bg-dark-accent: #0D1322;
    --text-light: #F8FAFC;
    --text-gray: #CBD5E1;     /* Contrast elevado para cuerpo de texto */
    --text-muted: #94A3B8;    /* Contrast elevado para subtítulos/etiquetas */
    --border-color: rgba(255, 255, 255, 0.12); /* Bordes definidos de 1px */
    
    --card-bg: rgba(15, 23, 42, 0.75);
    --glass-bg: rgba(11, 15, 25, 0.88);
    --glass-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.45);
    
    --font-headers: 'Space Grotesk', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    
    --transition-fast: 0.15s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Radius scale — 3 tiers, reemplaza los valores sueltos (4/6/8/10/12px) que convivían sin sistema.
       50%, 3px (barras de progreso) y 20px (píldoras) quedan fuera a propósito: son casos especiales, no tarjetas. */
    --radius-sm: 6px;  /* chips, badges, inputs, botones pequeños */
    --radius-md: 10px; /* contenedores medianos: brand-item, image-wrapper, icon-box */
    --radius-lg: 16px; /* tarjetas, paneles glass, modales */

    /* Dynamic Theme Mapping */
    --primary-accent: #3B82F6; /* Default Blue */
    --primary-accent-hover: #2563EB;
    --accent-glow: rgba(59, 130, 246, 0.18);
    --border-hover: rgba(59, 130, 246, 0.4);

    /* Legacy compatibility mappings */
    --primary-blue: var(--primary-accent);
    --primary-blue-hover: var(--primary-accent-hover);
    --steel-ice: var(--primary-accent);
    --muted-rust: var(--primary-accent);
    --muted-rust-hover: var(--primary-accent-hover);
}

.theme-portal {
    --primary-accent: #3B82F6; /* Corporate blue */
    --primary-accent-hover: #2563EB;
    --accent-glow: rgba(59, 130, 246, 0.18);
    --border-hover: rgba(59, 130, 246, 0.4);
    --secondary-accent: #94A3B8;
}

.theme-industry {
    --primary-accent: #F97316; /* Copper Naranja */
    --primary-accent-hover: #EA580C;
    --accent-glow: rgba(249, 115, 22, 0.18);
    --border-hover: rgba(249, 115, 22, 0.4);
    --secondary-accent: #60A5FA; /* Steel Ice */
}

.theme-smarthome {
    /* 60-30-10 Light Luxury Architectural Palette (Warm Plaster & Forest Sage) */
    --bg-dark: #FAF8F5; /* Soft Warm Plaster / White Base (60%) */
    --bg-dark-accent: #F3EFE9; /* Cream Accent Base */
    --text-light: #0F172A; /* Dark Slate Header Text */
    --text-gray: #334155; /* Slate Gray Body Text */
    --text-muted: #64748B; /* Muted Slate Text */
    --border-color: rgba(15, 23, 42, 0.12);
    
    --card-bg: #FFFFFF; /* 30% Structure White Container */
    --glass-bg: rgba(255, 255, 255, 0.94);
    --glass-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    
    --primary-accent: #059669; /* 10% Natural Forest Sage Green / Verde Sabio Orgánico */
    --primary-accent-hover: #047857;
    --accent-glow: rgba(5, 150, 105, 0.18);
    --border-hover: rgba(5, 150, 105, 0.4);

    --secondary-accent: #0F172A;
    --secondary-accent-hover: #1E293B;
    --secondary-accent-glow: rgba(15, 23, 42, 0.08);
}

.theme-labs {
    /* 60-30-10 Scientific High-Tech Palette */
    --bg-dark: #070A10; /* Deep Scientific Black Base (60%) */
    --bg-dark-accent: #0F172A;
    --text-light: #F8FAFC;
    --text-gray: #CBD5E1;
    --text-muted: #94A3B8;
    --border-color: rgba(255, 255, 255, 0.12);
    
    --card-bg: rgba(15, 23, 42, 0.85); /* 30% Structure Container */
    --glass-bg: rgba(7, 10, 16, 0.92);
    --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    
    --primary-accent: #00F2FE; /* 10% Electric Cyan / Biomedicina & R&D */
    --primary-accent-hover: #0284C7;
    --accent-glow: rgba(0, 242, 254, 0.18);
    --border-hover: rgba(0, 242, 254, 0.4);

    --secondary-accent: #0F172A;
    --secondary-accent-hover: #1E293B;
    --secondary-accent-glow: rgba(0, 242, 254, 0.1);
}

/* Motivo geométrico por rama — ver MANUAL_DE_MARCA.md §8.
   Home (§3567) y Labs (§3734) ya tienen textura de fondo propia y bien
   ejecutada (punteado sage / retícula cian) — no se pisa. Industria nunca
   tuvo esa pasada de pulido (esa sección solo cubre "Smart Home & Labs"),
   se completa aquí con la retícula técnica CAD que le corresponde. */
body.theme-industry {
    background-image: url('motifs/reticula-cad.svg');
    background-repeat: repeat;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ---------------------------------- */
/* 2. Typography & Base Elements      */
/* ---------------------------------- */
h1, h2, h3, h4 {
    font-family: var(--font-headers);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

p {
    color: var(--text-gray);
}

.cyan-text {
    color: var(--primary-accent);
}

.badge,
.hero-tagline {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--accent-glow);
    color: var(--primary-accent);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-body);
}

.btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none !important;
}

.btn-primary {
    background-color: var(--primary-accent);
    color: #FFFFFF;
    border: none;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--border-hover);
}

.btn-secondary,
.btn-outline {
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled),
.btn-outline:hover:not(:disabled) {
    border-color: var(--primary-accent);
    color: var(--text-light);
    background-color: var(--accent-glow);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ---------------------------------- */
/* 3. Header & Navigation             */
/* ---------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo-symbol {
    height: 44px; /* Increased from 36px */
    width: auto;
    display: block;
    transition: transform var(--transition-fast);
}

.brand-logo-text {
    height: 22px; /* Increased from 18px */
    width: auto;
    display: block;
    transition: opacity var(--transition-fast);
}

.logo-container:hover .brand-logo-symbol {
    transform: scale(1.04);
}

.logo-container:hover .brand-logo-text {
    opacity: 0.85;
}

.brand-logo-symbol-footer {
    height: 34px; /* Increased from 28px */
    width: auto;
    display: block;
}

.brand-logo-text-footer {
    height: 17px; /* Increased from 14px */
    width: auto;
    display: block;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.logo-container:hover .brand-logo-text-footer {
    opacity: 1;
}


.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Selector de Idiomas */
.lang-selector-container {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 0.2rem 0.4rem;
}

.lang-select {
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    padding-right: 0.25rem;
}

.lang-select option {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.main-nav {
    display: none;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-gray);
    transition: color var(--transition-fast);
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-light);
}

.btn-contact {
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.35rem 0.85rem !important;
    border-radius: var(--radius-sm);
    color: var(--text-light);
    background: transparent;
}

.btn-contact:hover {
    border-color: var(--primary-blue);
    background: var(--primary-blue);
    color: var(--text-light);
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.15);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: block;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    display: block;
    position: relative;
    width: 20px;
    height: 2px;
    background-color: var(--text-light);
    transition: background-color var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: var(--text-light);
    transition: transform var(--transition-fast);
}

.hamburger::before {
    top: -5px;
}

.hamburger::after {
    top: 5px;
}

/* Active Hamburger */
.mobile-nav-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: translateY(5px) rotate(45deg);
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: translateY(-5px) rotate(-45deg);
}

/* ---------------------------------- */
/* 4. Hero Section                    */
/* ---------------------------------- */
.hero-section {
    position: relative;
    padding: 140px 0 80px 0;
    min-height: min(90vh, 760px);
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Motivo de rama: celosía hexagonal — eje de identidad de Soham Home
   (ver MANUAL_DE_MARCA.md §8.A). Solo en el hero, es una textura bounded,
   no compite con el punteado sutil que ya tiene todo el body. */
.theme-smarthome .hero-section {
    background-image: url('motifs/celosia.svg');
    background-size: 44px 44px;
    background-repeat: repeat;
}

.hero-glow {
    position: absolute;
    top: 5%;
    right: 5%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-bg-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-bg-slide.active {
    opacity: 1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (min-width: 992px) {
    .hero-container {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 3.5rem;
    }
}

.hero-content {
    max-width: 620px;
}

/* Hero Text & Elements MUST ALWAYS be high-contrast white over background photo overlay */
.hero-title,
.hero-section .hero-title {
    font-size: 2.75rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-bottom: 1.25rem !important;
    color: #FFFFFF !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7) !important;
}

.hero-subtitle,
.hero-section .hero-subtitle {
    font-size: 1.05rem !important;
    margin-bottom: 2rem !important;
    font-weight: 400 !important;
    line-height: 1.7 !important;
    color: #F1F5F9 !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7) !important;
}

.hero-section .badge,
.hero-section .hero-tagline {
    background: rgba(15, 23, 42, 0.75) !important;
    border: 1px solid var(--primary-accent) !important;
    color: #FFFFFF !important;
    padding: 0.4rem 0.9rem !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.hero-section .btn-secondary,
.hero-section .btn-outline {
    background-color: rgba(15, 23, 42, 0.65) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.hero-section .btn-secondary:hover,
.hero-section .btn-outline:hover {
    background-color: var(--primary-accent) !important;
    border-color: var(--primary-accent) !important;
    color: #FFFFFF !important;
    box-shadow: 0 6px 20px var(--accent-glow) !important;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
    align-items: center;
}

.hero-logo-background {
    position: absolute;
    width: 320px;
    height: 320px;
    opacity: 0.1; /* Subtle, glowing mecatrónico background watermark */
    z-index: 0;
    pointer-events: none;
    filter: drop-shadow(0 0 15px rgba(249, 115, 22, 0.15));
}

.hero-brand-logo-glow {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tech-card-wrapper {
    position: relative;
    width: 100%;
    max-width: 380px;
    z-index: 1;
}

/* Hero Overlapping Scene Visuals */
.hero-scene-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px; /* Increased from 420px to make the photo and card larger */
    z-index: 1;
    overflow: visible; /* Ensure overlay elements are never clipped */
}

.hero-main-photo {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    display: block;
}

.hero-visual .tech-card-wrapper {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    margin-top: 1.5rem;
    z-index: 2;
}

/* Portfolio Card Zoom Images */
.portfolio-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
    display: block;
}

.portfolio-card:hover .portfolio-card-img {
    transform: scale(1.06);
}

.tech-card,
.hero-tech-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    width: 100%;
}

.card-header,
.tech-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

.status-dot,
.tech-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-dot.online,
.tech-status-dot.active {
    background-color: #10B981;
    box-shadow: 0 0 6px #10B981;
    animation: pulse 2s infinite;
}

.card-title,
.tech-status-text {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-gray);
}

.card-data,
.tech-card-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.data-item,
.tech-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(255,255,255,0.03);
    padding-bottom: 0.35rem;
}

.data-label,
.tech-label {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.data-value,
.tech-value {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
}

.data-value .unit {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 400;
}

.card-chart {
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
}

.chart-svg {
    width: 100%;
    height: 60px; /* Increased from 45px to prevent line from feeling squished */
}

.chart-line {
    stroke: var(--primary-blue);
    animation: drawPath 3s ease-in-out infinite alternate;
}

/* ---------------------------------- */
/* 4.1 Métricas / Estadísticas       */
/* ---------------------------------- */
.metrics-section {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-dark-accent);
}

.metrics-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

.metric-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.metric-number {
    font-family: var(--font-headers);
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
}

.metric-text {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* ---------------------------------- */
/* 5. Soluciones IoT Section          */
/* ---------------------------------- */
.soluciones-section {
    padding: 90px 0;
    position: relative;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-dark);
}

.soluciones-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .soluciones-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .soluciones-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.75rem;
    }
}

.solucion-card-img-wrapper {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.25rem;
    position: relative;
    border: 1px solid var(--border-color);
}

.solucion-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
    display: block;
}

.solucion-card:hover .solucion-card-img {
    transform: scale(1.06);
}

.solucion-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-smooth);
}

.solucion-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 35px var(--accent-glow);
}

.solucion-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    transition: all var(--transition-fast);
}

.solucion-card:hover .solucion-icon {
    background-color: var(--primary-accent);
    border-color: var(--primary-accent);
    color: #FFFFFF;
    box-shadow: 0 0 15px var(--accent-glow);
}

.solucion-card-title,
.solucion-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.solucion-card-text,
.solucion-desc {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.65;
}

/* ---------------------------------- */
/* 6. Soporte e Integración Multimarca */
/* ---------------------------------- */
.brands-section {
    padding: 70px 0;
    position: relative;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-dark-accent);
    text-align: center;
}

/* Partner CTA — banda dirigida a fabricantes/proveedores, no al cliente final */
.partner-cta-section {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-dark);
}

.partner-cta-box {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    padding: 2.25rem 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-accent);
    border-radius: var(--radius-lg);
}

.partner-cta-title {
    font-family: var(--font-headers);
    font-size: 1.5rem;
    color: var(--text-light);
    margin: 0.75rem 0 0.75rem 0;
    letter-spacing: -0.01em;
}

.partner-cta-text {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.theme-smarthome .partner-cta-section {
    background: #FAF8F5 !important;
}

.theme-smarthome .partner-cta-box {
    background: #FFFFFF;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-left: 4px solid var(--primary-accent);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.theme-smarthome .partner-cta-title {
    color: #1E293B;
}

.theme-smarthome .partner-cta-text {
    color: #475569;
}

.brands-section-title {
    font-family: var(--font-headers);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.brands-section-subtitle {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 2.25rem;
}

.brands-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem 3.5rem;
}

.brand-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: default;
    height: 58px;
    box-sizing: border-box;
}

.brand-item:hover {
    border-color: var(--primary-accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--accent-glow);
    background: rgba(255, 255, 255, 0.08);
}

.brand-logo-img {
    max-height: 32px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(30%) opacity(0.9);
    transition: all var(--transition-fast);
}

.brand-item:hover .brand-logo-img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* Logos-icono (marca cuadrada, ej. Siemens/Mitsubishi/Sonos) pesan menos visualmente
   que los wordmarks anchos — se agranda su tope para emparejar densidad visual. */
.brand-logo-img.icon-mark {
    height: 40px;
    width: 40px;
    max-height: 40px;
    max-width: 40px;
}

.theme-smarthome .brand-item,
.theme-labs .brand-item {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.theme-smarthome .brand-item:hover,
.theme-labs .brand-item:hover {
    background: #FFFFFF;
    border-color: var(--primary-accent);
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.15);
}

/* WeChat QR Discreto para Partners */
.wechat-qr-discreet {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-color);
    text-align: left;
}

.wechat-qr-discreet .wechat-qr-image-wrapper {
    background-color: #FFFFFF;
    padding: 0.35rem;
    border-radius: var(--radius-sm);
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.wechat-qr-img-small {
    display: block;
    width: 130px; /* Increased from 60px to 130px for direct scanning capability */
    height: 130px;
    transition: transform var(--transition-fast);
}

.wechat-qr-img-small:hover {
    transform: scale(1.04);
}

.wechat-qr-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.wechat-qr-label {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-light);
}

.wechat-qr-subtext {
    font-size: 0.7rem;
    color: var(--text-gray);
    line-height: 1.45;
}

/* ---------------------------------- */
/* 7. Services Section (B2B Core)     */
/* ---------------------------------- */
.services-section {
    padding: 80px 0;
    position: relative;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-dark);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3.5rem auto;
}

.section-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    font-size: 0.725rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: var(--font-headers);
    background: var(--accent-glow);
    color: var(--primary-accent);
    border: 1px solid var(--border-hover);
    border-radius: 20px;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-headers);
    font-size: 2.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-light);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.65;
    max-width: 680px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.75rem;
    }
}

.service-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem;
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-smooth);
}

.service-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 35px var(--accent-glow);
}

.service-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    color: var(--primary-accent);
}

.service-card:hover .service-icon-wrapper {
    background-color: var(--primary-accent);
    color: #FFFFFF;
    box-shadow: 0 0 15px var(--accent-glow);
}

.service-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.service-card-text {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.65;
}

/* ---------------------------------- */
/* 8. Portfolio Section (I+D / Cases) */
/* ---------------------------------- */
.portfolio-section {
    padding: 90px 0;
    background-color: var(--bg-dark-accent);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

.portfolio-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-smooth);
}

.portfolio-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 35px var(--accent-glow);
}

.card-visual-placeholder {
    height: 180px;
    background-color: #060910;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.iiot-card-bg {
    background: radial-gradient(circle at center, var(--accent-glow) 0%, #060910 80%);
}

.medical-card-bg {
    background: radial-gradient(circle at center, var(--accent-glow) 0%, #060910 80%);
}

.schema-graph {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.node-icon {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    background-color: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-gray);
}

.node-icon.cyan-border {
    border-color: var(--primary-accent);
    color: var(--primary-accent);
}

.node-icon.bg-gradient {
    background: var(--primary-accent);
    color: #FFFFFF;
    border: none;
}

.connector-line {
    width: 20px;
    height: 1px;
    background-color: var(--border-color);
}

.medical-heart-wave {
    width: 60%;
}

.heart-wave-svg {
    width: 100%;
}

.pulse-line {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawPulse 5s linear infinite;
}

.portfolio-card-content {
    padding: 1.75rem;
}

.card-category {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--accent-glow);
    color: var(--primary-accent);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-sm);
    margin-bottom: 0.85rem;
}

.portfolio-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.portfolio-card-text {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.65;
}

/* ---------------------------------- */
/* 8.1 Testimonios Section           */
/* ---------------------------------- */
.testimonials-section {
    padding: 90px 0;
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

.testimonial-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-smooth);
}

.testimonial-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 35px var(--accent-glow);
}

.testimonial-card::before {
    content: '“';
    position: absolute;
    top: -15px;
    left: 15px;
    font-family: var(--font-headers);
    font-size: 5rem;
    color: var(--accent-glow);
    line-height: 1;
    opacity: 0.6;
}

.test-quote,
.testimonial-quote {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-light);
    line-height: 1.65;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.test-author,
.testimonial-author {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.testimonial-company {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.testimonial-author-info {
    margin-top: 1.5rem;
    border-top: 1px dashed var(--border-color);
    padding-top: 1rem;
}

/* ---------------------------------- */
/* 8.2 Wizard de Diagnóstico Section */
/* ---------------------------------- */
.wizard-section {
    padding: 80px 0;
    background-color: var(--bg-dark-accent);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.wizard-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .wizard-container {
        grid-template-columns: 1fr 1.2fr;
        gap: 4rem;
    }
}

.wizard-info {
    max-width: 500px;
}

.wizard-box {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 580px;
    box-shadow: var(--glass-shadow);
}

.wizard-progress-bar {
    width: 100%;
    height: 6px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 3px;
    margin-bottom: 1.25rem;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 20%;
    background-color: var(--primary-accent);
    border-radius: 3px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px var(--accent-glow);
}

.wizard-step-counter {
    display: block;
    font-family: var(--font-headers);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-accent);
    margin-bottom: 1.5rem;
}

.wizard-steps-container {
    margin-bottom: 2rem;
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeInStep 0.4s ease;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-question {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.45;
    margin-bottom: 1.5rem;
}

.wizard-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wizard-opt {
    display: flex;
    width: 100%;
    text-align: left;
    background-color: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    color: var(--text-gray);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.wizard-opt:hover {
    border-color: var(--border-hover);
    background-color: var(--accent-glow);
    color: var(--text-light);
    transform: translateX(4px);
}

.wizard-opt.selected {
    border-color: var(--primary-accent);
    background-color: var(--accent-glow);
    color: #FFFFFF;
    font-weight: 600;
    box-shadow: 0 0 12px var(--accent-glow);
}

.wizard-final-desc {
    font-size: 0.88rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.wizard-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wizard-nav-btns {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

/* ---------------------------------- */
/* 9. Contact Section                 */
/* ---------------------------------- */
.contact-section {
    padding: 80px 0;
    position: relative;
    background-color: var(--bg-dark);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.contact-info {
    max-width: 480px;
}

.info-items {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: rgba(255,255,255,0.01);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--primary-blue);
}

.info-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-gray);
}

.info-value {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Form Styles */
.contact-form-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-md);
    padding: 2rem;
    width: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.15rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.8rem 1rem;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    width: 100%;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25em;
    padding-right: 2.5rem;
}

.form-group select option {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
    resize: vertical;
}

/* ---------------------------------- */
/* 10. Footer Extendido               */
/* ---------------------------------- */
.main-footer {
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-dark-accent);
    padding: 4.5rem 0 2rem 0;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.footer-extended-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
    .footer-extended-grid {
        grid-template-columns: 1.5fr repeat(3, 1fr);
        gap: 2.5rem;
    }
}

.brand-summary {
    max-width: 320px;
}

.footer-summary-text {
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-top: 1rem;
}

.footer-col-title {
    font-family: var(--font-headers);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--text-gray);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-light);
}

.footer-bottom-container {
    border-top: 1px solid var(--border-color);
    padding-top: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
}

.footer-moto {
    font-family: var(--font-headers);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.15);
}

/* ---------------------------------- */
/* 11. Keyframes & Animations         */
/* ---------------------------------- */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes drawPath {
    from {
        stroke-dasharray: 0 1000;
    }
    to {
        stroke-dasharray: 1000 0;
    }
}

@keyframes drawPulse {
    0% {
        stroke-dashoffset: 200;
    }
    50% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -200;
    }
}

.rotate-infinite {
    animation: slowRotate 25s linear infinite;
}

@keyframes slowRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Wizard Success State Styles */
.wizard-success-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
}

.success-icon-wrapper {
    background-color: rgba(249, 115, 22, 0.06);
    border: 1px solid rgba(249, 115, 22, 0.18);
    border-radius: 50%;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.15);
}

.success-icon-wrapper svg {
    display: block;
}

.text-center {
    text-align: center;
}

/* ---------------------------------- */
/* 12. Media Queries (Responsiveness) */
/* ---------------------------------- */
@media (min-width: 768px) {
    .main-nav {
        display: block;
    }
    
    .mobile-nav-toggle {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 2.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }

    .metrics-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .soluciones-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wizard-container {
        grid-template-columns: 0.82fr 1.18fr;
        gap: 2.5rem;
    }
    
    .contact-container {
        grid-template-columns: 1.1fr 0.9fr;
    }
    
    .footer-extended-grid {
        grid-template-columns: 1.5fr repeat(4, 1fr);
        gap: 2rem;
    }

    .footer-bottom-container {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .soluciones-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-dark);
        border-top: 1px solid var(--border-color);
        padding: 3rem 1.5rem;
        transform: translateX(100%);
        transition: transform var(--transition-fast);
        display: block;
        z-index: 999;
    }
    
    .main-nav[aria-hidden="false"] {
        transform: translateX(0);
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    
    .nav-link {
        font-size: 1.15rem;
    }
    
    .btn-contact {
        display: inline-block;
        width: 100%;
        text-align: center;
        padding: 0.75rem !important;
    }

    .hero-scene-wrapper {
        max-width: 100%;
    }

    .hero-visual .tech-card-wrapper {
        position: relative;
        bottom: 0;
        left: 0;
        width: 100%;
        margin-top: 1.5rem;
    }

    .wechat-qr-discreet {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
}

/* ---------------------------------- */
/* 5.0 Soham Domótica & Checkout      */
/* ---------------------------------- */
.domotica-section {
    padding: 100px 0;
    position: relative;
    background-color: var(--bg-dark);
}

.domotica-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    margin-top: 3rem;
    align-items: start;
}

.domotica-options {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.domotica-card {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.domotica-card-img-wrapper {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.domotica-card-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.domotica-card:hover .domotica-card-thumbnail {
    transform: scale(1.05);
}

.domotica-card-body {
    flex-grow: 1;
}

.domotica-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background-color: transparent;
    transition: background-color var(--transition-fast);
}

.domotica-card:hover {
    border-color: rgba(249, 115, 22, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.domotica-card.active {
    border-color: rgba(249, 115, 22, 0.6);
    background: rgba(249, 115, 22, 0.03);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.1);
}

.domotica-card.active::after {
    background-color: var(--primary-accent);
}

.domotica-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

/* Custom Checkbox */
.domotica-checkbox-container {
    display: block;
    position: relative;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.domotica-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.domotica-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.domotica-checkbox-container:hover input ~ .domotica-checkmark {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-accent);
}

.domotica-checkbox-container input:checked ~ .domotica-checkmark {
    background-color: var(--primary-accent);
    border-color: var(--primary-accent);
}

.domotica-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.domotica-checkbox-container input:checked ~ .domotica-checkmark:after {
    display: block;
}

.domotica-checkbox-container .domotica-checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.domotica-card-title-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
    gap: 0.5rem;
}

.domotica-card-title {
    font-family: var(--font-header);
    font-size: 1.15rem;
    color: var(--text-light);
    margin: 0;
}

.domotica-card-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-accent);
}

.domotica-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    padding-left: 2.25rem;
}

/* Summary Card */
.domotica-summary-wrapper {
    position: sticky;
    top: 100px;
}

.domotica-summary-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--glass-shadow);
}

.domotica-summary-card .summary-title {
    font-family: var(--font-header);
    font-size: 1.3rem;
    color: var(--text-light);
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.summary-empty-msg {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
    padding: 2rem 0;
}

.summary-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.summary-item-row .name {
    color: var(--text-light);
}

.summary-item-row .price {
    color: var(--primary-accent);
    font-weight: 700;
}

.summary-breakdown {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0.5rem 0;
}

.summary-row .summary-val {
    color: var(--text-light);
}

.summary-row.total-row {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
    margin-top: 0.75rem;
    padding-top: 1rem;
}

.summary-row.total-row .highlight {
    color: var(--primary-accent);
    font-size: 1.25rem;
}

/* Checkout Form inside Card */
.domotica-checkout-form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    animation: fadeIn var(--transition-normal) ease;
}

.domotica-checkout-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.domotica-checkout-form label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.domotica-checkout-form input {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.domotica-checkout-form input:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.15);
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-pay-trigger {
    width: 100%;
    margin-top: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem !important;
}

/* ---------------------------------- */
/* 5.1 Payment Modal & Backdrop       */
/* ---------------------------------- */
.payment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 10, 16, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.payment-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.payment-modal-container {
    background: #0B0F19;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.payment-modal-overlay.open .payment-modal-container {
    transform: translateY(0);
}

.payment-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.75rem;
    cursor: pointer;
    z-index: 10;
    transition: color var(--transition-fast);
}

.payment-modal-close:hover {
    color: var(--text-light);
}

.payment-modal-header {
    padding: 1.75rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.01);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 3.5rem; /* Space for close button */
}

.payment-gateway-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-header);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
}

.payment-summary-total {
    text-align: right;
}

.payment-summary-total .total-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.payment-summary-total .total-val {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-accent);
}

.payment-modal-body {
    padding: 2rem;
}

.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-method-btn {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
}

.payment-method-btn:hover {
    border-color: rgba(249, 115, 22, 0.3);
    color: var(--text-light);
}

.payment-method-btn.active {
    background-color: rgba(249, 115, 22, 0.05);
    border-color: var(--primary-accent);
    color: var(--text-light);
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.1);
}

/* 3D Visual Card Flip Animation */
.visual-card-scene {
    width: 100%;
    height: 180px;
    perspective: 1000px;
    margin-bottom: 2rem;
}

.visual-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.visual-card.flipped {
    transform: rotateY(180deg);
}

.visual-card-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.visual-card-front {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    color: #F8FAFC;
    overflow: hidden;
}

.visual-card-front .card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(249,115,22,0.12) 0%, transparent 60%);
    pointer-events: none;
}

.visual-card-back {
    background: linear-gradient(135deg, #0F172A 0%, #020617 100%);
    color: #F8FAFC;
    transform: rotateY(180deg);
    padding: 1.5rem 0 1.5rem 0; /* Stripe needs 0 left/right padding */
}

/* Card details */
.card-header-logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-text-logo {
    font-family: var(--font-header);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    color: var(--primary-accent);
}

.card-logo-symbol {
    height: 26px;
    width: auto;
}

.card-chip {
    width: 38px;
    height: 30px;
    margin-top: 0.5rem;
}

.chip-svg {
    width: 100%;
    height: 100%;
}

.card-number-display {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.3rem;
    letter-spacing: 0.1em;
    color: #F1F5F9;
    margin: 1rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.card-footer-info {
    display: flex;
    justify-content: space-between;
}

.card-footer-info .info-block {
    display: flex;
    flex-direction: column;
}

.card-footer-info .label {
    font-size: 0.6rem;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.card-footer-info .val {
    font-size: 0.85rem;
    font-weight: 600;
    color: #E2E8F0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Card back details */
.card-stripe {
    width: 100%;
    height: 40px;
    background-color: #000000;
    margin-top: 0.5rem;
}

.card-signature-area {
    margin: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    background: repeating-linear-gradient(
        45deg,
        #1E293B,
        #1E293B 4px,
        #334155 4px,
        #334155 8px
    );
    height: 36px;
    border-radius: var(--radius-sm);
    padding-right: 0.5rem;
}

.signature-line {
    flex-grow: 1;
}

.cvc-display-box {
    background-color: #FFFFFF;
    color: #0F172A;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 4px 8px;
    border-radius: 3px;
    letter-spacing: 0.05em;
    min-width: 30px;
    text-align: center;
}

.card-footer-back {
    padding: 0 1.5rem;
    font-size: 0.55rem;
    color: #475569;
    text-align: right;
    letter-spacing: 0.1em;
}

/* Payment Gateway form inputs */
.payment-gateway-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-gateway-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.payment-gateway-form .form-row-2 {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1rem;
}

.payment-gateway-form label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.payment-gateway-form input {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.9rem;
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.payment-gateway-form input:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.15);
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-pay-now {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.9rem !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.paypal-checkout-box {
    text-align: center;
    padding: 2rem 1rem;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    background-color: rgba(255, 255, 255, 0.01);
}

.paypal-logo-text {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.paypal-logo-text i:first-child {
    color: #003087;
}

.paypal-logo-text i:last-child {
    color: #0079C1;
}

.paypal-info-msg {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 1rem 0 1.5rem 0;
}

.btn-paypal-checkout {
    background-color: #FFC439;
    border: none;
    border-radius: 20px;
    color: #111;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.75rem 2rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background-color var(--transition-fast);
}

.btn-paypal-checkout:hover {
    background-color: #E5AF30;
}

.btn-paypal-checkout b {
    color: #003087;
}

/* Spinner Processing State */
.payment-spinner-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1rem;
}

.payment-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(249, 115, 22, 0.1);
    border-top-color: var(--primary-accent);
    border-radius: 50%;
    animation: spin 1s infinite linear;
    margin-bottom: 1.5rem;
}

.processing-title {
    font-family: var(--font-header);
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.processing-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Success State Animations */
.payment-success-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0;
}

.payment-success-wrapper .success-icon-wrapper {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.success-check-svg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 4;
    stroke: #10B981;
    stroke-miterlimit: 10;
    box-shadow: inset 0 0 0 #10B981;
    animation: fillGreen .4s ease-in-out .4s forwards, scaleCheck .3s ease-in-out .9s both;
}

.success-check-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 4;
    stroke-miterlimit: 10;
    stroke: #10B981;
    fill: none;
    animation: strokeArc .6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-check-mark {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: strokeArc .3s cubic-bezier(0.65, 0, 0.45, 1) .8s forwards;
}

.success-title {
    font-family: var(--font-header);
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.success-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 360px;
}

.receipt-download-box {
    width: 100%;
    margin-bottom: 2rem;
}

.btn-download-receipt {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-light) !important;
    padding: 0.75rem !important;
    font-size: 0.85rem !important;
}

.btn-download-receipt:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.btn-pay-done {
    width: 100%;
    padding: 0.9rem !important;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes strokeArc {
    100% { stroke-dashoffset: 0; }
}

@keyframes scaleCheck {
    0%, 100% { transform: none; }
    50% { transform: scale3d(1.1, 1.1, 1); }
}

@keyframes fillGreen {
    100% { box-shadow: inset 0px 0px 0px 40px rgba(16, 185, 129, 0.05); }
}

/* Responsive Grid and heights */
@media (max-width: 991px) {
    .domotica-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .domotica-summary-wrapper {
        position: relative;
        top: 0;
    }
}

@media (max-width: 480px) {
    .visual-card-scene {
        height: 150px;
    }
    .card-number-display {
        font-size: 1rem;
    }
    .card-footer-info .val {
        max-width: 120px;
        font-size: 0.75rem;
    }
    .payment-modal-body {
        padding: 1.5rem;
    }
    .payment-methods {
        gap: 0.5rem;
    }
    .payment-method-btn {
        font-size: 0.75rem;
        padding: 0.6rem 0.25rem;
    }
}

/* ---------------------------------- */
/* 6.0 Portal de Entrada (index.html) */
/* ---------------------------------- */
.portal-body {
    background-color: #070A10;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.portal-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
}

.portal-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.portal-header-wrapper {
    text-align: center;
    margin-bottom: 4rem;
}

.portal-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.portal-brand-logo .symbol {
    height: 48px;
    width: auto;
}

.portal-brand-logo .text {
    height: 24px;
    width: auto;
}

.portal-header-wrapper .title {
    font-family: var(--font-headers);
    font-size: 2.2rem;
    color: #FFFFFF;
    margin: 0 0 1rem 0;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.portal-header-wrapper .subtitle {
    font-size: 1.05rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}

@media (max-width: 991px) {
    .portal-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.portal-card {
    position: relative;
    height: 460px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem 2rem;
    box-sizing: border-box;
    background-color: var(--card-bg);
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(7, 10, 16, 0.95) 0%, rgba(7, 10, 16, 0.6) 50%, rgba(7, 10, 16, 0.2) 100%);
    z-index: 2;
}

.portal-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    filter: grayscale(80%) blur(0.5px);
    z-index: 1;
}

.portal-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 65%);
    pointer-events: none;
    z-index: 2;
    transition: all 0.5s ease;
}

.portal-card-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.portal-card-badge {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.04);
}

.portal-card-title {
    font-family: var(--font-headers);
    font-size: 1.65rem;
    color: #FFFFFF;
    margin: 0 0 0.85rem 0;
    font-weight: 700;
    transition: transform 0.4s ease;
}

.portal-card-desc {
    font-size: 0.92rem;
    color: var(--text-gray);
    line-height: 1.65;
    margin: 0 0 2rem 0;
    opacity: 1;
    transition: all 0.4s ease;
}

.portal-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.02);
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-sm);
    transition: all 0.4s ease;
}

.portal-card-btn .arrow-icon {
    transition: transform 0.3s ease;
}

/* Hover Theme Customizations */
.portal-card.card-industry:hover {
    border-color: #F97316;
    box-shadow: 0 15px 35px rgba(249, 115, 22, 0.15);
    transform: translateY(-5px);
}
.portal-card.card-industry .portal-card-badge {
    color: #F97316;
    border-color: rgba(249, 115, 22, 0.2);
    background-color: rgba(249, 115, 22, 0.05);
}
.portal-card.card-industry:hover .portal-card-bg {
    opacity: 0.3;
    filter: grayscale(0%) blur(0px);
    transform: scale(1.05);
}
.portal-card.card-industry:hover .portal-card-glow {
    background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, transparent 65%);
}
.portal-card.card-industry .portal-card-btn {
    border-color: rgba(249, 115, 22, 0.2);
}
.portal-card.card-industry:hover .portal-card-btn {
    background-color: #F97316;
    border-color: #F97316;
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
}
.portal-card.card-industry:hover .portal-card-btn .arrow-icon {
    transform: translateX(4px);
}

.portal-card.card-smarthome:hover {
    border-color: #059669;
    box-shadow: 0 15px 35px rgba(5, 150, 105, 0.15);
    transform: translateY(-5px);
}
.portal-card.card-smarthome .portal-card-badge {
    color: #059669;
    border-color: rgba(5, 150, 105, 0.2);
    background-color: rgba(5, 150, 105, 0.05);
}
.portal-card.card-smarthome:hover .portal-card-bg {
    opacity: 0.3;
    filter: grayscale(0%) blur(0px);
    transform: scale(1.05);
}
.portal-card.card-smarthome:hover .portal-card-glow {
    background: radial-gradient(circle, rgba(5, 150, 105, 0.08) 0%, transparent 65%);
}
.portal-card.card-smarthome .portal-card-btn {
    border-color: rgba(5, 150, 105, 0.2);
}
.portal-card.card-smarthome:hover .portal-card-btn {
    background-color: #059669;
    border-color: #059669;
    box-shadow: 0 0 15px rgba(5, 150, 105, 0.3);
}
.portal-card.card-smarthome:hover .portal-card-btn .arrow-icon {
    transform: translateX(4px);
}

.portal-card.card-labs:hover {
    border-color: #0284C7;
    box-shadow: 0 15px 35px rgba(2, 132, 199, 0.15);
    transform: translateY(-5px);
}
.portal-card.card-labs .portal-card-badge {
    color: #0284C7;
    border-color: rgba(2, 132, 199, 0.2);
    background-color: rgba(2, 132, 199, 0.05);
}
.portal-card.card-labs:hover .portal-card-bg {
    opacity: 0.3;
    filter: grayscale(0%) blur(0px);
    transform: scale(1.05);
}
.portal-card.card-labs:hover .portal-card-glow {
    background: radial-gradient(circle, rgba(2, 132, 199, 0.08) 0%, transparent 65%);
}
.portal-card.card-labs .portal-card-btn {
    border-color: rgba(2, 132, 199, 0.2);
}
.portal-card.card-labs:hover .portal-card-btn {
    background-color: #0284C7;
    border-color: #0284C7;
    box-shadow: 0 0 15px rgba(2, 132, 199, 0.3);
}
.portal-card.card-labs:hover .portal-card-btn .arrow-icon {
    transform: translateX(4px);
}

/* Responsive portal design */
@media (max-width: 991px) {
    .portal-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        gap: 1.5rem;
    }
    
    .portal-card {
        height: 380px;
        padding: 2rem;
    }
    
    .portal-header-wrapper {
        margin-bottom: 2.5rem;
    }
    
    .portal-header-wrapper .title {
        font-size: 1.8rem;
    }
}

/* ---------------------------------- */
/* 7.0 Adjustments for Smart Home Light Mode */
/* ---------------------------------- */
.theme-smarthome .brand-logo-symbol,
.theme-smarthome .brand-logo-text {
    filter: brightness(0.1) contrast(1.2);
}

.theme-smarthome .hamburger,
.theme-smarthome .hamburger::before,
.theme-smarthome .hamburger::after {
    background-color: #1E293B;
}

.theme-smarthome .mobile-nav-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.theme-smarthome input,
.theme-smarthome select {
    background-color: rgba(0, 0, 0, 0.02) !important;
    color: #1E293B !important;
    border-color: rgba(30, 41, 59, 0.15) !important;
}

.theme-smarthome input:focus,
.theme-smarthome select:focus {
    background-color: #FFFFFF !important;
    border-color: var(--primary-accent) !important;
    box-shadow: 0 0 8px rgba(22, 163, 74, 0.15) !important;
}

.theme-smarthome .nav-link {
    color: #475569;
}

.theme-smarthome .nav-link:hover,
.theme-smarthome .nav-link.active {
    color: var(--primary-accent);
}

.theme-smarthome .btn-contact {
    border-color: rgba(22, 163, 74, 0.3) !important;
}

.theme-smarthome .btn-contact:hover {
    background-color: var(--primary-accent) !important;
    color: #FFFFFF !important;
}

.theme-smarthome .domotica-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.theme-smarthome .domotica-card:hover {
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.06);
}

.theme-smarthome .domotica-card.active {
    background: rgba(22, 163, 74, 0.02);
}

.theme-smarthome .domotica-summary-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.theme-smarthome .summary-item-row {
    border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
}

.theme-smarthome .summary-breakdown {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.theme-smarthome .summary-row.total-row {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.theme-smarthome .payment-modal-close {
    color: #64748B;
}

.theme-smarthome .payment-modal-close:hover {
    color: #1E293B;
}

.theme-smarthome .payment-method-btn {
    border-color: rgba(0, 0, 0, 0.08);
}

.theme-smarthome .payment-method-btn.active {
    background-color: rgba(22, 163, 74, 0.05);
}

.theme-smarthome .card-signature-area {
    background: repeating-linear-gradient(
        45deg,
        #F1F5F9,
        #F1F5F9 4px,
        #E2E8F0 4px,
        #E2E8F0 8px
    );
}

.theme-smarthome .btn-download-receipt {
    background-color: rgba(0, 0, 0, 0.02) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #1E293B !important;
}

.theme-smarthome .btn-download-receipt:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

.theme-labs .hamburger,
.theme-labs .hamburger::before,
.theme-labs .hamburger::after {
    background-color: #0F172A;
}

.theme-labs .mobile-nav-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.theme-labs input,
.theme-labs select,
.theme-labs textarea {
    background-color: rgba(0, 0, 0, 0.02) !important;
    color: #0F172A !important;
    border-color: rgba(15, 23, 42, 0.15) !important;
}

.theme-labs input:focus,
.theme-labs select:focus,
.theme-labs textarea:focus {
    background-color: #FFFFFF !important;
    border-color: var(--primary-accent) !important;
    box-shadow: 0 0 8px rgba(2, 132, 199, 0.15) !important;
}

.theme-labs .nav-link {
    color: #475569;
}

.theme-labs .nav-link:hover,
.theme-labs .nav-link.active {
    color: var(--primary-accent);
}

.theme-labs .btn-contact {
    border-color: rgba(2, 132, 199, 0.3) !important;
}

.theme-labs .btn-contact:hover {
    background-color: var(--primary-accent) !important;
    color: #FFFFFF !important;
}

.theme-labs .hero-brand-logo-glow {
    filter: brightness(0.15) opacity(0.08);
}

/* Adjustments for Soham Smart Home Light Mode */
.theme-smarthome .nav-link {
    color: #475569;
}

.theme-smarthome .nav-link:hover,
.theme-smarthome .nav-link.active {
    color: var(--primary-accent);
}

.theme-smarthome .btn-contact {
    border-color: rgba(22, 163, 74, 0.3) !important;
    color: var(--primary-accent) !important;
}

.theme-smarthome .btn-contact:hover {
    background-color: var(--primary-accent) !important;
    color: #FFFFFF !important;
}

.theme-smarthome .brand-logo-symbol,
.theme-smarthome .brand-logo-text {
    filter: brightness(0.15) contrast(1.2);
}

.theme-smarthome .hamburger,
.theme-smarthome .hamburger::before,
.theme-smarthome .hamburger::after {
    background-color: #1E293B;
}

.theme-smarthome .mobile-nav-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.theme-smarthome input,
.theme-smarthome select,
.theme-smarthome textarea {
    background-color: rgba(0, 0, 0, 0.02) !important;
    color: #1E293B !important;
    border-color: rgba(30, 41, 95, 0.15) !important;
}

.theme-smarthome input:focus,
.theme-smarthome select:focus,
.theme-smarthome textarea:focus {
    background-color: #FFFFFF !important;
    border-color: var(--primary-accent) !important;
    box-shadow: 0 0 8px rgba(22, 163, 74, 0.15) !important;
}

/* Featured services layout (alternating columns with rich photos) */
.services-featured {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 4rem;
}

.service-featured-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.service-featured-row:nth-child(even) {
    direction: rtl;
}

.service-featured-row:nth-child(even) .service-featured-content {
    direction: ltr;
}

.service-featured-img-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
    height: 340px;
}

.service-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.service-featured-row:hover .service-featured-img {
    transform: scale(1.03);
}

.service-featured-content {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2.5rem;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.theme-industry .service-featured-content,
.theme-labs .service-featured-content {
    background: rgba(11, 15, 25, 0.94) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5) !important;
}

.theme-smarthome .service-featured-content {
    background: #FFFFFF !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05) !important;
}

.service-featured-code {
    font-family: var(--font-headers);
    color: var(--primary-accent) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
}

.theme-smarthome .service-featured-code {
    color: #34D399 !important; /* High contrast light sage green */
}

.theme-labs .service-featured-code {
    color: #00F2FE !important; /* High contrast electric cyan */
}

.theme-industry .service-featured-code {
    color: #F97316 !important; /* High contrast copper orange */
}

.service-featured-title {
    font-family: var(--font-headers);
    font-size: 1.85rem !important;
    line-height: 1.25 !important;
    color: #F8FAFC !important;
}

.service-featured-text {
    color: #CBD5E1 !important;
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
}

@media (max-width: 767px) {
    .service-featured-row, .service-featured-row:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        direction: ltr;
    }
    .service-featured-img-wrapper {
        height: 240px;
    }
}

/* ==========================================================================
   Dark Luxury B2B Theme Integrations (Smart Home & Labs Dark Architecture)
   ========================================================================== */

/* B. SOHAM SMART HOME (Biophilic Light Luxury Residential - 60-30-10) */
.theme-smarthome {
    background-color: #FAF8F5 !important;
    background-image: radial-gradient(rgba(5, 150, 105, 0.08) 1.5px, transparent 0) !important;
    background-size: 32px 32px !important;
    color: #0F172A !important;
}

.theme-smarthome .domotica-section,
.theme-smarthome .soluciones-section,
.theme-smarthome .services-section,
.theme-smarthome .testimonials-section,
.theme-smarthome .contact-section,
.theme-smarthome .metrics-section,
.theme-smarthome .brands-section {
    background: #FAF8F5 !important;
    border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

.theme-smarthome .domotica-glass-container,
.theme-smarthome .domotica-card,
.theme-smarthome .solucion-card,
.theme-smarthome .portfolio-card,
.theme-smarthome .testimonial-card,
.theme-smarthome .service-featured-content,
.theme-smarthome .service-featured-row,
.theme-smarthome .metric-card,
.theme-smarthome .brand-item {
    background: #FFFFFF !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05) !important;
}

.theme-smarthome .metric-card {
    padding: 1.5rem 1.75rem !important;
}

.theme-smarthome .metric-number {
    color: #059669 !important;
    font-weight: 700 !important;
}

.theme-smarthome .metric-text {
    color: #0F172A !important;
    font-weight: 600 !important;
}

.theme-smarthome .brands-section-title {
    color: #0F172A !important;
    font-weight: 700 !important;
}

.theme-smarthome .brands-section-subtitle {
    color: #334155 !important;
}

.theme-smarthome .brand-item {
    padding: 0.85rem 1.5rem !important;
}

.theme-smarthome .brand-logo-img {
    filter: brightness(0.15) contrast(1.2) !important;
}

.theme-smarthome .solucion-card:hover,
.theme-smarthome .portfolio-card:hover,
.theme-smarthome .testimonial-card:hover,
.theme-smarthome .domotica-card:hover {
    background: #FFFFFF !important;
    border-color: #059669 !important;
    box-shadow: 0 15px 35px rgba(5, 150, 105, 0.15) !important;
    transform: translateY(-4px) !important;
}

.theme-smarthome .solucion-icon {
    background: rgba(5, 150, 105, 0.08) !important;
    border: 1px solid rgba(5, 150, 105, 0.25) !important;
    color: #059669 !important;
}

.theme-smarthome .solucion-card:hover .solucion-icon {
    background: #059669 !important;
    border-color: #059669 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3) !important;
}

.theme-smarthome h1,
.theme-smarthome h2,
.theme-smarthome h3,
.theme-smarthome h4,
.theme-smarthome h5,
.theme-smarthome h6,
.theme-smarthome .solucion-card-title,
.theme-smarthome .portfolio-card-title,
.theme-smarthome .section-title,
.theme-smarthome .service-featured-title,
.theme-smarthome .testimonial-author {
    color: #0F172A !important; /* Dark Slate Header Text - Contrast 18.2:1 against #FAF8F5 */
}

.theme-smarthome p,
.theme-smarthome .section-subtitle,
.theme-smarthome .service-featured-text,
.theme-smarthome .testimonial-quote,
.theme-smarthome .info-value {
    color: #334155 !important; /* Slate Gray Body Text - Contrast 11.4:1 against #FAF8F5 */
}

.theme-smarthome .text-muted,
.theme-smarthome .testimonial-company,
.theme-smarthome .info-label {
    color: #64748B !important;
}

.theme-smarthome .service-featured-code {
    color: #059669 !important;
    font-weight: 700 !important;
}

.theme-smarthome .contact-form-container {
    background: #FFFFFF !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.06) !important;
    padding: 2.5rem !important;
    border-radius: var(--radius-lg) !important;
}

.theme-smarthome .form-group label {
    color: #0F172A !important;
    font-weight: 700 !important;
}

.theme-smarthome .contact-form input,
.theme-smarthome .contact-form select,
.theme-smarthome .contact-form textarea,
.theme-smarthome .domotica-checkout-form input {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    color: #0F172A !important;
}

.theme-smarthome .contact-form input::placeholder,
.theme-smarthome .contact-form textarea::placeholder,
.theme-smarthome .domotica-checkout-form input::placeholder {
    color: #64748B !important;
    opacity: 1 !important;
}

.theme-smarthome .btn-primary {
    background-color: #059669 !important;
    border-color: #059669 !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.3) !important;
}

.theme-smarthome .btn-primary:hover {
    background-color: #047857 !important;
    border-color: #047857 !important;
    color: #FFFFFF !important;
}

/* C. SOHAM LABS (Scientific High-Tech Dark R&D - 60-30-10) */
.theme-labs {
    background-color: #070A10 !important;
    background-image: linear-gradient(rgba(0, 242, 254, 0.05) 1px, transparent 1px), 
                      linear-gradient(90deg, rgba(0, 242, 254, 0.05) 1px, transparent 1px) !important;
    background-size: 32px 32px !important;
    color: #F8FAFC !important;
}

.theme-labs .soluciones-section,
.theme-labs .services-section {
    background: linear-gradient(180deg, rgba(7, 10, 16, 0.96) 0%, rgba(15, 23, 42, 0.9) 50%, rgba(7, 10, 16, 0.96) 100%) !important;
    border-top: 1px solid rgba(0, 242, 254, 0.15) !important;
    border-bottom: 1px solid rgba(0, 242, 254, 0.15) !important;
}

.theme-labs .solucion-card,
.theme-labs .portfolio-card,
.theme-labs .testimonial-card,
.theme-labs .service-featured-row {
    background: rgba(15, 23, 42, 0.88) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(0, 242, 254, 0.2) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.theme-labs .solucion-card:hover,
.theme-labs .portfolio-card:hover,
.theme-labs .testimonial-card:hover {
    background: rgba(15, 23, 42, 0.95) !important;
    border-color: #00F2FE !important;
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.25) !important;
    transform: translateY(-4px) !important;
}

.theme-labs .solucion-card-title,
.theme-labs .portfolio-card-title,
.theme-labs .section-title,
.theme-labs .service-featured-title {
    color: #F8FAFC !important;
}

.theme-labs .service-featured-text {
    color: #CBD5E1 !important;
}

.theme-labs .contact-form-container {
    background: rgba(15, 23, 42, 0.92) !important;
    border: 1px solid rgba(0, 242, 254, 0.25) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5) !important;
    padding: 2.5rem !important;
    border-radius: var(--radius-lg) !important;
}

.theme-labs .form-group label {
    color: #F8FAFC !important;
    font-weight: 700 !important;
}

.theme-labs .contact-form input,
.theme-labs .contact-form select,
.theme-labs .contact-form textarea {
    background: #0B0F19 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #F8FAFC !important;
}

/* Micro-indicadores LED en el Hero de Labs */
.labs-led-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #10B981;
    border-radius: 50%;
    margin-right: 0.5rem;
    box-shadow: 0 0 8px #10B981;
    animation: led-pulse 2s infinite;
}

@keyframes led-pulse {
    0% {
        opacity: 0.4;
        box-shadow: 0 0 4px #10B981;
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 12px #10B981;
    }
    100% {
        opacity: 0.4;
        box-shadow: 0 0 4px #10B981;
    }
}

/* Light Mode Hero Tech Cards Overrides */
.theme-smarthome .hero-tech-card,
.theme-smarthome .tech-card {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    box-shadow: 0 15px 35px rgba(120, 53, 15, 0.08) !important;
    color: #0F172A !important;
}

.theme-smarthome .tech-card-header,
.theme-smarthome .tech-card-row {
    border-color: rgba(15, 23, 42, 0.1) !important;
}

.theme-smarthome .tech-status-text,
.theme-smarthome .tech-label {
    color: #475569 !important;
}

.theme-smarthome .tech-value {
    color: #0F172A !important;
}

.theme-labs .hero-tech-card,
.theme-labs .tech-card {
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid rgba(2, 132, 199, 0.18) !important;
    box-shadow: 0 15px 35px rgba(2, 132, 199, 0.08) !important;
    color: #0F172A !important;
}

.theme-labs .tech-card-header,
.theme-labs .tech-card-row {
    border-color: rgba(15, 23, 42, 0.08) !important;
}

.theme-labs .tech-status-text,
.theme-labs .tech-label {
    color: #475569 !important;
}

.theme-labs .tech-value {
    color: #0F172A !important;
}

/* Master Portal Card Hover Transitions */
.portal-card {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease !important;
}

.portal-card:hover {
    transform: translateY(-8px) !important;
}

.portal-card:hover img {
    transform: scale(1.06) !important;
}

.card-industry:hover {
    box-shadow: 0 20px 40px rgba(0, 242, 254, 0.2) !important;
    border-color: #00F2FE !important;
}

.card-smarthome:hover {
    box-shadow: 0 20px 40px rgba(5, 150, 105, 0.25) !important;
    border-color: #059669 !important;
}

.card-labs:hover {
    box-shadow: 0 20px 40px rgba(5, 150, 105, 0.25) !important;
    border-color: #059669 !important;
}

/* ==========================================================================
   Interactive IIoT SCADA Console (Soham Industria Hero Widget)
   ========================================================================== */
.iiot-console-card {
    background: rgba(11, 15, 25, 0.95);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 242, 254, 0.15);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
}

.iiot-console-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00F2FE, transparent);
    animation: iiotGlowScan 3s infinite linear;
}

@keyframes iiotGlowScan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.iiot-console-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.85rem;
}

.iiot-live-status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pulse-dot-green {
    width: 10px;
    height: 10px;
    background-color: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10B981;
    animation: iiotPulse 1.5s infinite;
}

@keyframes iiotPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.iiot-status-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: #10B981;
    letter-spacing: 0.05em;
}

.iiot-protocol-badge {
    background: rgba(0, 242, 254, 0.1);
    color: #00F2FE;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 242, 254, 0.25);
}

.iiot-machine-tabs {
    display: flex;
    gap: 0.5rem;
    background: rgba(15, 23, 42, 0.8);
    padding: 0.35rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.iiot-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: #94A3B8;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.5rem 0.25rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s ease;
}

.iiot-tab.active {
    background: rgba(0, 242, 254, 0.15);
    color: #00F2FE;
    border: 1px solid rgba(0, 242, 254, 0.3);
    box-shadow: 0 2px 8px rgba(0, 242, 254, 0.15);
}

.iiot-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.iiot-metric-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 0.85rem 0.65rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.iiot-metric-label {
    font-size: 0.7rem;
    color: #94A3B8;
    margin-bottom: 0.25rem;
}

.iiot-metric-val {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #F8FAFC;
}

.cyan-glow {
    color: #00F2FE !important;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.iiot-metric-sub {
    font-size: 0.65rem;
    color: #64748B;
    margin-top: 0.2rem;
}

.iiot-chart-wrapper {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 0.85rem;
}

.chart-header-small {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #94A3B8;
    margin-bottom: 0.5rem;
}

.chart-hz-reading {
    color: #00F2FE;
    font-weight: 700;
}

.iiot-chart-svg {
    width: 100%;
    height: 70px;
    display: block;
}

.chart-line-animated {
    stroke-dasharray: 600;
    stroke-dashoffset: 0;
    animation: dashWave 8s linear infinite;
}

@keyframes dashWave {
    0% { stroke-dashoffset: 600; }
    100% { stroke-dashoffset: 0; }
}

.iiot-control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.85rem 1rem;
    border-radius: var(--radius-lg);
}

.iiot-control-info {
    display: flex;
    flex-direction: column;
}

.control-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #F8FAFC;
}

.control-sub {
    font-size: 0.68rem;
    color: #10B981;
    transition: color 0.3s ease;
}

.iiot-switch-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10B981;
    color: #10B981;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.iiot-switch-btn.locked {
    background: rgba(239, 68, 68, 0.15);
    border-color: #EF4444;
    color: #EF4444;
}

.switch-knob {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
    box-shadow: 0 0 6px currentColor;
}

.iiot-toast-notification {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
}

.toast-icon {
    font-size: 1.2rem;
}

.toast-content {
    display: flex;
    flex-direction: column;
}

.toast-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #25D366;
}

.toast-msg {
    font-size: 0.75rem;
    color: #CBD5E1;
}

/* ==========================================================================
   14. SOHAM IoT Group Parent Portal (Executive Corporate & Division Hub)
   ========================================================================== */

/* Main Background */
.theme-portal {
    background-color: #0B0F19 !important;
    background-image: radial-gradient(ellipse at 50% 0%, rgba(30, 41, 59, 0.5) 0%, rgba(11, 15, 25, 1) 80%), url('motifs/hex-lattice.svg') !important;
    background-repeat: no-repeat, repeat !important;
    color: #F8FAFC;
    font-family: var(--font-body);
}

/* Portal Hero Command Center */
.portal-hero-section {
    position: relative;
    padding: 130px 0 70px 0;
    min-height: min(80vh, 680px);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.portal-hero-glow {
    position: absolute;
    top: -15%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 550px;
    background: radial-gradient(ellipse at center, rgba(30, 41, 59, 0.3) 0%, rgba(15, 23, 42, 0.1) 50%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.portal-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.portal-hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.portal-badge-group {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    color: #94A3B8;
    font-family: var(--font-headers);
    font-size: 0.725rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
}

.portal-hero-title {
    font-family: var(--font-headers);
    font-size: 2.65rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
    color: #FFFFFF;
}

.portal-hero-subtitle {
    font-size: 1.025rem;
    color: #94A3B8;
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 540px;
}

/* Division Hub Component (Interactive Center) */
.division-hub-wrapper {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.hub-nav-tabs {
    display: flex;
    gap: 0.4rem;
    background: rgba(8, 12, 20, 0.85);
    padding: 0.3rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 1.25rem;
}

.hub-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid transparent;
    background: transparent;
    color: #94A3B8;
    font-family: var(--font-headers);
    font-size: 0.825rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s ease;
}

.hub-tab-btn svg {
    opacity: 0.7;
    transition: opacity 0.25s ease;
}

.hub-tab-btn:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.04);
}

.hub-tab-btn:hover svg {
    opacity: 1;
}

/* Authentic Color Identity per Division Tab */
.hub-tab-btn.active.tab-industry {
    background: rgba(249, 115, 22, 0.12);
    color: #F97316;
    border-color: rgba(249, 115, 22, 0.35);
}

.hub-tab-btn.active.tab-home {
    background: rgba(5, 150, 105, 0.14);
    color: #34D399;
    border-color: rgba(5, 150, 105, 0.35);
}

.hub-tab-btn.active.tab-labs {
    background: rgba(0, 242, 254, 0.12);
    color: #00F2FE;
    border-color: rgba(0, 242, 254, 0.35);
}

.hub-tab-btn.active svg {
    opacity: 1;
}

/* Hub Content Panels */
.hub-panel {
    display: none;
    animation: fadeInHub 0.3s ease forwards;
}

.hub-panel.active {
    display: block;
}

@keyframes fadeInHub {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.hub-panel-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hub-panel-img-box {
    height: 185px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hub-panel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hub-panel-card:hover .hub-panel-img {
    transform: scale(1.03);
}

.hub-panel-tag {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Authentic Color Identity per Division Badge Tag */
.tag-industry { background: #F97316; color: #FFFFFF; }
.tag-home { background: #059669; color: #FFFFFF; }
.tag-labs { background: #00F2FE; color: #000000; }

.hub-panel-title {
    font-family: var(--font-headers);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: #FFFFFF;
    line-height: 1.25;
}

.hub-panel-desc {
    color: #94A3B8;
    font-size: 0.875rem;
    line-height: 1.6;
}

.hub-feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.8rem;
    color: #CBD5E1;
}

.hub-feature-list li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

/* Sector Explorer Section (Pestañas por Campo de Aplicación) */
.sector-section {
    padding: 85px 0;
    background: rgba(11, 15, 25, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sector-nav-bar {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.sector-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.25rem;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    color: #94A3B8;
    font-family: var(--font-headers);
    font-size: 0.825rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.sector-filter-btn:hover {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.2);
}

.sector-filter-btn.active {
    background: #1E293B;
    border-color: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}

.sector-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
}

.sector-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sector-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.sector-icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.icon-box-orange { background: rgba(249, 115, 22, 0.1); color: #F97316; border: 1px solid rgba(249, 115, 22, 0.2); }
.icon-box-amber { background: rgba(217, 119, 6, 0.1); color: #F59E0B; border: 1px solid rgba(217, 119, 6, 0.2); }
.icon-box-cyan { background: rgba(0, 242, 254, 0.1); color: #00F2FE; border: 1px solid rgba(0, 242, 254, 0.2); }
.icon-box-blue { background: rgba(30, 41, 59, 0.8); color: #94A3B8; border: 1px solid rgba(255, 255, 255, 0.12); }

.sector-card-title {
    font-family: var(--font-headers);
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.65rem;
    letter-spacing: -0.01em;
}

.sector-card-desc {
    font-size: 0.875rem;
    color: #94A3B8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.sector-tag-pill {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 500;
    color: #CBD5E1;
}

/* Foso Tecnologico Grid */
.moat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.moat-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    transition: all 0.3s ease;
}

.moat-card:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

.moat-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.moat-title {
    font-family: var(--font-headers);
    font-size: 1.05rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
}

.moat-desc {
    font-size: 0.85rem;
    color: #94A3B8;
    line-height: 1.6;
    margin: 0;
}

/* Hero Buttons Container */
.hero-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

/* Section Header Component */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem auto;
}

.section-subtitle {
    font-size: 0.975rem;
    color: #94A3B8;
    line-height: 1.65;
    margin: 0;
}

/* Metrics Banner Section */
.metrics-section {
    padding: 50px 0;
    background: rgba(15, 23, 42, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.metrics-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.metric-card {
    background: rgba(11, 15, 25, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.metric-number {
    font-family: var(--font-headers);
    font-size: 2.25rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.metric-text {
    font-size: 0.825rem;
    color: #94A3B8;
    line-height: 1.5;
    font-weight: 500;
}

/* Testimonials Component */
.testimonials-section {
    padding: 85px 0;
}

.testimonial-quote {
    font-size: 0.95rem;
    color: #CBD5E1;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    position: relative;
}

.testimonial-author-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1rem;
}

.testimonial-author {
    font-family: var(--font-headers);
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
}

.testimonial-company {
    font-size: 0.8rem;
    color: #94A3B8;
}

/* Footer Extended Grid Layout */
.footer-extended-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 3rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.brand-summary {
    max-width: 380px;
}

.footer-summary-text {
    font-size: 0.85rem;
    color: #94A3B8;
    line-height: 1.6;
    margin-top: 0.75rem;
}

.footer-col-title {
    font-family: var(--font-headers);
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links a, .footer-links span {
    font-size: 0.85rem;
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #FFFFFF;
}

@media (max-width: 991px) {
    .portal-hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .portal-hero-title {
        font-size: 2.1rem;
    }
    .footer-extended-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .footer-extended-grid {
        grid-template-columns: 1fr;
    }
}

.about-section {
    position: relative;
    overflow: hidden;
}

/* Header Navbar Layout & High Contrast Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 15, 25, 0.92) !important;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 0.85rem 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.brand-logo-symbol {
    height: 28px;
    width: auto;
}

.brand-logo-text {
    height: 20px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul, .nav-list {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1.75rem !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.main-nav li {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.main-nav a, .nav-link {
    color: #E2E8F0 !important;
    text-decoration: none !important;
    font-family: var(--font-headers) !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

.main-nav a:hover, .nav-link:hover {
    color: #FFFFFF !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.lang-selector-container {
    display: flex;
    align-items: center;
}

.lang-select {
    background: rgba(15, 23, 42, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #F8FAFC !important;
    padding: 0.35rem 0.65rem !important;
    border-radius: var(--radius-sm) !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    font-family: var(--font-headers) !important;
    cursor: pointer !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

.lang-select:hover, .lang-select:focus {
    border-color: rgba(255, 255, 255, 0.45) !important;
    background: rgba(30, 41, 59, 0.95) !important;
}

.lang-select option {
    background: #0F172A !important;
    color: #F8FAFC !important;
}

.btn-contact, .nav-link.btn-contact {
    background: #1E293B !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #FFFFFF !important;
    padding: 0.5rem 1.15rem !important;
    border-radius: var(--radius-md) !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
}

.btn-contact:hover, .nav-link.btn-contact:hover {
    background: #334155 !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    color: #FFFFFF !important;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Hero Buttons Horizontal Alignment */
.hero-buttons {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1rem !important;
    flex-wrap: nowrap !important;
    margin-top: 1.5rem !important;
}

.hero-buttons .btn {
    white-space: nowrap !important;
    padding: 0.75rem 1.25rem !important;
    font-size: 0.875rem !important;
}

/* Theme Header Overrides for High Contrast & Readability */
.theme-smarthome .main-header,
.theme-labs .main-header,
.theme-industry .main-header,
.theme-portal .main-header {
    background: rgba(11, 15, 25, 0.94) !important;
    backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

/* Header Navigation for Dark Themes (Labs) */
.theme-labs .main-nav a,
.theme-labs .nav-link {
    color: #F8FAFC !important;
    font-weight: 600 !important;
    opacity: 1 !important;
}

.theme-labs .main-nav a:hover,
.theme-labs .nav-link:hover {
    color: #00F2FE !important;
    text-shadow: 0 0 12px rgba(0, 242, 254, 0.4) !important;
}

.theme-labs .lang-select {
    background: #0F172A !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    font-weight: 600 !important;
}

/* Light Luxury Navigation Bar for Soham Home (.theme-smarthome) */
.theme-smarthome .main-header {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
}

.theme-smarthome .brand-logo-symbol,
.theme-smarthome .brand-logo-text {
    filter: brightness(0.12) contrast(1.2) !important;
}

.theme-smarthome .main-nav a,
.theme-smarthome .nav-link {
    color: #334155 !important;
    font-weight: 600 !important;
    opacity: 1 !important;
}

.theme-smarthome .main-nav a:hover,
.theme-smarthome .nav-link:hover,
.theme-smarthome .nav-link.active {
    color: #059669 !important;
    text-shadow: none !important;
}

.theme-smarthome .lang-selector-container {
    background-color: #F1F5F9 !important;
    border: 1px solid #CBD5E1 !important;
}

.theme-smarthome .lang-select {
    background: transparent !important;
    color: #0F172A !important;
    font-weight: 700 !important;
}

.theme-smarthome .lang-select option {
    background-color: #FFFFFF !important;
    color: #0F172A !important;
}

.theme-smarthome .btn-contact,
.theme-smarthome .nav-link.btn-contact {
    background: #0F172A !important;
    color: #FFFFFF !important;
    border: 1px solid #0F172A !important;
    font-weight: 700 !important;
    border-radius: var(--radius-sm) !important;
}

.theme-smarthome .btn-contact:hover,
.theme-smarthome .nav-link.btn-contact:hover {
    background: #059669 !important;
    border-color: #059669 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3) !important;
}

.theme-smarthome .hamburger,
.theme-smarthome .hamburger::before,
.theme-smarthome .hamburger::after {
    background-color: #0F172A !important;
}

.theme-smarthome .btn-contact,
.theme-labs .btn-contact,
.theme-smarthome .nav-link.btn-contact,
.theme-labs .nav-link.btn-contact {
    background: #1E293B !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #FFFFFF !important;
}

/* ==========================================================================
   Global High-Contrast Typography & Text Legibility Audit (WCAG AAA)
   ========================================================================== */

/* 1. Primary Buttons Contrast Overrides */
.theme-labs .btn-primary,
.theme-industry .btn-primary {
    color: #070A10 !important;
    font-weight: 800 !important;
}

.theme-smarthome .btn-primary {
    color: #FFFFFF !important;
    background-color: #059669 !important;
    border-color: #059669 !important;
    font-weight: 700 !important;
}

.theme-smarthome .btn-primary:hover {
    background-color: #047857 !important;
    border-color: #047857 !important;
    color: #FFFFFF !important;
}

/* 2. Headings (H1 - H6) - Dark Slate for Soham Home (except Hero photos), Light Slate for Dark Themes */
.theme-portal h1, .theme-portal h2, .theme-portal h3, .theme-portal h4, .theme-portal h5, .theme-portal h6,
.theme-industry h1, .theme-industry h2, .theme-industry h3, .theme-industry h4, .theme-industry h5, .theme-industry h6,
.theme-labs h1, .theme-labs h2, .theme-labs h3, .theme-labs h4, .theme-labs h5, .theme-labs h6,
.portal-hero-title, .hero-title, .hero-section .hero-title, .hub-panel-title, .sector-card-title, .moat-card-title {
    color: #F8FAFC !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85) !important;
}

.theme-smarthome h1, .theme-smarthome h2, .theme-smarthome h3, .theme-smarthome h4, .theme-smarthome h5, .theme-smarthome h6,
.theme-smarthome .section-title, .theme-smarthome .solucion-card-title, .theme-smarthome .portfolio-card-title, .theme-smarthome .service-featured-title, .theme-smarthome .testimonial-author {
    color: #0F172A !important;
}

.theme-smarthome .hero-section h1,
.theme-smarthome .hero-section .hero-title {
    color: #FFFFFF !important;
}

/* 3. Subtitles, Descriptions, & Body Paragraphs */
.theme-portal p, .theme-industry p, .theme-labs p,
.portal-hero-desc, .theme-industry .section-subtitle, .theme-labs .section-subtitle, .theme-industry .hero-subtitle, .theme-labs .hero-subtitle,
.hero-subtitle, .hero-section .hero-subtitle {
    color: #F8FAFC !important;
    line-height: 1.65;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85) !important;
}

.theme-smarthome p, .theme-smarthome .section-subtitle, .theme-smarthome .service-featured-text, .theme-smarthome .testimonial-quote, .theme-smarthome .info-value {
    color: #334155 !important;
    line-height: 1.65;
}

/* 4. Captions, Muted Texts, & Footer Elements */
.theme-portal .text-muted, .theme-industry .text-muted, .theme-labs .text-muted,
.footer-summary-text, .footer-links a, .footer-links span, .metric-text, .testimonial-company {
    color: #94A3B8 !important;
}

.theme-smarthome .text-muted, .theme-smarthome .info-label {
    color: #64748B !important;
}

/* 5. Form Labels, Inputs & High-Contrast Placeholders */
.theme-smarthome form label, .theme-smarthome .form-group label {
    color: #0F172A !important;
    font-weight: 700 !important;
    margin-bottom: 0.4rem !important;
    display: block !important;
}

.theme-portal form label, .theme-industry form label, .theme-labs form label {
    color: #F8FAFC !important;
    font-weight: 600 !important;
    margin-bottom: 0.4rem !important;
    display: block !important;
}

.theme-smarthome input[type="text"], .theme-smarthome input[type="email"], .theme-smarthome input[type="tel"], .theme-smarthome select, .theme-smarthome textarea {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    color: #0F172A !important;
    font-size: 0.9rem !important;
}

.theme-portal input[type="text"], .theme-industry input[type="text"], .theme-labs input[type="text"],
.theme-portal input[type="email"], .theme-industry input[type="email"], .theme-labs input[type="email"],
.theme-portal input[type="tel"], .theme-industry input[type="tel"], .theme-labs input[type="tel"],
.theme-portal select, .theme-industry select, .theme-labs select,
.theme-portal textarea, .theme-industry textarea, .theme-labs textarea {
    background: #0F172A !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #F8FAFC !important;
    font-size: 0.9rem !important;
}

::placeholder,
::-webkit-input-placeholder,
::-moz-placeholder,
:-ms-input-placeholder {
    color: #64748B !important;
    opacity: 1 !important;
}

/* 6. Widget Tabs & Active State Contrast */
.iiot-tab {
    color: #CBD5E1 !important;
    background: rgba(15, 23, 42, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.iiot-tab.active {
    color: #070A10 !important;
    background: #F97316 !important;
    font-weight: 800 !important;
}

.hub-tab-btn {
    color: #CBD5E1 !important;
}

.hub-tab-btn.active.tab-industry {
    background: #F97316 !important;
    color: #070A10 !important;
    font-weight: 800 !important;
}

.hub-tab-btn.active.tab-home {
    background: #059669 !important;
    color: #070A10 !important;
    font-weight: 800 !important;
}

.hub-tab-btn.active.tab-labs {
    background: #00F2FE !important;
    color: #070A10 !important;
    font-weight: 800 !important;
}



