/* ═══════════════════════════════════════════════════════════════
   DR. OLIVER PÉREZ BAUTISTA — 10x Premium Design System
   Estética: Médico-Cinematográfica Minimalista
   ═══════════════════════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
    --primary: #3B4D2B;
    --primary-light: #4A6035;
    --primary-glow: rgba(59, 77, 43, 0.15);
    --accent: #8BA872;
    --bg: #FFFFFF;
    --bg-alt: #F6F8F4;
    --bg-dark: #1A1F16;
    --text: #1A1A1A;
    --text-muted: #5A5A5A;
    --text-light: #8A8A8A;
    --border: #E8ECE4;
    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --container: 1200px;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.08);
    --shadow-xl: 0 30px 80px rgba(0,0,0,0.12);
}

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

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

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1.15;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Scroll Reveal Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children */
.stagger > * { transition-delay: calc(var(--i, 0) * 0.1s); }

/* ══════════════════════════════════════════════════════════════
   HEADER / NAVIGATION
   ══════════════════════════════════════════════════════════════ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid transparent;
    transition: all 0.4s var(--ease);
}

header.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper a { display: flex; align-items: center; }

.logo {
    height: 50px;
    transition: transform 0.3s var(--ease);
}
.logo:hover { transform: scale(1.05); }

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

.nav-links a {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text);
    position: relative;
    padding: 4px 0;
    transition: color 0.3s var(--ease);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.4s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s var(--ease);
    transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu Overlay */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(30px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}
.mobile-menu.open {
    display: flex;
    opacity: 1;
}
.mobile-menu a {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
    transition: color 0.3s var(--ease);
}
.mobile-menu a:hover { color: var(--primary); }

/* ══════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    background: #000;
}

/* Background Video */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(255,255,255,0.92) 0%,
        rgba(255,255,255,0.82) 35%,
        rgba(255,255,255,0.25) 60%,
        rgba(0,0,0,0.1) 100%
    );
    z-index: 1;
}

/* Floating particles effect */
.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    z-index: 0;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 24px;
    padding: 8px 18px;
    background: var(--primary-glow);
    border-radius: 50px;
    border: 1px solid rgba(59, 77, 43, 0.15);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--text);
    margin-bottom: 24px;
    text-transform: none;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.hero-title span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 480px;
    line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: #FFF;
    padding: 16px 36px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.4s var(--ease);
    box-shadow: 0 4px 20px rgba(59, 77, 43, 0.25);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s var(--ease);
}
.btn-primary:hover::before { transform: translateX(100%); }

.btn-primary:hover {
    background: var(--primary-light);
    box-shadow: 0 8px 30px rgba(59, 77, 43, 0.35);
    transform: translateY(-3px);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(59, 77, 43, 0.25);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--primary);
    padding: 16px 36px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 2px solid var(--primary);
    transition: all 0.4s var(--ease);
    cursor: pointer;
}
.btn-outline:hover {
    background: var(--primary);
    color: #FFF;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(59, 77, 43, 0.25);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════════
   STATS BAR
   ══════════════════════════════════════════════════════════════ */
.stats-bar {
    background: var(--bg-dark);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.stats-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59,77,43,0.3) 0%, transparent 50%);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
}
.stat-item {
    text-align: center;
    color: #FFF;
}
.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label {
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}

/* ══════════════════════════════════════════════════════════════
   SECTIONS GENERAL
   ══════════════════════════════════════════════════════════════ */
section {
    padding: 120px 0;
}

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

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
}
.section-label::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--text);
    text-transform: none;
    letter-spacing: -0.01em;
}
.section-title span { color: var(--primary); }

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 16px auto 0;
    line-height: 1.7;
}

.bg-alt { background: var(--bg-alt); }

/* ══════════════════════════════════════════════════════════════
   SERVICES
   ══════════════════════════════════════════════════════════════ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    padding: 40px 28px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.5s var(--ease);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    border-radius: 16px;
    background: var(--primary-glow);
    font-size: 1.8rem;
    color: var(--primary);
    transition: all 0.4s var(--ease);
}
.service-card:hover .service-icon {
    background: var(--primary);
    color: #FFF;
    transform: scale(1.1) rotate(-5deg);
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    text-transform: none;
    letter-spacing: 0;
}

.service-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════
   ABOUT ME
   ══════════════════════════════════════════════════════════════ */
.about-me {
    position: relative;
    overflow: hidden;
}

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

.about-content .label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
}
.about-content .label::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--primary);
}

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

.about-image-wrapper {
    position: relative;
}
.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    opacity: 0.15;
    z-index: 0;
}

.about-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
    transition: transform 0.6s var(--ease);
}
.about-img:hover { transform: scale(1.02); }

.watermark {
    position: absolute;
    bottom: -80px;
    right: -80px;
    opacity: 0.05;
    width: 400px;
    pointer-events: none;
    z-index: 0;
}

/* ══════════════════════════════════════════════════════════════
   CALCULATOR CTA
   ══════════════════════════════════════════════════════════════ */
.calc-cta {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #2a3520 100%);
    position: relative;
    overflow: hidden;
}
.calc-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139,168,114,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.calc-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 1;
}
.calc-cta .section-title { color: #FFF; }
.calc-cta .about-text { color: rgba(255,255,255,0.7); }
.calc-cta .section-label { color: var(--accent); }
.calc-cta .section-label::before { background: var(--accent); }

.btn-calc {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #FFF;
    color: var(--primary);
    padding: 18px 40px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.4s var(--ease);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    white-space: nowrap;
}
.btn-calc:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.btn-calc i { font-size: 1.2rem; }

/* ══════════════════════════════════════════════════════════════
   CALCULATOR MODAL
   ══════════════════════════════════════════════════════════════ */
.calc-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
    animation: fadeInBackdrop 0.3s var(--ease);
}
@keyframes fadeInBackdrop {
    from { opacity: 0; }
    to { opacity: 1; }
}

.calc-modal {
    background: #FFF;
    padding: 48px;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: slideUpModal 0.4s var(--ease-bounce);
}
@keyframes slideUpModal {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.calc-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--text-muted);
    transition: all 0.3s var(--ease);
    border: none;
    cursor: pointer;
}
.calc-close:hover {
    background: var(--primary);
    color: #FFF;
}

.calc-header { margin-bottom: 32px; }

.calc-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
    padding: 6px 14px;
    background: var(--primary-glow);
    border-radius: 50px;
    margin-bottom: 16px;
}

.calc-header h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    text-transform: none;
    letter-spacing: 0;
}

.calc-header p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.calc-group {
    margin-bottom: 28px;
}
.calc-group > label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 14px;
    color: var(--text);
}

.calc-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    font-size: 0.92rem;
}
.calc-option:hover {
    border-color: var(--primary);
    background: var(--primary-glow);
}
.calc-option input[type="radio"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}
.calc-option:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-glow);
    box-shadow: 0 2px 8px rgba(59,77,43,0.1);
}

.calc-submit {
    width: 100%;
    padding: 18px;
    background: var(--primary);
    color: #FFF;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.4s var(--ease);
    box-shadow: 0 4px 20px rgba(59,77,43,0.25);
}
.calc-submit:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59,77,43,0.35);
}

.calc-result { margin-top: 20px; }

.result-box {
    text-align: center;
    padding: 32px;
    border-radius: var(--radius);
    animation: slideUpModal 0.4s var(--ease);
}
.result-box h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    text-transform: none;
    letter-spacing: 0;
}
.result-box p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}
.result-box.low { background: #E8F5E9; color: #1B5E20; }
.result-box.medium { background: #FFF3E0; color: #BF360C; }
.result-box.high { background: #FFEBEE; color: #B71C1C; }

.result-box .btn-primary {
    display: inline-flex;
    margin-top: 8px;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.footer {
    background: var(--bg-dark);
    padding: 80px 0 32px;
    color: rgba(255,255,255,0.7);
}

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

.footer-brand p {
    font-size: 0.92rem;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 300px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: #FFF;
    letter-spacing: 0.1em;
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #FFF;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links a {
    font-size: 0.9rem;
    transition: color 0.3s var(--ease);
}
.footer-links a:hover {
    color: var(--accent);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}
.footer-contact a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: color 0.3s var(--ease);
}
.footer-contact a:hover { color: var(--accent); }
.footer-contact i { font-size: 1.1rem; color: var(--accent); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}

.smartizable-branding {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    transition: all 0.4s var(--ease);
    letter-spacing: 0.03em;
    position: relative;
    overflow: hidden;
}
/* Curved glass shine */
.smartizable-branding::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    width: 80%;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 100%);
    border-radius: 0 0 50% 50%;
    pointer-events: none;
}
.smartizable-branding:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.s-heart {
    color: #9B59B6;
    font-size: 0.85rem;
    animation: heartbeat 2s ease-in-out infinite;
}
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.2); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
    60% { transform: scale(1); }
}
.s-name {
    font-family: 'Dancing Script', cursive;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4A90D9 0%, #7B68EE 50%, #9B59B6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: filter 0.3s var(--ease);
}
.smartizable-branding:hover .s-name {
    filter: brightness(1.3);
}

/* ══════════════════════════════════════════════════════════════
   WHATSAPP FLOAT
   ══════════════════════════════════════════════════════════════ */
.wa-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 998;
    transition: all 0.4s var(--ease);
    animation: waPulse 2s ease-in-out infinite;
}
.wa-float:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}
@keyframes waPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6), 0 0 0 10px rgba(37,211,102,0.1); }
}

/* ══════════════════════════════════════════════════════════════
   SUBPAGES — Page Header
   ══════════════════════════════════════════════════════════════ */
.page-header {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%;
}

/* Subpage — Service Detail */
.service-detail-item {
    padding: 100px 0;
    border-bottom: 1px solid var(--border);
}
.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.service-features {
    list-style: none;
    margin: 24px 0;
}
.service-features li {
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}
.service-features i {
    color: var(--primary);
    margin-top: 3px;
    font-size: 1.1rem;
}
.reverse .service-detail-grid { direction: rtl; }
.reverse .service-detail-content { direction: ltr; }

/* Subpage — Timeline */
.timeline {
    margin: 48px 0;
    border-left: 2px solid var(--border);
    padding-left: 40px;
    position: relative;
}
.timeline-item {
    margin-bottom: 40px;
    position: relative;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -49px;
    top: 4px;
    width: 16px;
    height: 16px;
    background: var(--bg);
    border: 3px solid var(--primary);
    border-radius: 50%;
    transition: all 0.3s var(--ease);
}
.timeline-item:hover::before {
    background: var(--primary);
    box-shadow: 0 0 0 6px var(--primary-glow);
}
.timeline-year {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    display: block;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

/* Subpage — Value Cards */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.value-card {
    padding: 28px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.4s var(--ease);
}
.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.value-card i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
}
.value-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    text-transform: none;
    letter-spacing: 0;
}
.value-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Subpage — Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    padding: 100px 0;
}
.contact-info-card {
    margin-bottom: 36px;
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease);
}
.contact-info-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}
.contact-info-card i {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 12px;
    display: block;
}
.contact-info-card h3 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    text-transform: none;
    letter-spacing: 0;
}

.contact-form {
    background: var(--bg-alt);
    padding: 48px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.form-group {
    margin-bottom: 22px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--bg);
    transition: all 0.3s var(--ease);
    color: var(--text);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════════════════ */

/* Tablet Landscape */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    section { padding: 80px 0; }
    .container { padding: 0 20px; }

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

    .hero { min-height: 90vh; padding-top: 80px; }
    .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(255,255,255,0.95) 0%,
            rgba(255,255,255,0.85) 50%,
            rgba(255,255,255,0.5) 100%
        );
    }
    .hero-title { font-size: clamp(2rem, 7vw, 3rem); }
    .hero-subtitle { font-size: 1rem; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline { width: 100%; justify-content: center; }

    .services-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-image-wrapper::before { display: none; }

    .calc-cta-inner {
        flex-direction: column;
        text-align: center;
    }

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

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .stats-bar { padding: 40px 0; }

    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

    /* Subpages */
    .page-header { padding: 120px 0 60px; }
    .page-header .hero-title { font-size: clamp(1.5rem, 5vw, 2rem); }
    .service-detail-grid { grid-template-columns: 1fr; gap: 40px; }
    .reverse .service-detail-grid { direction: ltr; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; padding: 60px 0; }
    .contact-form { padding: 32px 20px; }
    .values-grid { grid-template-columns: 1fr; }

    /* Calculator */
    .calc-modal { padding: 28px 20px; }
    .calc-header h2 { font-size: 1.3rem; }
}

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

    .hero { min-height: 85vh; }
    .hero-content { padding: 0 4px; }

    .stat-item { padding: 0 8px; }
    .stat-number { font-size: 2rem; }
    .stat-label { font-size: 0.7rem; }

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

    .footer { padding: 48px 0 24px; }
    .footer-logo { font-size: 1.2rem; }

    .wa-float { width: 52px; height: 52px; font-size: 1.4rem; bottom: 20px; right: 20px; }
}

/* ══════════════════════════════════════════════════════════════
   SCROLL INTERACTIVO (Smartizable)
   ══════════════════════════════════════════════════════════════ */
/* LOADER */
.loader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--bg-dark); color: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-content { text-align: center; }
.loader-logo {
    font-family: var(--font-display); font-size: 1.5rem;
    letter-spacing: 0.3em; margin-bottom: 20px; color: var(--accent);
}
.loader-label { font-size: 0.9rem; letter-spacing: 0.1em; color: rgba(255,255,255,0.7); }
.loader-progress {
    font-family: var(--font-display); font-size: 4.5rem;
    font-weight: 700; margin-top: 5px; color: #fff;
}

/* CANVAS & OVERLAY */
.canvas-wrap {
    position: sticky; top: 0; left: 0;
    width: 100%; height: 100vh; z-index: 0;
    overflow: hidden; pointer-events: none;
}
#hero-canvas {
    width: 100%; height: 100%; object-fit: cover;
    transform-origin: center center;
}
.dark-overlay {
    position: absolute; inset: 0;
    background-color: var(--bg-dark);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}

/* HERO INICIAL */
.hero-initial {
    position: relative; height: 100vh; width: 100%;
    z-index: 10; display: flex; align-items: center; justify-content: flex-start;
    padding-left: 5vw;
}
.hero-initial-bg {
    position: absolute; inset: 0; z-index: -2;
    background: url('frames/frame_0001.jpg') center/cover no-repeat;
}
.hero-overlay-initial {
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(105deg, var(--bg-dark) 0%, rgba(26, 31, 22, 0.85) 45%, transparent 100%);
}
.hero-initial .hero-title {
    font-size: clamp(4rem, 10vw, 12rem);
    line-height: 0.95; color: #fff;
    text-transform: uppercase; margin-bottom: 30px;
    letter-spacing: -0.03em;
}
.hero-initial .hero-title span { color: var(--accent); }
.hero-initial .hero-label, .hero-initial .hero-subtitle { color: rgba(255,255,255,0.8); }
.hero-initial .hero-label { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); }

/* GSAP SCROLL CONTAINER MASTER */
#interactive-master {
    position: relative; z-index: 1;
}

#scroll-container {
    position: relative; width: 100%; z-index: 5;
    pointer-events: none;
}

.scroll-section {
    position: relative; width: 100%;
    margin: 0;
    pointer-events: none; 
}

.scroll-section .content-block { 
    pointer-events: auto; 
}

/* GRADIENTS LATERALES PARA LECTURA SOBRE VIDEO */
.align-left { 
    justify-content: flex-start; padding-left: 5vw; padding-right: 50vw; 
    background: linear-gradient(90deg, rgba(26, 31, 22, 0.95) 0%, rgba(26, 31, 22, 0.8) 40%, transparent 100%);
}
.align-right { 
    justify-content: flex-end; padding-left: 50vw; padding-right: 5vw; 
    background: linear-gradient(-90deg, rgba(26, 31, 22, 0.95) 0%, rgba(26, 31, 22, 0.8) 40%, transparent 100%);
}
.align-center { 
    justify-content: center; text-align: center; width: 100%; padding: 0 5vw;
}

@media (max-width: 991px) {
    .align-left, .align-right {
        padding-left: 5vw; padding-right: 5vw;
        background: rgba(26, 31, 22, 0.85); /* Fondos sólidos en móvil */
        backdrop-filter: blur(10px);
        justify-content: center; text-align: center;
    }
}

/* Tipografía Blanca para Overlay */
.scroll-section .section-title, 
.scroll-section .section-desc, 
.scroll-section .about-text, 
.scroll-section h3 {
    color: #fff !important;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.scroll-section .section-label { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); color: #fff; }

/* Eliminando fondos de tarjetas para mantener legibilidad clara */
.scroll-section .service-card { border: none; background: transparent; padding: 15px 0; margin-bottom: 20px; box-shadow: none; text-align: left; }
.scroll-section .service-card p { color: rgba(255,255,255,0.7) !important; }
.scroll-section .service-icon { background: rgba(59, 77, 43, 0.5); color: #fff; border: 1px solid rgba(255,255,255,0.2); }

/* MARQUEE GIGANTE */
.marquee-container {
    height: 100vh; pointer-events: none; overflow: hidden; position: relative;
}
.marquee-content {
    display: flex; white-space: nowrap; font-family: var(--font-display);
    font-size: 15vw; font-weight: 700; text-transform: uppercase;
    color: rgba(255,255,255,0.1); -webkit-text-stroke: 3px rgba(255,255,255,0.8);
    will-change: transform; position: absolute; top: 50%; transform: translateY(-50%);
}

/* ═══════════════════════════════════════════════════════════════
   SUBPÁGINAS (PAGES) — PREMIUM DARK OLIVE AESTHETIC
   ═══════════════════════════════════════════════════════════════ */
body.page-dark { 
    background-color: var(--bg-dark); /* Color verde olivo muy profundo (#1A1F16) */
    color: #fff; 
}
.page-dark .page-header { background: transparent; padding: 180px 0 100px; text-align: center; }
.page-dark .hero-title { font-size: clamp(3rem, 6vw, 5rem); color: #fff; line-height: 1.1; margin-bottom: 20px; }
.page-dark .hero-title span { color: var(--accent); }
.page-dark .section-title { color: #fff; font-size: 3rem; margin-bottom: 20px; }
.page-dark .section-title span { color: var(--accent); }
.page-dark .section-desc { color: rgba(255,255,255,0.7); max-width: 700px; margin: 0 auto; font-size: 1.15rem; }
.page-dark .about-text { color: rgba(255,255,255,0.8); }
.page-dark .label { border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.05); }

/* SECCIONES Y TARJETAS EN PÁGINAS OSCURAS */
.page-dark .bg-alt { background: rgba(59, 77, 43, 0.1) !important; }
.page-dark .service-detail-item { padding: 100px 0; border-top: 1px solid rgba(255,255,255,0.05); }
.page-dark .service-detail-item:first-of-type { border-top: none; }
.page-dark .service-features li { color: rgba(255,255,255,0.85); font-size: 1.05rem; }
.page-dark .service-features i { color: var(--accent); }
.page-dark .about-img { border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 30px 60px rgba(0,0,0,0.5); }
.page-dark .value-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); }
.page-dark .value-card h3 { color: #fff; }
.page-dark .value-card p { color: rgba(255,255,255,0.7); }
.page-dark .timeline-item { border-left-color: rgba(255,255,255,0.2); }
.page-dark .timeline-year { color: var(--accent); font-weight: bold; }
.page-dark .timeline-item h3 { color: #fff; }

/* ESTADÍSTICAS EN PÁGINA OSCURA */
.page-dark .stats-bar { background: transparent; padding: 100px 0; border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); }
.page-dark .stat-number { color: #fff; }
.page-dark .stat-label { color: rgba(255,255,255,0.6); }

/* FORMULARIOS DE ALTA GAMA (CONTACTO) */
.page-dark .contact-info-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); box-shadow: none; pointer-events: auto; }
.page-dark .contact-info-card h3 { color: #fff; }
.page-dark .contact-info-card i { color: var(--accent); background: rgba(139, 168, 114, 0.1); }
.page-dark .contact-info-card .btn-primary { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.page-dark .contact-info-card .btn-primary:hover { background: var(--accent); color: #fff; }

.page-dark .contact-form { background: transparent; padding: 0; box-shadow: none; border: none; pointer-events: auto; }
.page-dark .form-group label { color: rgba(255,255,255,0.6); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 5px; }
.page-dark .form-group input, .page-dark .form-group select, .page-dark .form-group textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    border-radius: 0;
    color: #fff;
    padding: 15px 0;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}
.page-dark .form-group input:focus, .page-dark .form-group select:focus, .page-dark .form-group textarea:focus {
    border-bottom-color: var(--accent);
    outline: none; box-shadow: none;
}
.page-dark .form-group select option { background: var(--bg-dark); color: #fff; }

/* FIX MENÚ Y HEADER PARA SUBPAGINAS OSCURAS */
.page-dark #mainHeader { background: rgba(26, 31, 22, 0.8); border-bottom: 1px solid rgba(255,255,255,0.05); }
.page-dark #mainHeader.scrolled { background: rgba(26, 31, 22, 0.98); }
.page-dark .nav-links a { color: rgba(255,255,255,0.8); }
.page-dark .nav-links a:hover, .page-dark .nav-links a.active { color: var(--accent); }
.page-dark .hamburger span { background: #fff; }
.page-dark .mobile-menu { background: rgba(26, 31, 22, 0.98); }
.page-dark .mobile-menu a { color: #fff; }

/* ═══════════════════════════════════════════════════════════════
   WATERMARK & RESPONSIVIDAD (Subpáginas Premium)
   ═══════════════════════════════════════════════════════════════ */
.bg-watermark {
    position: fixed; inset: 0; z-index: -1;
    width: 100%; height: 100vh; object-fit: cover;
    opacity: 0.12; pointer-events: none;
    mix-blend-mode: overlay; /* Toque súper cinemático a la marca de agua */
}

@media (max-width: 991px) {
    /* Marquesina Index en Móvil */
    .marquee-content { font-size: 20vw; -webkit-text-stroke: 1px rgba(255,255,255,0.8); }

    /* Ajustes Móviles .page-dark */
    .page-dark .page-header { padding: 120px 0 60px; }
    .page-dark .hero-title { font-size: clamp(2rem, 8vw, 2.8rem) !important; margin-bottom: 15px; }
    .page-dark .section-title { font-size: 2.2rem !important; margin-bottom: 15px; }
    .page-dark .section-desc { font-size: 1.05rem; }
    .page-dark .about-text { font-size: 1rem; }
    
    .page-dark .service-detail-item { padding: 70px 0; }
    .page-dark .stats-bar { padding: 70px 0; }
    
    .page-dark .contact-form { padding: 20px 0; }
    .page-dark .form-group input, .page-dark .form-group select, .page-dark .form-group textarea { font-size: 1rem; }
}

@media (max-width: 480px) {
    .page-dark .hero-title { font-size: clamp(1.8rem, 6.5vw, 2.2rem) !important; }
    .page-dark .section-title { font-size: 1.8rem !important; }
    .page-dark .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .page-dark .stat-number { font-size: 2rem !important; }
}
