/*
  ═══════════════════════════════════════════════════════════════
  ALORIGENESTUDIO — Arquitectura Inteligente
  Premium Design System v1.0
  A Milcomtec USA LLC Company
  ═══════════════════════════════════════════════════════════════
  Fonts: Inter (Body), Outfit (Headings), JetBrains Mono (Technical)
*/

/* ─── DESIGN TOKENS ─── */
:root {
    /* Core Palette */
    --bg-dark: #080c18;
    --bg-darker: #040610;
    --bg-section: #0a0e1c;
    --text-main: #e2e8f0;
    --text-muted: #8896ab;
    --text-dim: #4a5568;

    /* Brand Identity */
    --brand-primary: #0A84FF;
    --brand-secondary: #00D4FF;
    --brand-glow: rgba(10, 132, 255, 0.4);
    --brand-glow-subtle: rgba(10, 132, 255, 0.15);

    /* Accent Palette */
    --accent-health: #00C9A7;
    --accent-health-glow: rgba(0, 201, 167, 0.3);
    --accent-data: #6C5CE7;
    --accent-data-glow: rgba(108, 92, 231, 0.3);
    --accent-warning: #FF6B35;
    --accent-warning-glow: rgba(255, 107, 53, 0.3);
    --accent-gold: #F5A623;

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #0A84FF 0%, #00D4FF 100%);
    --grad-health: linear-gradient(135deg, #00C9A7 0%, #00B4D8 100%);
    --grad-data: linear-gradient(135deg, #6C5CE7 0%, #0A84FF 100%);
    --grad-dark: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    --grad-hero-overlay: linear-gradient(180deg, rgba(8,12,24,0.7) 0%, rgba(4,6,16,0.95) 100%);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.025);
    --glass-bg-hover: rgba(255, 255, 255, 0.055);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-border-hover: rgba(255, 255, 255, 0.14);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --glass-blur: blur(14px);

    /* Layout */
    --max-width: 1240px;
    --section-pad: 7rem;

    /* Transitions */
    --ease-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --ease-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 50px;
}

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

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-main);
}

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

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

/* ─── UTILITIES ─── */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-pad) 0;
    position: relative;
}

.bg-alt { background-color: var(--bg-section); }
.bg-darker { background-color: var(--bg-darker); }
.text-center { text-align: center; }

.text-gradient {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-health {
    background: var(--grad-health);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-data {
    background: var(--grad-data);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-accent { color: var(--brand-primary); }

.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-lg);
    transition: var(--ease-smooth);
}

.glass:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* ─── TYPOGRAPHY ─── */
.section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--brand-primary);
    margin-bottom: 0.8rem;
    display: block;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 650px;
    margin-bottom: 3.5rem;
}

.section-subtitle.centered {
    margin-left: auto;
    margin-right: auto;
}

.lead-text {
    font-size: 1.2rem;
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 1rem;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

/* ─── BUTTONS ─── */
.btn-primary, .btn-secondary, .btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2.2rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--ease-smooth);
    white-space: nowrap;
}

.btn-primary {
    background: var(--grad-primary);
    color: #fff;
    box-shadow: 0 4px 20px var(--brand-glow-subtle);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--brand-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}
.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--text-main);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--brand-primary);
    padding: 0.5rem 0;
}
.btn-ghost:hover {
    padding-left: 8px;
    color: var(--brand-secondary);
}

.btn-icon {
    font-size: 1.1rem;
}

/* ─── NAVBAR ─── */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: var(--ease-smooth);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background: rgba(8, 12, 24, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    box-shadow: 0 0 20px var(--brand-glow-subtle);
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-main);
}

.logo-tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 2px;
}

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 0.3rem 0;
}

.nav-link:hover { color: var(--text-main); }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-primary);
    transition: var(--ease-smooth);
}
.nav-link:hover::after { width: 100%; }

.nav-cta {
    margin-left: 1rem;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}
.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: 0.3s;
    border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(4, 6, 16, 0.97);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}
.mobile-menu.active { right: 0; }

.mobile-nav-links {
    list-style: none;
    text-align: center;
}
.mobile-link {
    display: block;
    font-size: 1.8rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    margin: 1.8rem 0;
    color: var(--text-muted);
    transition: var(--ease-smooth);
}
.mobile-link:hover { color: var(--brand-primary); }

/* ─── HERO ─── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background: url('assets/img/hero-datacenter.png') center/cover no-repeat;
    opacity: 0.15;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--grad-hero-overlay);
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    animation: orbFloat 12s infinite ease-in-out alternate;
    pointer-events: none;
}
.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--brand-primary);
    top: 5%;
    left: 15%;
}
.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-data);
    bottom: 0;
    right: 10%;
    animation-delay: -6s;
}
.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-health);
    top: 60%;
    left: 50%;
    animation-delay: -3s;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 30px) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 950px;
    padding: 0 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-pill);
    background: rgba(10, 132, 255, 0.1);
    border: 1px solid rgba(10, 132, 255, 0.2);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--brand-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 4.2rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

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

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.3rem;
}

/* ─── ABOUT / AUTHORITY ─── */
.about-text p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.feature-mini {
    padding: 1.8rem;
    transition: var(--ease-smooth);
}
.feature-mini:hover {
    transform: translateY(-5px);
}

.feature-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.feature-icon-box.blue { background: rgba(10, 132, 255, 0.12); }
.feature-icon-box.green { background: rgba(0, 201, 167, 0.12); }
.feature-icon-box.purple { background: rgba(108, 92, 231, 0.12); }
.feature-icon-box.orange { background: rgba(255, 107, 53, 0.12); }

.feature-mini h4 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.feature-mini p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.holding-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2rem;
}

/* ─── MISSION CRITICAL / DATA CENTERS ─── */
.mc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.mc-card {
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.mc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: var(--ease-smooth);
}

.mc-card:hover::before {
    background: var(--grad-primary);
    box-shadow: 0 0 20px var(--brand-glow);
}

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

.mc-card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.mc-card h4 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}

.mc-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.mc-tag {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-sm);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    background: var(--brand-glow-subtle);
    color: var(--brand-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mc-image-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.mc-image-container img {
    width: 100%;
    transition: var(--ease-smooth);
}

.mc-image-container:hover img {
    transform: scale(1.03);
}

.mc-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(4,6,16,0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.mc-image-overlay p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ─── BIM & DIGITAL TWINS ─── */
.twin-levels {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.twin-level {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1.5rem;
    padding: 1.8rem 2rem;
    align-items: center;
    cursor: pointer;
}

.twin-level:hover {
    transform: translateX(8px);
}

.level-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.level-number {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: #fff;
}

.level-1 .level-number { background: rgba(10,132,255,0.2); color: var(--brand-primary); }
.level-2 .level-number { background: rgba(0,212,255,0.2); color: var(--brand-secondary); }
.level-3 .level-number { background: rgba(0,201,167,0.2); color: var(--accent-health); }
.level-4 .level-number { background: rgba(108,92,231,0.2); color: var(--accent-data); }
.level-5 .level-number { background: rgba(255,107,53,0.2); color: var(--accent-warning); }

.level-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.level-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.level-content p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.level-app {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--brand-secondary);
    opacity: 0.8;
}

.bim-image-section {
    margin-top: 4rem;
}

.bim-showcase {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    max-height: 400px;
}

.bim-showcase img {
    width: 100%;
    object-fit: cover;
}

/* ─── STANDARDS / CERTIFICATIONS ─── */
.standards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.standard-card {
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.standard-card:hover {
    transform: translateY(-6px);
}

.standard-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: var(--brand-glow-subtle);
    transition: var(--ease-smooth);
}

.standard-card:hover .standard-icon {
    box-shadow: 0 0 30px var(--brand-glow-subtle);
    transform: scale(1.05);
}

.standard-card h4 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.standard-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.standard-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-pill);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
}

.standard-card.iso-quality .standard-icon { background: rgba(10,132,255,0.12); }
.standard-card.iso-env .standard-icon { background: rgba(0,201,167,0.12); }
.standard-card.iso-safety .standard-icon { background: rgba(255,107,53,0.12); }
.standard-card.leed .standard-icon { background: rgba(0,201,167,0.12); }
.standard-card.nfpa .standard-icon { background: rgba(255,60,60,0.12); }
.standard-card.ncarb .standard-icon { background: rgba(108,92,231,0.12); }

/* Benefits Table */
.benefits-table {
    margin-top: 4rem;
}

.benefits-table h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.tech-table thead {
    background: rgba(10,132,255,0.08);
}

.tech-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--brand-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.tech-table td {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
}

.tech-table tbody tr {
    transition: var(--ease-smooth);
}

.tech-table tbody tr:hover {
    background: rgba(10,132,255,0.04);
}

.tech-table td:first-child {
    font-weight: 500;
    color: var(--text-main);
}

/* ─── MEDICAL GAS / HOSPITAL ─── */
.nfpa-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.nfpa-card {
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.nfpa-number {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    opacity: 0.15;
    position: absolute;
    top: 10px;
    right: 15px;
    line-height: 1;
}

.nfpa-card.cat-1 { border-top: 3px solid #FF4444; }
.nfpa-card.cat-1 .nfpa-number { color: #FF4444; }
.nfpa-card.cat-2 { border-top: 3px solid var(--accent-warning); }
.nfpa-card.cat-2 .nfpa-number { color: var(--accent-warning); }
.nfpa-card.cat-3 { border-top: 3px solid var(--accent-gold); }
.nfpa-card.cat-3 .nfpa-number { color: var(--accent-gold); }
.nfpa-card.cat-4 { border-top: 3px solid var(--accent-health); }
.nfpa-card.cat-4 .nfpa-number { color: var(--accent-health); }

.nfpa-card h4 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    position: relative;
}

.nfpa-card .risk-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    display: block;
}

.cat-1 .risk-label { color: #FF4444; }
.cat-2 .risk-label { color: var(--accent-warning); }
.cat-3 .risk-label { color: var(--accent-gold); }
.cat-4 .risk-label { color: var(--accent-health); }

.nfpa-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    position: relative;
}

.hospital-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.hospital-feature {
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.hospital-feature:hover {
    transform: translateY(-3px);
}

.hf-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: rgba(0,201,167,0.1);
}

.hospital-feature h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.hospital-feature p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ─── IoT / HARDWARE ─── */
.iot-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.hw-specs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hw-spec {
    padding: 1.5rem;
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.hw-spec:hover {
    transform: translateX(6px);
}

.hw-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: rgba(108,92,231,0.12);
}

.hw-spec h4 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.hw-spec p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.hw-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--accent-data);
    margin-top: 0.3rem;
    display: block;
}

/* ─── NEARSHORING ─── */
.nearshoring-content {
    margin-bottom: 4rem;
}

.ns-advantages {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.ns-adv {
    padding: 2rem 1.5rem;
    text-align: center;
}

.ns-adv:hover {
    transform: translateY(-5px);
}

.ns-adv-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.ns-adv h4 {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.ns-adv p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Calculator */
.calculator-section {
    padding: 3rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    max-width: 900px;
    margin: 0 auto;
}

.calc-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.calc-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.calc-sliders {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.calc-group label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
}

.calc-group input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.08);
    outline: none;
    margin-bottom: 0.5rem;
}

.calc-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--grad-primary);
    cursor: pointer;
    box-shadow: 0 0 12px var(--brand-glow);
}

.calc-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-secondary);
}

.calc-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.calc-result {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.02);
}

.calc-result-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.calc-result-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
}

.calc-result-value.savings {
    color: var(--accent-health);
}

.calc-result-value.us-cost {
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.7;
}

.calc-result-value.ns-cost {
    color: var(--brand-secondary);
}

/* ─── ENGINEERING SERVICES ─── */
.services-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.services-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--glass-border);
    z-index: 0;
}

.timeline-phase {
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.timeline-phase:hover {
    transform: translateY(-5px);
}

.phase-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--grad-primary);
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 15px var(--brand-glow);
    position: relative;
}

.phase-dot::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid var(--brand-primary);
    opacity: 0.3;
    animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.8); opacity: 0; }
}

.phase-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-phase h4 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.timeline-phase p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.interventoria-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.interv-card {
    padding: 2rem 1.5rem;
    text-align: center;
}

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

.interv-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.interv-card h4 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.interv-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ─── CONTACT ─── */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.hq-block {
    padding: 1.5rem;
    border-left: 3px solid var(--brand-primary);
    margin-bottom: 1.5rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: rgba(10,132,255,0.04);
}

.hq-block h4 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.hq-block p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.contact-form {
    padding: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    background: rgba(0,0,0,0.35);
    border: 1px solid var(--glass-border);
    padding: 0.85rem 1.2rem;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: var(--ease-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 15px rgba(10, 132, 255, 0.15);
}

.form-control::placeholder {
    color: var(--text-dim);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238896ab' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

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

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

/* ─── FOOTER ─── */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
    background: var(--bg-darker);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo-name {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.footer-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 1rem;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
    margin-bottom: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.6rem;
}

.footer-col a {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.footer-col a:hover {
    color: var(--brand-primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.footer-legal-links a:hover {
    color: var(--brand-primary);
}

/* ─── SCROLL ANIMATIONS ─── */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

/* ─── BG PATTERNS ─── */
.bg-grid-pattern {
    background-image:
        linear-gradient(var(--glass-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: center;
}

.bg-dots-pattern {
    background-image: radial-gradient(circle, var(--glass-border) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.2rem; }
    .section-title { font-size: 2.2rem; }
    .grid-2 { gap: 2rem; }
    .grid-3, .standards-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-4, .nfpa-categories, .ns-advantages, .services-timeline, .interventoria-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-timeline::before { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .calc-sliders { grid-template-columns: 1fr; }
    .calc-results { grid-template-columns: repeat(3, 1fr); }
    .hero-stats { gap: 2rem; }
}

@media (max-width: 768px) {
    :root { --section-pad: 4.5rem; }

    .nav-links, .nav-cta { display: none; }
    .hamburger { display: flex; }

    .hero-title { font-size: 2.4rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-cta { flex-direction: column; align-items: center; }
    .hero-stats { flex-direction: column; gap: 1.5rem; }

    .grid-2, .contact-layout { grid-template-columns: 1fr; }
    .grid-3, .grid-4, .standards-grid, .mc-grid,
    .nfpa-categories, .ns-advantages, .about-features,
    .hospital-features, .services-timeline, .interventoria-grid,
    .iot-layout { grid-template-columns: 1fr; }

    .form-row { grid-template-columns: 1fr; }
    .section-title { font-size: 1.9rem; }
    .calc-results { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .footer-legal-links { justify-content: center; }

    .twin-level { grid-template-columns: 60px 1fr; gap: 1rem; padding: 1.5rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .container { padding: 0 1.2rem; }
    .stat-number { font-size: 2rem; }
}


/* ===== Legacy Portafolio & Blog styles (preservados) ===== */


/* ============================================================
   PORTFOLIO SECTION
   ============================================================ */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}


.filter-btn {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 8px 22px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition-base);
}


.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(220, 90, 50, 0.2);
}


.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}


.portfolio-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3.5;
  transition: all var(--transition-slow);
}


.portfolio-item.hidden {
  display: none;
}


.project-img-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}


.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}


.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(360deg, rgba(10,12,16,0.95) 0%, rgba(10,12,16,0.4) 60%, transparent 100%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  transition: opacity var(--transition-base);
}


.portfolio-item:hover .project-overlay {
  opacity: 1;
}


.portfolio-item:hover img {
  transform: scale(1.08);
}


.project-details {
  transform: translateY(20px);
  transition: transform var(--transition-base);
}


.portfolio-item:hover .project-details {
  transform: translateY(0);
}


.project-category {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.35rem;
}


.project-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}


.project-summary {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}


.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}


.project-tags span {
  font-size: 0.7rem;
  padding: 2px 10px;
  background: rgba(220, 90, 50, 0.1);
  border: 1px solid rgba(220, 90, 50, 0.2);
  border-radius: var(--radius-full);
  color: var(--text-primary);
}


/* ============================================================
   BLOG SECTION
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}


.blog-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-slow);
}


.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}


.blog-img-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
}


.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}


.blog-card:hover .blog-img {
  transform: scale(1.04);
}


.blog-date {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(10, 12, 16, 0.8);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-primary);
}


.blog-body {
  padding: 2rem;
}


.blog-category {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.5rem;
}


.blog-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}


.blog-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}


.blog-link {
  font-size: 0.88rem;
  font-weight: 600;
  transition: transform var(--transition-fast);
  display: inline-block;
}

.blog-link:hover {
  transform: translateX(5px);
}

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

  .about-grid,
  .portfolio-grid,
  .blog-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }