/* ==========================================================================
   LFI HIGIENE Y SEGURIDAD EMPRESARIAL - DISEÑO DE VANGUARDIA (2027)
   Paleta: Slate / Navy (#0b1329, #0f172a), Emerald (#10b981), Sky (#0284c7)
   ========================================================================== */

:root {
    --primary: #059669;
    --primary-glow: #10b981;
    --primary-light: #34d399;
    --primary-dark: #047857;
    --primary-subtle: rgba(16, 185, 129, 0.1);
    
    --bg-dark: #070d1e;
    --bg-dark-card: rgba(15, 23, 42, 0.75);
    --bg-dark-surface: #0f172a;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-white: #f8fafc;
    --text-dim: #94a3b8;
    
    --border-light: #e2e8f0;
    --border-dark: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(16, 185, 129, 0.35);
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 16px -4px rgba(0,0,0,0.06), 0 4px 6px -2px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
    --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.25);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    background-color: #f1f5f9;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Blueprint / Grid Pattern Utility */
.bg-grid-pattern {
    background-image: 
        radial-gradient(rgba(16, 185, 129, 0.12) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(11, 19, 41, 0.98), #0b1329);
    background-size: 28px 28px, 100% 100%;
}

.bg-dot-pattern-light {
    background-image: radial-gradient(#cbd5e1 1.2px, transparent 1.2px);
    background-size: 24px 24px;
}

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

/* ==========================================================================
   TIPOGRAFÍA Y BOTONES
   ========================================================================== */
a, a:hover, a:focus, a:active, .btn, .nav-item-link, .top-bar-item, .service-consult-link, .whatsapp-pill-button {
    color: inherit;
    text-decoration: none !important;
    transition: var(--transition);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--bg-dark-surface);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.text-gradient {
    background: linear-gradient(135deg, #10b981 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
    color: #ffffff;
}

.btn-dark {
    background: var(--bg-dark-surface);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-dark:hover {
    background: #1e293b;
    border-color: var(--primary-glow);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #38bdf8;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #20ba59;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
    color: #ffffff;
}

/* Badges */
.badge-tech {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-tech-dark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: var(--radius-full);
    background: rgba(15, 23, 42, 0.75);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
    backdrop-filter: blur(8px);
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

/* ==========================================================================
   CABECERA Y TOPBAR
   ========================================================================== */
.top-bar-modern {
    background: #060b18;
    color: #94a3b8;
    font-size: 0.82rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.top-bar-modern .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    transition: var(--transition);
}

.top-bar-item:hover {
    color: var(--primary-glow);
}

.header-glass {
    position: sticky;
    top: 0;
    background: rgba(11, 19, 41, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 84px;
}

.brand-emblem {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.brand-emblem img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-item-link {
    color: #cbd5e1;
    font-size: 0.92rem;
    font-weight: 600;
    position: relative;
    padding: 8px 0;
    transition: var(--transition);
}

.nav-item-link:hover {
    color: #ffffff;
}

.nav-item-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-glow);
    border-radius: 99px;
    transition: var(--transition);
}

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

.menu-toggle-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #ffffff;
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION DE VANGUARDIA
   ========================================================================== */
.hero-epic {
    position: relative;
    padding: 100px 0 120px 0;
    color: #ffffff;
    overflow: hidden;
}

.hero-glow-sphere-1 {
    position: absolute;
    top: -150px;
    right: 10%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, transparent 65%);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.hero-glow-sphere-2 {
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.85fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.3rem;
    color: #ffffff;
    line-height: 1.15;
    margin: 20px 0;
    font-weight: 800;
}

.hero-lead {
    font-size: 1.15rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 34px;
    max-width: 600px;
}

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

.hero-metrics-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-metric-box h3 {
    font-size: 2.3rem;
    color: var(--primary-glow);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
}

.hero-metric-box p {
    font-size: 0.86rem;
    color: #94a3b8;
    margin: 0;
}

/* Tablero de Certificaciones en Hero */
.hero-glass-board {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

.hero-glass-board::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.5), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.board-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.board-header-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.board-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 12px;
    transition: var(--transition);
}

.board-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-glow);
    transform: translateX(4px);
}

.board-item i {
    color: var(--primary-glow);
    font-size: 1.2rem;
    margin-top: 2px;
}

.board-item-text h5 {
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.board-item-text p {
    color: #94a3b8;
    font-size: 0.82rem;
    margin: 0;
}

/* ==========================================================================
   CLIENTES MARQUEE CON MÁSCARA GRADIENTE
   ========================================================================== */
.clients-marquee-section {
    background: #ffffff;
    padding: 44px 0;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.clients-marquee-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    /* Efecto fade a los lados */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.clients-track-fast {
    display: flex;
    gap: 32px;
    align-items: center;
    animation: marqueeScroll 40s linear infinite;
    min-width: 200%;
}

.client-emblem-card {
    flex: 0 0 150px;
    height: 70px;
    background: #f8fafc;
    border: 1.5px solid #edf2f7;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: var(--transition);
}

.client-emblem-card:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.client-emblem-card img {
    max-height: 44px;
    max-width: 120px;
    object-fit: contain;
}

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

/* ==========================================================================
   SERVICIOS CON FOTOGRAFÍA Y FILTRO INTERACTIVO
   ========================================================================== */
.services-section-epic {
    padding: 100px 0;
    background: #f8fafc;
    position: relative;
}

.section-title-wrap {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 40px auto;
}

.section-title-wrap h2 {
    font-size: 2.6rem;
    margin: 14px 0 16px 0;
}

.section-title-wrap p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Pestañas de Filtro */
.services-filter-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 50px;
}

.filter-chip {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    background: #ffffff;
    border: 1.5px solid var(--border-light);
    color: #475569;
    cursor: pointer;
    transition: var(--transition);
}

.filter-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-chip.active {
    background: var(--bg-dark-surface);
    color: #ffffff;
    border-color: var(--bg-dark-surface);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

/* Grilla de Tarjetas con Fotografía */
.services-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
}

.service-card-photo {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.service-card-photo:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 35px -10px rgba(15, 23, 42, 0.12);
    border-color: #cbd5e1;
}

.service-photo-cover {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: #1e293b;
}

.service-photo-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card-photo:hover .service-photo-cover img {
    transform: scale(1.08);
}

.service-photo-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 19, 41, 0.9) 0%, rgba(11, 19, 41, 0.2) 60%, transparent 100%);
}

.service-floating-icon {
    position: absolute;
    bottom: 16px;
    left: 20px;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(16, 185, 129, 0.9);
    backdrop-filter: blur(8px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.service-normative-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    color: #38bdf8;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.service-content-body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-content-body h3 {
    font-size: 1.28rem;
    margin-bottom: 12px;
}

.service-content-body p {
    font-size: 0.94rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #475569;
}

.service-checklist {
    list-style: none;
    margin-bottom: 24px;
}

.service-checklist li {
    font-size: 0.88rem;
    color: #475569;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.service-checklist li i {
    color: var(--primary);
    margin-top: 3px;
    font-size: 0.95rem;
}

.service-card-footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-consult-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary);
}

.service-consult-link:hover {
    gap: 12px;
    color: var(--primary-dark);
}

/* ==========================================================================
   CONFIGURADOR / COTIZADOR EXPRESS RENOVADO
   ========================================================================== */
.configurator-section {
    background: linear-gradient(135deg, #090e17 0%, #0f172a 60%, #064e3b 100%);
    color: #ffffff;
    padding: 100px 0;
    position: relative;
}

.configurator-card {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
    padding: 44px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
    position: relative;
}

.configurator-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.6), transparent 70%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.configurator-steps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.config-input-dark {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.config-input-dark:focus {
    border-color: var(--primary-glow);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.config-input-dark option {
    background: #0f172a;
    color: #ffffff;
}

/* Chips interactivos de servicios */
.config-tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 36px;
}

.config-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.config-tile:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

.config-tile.selected {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--primary-glow);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.config-tile input[type="checkbox"] {
    display: none;
}

.config-tile-check {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: transparent;
    transition: var(--transition);
    flex-shrink: 0;
}

.config-tile.selected .config-tile-check {
    background: var(--primary-glow);
    border-color: var(--primary-glow);
    color: #ffffff;
}

.config-tile-text {
    font-size: 0.92rem;
    font-weight: 600;
    color: #e2e8f0;
}

/* Barra inferior del configurador */
.config-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.config-counter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    color: #94a3b8;
}

.config-counter-pill strong {
    color: var(--primary-glow);
    font-size: 1.1rem;
}

/* ==========================================================================
   CASOS DE ÉXITO Y BLOG
   ========================================================================== */
.case-card-rich {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.case-card-rich:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.12);
}

.case-cover-photo {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.case-cover-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card-rich:hover .case-cover-photo img {
    transform: scale(1.06);
}

.case-result-badge {
    background: #ecfdf5;
    border-left: 3px solid #10b981;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.88rem;
    color: #065f46;
    margin: 14px 0;
}

/* ==========================================================================
   ACORDEÓN FAQ CON RESALTADO
   ========================================================================== */
.faq-box-wrap {
    max-width: 860px;
    margin: 0 auto;
}

.faq-card-modern {
    background: #ffffff;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-card-modern.active {
    border-color: var(--primary);
    box-shadow: 0 8px 24px -6px rgba(16, 185, 129, 0.15);
}

.faq-header-row {
    padding: 22px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--bg-dark-surface);
}

.faq-header-row i {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-card-modern.active .faq-header-row i {
    transform: rotate(180deg);
}

.faq-body-content {
    padding: 0 26px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    color: #475569;
    font-size: 0.96rem;
    line-height: 1.7;
}

.faq-card-modern.active .faq-body-content {
    padding: 0 26px 24px 26px;
    max-height: 380px;
}

/* ==========================================================================
   FORMULARIO DE CONTACTO Y CONTROLES DE ENTRADA
   ========================================================================== */
.contact-section-epic {
    background: #ffffff;
    padding: 100px 0;
    position: relative;
}

.contact-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 40px;
    align-items: stretch;
}

.contact-info-panel {
    background: linear-gradient(135deg, #090e17 0%, #0f172a 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-info-panel::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.contact-form-panel {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border-light);
    padding: 44px;
    box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--bg-dark-surface);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    background: #f8fafc;
    outline: none;
    transition: var(--transition);
    box-sizing: border-box;
}

.form-control:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

.form-control:focus {
    border-color: var(--primary-glow);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px 18px;
    appearance: none;
    padding-right: 44px;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ==========================================================================
   BANNER ELEVADO PRE-FOOTER
   ========================================================================== */
.pre-footer-banner {
    position: relative;
    z-index: 10;
    margin-bottom: -50px;
}

.pre-footer-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 44px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.pre-footer-box h3 {
    color: #ffffff;
    font-size: 1.9rem;
    margin-bottom: 6px;
}

.pre-footer-box p {
    color: #94a3b8;
    margin: 0;
    max-width: 600px;
}

/* ==========================================================================
   FOOTER CON MÁXIMO CONTRASTE
   ========================================================================== */
.footer-dark-rich {
    background: #060b18;
    color: #94a3b8;
    padding: 120px 0 36px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-dark-rich .brand-emblem {
    display: inline-flex;
    margin-bottom: 20px;
}

/* ==========================================================================
   BOTÓN FLOTANTE WHATSAPP (Con separación y sin tapar copyright)
   ========================================================================== */
.whatsapp-floating-corner {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
}

.whatsapp-pill-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.whatsapp-pill-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.55);
    color: #ffffff;
}

.whatsapp-pill-button i {
    font-size: 1.4rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN — Sistema Completo Multi-Breakpoint
   Breakpoints:
     1280px — wide desktop adjustments
     1024px — tablet landscape / small desktop
      900px — tablet portrait (iPad Pro)
      768px — tablet / large mobile
      600px — small tablet / large phone
      480px — standard mobile
      375px — small phone (iPhone SE)
   ========================================================================== */

/* ——— 1024px: Tablet Landscape ——— */
@media (max-width: 1024px) {

    /* Hero */
    .hero-epic { padding: 72px 0 90px; }
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .hero-content h1 { font-size: 2.7rem; }
    .hero-glass-board { margin-top: 0; }

    /* Configurador */
    .configurator-steps-grid { grid-template-columns: 1fr; }
    .configurator-card { padding: 32px; }

    /* Pre-footer */
    .pre-footer-box {
        flex-direction: column;
        text-align: center;
        padding: 36px 32px;
    }
    .pre-footer-box .btn { align-self: center; }

    /* About section — colapsar a 1 col */
    .about-layout-grid {
        grid-template-columns: 1fr !important;
        gap: 36px;
    }
    .about-image-wrap {
        max-width: 480px;
        margin: 0 auto;
    }

    /* Cases / Blog grid */
    .cases-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Footer grid: 2 columnas */
    .footer-links-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 32px 24px;
    }

    /* Section padding reduce */
    .services-section-epic,
    .configurator-section,
    .contact-section-epic { padding: 72px 0; }
}

/* ——— 900px: Tablet Portrait ——— */
@media (max-width: 900px) {

    /* Contacto: colapsar en 1 columna */
    .contact-layout-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .contact-info-panel {
        padding: 36px;
    }
    .contact-form-panel {
        padding: 36px;
    }

    /* Cases / Blog: 1 columna */
    .cases-grid,
    .blog-grid {
        grid-template-columns: 1fr !important;
    }

    /* Config tiles: 2 columnas fijas */
    .config-tiles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Servicios: 2 columnas a 300px mínimo */
    .services-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    /* Hero metrics: 3 columnas compactas */
    .hero-metrics-strip { gap: 12px; }
    .hero-metric-box h3 { font-size: 1.8rem; }
}

/* ——— 768px: Tablet / Mobile ——— */
@media (max-width: 768px) {

    /* Topbar: ocultar dirección, mantener teléfono y WA */
    .top-bar-modern { display: none; }

    /* Header */
    .header-inner { height: 72px; }

    /* Nav móvil */
    .nav-links {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background: rgba(11, 19, 41, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 24px;
        transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        list-style: none;
        overflow-y: auto;
        z-index: 999;
        gap: 0;
    }
    .nav-links.open { left: 0; }
    .nav-links li { width: 100%; }
    .nav-item-link {
        display: block;
        padding: 16px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }
    .menu-toggle-btn { display: block; }

    /* Ocultar CTA de escritorio en nav, mantener botón hamburguesa */
    .nav-cta-wrap { display: none; }

    /* Hero */
    .hero-epic { padding: 60px 0 72px; }
    .hero-content h1 { font-size: 2.2rem; line-height: 1.2; }
    .hero-lead { font-size: 1rem; }
    .hero-actions { gap: 12px; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-metrics-strip {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .hero-metric-box h3 { font-size: 1.6rem; }

    /* Services */
    .services-card-grid { grid-template-columns: 1fr; gap: 20px; }
    .services-section-epic { padding: 64px 0; }
    .section-title-wrap h2 { font-size: 2rem; }
    .section-title-wrap { margin-bottom: 28px; }

    /* Services filter chips: scroll horizontal */
    .services-filter-nav {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        gap: 8px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .services-filter-nav::-webkit-scrollbar { display: none; }
    .filter-chip { flex-shrink: 0; }

    /* Configurador */
    .configurator-section { padding: 64px 0; }
    .configurator-card { padding: 24px; }
    .configurator-steps-grid { grid-template-columns: 1fr; gap: 16px; }
    .config-tiles-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .config-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .config-bottom-bar .btn { width: 100%; justify-content: center; }

    /* FAQ */
    .faq-header-row { padding: 18px 20px; font-size: 0.98rem; }
    .faq-body-content { padding: 0 20px; }
    .faq-card-modern.active .faq-body-content { padding: 0 20px 20px 20px; }

    /* Contacto */
    .contact-section-epic { padding: 64px 0; }
    .contact-layout-grid { grid-template-columns: 1fr; gap: 24px; }
    .contact-info-panel { padding: 28px 24px; }
    .contact-form-panel { padding: 28px 24px; }

    /* Pre-footer */
    .pre-footer-box { padding: 28px 24px; }
    .pre-footer-box h3 { font-size: 1.5rem; }

    /* Footer */
    .footer-dark-rich { padding: 100px 0 32px; }
    .footer-links-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 28px 20px;
    }
    .footer-bottom-row {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding-right: 0 !important;
    }
    .footer-bottom-row .footer-legal-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    /* WhatsApp flotante */
    .whatsapp-floating-corner { bottom: 20px; right: 20px; }
    .whatsapp-pill-button span { display: none; }
    .whatsapp-pill-button { padding: 15px; border-radius: 50%; }

    /* Blog post.php */
    .post-hero-cover { height: 240px !important; }
}

/* ——— 600px: Small Tablet / Large Phone ——— */
@media (max-width: 600px) {

    /* Hero: métricos en columna */
    .hero-metrics-strip {
        grid-template-columns: 1fr;
        gap: 14px;
        border-top: none;
        margin-top: 0;
        padding-top: 24px;
    }
    .hero-metric-box {
        display: flex;
        align-items: center;
        gap: 16px;
        background: rgba(255,255,255,0.05);
        border-radius: var(--radius-md);
        padding: 14px 18px;
        border: 1px solid rgba(255,255,255,0.08);
    }
    .hero-metric-box h3 { font-size: 1.9rem; margin-bottom: 0; }

    /* Hero board: colapsar items */
    .hero-glass-board { padding: 24px; }
    .board-item { padding: 12px; }

    /* Sección paddings */
    .services-section-epic,
    .configurator-section,
    .contact-section-epic { padding: 52px 0; }

    /* Section titles */
    .section-title-wrap h2 { font-size: 1.75rem; }
    .section-title-wrap p { font-size: 1rem; }

    /* Footer: 1 columna */
    .footer-links-grid {
        grid-template-columns: 1fr !important;
    }

    /* Blog/Cases: 1 col full */
    .cases-grid, .blog-grid { grid-template-columns: 1fr !important; }

    /* Config tiles: 1 col */
    .config-tiles-grid { grid-template-columns: 1fr; }

    /* Contacto paneles */
    .contact-info-panel, .contact-form-panel { padding: 24px 20px; }

    /* Container padding */
    .container { padding: 0 16px; }

    /* Pre-footer */
    .pre-footer-box { padding: 24px 20px; }
    .pre-footer-box h3 { font-size: 1.35rem; }
}

/* ——— 480px: Standard Mobile ——— */
@media (max-width: 480px) {

    html { font-size: 15px; }

    /* Hero */
    .hero-epic { padding: 48px 0 60px; }
    .hero-content h1 { font-size: 1.9rem; }
    .hero-lead { font-size: 0.95rem; }
    .hero-actions .btn {
        padding: 14px 20px;
        font-size: 0.92rem;
    }

    /* Brand emblem: logo más pequeño en móvil */
    .brand-emblem { padding: 5px 10px; }
    .brand-emblem img { height: 34px; }

    /* Service card: imagen menos alta */
    .service-photo-cover { height: 170px; }

    /* Configurador */
    .configurator-card { padding: 20px 16px; }
    .config-input-dark { padding: 12px 14px; font-size: 0.9rem; }
    .config-tile { padding: 12px 14px; gap: 10px; }

    /* FAQ */
    .faq-header-row { padding: 16px; font-size: 0.93rem; }

    /* Contacto */
    .contact-info-panel, .contact-form-panel { padding: 20px 16px; }
    .form-control { padding: 12px 14px; font-size: 0.9rem; }

    /* Badges y pills */
    .badge-tech, .badge-tech-dark { font-size: 0.72rem; padding: 5px 12px; }

    /* Section titles */
    .section-title-wrap h2 { font-size: 1.6rem; }
    .pre-footer-box h3 { font-size: 1.2rem; }

    /* Footer links grid */
    .footer-links-grid { gap: 20px; }
}

/* ——— 375px: Small Phone (iPhone SE) ——— */
@media (max-width: 375px) {

    .hero-content h1 { font-size: 1.7rem; }
    .hero-metric-box h3 { font-size: 1.6rem; }

    .nav-links { padding: 24px 16px; }

    .configurator-card { padding: 16px 14px; }

    .contact-info-panel,
    .contact-form-panel { padding: 18px 14px; }

    .container { padding: 0 14px; }

    .btn { padding: 12px 18px; font-size: 0.88rem; }
}

/* ——— Utilidades responsive globales ——— */
@media (max-width: 768px) {
    /* Ocultar decorativos en móvil para performance */
    .hero-glow-sphere-1,
    .hero-glow-sphere-2 { display: none; }

    /* Texto centrado en secciones oscuras en móvil */
    .configurator-section .section-title-wrap { text-align: center; }
}

/* ——— Accesibilidad: preferencia reduced motion ——— */
@media (prefers-reduced-motion: reduce) {
    .clients-track-fast { animation-play-state: paused; }
    .hero-glow-sphere-1, .hero-glow-sphere-2 { animation: none; }
    * { transition-duration: 0.01ms !important; }
}

/* Consistencia visual, accesibilidad y pantallas estrechas */
:root { --surface: #fff; --ink: #102033; --muted: #617286; --line: #e4eaf0; }
html { scroll-padding-top: 96px; }
body { background: #f7f9fb; color: var(--ink); }
img { max-width: 100%; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #38bdf8; outline-offset: 3px; }
.container { width: min(100%, 1320px); }
.header-glass { background: rgba(8, 18, 37, .94); }
.header-inner { gap: 18px; }
.brand-emblem { flex: 0 0 auto; }
.nav-links { gap: clamp(10px, 1.5vw, 22px); }
.nav-item-link { white-space: nowrap; font-size: .88rem; }
.hero-epic { padding-block: clamp(64px, 8vw, 112px); }
.hero-grid { gap: clamp(28px, 5vw, 64px); }
.hero-content h1 { font-size: clamp(2.2rem, 4.4vw, 3.65rem); text-wrap: balance; }
.hero-lead, .section-title-wrap p { text-wrap: pretty; }
.hero-glass-board, .configurator-card, .contact-info-panel, .contact-form-panel { border-radius: 24px; }
.service-card-photo, .post-card, .case-card, .faq-card-modern { border-radius: 18px; overflow: hidden; }
.service-card-photo, .post-card, .case-card { box-shadow: 0 12px 32px rgba(15, 35, 55, .07); }
.service-card-photo:hover, .post-card:hover, .case-card:hover { transform: translateY(-4px); }
.services-card-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.clients-marquee-wrapper { overflow: hidden; }
.clients-track-fast { will-change: transform; }
.footer-dark-rich > .container > div:first-child { grid-template-columns: minmax(230px, 1.5fr) repeat(2, minmax(150px, 1fr)) minmax(210px, 1.2fr) !important; }
.footer-bottom-row { padding-right: 0 !important; }
.whatsapp-floating-corner { z-index: 900; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 2000; padding: 10px 16px; border-radius: 8px; background: #fff; color: #102033; box-shadow: var(--shadow-md); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.article-main h1 { font-size: clamp(1.9rem, 5vw, 2.7rem) !important; text-wrap: balance; }
.article-main .article-content { overflow-wrap: anywhere; }
.article-main .article-content img, .article-main .article-content table { max-width: 100%; height: auto; }
.article-main .article-content table { display: block; overflow-x: auto; }
.related-articles { margin-top: clamp(40px, 7vw, 68px); padding-top: clamp(28px, 5vw, 44px); border-top: 1px solid var(--border-light); }
.related-articles > h2 { margin: 0 0 22px; font-size: clamp(1.45rem, 3vw, 1.8rem); }
.related-posts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.related-post-card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border-light); border-radius: 18px; box-shadow: 0 10px 26px rgba(15, 35, 55, .06); transition: transform .2s ease, box-shadow .2s ease; }
.related-post-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(15, 35, 55, .1); }
.related-post-image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #eaf0f5; }
.related-post-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.related-post-card:hover .related-post-image img { transform: scale(1.035); }
.related-post-placeholder { height: 100%; display: grid; place-items: center; color: #6d8297; font-size: 2rem; }
.related-post-content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; min-width: 0; padding: 20px; }
.related-post-category { color: var(--primary-dark); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.related-post-content h3 { margin: 9px 0 8px; font-size: 1.08rem; line-height: 1.35; }
.related-post-content h3 a { color: var(--text-main); overflow-wrap: anywhere; }
.related-post-content p { display: -webkit-box; margin: 0 0 18px; overflow: hidden; color: var(--text-muted); font-size: .9rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.related-post-meta { width: 100%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid #edf1f5; color: var(--text-muted); font-size: .8rem; }
.related-post-link { color: var(--primary-dark); font-weight: 700; }
.related-post-link:hover { color: var(--primary); }
.case-card-rich h3 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.case-card-rich > div > p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.case-result-badge { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.services-card-grid .service-card-photo h3 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.services-card-grid .service-card-photo .service-content-body > p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }

@media (max-width: 1120px) {
    .header-inner { height: 74px; }
    .header-inner > nav { order: 3; }
    .nav-links {
        position: fixed; inset: 74px 0 0; z-index: 999;
        display: flex; flex-direction: column; align-items: stretch; gap: 0;
        padding: 20px max(24px, calc((100vw - 720px) / 2));
        overflow-y: auto; background: rgba(8, 18, 37, .98);
        transform: translateX(105%); visibility: hidden;
        transition: transform .25s ease, visibility .25s;
    }
    .nav-links.open { left: auto; transform: translateX(0); visibility: visible; }
    .nav-links li { width: 100%; }
    .nav-item-link { display: block; padding: 16px 4px; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.1); }
    .menu-toggle-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.08); }
    .header-inner > div { gap: 10px !important; }
}
@media (max-width: 768px) {
    html { scroll-padding-top: 78px; }
    .header-inner { height: 68px; }
    .nav-links { inset-block-start: 68px; }
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-content h1 { font-size: clamp(2rem, 7vw, 2.8rem); }
    .hero-actions { display: grid; grid-template-columns: 1fr; }
    .hero-actions .btn { width: 100%; }
    .hero-metrics-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hero-metric-box { min-width: 0; }
    .footer-dark-rich > .container > div:first-child { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 28px 22px !important; }
    .top-bar-modern { display: none; }
}
@media (max-width: 520px) {
    .container { padding-inline: 18px; }
    .header-inner > div > .btn { padding: 10px 13px !important; font-size: .83rem !important; }
    .brand-emblem { padding: 4px 8px; }
    .brand-emblem img { height: 32px; }
    .hero-epic { padding-block: 48px 58px; }
    .hero-content h1 { font-size: clamp(1.85rem, 8vw, 2.35rem); }
    .badge-tech-dark { max-width: 100%; font-size: .67rem; line-height: 1.4; }
    .hero-metrics-strip { grid-template-columns: 1fr; }
    .hero-metric-box { display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
    .hero-metric-box h3 { margin: 0; min-width: 58px; }
    .hero-metric-box p { margin: 0; }
    .hero-glass-board, .configurator-card, .contact-info-panel, .contact-form-panel { padding: 22px 18px; }
    .footer-dark-rich > .container > div:first-child { grid-template-columns: 1fr !important; }
    .whatsapp-floating-corner { right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .nav-links { transition: none; }
    .clients-track-fast { animation: none !important; }
}

/* Reglas para las grillas que en el HTML tienen columnas en línea */
@media (max-width: 900px) {
    #nosotros .container > div:first-child,
    #contacto .container > div:first-child {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 30px !important;
    }
}
@media (max-width: 768px) {
    html, body { max-width: 100%; overflow-x: clip; }
    main > section.section { padding-block: 64px !important; }
    #nosotros .container > div:first-child > div,
    #contacto .container > div:first-child > div { min-width: 0; }
    #nosotros h2, #contacto h2 { font-size: clamp(1.8rem, 6vw, 2.35rem) !important; }
    #nosotros .container > div:first-child > div:last-child > div {
        max-width: calc(100% - 32px);
        padding: 12px 14px !important;
    }
    #nosotros img { display: block; width: 100%; height: auto; }
    #contacto a { overflow-wrap: anywhere; }
    #contacto iframe { display: block; width: 100%; max-width: 100%; }
    #contacto .container > div:first-child > div { padding: 30px 24px !important; }
    .section-title-wrap h2 { font-size: clamp(1.75rem, 5.8vw, 2.2rem); }
    .contact-layout-grid, .about-layout-grid { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 520px) {
    main > section.section { padding-block: 52px !important; }
    #nosotros .container > div:first-child > div:first-child > div { grid-template-columns: minmax(0, 1fr) !important; }
    #contacto .container > div:first-child > div { padding: 24px 18px !important; }
    #contacto iframe { height: 200px; }
    .section-title-wrap { margin-bottom: 28px; }
    .section-title-wrap h2 { font-size: clamp(1.55rem, 7vw, 1.9rem); }
    .configurator-card > div:first-child h2 { font-size: clamp(1.6rem, 7.2vw, 2rem) !important; line-height: 1.18; text-wrap: balance; }
    .article-main .container, .article-main { min-width: 0; }
    .post-footer { flex-wrap: wrap; gap: 12px; }
    .related-posts-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .related-post-content { padding: 18px; }
}
