:root {
    --primary: #0089F7;
    --pink: #E73D89;
    --teal: #00D4AA;
    --purple: #CB6DE5;
    --orange: #FE914E;
    --green: #7FD858;
    --bg: #050510;
    --bg2: #08081a;
    --bg3: #0d0d25;
    --text: #E8F4FD;
    --text-dim: rgba(232, 244, 253, 0.6);
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --nav-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── HERO CANVAS ── */
#hero-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* ── HEADER ── */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
    border-bottom: 1px solid transparent;
}
header.scrolled {
    background: rgba(5, 5, 16, 0.9);
    backdrop-filter: blur(20px);
    border-bottom-color: var(--glass-border);
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 45px; filter: brightness(1.2); }

nav ul { display: flex; list-style: none; gap: 2.5rem; align-items: center; }
nav a { color: var(--text-dim); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.3s; letter-spacing: 0.02em; }
nav a:hover { color: var(--text); }

.btn-nav {
    padding: 0.65rem 1.8rem;
    background: var(--primary);
    color: #fff !important;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s;
    text-decoration: none;
}
.btn-nav:hover { background: var(--teal); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,212,170,0.35); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 0.5rem; }
.menu-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; display: block; }

/* ── HERO ── */
.hero {
    position: relative;
    height: 100vh; min-height: 700px;
    display: flex; align-items: center;
    padding-top: var(--nav-h);
    z-index: 1; overflow: hidden;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(0,137,247,0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(231,61,137,0.08) 0%, transparent 50%);
    z-index: 0;
}
.hero-content { position: relative; z-index: 2; display: flex; align-items: center; gap: 3rem; }
.hero-text { flex: 1; max-width: 640px; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: var(--glass); border: 1px solid var(--glass-border);
    padding: 0.5rem 1.2rem; border-radius: 50px;
    font-size: 0.82rem; font-weight: 600; color: var(--teal);
    letter-spacing: 0.06em; margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}
.badge-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--teal);
    animation: pulse-dot 2s infinite;
}
.badge-dot-pink {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: var(--pink); animation: pulse-dot-pink 2s infinite;
    flex-shrink: 0;
}
@keyframes pulse-dot { 0%,100%{box-shadow:0 0 0 0 rgba(0,212,170,0.6)} 50%{box-shadow:0 0 0 8px rgba(0,212,170,0)} }
@keyframes pulse-dot-pink { 0%,100%{box-shadow:0 0 0 0 rgba(231,61,137,0.6)} 50%{box-shadow:0 0 0 8px rgba(231,61,137,0)} }

.hero h1 {
    font-family: 'Orbitron', 'Poppins', sans-serif;
    font-size: clamp(2.8rem, 5.5vw, 4.8rem);
    font-weight: 900; line-height: 1.1; margin-bottom: 1.5rem; color: var(--text);
    text-shadow: 0 0 80px rgba(0,137,247,0.25);
}
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--teal), var(--pink));
    background-size: 200%;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    animation: gradient-shift 5s ease infinite;
}
.gradient-text-pink {
    font-family: 'Permanent Marker', cursive; font-size: 2.8rem;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    display: inline-block; transform: rotate(-2deg); margin-top: 0.4rem;
}
@keyframes gradient-shift { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }

.hero-sub { font-size: 1.1rem; color: var(--text-dim); line-height: 1.8; margin-bottom: 2.5rem; max-width: 540px; }

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.9rem 2.2rem; background: var(--primary);
    color: #fff; text-decoration: none; font-weight: 700;
    border-radius: 50px; font-size: 0.95rem; transition: all 0.3s;
    letter-spacing: 0.03em; border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(0,137,247,0.45); filter: brightness(1.1); }

.btn-outline {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.9rem 2.2rem; border: 1px solid var(--glass-border);
    color: var(--text); text-decoration: none; font-weight: 600;
    border-radius: 50px; font-size: 0.95rem; transition: all 0.3s;
    backdrop-filter: blur(10px); background: var(--glass);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); }

.btn-outline-light {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.9rem 2.2rem; border: 1px solid rgba(255,255,255,0.35);
    color: #fff; text-decoration: none; font-weight: 600;
    border-radius: 50px; font-size: 0.95rem; transition: all 0.3s;
    background: rgba(255,255,255,0.08); backdrop-filter: blur(10px);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.18); transform: translateY(-3px); }

.hero-stats { display: flex; align-items: center; gap: 2rem; }
.hstat { text-align: left; }
.hstat-n { display: block; font-family: 'Orbitron', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--teal); }
.hstat-l { font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.hstat-div { width: 1px; height: 40px; background: var(--glass-border); }

/* Floating labels */
.floating-label {
    position: absolute; background: rgba(5,5,16,0.7); border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px); padding: 0.75rem 1.2rem; border-radius: 12px;
    display: flex; align-items: center; gap: 0.7rem;
    font-size: 0.82rem; font-weight: 600; color: var(--text); z-index: 3;
    pointer-events: none; animation: float-label 4s ease-in-out infinite;
}
.fl1 { right: 6%; top: 22%; animation-delay: 0s; border-color: rgba(0,137,247,0.3); }
.fl2 { right: 12%; top: 54%; animation-delay: 1.5s; border-color: rgba(0,212,170,0.3); }
.fl3 { right: 4%; top: 75%; animation-delay: 0.8s; border-color: rgba(231,61,137,0.3); }
.fl-icon { font-size: 1.3rem; }
@keyframes float-label { 0%,100%{transform:translateY(0px)} 50%{transform:translateY(-12px)} }

/* Scroll hint */
.scroll-hint {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    color: var(--text-dim); font-size: 0.7rem; letter-spacing: 0.12em;
    text-transform: uppercase; z-index: 3; animation: fade-inout 3s ease infinite;
}
.scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scroll-anim 2s ease infinite;
}
@keyframes scroll-anim { 0%{transform:scaleY(0);transform-origin:top} 50%{transform:scaleY(1);transform-origin:top} 51%{transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }
@keyframes fade-inout { 0%,100%{opacity:0.4} 50%{opacity:1} }

/* ── HERO 3D MODEL (LLAMA) ── */
.hero-3d-model {
    flex: 0 0 380px;
    position: relative;
    height: 450px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(0,137,247,0.07) 0%, rgba(203,109,229,0.07) 100%);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: 0 0 60px rgba(0,137,247,0.1), 0 0 120px rgba(203,109,229,0.05);
}
#llama-canvas { width: 100%; height: 100%; display: block; }
.llama-loading {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1rem; color: var(--text-dim); font-size: 0.85rem; pointer-events: none;
}
.llama-spinner {
    width: 38px; height: 38px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.llama-tag {
    position: absolute; bottom: 1rem; left: 1rem;
    background: var(--glass); border: 1px solid var(--glass-border);
    padding: 0.4rem 0.9rem; border-radius: 8px;
    font-size: 0.72rem; font-weight: 600; color: var(--teal);
    backdrop-filter: blur(10px); letter-spacing: 0.04em; pointer-events: none;
}

/* ── TECH STRIP ── */
.tech-strip {
    position: relative; z-index: 2;
    background: rgba(0,137,247,0.07);
    border-top: 1px solid rgba(0,137,247,0.18);
    border-bottom: 1px solid rgba(0,137,247,0.18);
    overflow: hidden; padding: 0.9rem 0;
}
.tech-strip-inner {
    display: flex; gap: 2.5rem; width: max-content; white-space: nowrap;
    animation: scroll-strip 28s linear infinite;
}
.tech-strip-inner span { font-size: 0.78rem; font-weight: 700; color: var(--primary); letter-spacing: 0.12em; text-transform: uppercase; }
.tech-strip-inner .dot { color: var(--teal); }
@keyframes scroll-strip { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── SHARED ── */
section { position: relative; z-index: 2; }

.section-tag {
    font-family: 'Orbitron', sans-serif; font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.22em; text-transform: uppercase; color: var(--primary);
    margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.8rem;
}
.section-tag::before { content: ''; width: 28px; height: 2px; background: var(--primary); display: inline-block; }
.section-tag.light { color: var(--teal); }
.section-tag.light::before { background: var(--teal); }

.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 4rem; text-align: center; line-height: 1.3; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.85s cubic-bezier(0.22,1,0.36,1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ── ABOUT ── */
.section-about { padding: 9rem 0; background: var(--bg2); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; margin-top: 2rem; }
.about-text h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); font-weight: 700; line-height: 1.25; margin-bottom: 1.5rem; }
.about-text p { color: var(--text-dim); line-height: 1.85; margin-bottom: 1.2rem; font-size: 1.05rem; }

.tech-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.tech-tags span {
    padding: 0.4rem 1rem; border: 1px solid rgba(0,212,170,0.25);
    border-radius: 50px; font-size: 0.78rem; font-weight: 600; color: var(--teal);
    background: rgba(0,212,170,0.05); letter-spacing: 0.04em;
}

.about-3d-showcase { position: relative; height: auto; }
#about-canvas { width: 100%; height: 100%; border-radius: 16px; background: var(--bg3); border: 1px solid var(--glass-border); display: block; }
.about-model-img {
    width: 100%; height: auto; object-fit: cover;
    border-radius: 20px;
    display: block;
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 0 1px rgba(0,137,247,0.15), 0 20px 60px rgba(0,0,0,0.5), 0 0 60px rgba(0,137,247,0.1);
}
.showcase-labels {
    display: flex;
    flex-direction: row;
    gap: 1.2rem;
    margin-top: 1.2rem;
    flex-wrap: wrap;
}
.sl-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; font-weight: 600; color: var(--text-dim); }

.sl-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sl-dot.pink { background: var(--pink); } .sl-dot.blue { background: var(--primary); } .sl-dot.teal { background: var(--teal); }

.about-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 0.75rem;
}
.about-thumb {
    width: 100%; height: 120px; object-fit: cover;
    border-radius: 12px;
    display: block;
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 0 1px rgba(0,137,247,0.12), 0 8px 24px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-thumb:hover {
    transform: scale(1.03);
    box-shadow: 0 0 0 1px rgba(0,137,247,0.35), 0 12px 36px rgba(0,137,247,0.2);
}

/* ── PRODUCTS ── */
.section-products { padding: 9rem 0; background: var(--bg); }

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

.product-card {
    position: relative; background: var(--glass); border: 1px solid var(--glass-border);
    border-radius: 18px; overflow: hidden; transition: all 0.4s cubic-bezier(0.22,1,0.36,1); cursor: pointer;
}
.product-card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(0,0,0,0.5); }
.product-card:hover { border-color: attr(data-color); }

.card-3d-scene { width: 100%; height: 160px; overflow: hidden; }
.card-3d-scene canvas { width: 100% !important; height: 100% !important; display: block; }

.card-content { padding: 1.5rem 1.8rem 2rem; }
.card-icon { width: 64px; height: 64px; margin-bottom: 1rem; }
.card-icon img { width: 100%; height: 100%; object-fit: contain; }

.card-tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.product-card h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.7rem; color: var(--text); }
.product-card p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.7; }
.card-arrow { margin-top: 1.2rem; font-size: 1.1rem; color: var(--text-dim); transition: all 0.3s; display: inline-block; }
.product-card:hover .card-arrow { color: var(--text); transform: translateX(6px); }

.product-card--cta {
    background: linear-gradient(135deg, rgba(0,212,170,0.07), rgba(0,137,247,0.07));
    border-color: rgba(0,212,170,0.2);
    display: flex; align-items: center;
}
.cta-content { padding: 2.5rem; }
.cta-icon { font-size: 3rem; margin-bottom: 1rem; }
.product-card--cta h3 { font-size: 1.5rem; margin-bottom: 0.8rem; }

/* ── SHOWCASE ── */
.section-showcase { position: relative; height: 620px; display: flex; align-items: center; overflow: hidden; }
#showcase-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.showcase-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(5,5,16,0.85) 40%, rgba(5,5,16,0.3) 100%);
    z-index: 1;
}
.showcase-content { position: relative; z-index: 2; max-width: 640px; }
.showcase-content h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); font-weight: 700; line-height: 1.25; margin: 1rem 0 1.5rem; color: #fff; }
.showcase-content p { color: rgba(255,255,255,0.72); font-size: 1.05rem; line-height: 1.85; margin-bottom: 2rem; }

/* ── CLÍNICA ── */
.section-clinica { padding: 9rem 0; background: var(--bg2); }
.clinica-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.img-frame { position: relative; }
.img-frame img { width: 100%; border-radius: 18px; filter: brightness(0.88); display: block; }
.img-badge {
    position: absolute; bottom: -1rem; right: -1rem;
    background: var(--bg); border: 1px solid var(--glass-border);
    padding: 0.7rem 1.2rem; border-radius: 10px;
    font-size: 0.78rem; font-weight: 600; display: flex; align-items: center; gap: 0.6rem;
    backdrop-filter: blur(10px);
}
.clinica-text h2 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); font-weight: 700; line-height: 1.25; margin-bottom: 1.5rem; }
.clinica-text p { color: var(--text-dim); line-height: 1.85; margin-bottom: 1.2rem; font-size: 1.05rem; }
.clinica-text strong { color: var(--text); }

/* ── STATS ── */
.section-stats { padding: 6rem 0; background: var(--bg); border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-row-inner { display: flex; align-items: flex-end; gap: 0.1rem; }
.stat-num { font-family: 'Orbitron', sans-serif; font-size: 3.5rem; font-weight: 900; color: var(--primary); line-height: 1; }
.stat-plus, .stat-percent { font-family: 'Orbitron', sans-serif; font-size: 2rem; color: var(--teal); font-weight: 700; line-height: 1.3; }
.stat-label { font-size: 0.82rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.09em; margin-top: 0.6rem; }

/* ── CONTACT ── */
.section-contact { padding: 9rem 0; background: var(--bg2); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.contact-card {
    padding: 3rem 2rem; border-radius: 18px; text-align: center;
    border: 1px solid var(--glass-border); background: var(--glass);
    transition: all 0.4s;
}
.contact-card:hover { transform: translateY(-8px); }
.cc-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.contact-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.8rem; color: var(--text); }
.contact-card p { color: var(--text-dim); font-size: 0.92rem; line-height: 1.7; margin-bottom: 1.5rem; }
.cc-blue { border-top: 3px solid var(--primary); }
.cc-pink { border-top: 3px solid var(--pink); }
.cc-teal { border-top: 3px solid var(--teal); }
.cc-blue .btn-primary { background: var(--primary); }
.cc-pink .btn-primary { background: var(--pink); }
.cc-teal .btn-primary { background: var(--teal); }
.cc-blue:hover { box-shadow: 0 25px 60px rgba(0,137,247,0.2); }
.cc-pink:hover { box-shadow: 0 25px 60px rgba(231,61,137,0.2); }
.cc-teal:hover { box-shadow: 0 25px 60px rgba(0,212,170,0.2); }

/* ── APPS SALUD MENTAL ── */
.section-apps { padding: 9rem 0; background: var(--bg3); }

.apps-subtitle {
    text-align: center;
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 1.85;
    max-width: 680px;
    margin: 0 auto 4rem;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    margin-bottom: 3.5rem;
}

.app-feature {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.8rem;
    transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
}
.app-feature:hover {
    transform: translateY(-6px);
    border-color: rgba(0,137,247,0.25);
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.app-feature-icon {
    flex-shrink: 0;
    width: 46px; height: 46px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    color: var(--c, var(--primary));
}
.app-feature-icon svg { width: 22px; height: 22px; }

.app-feature-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.app-feature-text p {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.75;
}

.apps-cta {
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(0,137,247,0.07), rgba(203,109,229,0.07));
    border: 1px solid rgba(0,137,247,0.15);
    border-radius: 18px;
}
.apps-cta p {
    color: var(--text-dim);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

/* ── PAGE LOADER ── */
#page-loader {
    position: fixed; inset: 0; z-index: 99999;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.8s ease;
}
.loader-content { display: flex; flex-direction: column; align-items: center; gap: 1.8rem; }
.loader-logo { height: 64px; filter: brightness(1.3); animation: loader-pulse 2s ease-in-out infinite; }
@keyframes loader-pulse { 0%,100%{opacity:0.65;transform:scale(0.97)} 50%{opacity:1;transform:scale(1.04)} }
.loader-progress { width: 220px; height: 3px; background: rgba(255,255,255,0.1); border-radius: 99px; overflow: hidden; }
.loader-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--primary), var(--teal)); border-radius: 99px; animation: loader-bar 5s ease-out forwards; }
@keyframes loader-bar { 0%{width:0%} 60%{width:72%} 90%{width:92%} 100%{width:100%} }
.loader-hint { font-size: 0.78rem; color: var(--text-dim); letter-spacing: 0.1em; text-transform: uppercase; }

/* ── FOOTER ── */
footer { background: var(--bg); padding: 5rem 0 2.5rem; border-top: 1px solid var(--glass-border); }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-logo { height: 48px; margin-bottom: 1.5rem; filter: brightness(1.3); }
.footer-desc { color: var(--text-dim); max-width: 480px; font-size: 0.92rem; line-height: 1.75; margin-bottom: 2rem; }
.footer-links { display: flex; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-links a { color: var(--text-dim); text-decoration: none; font-size: 0.88rem; font-weight: 500; transition: color 0.3s; }
.footer-links a:hover { color: var(--primary); }
.footer-divider { width: 100%; height: 1px; background: var(--glass-border); margin-bottom: 2rem; }
.footer-address { font-size: 0.82rem; color: var(--text-dim); opacity: 0.75; margin-bottom: 0.4rem; }
.footer-copy { font-size: 0.82rem; color: var(--text-dim); opacity: 0.6; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid, .clinica-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-3d-showcase { height: auto; }
    .hero-3d-model { flex: 0 0 320px; height: 400px; }
    .apps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    nav ul { display: none; }
    nav ul.open { display: flex; flex-direction: column; position: fixed; top: var(--nav-h); left: 0; right: 0; background: rgba(5,5,16,0.97); backdrop-filter: blur(20px); padding: 2rem; gap: 1.5rem; border-bottom: 1px solid var(--glass-border); z-index: 999; }
    .menu-toggle { display: flex; }
    /* Hero en columna — modelo 3D visible en móvil */
    .hero-content { flex-direction: column; gap: 2rem; padding-bottom: 2rem; align-items: center; }
    .hero { min-height: 100svh; padding-top: calc(var(--nav-h) + 1.5rem); align-items: flex-start; padding-bottom: 3rem; height: auto; }
    .hero-text { max-width: 100%; text-align: center; }
    .hero-sub { max-width: 100%; }
    .hero-ctas { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero h1 { font-size: 2.2rem; }
    .hero-3d-model { display: block; flex: none; width: 100%; max-width: 400px; height: 300px; margin: 0 auto; }
    .fl1, .fl2, .fl3 { display: none; }
    .scroll-hint { display: none; }
    /* Secciones */
    .products-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .section-showcase { height: auto; min-height: 500px; padding: 6rem 0; }
    .about-thumbs { grid-template-columns: 1fr 1fr; }
    .apps-grid { grid-template-columns: 1fr; }
    .app-feature { flex-direction: column; gap: 0.8rem; }
    .section-apps, .section-products, #about { padding: 6rem 0; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 1.85rem; }
    .hero-3d-model { height: 250px; }
    .hero-stats { gap: 1rem; }
    .hstat-n { font-size: 1.3rem; }
    .hstat-div { height: 30px; }
    .hero-ctas { flex-direction: column; align-items: center; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .footer-links { gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
    .about-thumbs { grid-template-columns: 1fr; }
    .loader-progress { width: 170px; }
}
