/* ============================================
   STUDIO CREANDO — Premium Design (Consolidated)
   Vibe: Campaign Studio / Editorial Motion
   ============================================ */

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

:root {
    --bg: #070910;
    --bg-subtle: #101625;
    --bg-card: rgba(16, 22, 37, 0.7);
    --border: rgba(255, 255, 255, 0.12);
    --border-hover: rgba(245, 166, 35, 0.5);
    --purple: #5468ff;
    --teal: #23c9a9;
    --orange: #f5a623;
    --magenta: #e84b8a;
    --white: #f7f8fc;
    --text: #b9c1d2;
    --text-muted: #7c889f;
    --radius: 1.25rem;
    --radius-lg: 2rem;
    --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
    --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Prevent horizontal scroll */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Sora', sans-serif;
    background:
        radial-gradient(900px 520px at 12% -8%, rgba(232, 75, 138, 0.2), transparent 60%),
        radial-gradient(700px 460px at 90% 0%, rgba(245, 166, 35, 0.14), transparent 65%),
        linear-gradient(180deg, #06080f 0%, #090d18 45%, #070910 100%);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 120px 120px;
    opacity: 0.22;
}

a { text-decoration: none; color: inherit; cursor: pointer; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Syne headings: tighter tracking for editorial feel */
.hero__title,
.section__title,
.stats__number,
.stats__plus,
.nosotros__number,
.marquee__track span,
.cta__core h2 {
    letter-spacing: -0.02em;
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--ease-spring), visibility 0.6s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.preloader__logo {
    height: 80px;
    width: auto;
    animation: preloaderPulse 1.5s ease-in-out infinite !important;
}

@keyframes preloaderPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.preloader__bar {
    width: 180px;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.preloader__fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--teal), var(--purple));
    border-radius: 10px;
    animation: preloaderFill 2s var(--ease-spring) forwards !important;
}

@keyframes preloaderFill {
    0% { width: 0%; }
    60% { width: 80%; }
    100% { width: 100%; }
}

/* ============================================
   HERO VIDEO BACKGROUND
   ============================================ */
.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    background: linear-gradient(135deg, #0a0e1a 0%, #141c2f 50%, #0a0e1a 100%);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 60%, rgba(232, 75, 138, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 30%, rgba(84, 104, 255, 0.10) 0%, transparent 50%),
        linear-gradient(
            to bottom,
            rgba(7, 9, 16, 0.62) 0%,
            rgba(7, 9, 16, 0.78) 40%,
            rgba(7, 9, 16, 0.92) 75%,
            rgba(7, 9, 16, 0.98) 100%
        );
    z-index: 1;
}

.hero__orb { z-index: 2; pointer-events: none; }
.hero__content { z-index: 3; }

/* ============================================
   SECTION REVEAL (Curtain wipe)
   ============================================ */
[data-reveal] {
    clip-path: inset(100% 0 0 0);
    transition: clip-path 1s var(--ease-spring);
}

[data-reveal].revealed {
    clip-path: inset(0 0 0 0);
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--teal), var(--purple), var(--magenta));
    z-index: 10001;
    transition: width 0.05s linear;
}

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    padding: 8px 16px;
    background: var(--teal);
    color: var(--bg);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 16px;
}

/* --- Grain Overlay --- */
.grain {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* --- Text Reveal --- */
[data-text-reveal] .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(60px) rotateX(-90deg);
    transition: opacity 0.6s var(--ease-spring), transform 0.6s var(--ease-spring);
}

[data-text-reveal].revealed .char {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

[data-text-reveal] .char-space {
    display: inline-block;
    width: 0.3em;
}

/* --- Video Clip Reveal --- */
.portafolio__item {
    clip-path: inset(8% round 16px);
    transition: clip-path 0.8s var(--ease-spring);
}

.portafolio__item:hover {
    clip-path: inset(0% round 16px);
}

/* --- Accessibility --- */
:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
    border-radius: 4px;
}

/* --- Eyebrow Tag --- */
.eyebrow {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    color: var(--teal);
    background: rgba(45, 212, 191, 0.08);
    border: 1px solid rgba(45, 212, 191, 0.15);
    margin-bottom: 20px;
}

.eyebrow--light {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

/* --- Scroll Animations --- */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(8px);
    transition: opacity 0.8s var(--ease-spring), transform 0.8s var(--ease-spring), filter 0.8s var(--ease-spring);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

[data-animate]:nth-child(2) { transition-delay: 0.08s; }
[data-animate]:nth-child(3) { transition-delay: 0.16s; }
[data-animate]:nth-child(4) { transition-delay: 0.24s; }
[data-animate]:nth-child(5) { transition-delay: 0.32s; }

/* --- Double-Bezel Card Architecture --- */
.card-shell {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 6px;
    transition: border-color 0.5s var(--ease-out), transform 0.4s var(--ease-spring);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-shell::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.12), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
    top: var(--spotlight-y, 50%);
    left: var(--spotlight-x, 50%);
    transform: translate(-50%, -50%);
    z-index: 0;
}

.card-shell:hover::before {
    opacity: 1;
}

.card-shell:hover {
    border-color: var(--border-hover);
}

.card-core {
    position: relative;
    z-index: 2;
    background: var(--bg-subtle);
    border-radius: calc(var(--radius-lg) - 6px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.04);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px 14px 28px;
    border-radius: 50px;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-spring);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: scale(0.98);
}

.btn--primary {
    background: linear-gradient(130deg, #ffb15d, #e84b8a 62%, #5468ff 100%);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(232, 75, 138, 0.28);
    position: relative;
    will-change: transform;
}

.btn--primary::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50px;
    background: linear-gradient(130deg, #ffd27b, #e84b8a, #5468ff);
    z-index: -1;
    opacity: 0;
    filter: blur(16px);
    transition: opacity 0.5s var(--ease-spring);
    animation: btnGlow 3s ease-in-out infinite !important;
}

.btn--primary:hover::before {
    opacity: 1;
}

@keyframes btnGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.btn--primary:hover {
    box-shadow: 0 12px 40px rgba(232, 75, 138, 0.35);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--border);
    padding: 12px 18px 12px 24px;
}

.btn--outline:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.03);
}

.btn--large {
    padding: 18px 24px 18px 36px;
    font-size: 1.05rem;
}

.btn__arrow-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    transition: transform 0.5s var(--ease-spring), background 0.5s var(--ease-spring);
}

.btn:hover .btn__arrow-wrap {
    transform: translate(2px, -2px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

.btn__arrow {
    width: 16px;
    height: 16px;
}

/* ============================================
   NAV — Floating Glass Pill
   ============================================ */
.nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: auto;
    max-width: 900px;
    transition: top 0.5s var(--ease-spring);
}

.nav__pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 8px 8px 20px;
    border-radius: 80px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: linear-gradient(140deg, rgba(12, 16, 27, 0.82), rgba(12, 16, 27, 0.62));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        0 18px 40px rgba(3, 7, 16, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.nav__logo-img {
    height: 44px;
    width: auto;
    transition: height 0.5s var(--ease-spring);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 8px;
}

.nav__menu a {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    padding: 8px 14px;
    border-radius: 50px;
    transition: color 0.4s var(--ease-out), background 0.4s var(--ease-out);
}

.nav__menu a:hover {
    color: var(--white);
    background: rgba(84, 104, 255, 0.14);
}

.nav__cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 10px 10px 18px;
    border-radius: 50px;
    background: linear-gradient(130deg, var(--orange), var(--magenta));
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: box-shadow 0.4s var(--ease-out);
}

.nav__cta:hover {
    box-shadow: 0 4px 20px rgba(45, 212, 191, 0.3);
}

.nav__cta-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    transition: transform 0.4s var(--ease-spring);
}

.nav__cta:hover .nav__cta-arrow {
    transform: translate(1px, -1px);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.nav__toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--white);
    transition: transform 0.5s var(--ease-spring), opacity 0.3s;
    transform-origin: center;
}

.nav__toggle.active span:first-child {
    transform: rotate(45deg) translate(2.5px, 2.5px);
}

.nav__toggle.active span:last-child {
    transform: rotate(-45deg) translate(2.5px, -2.5px);
}

/* Mobile Overlay */
.nav__overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(5, 5, 8, 0.92);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--ease-out);
}

.nav__overlay.open {
    opacity: 1;
    pointer-events: all;
}

.nav__overlay-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.nav__overlay-menu a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s var(--ease-spring), transform 0.5s var(--ease-spring), color 0.3s;
}

.nav__overlay.open .nav__overlay-menu a {
    opacity: 1;
    transform: translateY(0);
}

.nav__overlay.open .nav__overlay-menu li:nth-child(1) a { transition-delay: 0.05s; }
.nav__overlay.open .nav__overlay-menu li:nth-child(2) a { transition-delay: 0.1s; }
.nav__overlay.open .nav__overlay-menu li:nth-child(3) a { transition-delay: 0.15s; }
.nav__overlay.open .nav__overlay-menu li:nth-child(4) a { transition-delay: 0.2s; }
.nav__overlay.open .nav__overlay-menu li:nth-child(5) a { transition-delay: 0.25s; }

.nav__overlay-menu a:hover {
    color: var(--teal);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    position: relative;
    overflow: hidden;
    padding: 168px 24px 120px;
}

.hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: radial-gradient(ellipse at 20% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(45, 212, 191, 0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 80%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
    animation: meshShift 12s ease-in-out infinite alternate !important;
}

@keyframes meshShift {
    0% { background-position: 0% 0%, 100% 0%, 50% 100%; }
    100% { background-position: 100% 100%, 0% 100%, 50% 0%; }
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    will-change: transform;
}

.hero__orb--1 {
    width: 500px;
    height: 500px;
    background: var(--purple);
    opacity: 0.12;
    top: -10%;
    right: -5%;
    animation: orbFloat 10s ease-in-out infinite;
}

.hero__orb--2 {
    width: 400px;
    height: 400px;
    background: var(--teal);
    opacity: 0.08;
    bottom: -10%;
    left: -5%;
    animation: orbFloat 14s ease-in-out infinite reverse;
}

.hero__orb--3 {
    width: 300px;
    height: 300px;
    background: var(--magenta);
    opacity: 0.06;
    top: 40%;
    left: 40%;
    animation: orbFloat 18s ease-in-out infinite;
}

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

.hero__content {
    position: relative;
    z-index: 3;
    max-width: 980px;
    margin: 0 auto;
    animation: heroIn 1.2s var(--ease-spring) both;
}

@keyframes heroIn {
    from { opacity: 0; transform: translateY(40px); filter: blur(10px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero__title {
    font-family: 'Syne', sans-serif;
    max-width: 22ch;
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    line-height: 1.02;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(125deg, #ffffff 0%, #ffe4b8 32%, #ffb0d0 65%, #ffffff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-wrap: balance;
    filter: drop-shadow(0 2px 24px rgba(232, 75, 138, 0.18));
    animation: gradientShift 6s ease-in-out infinite !important;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero__subtitle {
    font-size: clamp(1.05rem, 2.2vw, 1.22rem);
    color: #d0d8e8;
    font-weight: 400;
    margin-bottom: 48px;
    max-width: 720px;
    line-height: 1.75;
    text-shadow: 0 1px 16px rgba(7, 9, 16, 0.6);
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.hero__btn-secondary {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
    color: var(--white);
    padding-right: 12px;
}

.hero__btn-secondary .nav__cta-arrow {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
}

.hero__proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 860px;
}

.hero__proof-card {
    padding: 20px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(130deg, rgba(20, 28, 47, 0.85), rgba(13, 18, 30, 0.60));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 32px rgba(3, 7, 16, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s var(--ease-spring), border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.hero__proof-card:hover {
    transform: translateY(-3px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 12px 40px rgba(3, 7, 16, 0.4);
}

.hero__proof-card:nth-child(1):hover {
    border-color: rgba(245, 166, 35, 0.45);
}
.hero__proof-card:nth-child(2) {
    border-color: rgba(84, 104, 255, 0.55);
}
.hero__proof-card:nth-child(2):hover {
    border-color: rgba(84, 104, 255, 0.65);
}
.hero__proof-card:nth-child(3) {
    border-color: rgba(35, 201, 169, 0.45);
}
.hero__proof-card:nth-child(3):hover {
    border-color: rgba(35, 201, 169, 0.55);
}

.hero .eyebrow {
    background: rgba(245, 166, 35, 0.10);
    border-color: rgba(245, 166, 35, 0.25);
    color: #ffd27b;
    box-shadow: 0 0 20px rgba(245, 166, 35, 0.08);
    text-shadow: 0 0 12px rgba(245, 166, 35, 0.3);
}

.hero__proof-value {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.hero__proof-label {
    display: block;
    color: var(--text);
    font-size: 0.82rem;
    line-height: 1.5;
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee {
    background: linear-gradient(90deg, rgba(16, 22, 37, 0.42), rgba(14, 20, 33, 0.78), rgba(16, 22, 37, 0.42));
    padding: 36px 0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

.marquee::before,
.marquee::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: min(300px, 40%);
    height: 1px;
}

.marquee::before {
    top: 0;
    background: linear-gradient(90deg, transparent, rgba(245, 166, 35, 0.3), transparent);
}

.marquee::after {
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(84, 104, 255, 0.3), transparent);
}

.marquee__track {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    animation: marqueeScroll 25s linear infinite !important;
}

.marquee__track span {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.05rem, 2vw, 1.45rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.52);
    white-space: nowrap;
    padding: 0 28px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: color 0.3s;
}

.marquee__track span:not(.marquee__dot):hover {
    color: rgba(255, 255, 255, 0.85);
}

.marquee__dot {
    width: 5px !important;
    height: 5px;
    background: linear-gradient(135deg, var(--orange), var(--magenta));
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    padding: 0 !important;
    box-shadow: 0 0 8px rgba(245, 166, 35, 0.3);
}

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

/* ============================================
   SECTIONS — Shared
   ============================================ */
.section__title {
    text-align: center;
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.section__subtitle {
    text-align: center;
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 64px;
    font-weight: 400;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   STATS
   ============================================ */
.stats {
    padding: 100px 0;
    position: relative;
}

.stats .section__title {
    background: linear-gradient(135deg, #ffffff 20%, #ffd27b 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stats__item {
    text-align: center;
    padding: 52px 24px;
    border-radius: var(--radius-lg);
    background: linear-gradient(140deg, rgba(17, 24, 40, 0.92), rgba(16, 22, 35, 0.68));
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: border-color 0.5s var(--ease-out), transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-spring);
}

.stats__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 166, 35, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
}

.stats__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(245, 166, 35, 0.06);
}

.stats__item:hover::before {
    opacity: 1;
}

.stats__number {
    font-family: 'Syne', sans-serif;
    font-size: clamp(3.4rem, 5vw, 4.6rem);
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 20%, #ffd27b 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    filter: drop-shadow(0 0 18px rgba(245, 166, 35, 0.15));
    display: inline-block;
    perspective: 600px;
}

.stats__plus {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    background: linear-gradient(135deg, #ffd27b, #e84b8a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats__label {
    display: block;
    margin-top: 16px;
    font-size: 0.88rem;
    color: #d3dae9;
    font-weight: 500;
    opacity: 0.88;
    line-height: 1.5;
}

/* Stats individual color accents */
.stats__item:nth-child(1) { border-color: rgba(245, 166, 35, 0.15); }
.stats__item:nth-child(2) { border-color: rgba(232, 75, 138, 0.15); }
.stats__item:nth-child(3) { border-color: rgba(84, 104, 255, 0.15); }
.stats__item:nth-child(4) { border-color: rgba(35, 201, 169, 0.15); }

.stats__item:nth-child(1):hover { border-color: rgba(245, 166, 35, 0.4); }
.stats__item:nth-child(2):hover { border-color: rgba(232, 75, 138, 0.4); }
.stats__item:nth-child(3):hover { border-color: rgba(84, 104, 255, 0.4); }
.stats__item:nth-child(4):hover { border-color: rgba(35, 201, 169, 0.4); }

/* ============================================
   STATS FLIP ANIMATION
   ============================================ */
.stats__digit {
    display: inline-block;
    animation: flipIn 0.6s var(--ease-spring) both !important;
}

@keyframes flipIn {
    from {
        opacity: 0;
        transform: rotateX(-90deg) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: rotateX(0) translateY(0);
    }
}

/* ============================================
   OFERTA (Strategy Section)
   ============================================ */
.oferta {
    padding: 84px 0 20px;
}

.oferta__layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 16px;
    align-items: stretch;
}

.oferta__copy {
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(14, 20, 33, 0.82), rgba(12, 17, 28, 0.62));
}

.oferta__copy .section__title,
.oferta__copy .section__subtitle {
    text-align: left;
}

.oferta__copy .section__subtitle {
    margin: 0 0 20px;
}

.oferta__bullets {
    display: grid;
    gap: 10px;
    margin: 0 0 26px;
}

.oferta__bullets li {
    padding-left: 28px;
    position: relative;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.oferta__bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(130deg, var(--orange), var(--magenta));
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.12);
}

.oferta__deliverables-core {
    height: 100%;
    padding: 30px 26px;
}

.oferta__deliverables h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.45rem;
    margin-bottom: 18px;
}

.oferta__items {
    display: grid;
    gap: 14px;
}

.oferta__items article {
    padding: 14px 14px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.oferta__items h4 {
    font-size: 0.92rem;
    margin-bottom: 6px;
}

.oferta__items p {
    color: var(--text);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ============================================
   PORTAFOLIO
   ============================================ */
.portafolio {
    padding: 95px 0 72px;
    text-align: center;
    position: relative;
}

.portafolio__head {
    margin-bottom: 34px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    text-align: left;
}

.portafolio__head .section__title,
.portafolio__head .section__subtitle {
    text-align: left;
}

.portafolio__head .section__subtitle {
    margin: 10px 0 0;
    max-width: 620px;
}

.portafolio__cta {
    white-space: nowrap;
}

.portafolio__carousel {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

.portafolio__track {
    display: flex;
    gap: 16px;
    animation: carouselScroll 80s linear infinite !important;
    width: max-content;
}

.portafolio__carousel:hover .portafolio__track {
    animation-play-state: paused;
}

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

.portafolio__item {
    flex-shrink: 0;
    width: 420px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 28px rgba(3, 7, 16, 0.35);
}

.portafolio__item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
    transition: transform 1.2s var(--ease-spring) !important;
}

.portafolio__item.in-view video {
    transform: scale(1);
}

.portafolio__item:hover video {
    transform: scale(1.05) !important;
}

/* ============================================
   SERVICIOS
   ============================================ */
.servicios {
    padding: 140px 0;
    text-align: center;
    position: relative;
    isolation: isolate;
}

.servicios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(420px, 60%);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(84, 104, 255, 0.6), rgba(232, 75, 138, 0.5), transparent);
    box-shadow: 0 0 20px rgba(84, 104, 255, 0.15), 0 0 60px rgba(232, 75, 138, 0.08);
}

.servicios::after {
    content: '';
    position: absolute;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    filter: blur(110px);
    z-index: -1;
    opacity: 0.4;
    background: radial-gradient(circle, rgba(84, 104, 255, 0.42), transparent 70%);
    top: 10%;
    right: -160px;
}

.servicios__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    text-align: left;
}

.card-shell--wide {
    grid-column: 1 / -1;
}

.servicios__grid .card-shell {
    background: linear-gradient(135deg, rgba(20, 28, 44, 0.72), rgba(14, 19, 31, 0.88));
    border: 1px solid rgba(255, 255, 255, 0.10);
    transition: border-color 0.5s var(--ease-out), transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-spring);
}

.servicios__grid .card-shell:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 50px rgba(3, 7, 16, 0.4), 0 0 30px rgba(84, 104, 255, 0.06);
}

.servicios__grid .card-shell:nth-child(1):hover {
    border-color: rgba(232, 75, 138, 0.4);
    box-shadow: 0 20px 50px rgba(3, 7, 16, 0.4), 0 0 30px rgba(232, 75, 138, 0.08);
}

.servicios__grid .card-shell:nth-child(2):hover {
    border-color: rgba(35, 201, 169, 0.4);
    box-shadow: 0 20px 50px rgba(3, 7, 16, 0.4), 0 0 30px rgba(35, 201, 169, 0.08);
}

.servicios__grid .card-shell:nth-child(3):hover {
    border-color: rgba(84, 104, 255, 0.4);
    box-shadow: 0 20px 50px rgba(3, 7, 16, 0.4), 0 0 30px rgba(84, 104, 255, 0.08);
}

.servicios__grid .card-shell:nth-child(4):hover,
.servicios__grid .card-shell:nth-child(5):hover {
    border-color: rgba(245, 166, 35, 0.4);
    box-shadow: 0 20px 50px rgba(3, 7, 16, 0.4), 0 0 30px rgba(245, 166, 35, 0.08);
}

.servicios__grid .card-core {
    position: relative;
    overflow: hidden;
}

.servicios__grid .card-core::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--teal), var(--purple));
    transition: height 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-spring);
}

.servicios__grid .card-shell:hover .card-core::before {
    height: 3px;
    box-shadow: 0 2px 16px currentColor;
}

.servicios__grid .card-shell:nth-child(1) .card-core::before {
    background: linear-gradient(90deg, #ff7eb2, #e84b8a);
}

.servicios__grid .card-shell:nth-child(2) .card-core::before {
    background: linear-gradient(90deg, #36e1c5, #23c9a9);
}

.servicios__grid .card-shell:nth-child(3) .card-core::before {
    background: linear-gradient(90deg, #8ea2ff, #5468ff);
}

.servicios__grid .card-shell:nth-child(4) .card-core::before,
.servicios__grid .card-shell:nth-child(5) .card-core::before {
    background: linear-gradient(90deg, #ffd27b, #f5a623);
}

.servicio-card {
    padding: 40px 36px;
    transition: transform 0.5s var(--ease-spring);
    cursor: pointer;
}

.card-shell:hover .servicio-card {
    transform: translateY(-2px);
}

.servicio-card__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: transform 0.5s var(--ease-spring);
}

.card-shell:hover .servicio-card__icon {
    transform: scale(1.12);
}

.card-shell:hover .servicio-card__icon--reels {
    box-shadow: 0 0 24px rgba(236, 72, 153, 0.25);
}
.card-shell:hover .servicio-card__icon--tour {
    box-shadow: 0 0 24px rgba(45, 212, 191, 0.25);
}
.card-shell:hover .servicio-card__icon--web {
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.25);
}
.card-shell:hover .servicio-card__icon--campanas {
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.25);
}
.card-shell:hover .servicio-card__icon--bot {
    box-shadow: 0 0 24px rgba(45, 212, 191, 0.2);
}

.servicio-card__icon svg {
    width: 26px;
    height: 26px;
}

.servicio-card__icon--reels {
    background: rgba(236, 72, 153, 0.1);
    color: var(--magenta);
}

.servicio-card__icon--tour {
    background: rgba(45, 212, 191, 0.1);
    color: var(--teal);
}

.servicio-card__icon--web {
    background: rgba(139, 92, 246, 0.1);
    color: var(--purple);
}

.servicio-card__icon--campanas {
    background: rgba(245, 158, 11, 0.1);
    color: var(--orange);
}

.servicio-card__icon--bot {
    background: rgba(45, 212, 191, 0.06);
    color: var(--teal);
}

.servicio-card__icon--crm {
    background: rgba(84, 104, 255, 0.1);
    color: var(--purple);
}

.card-shell:hover .servicio-card__icon--crm {
    box-shadow: 0 0 24px rgba(84, 104, 255, 0.2);
}

.servicio-card h3 {
    font-size: 1.16rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    cursor: pointer;
}

.servicio-card h3[data-scramble] {
    display: inline-block;
}

.servicio-card p {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.7;
}

.servicio-card__brands {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text);
    border: 1px solid var(--border);
    transition: border-color 0.4s var(--ease-out), background 0.4s var(--ease-out);
}

.brand-badge img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 4px;
}

.card-shell:hover .brand-badge {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.03);
}

.servicio-card__link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--teal);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: gap 0.4s var(--ease-spring), color 0.3s;
    position: relative;
}

.servicio-card__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--teal), transparent);
    transition: width 0.4s var(--ease-spring);
}

.card-shell:hover .servicio-card__link::after {
    width: 70%;
}

.link-arrow {
    transition: transform 0.4s var(--ease-spring);
}

.card-shell:hover .servicio-card__link {
    color: var(--white);
    gap: 10px;
}

.card-shell:hover .link-arrow {
    transform: translate(2px, -2px);
}

/* ============================================
   PROCESO
   ============================================ */
.proceso {
    padding: 108px 0 70px;
    text-align: center;
}

.proceso__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    text-align: left;
    position: relative;
}

.proceso__card {
    padding: 28px 24px;
    position: relative;
}

.proceso__number {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffd27b;
    display: inline-block;
    margin-bottom: 10px;
    transition: transform 0.4s var(--ease-spring), filter 0.4s var(--ease-out);
}

.proceso .card-shell:hover .proceso__number {
    transform: scale(1.08);
    filter: drop-shadow(0 0 12px rgba(255, 210, 123, 0.3));
}

.proceso__card h3 {
    font-size: 1.03rem;
    margin-bottom: 8px;
}

.proceso__card p {
    color: var(--text);
    font-size: 0.88rem;
    line-height: 1.65;
}

/* ============================================
   CASOS
   ============================================ */
.casos {
    padding: 70px 0 90px;
    text-align: center;
}

.casos__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    text-align: left;
}

.casos__card {
    padding: 28px 24px;
}

.casos__card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.casos__card p {
    color: var(--text);
    font-size: 0.87rem;
    line-height: 1.65;
    margin-bottom: 14px;
}

.casos__metrics {
    display: grid;
    gap: 8px;
}

.casos__metrics li {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    color: #dce2ee;
    font-size: 0.82rem;
}

.casos__metrics strong {
    color: #ffd27b;
}

.casos .card-shell:hover .casos__metrics strong {
    color: #ffe4b8;
    text-shadow: 0 0 8px rgba(245, 166, 35, 0.2);
}

/* ============================================
   CLIENTES
   ============================================ */
.clientes {
    padding: 80px 0;
    text-align: center;
}

.clientes__grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    perspective: 600px;
}

.clientes__item {
    padding: 24px 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
    will-change: transform;
    transition: transform 0.5s var(--ease-spring), border-color 0.5s var(--ease-out);
}

.clientes__item:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}

.clientes__item img {
    max-height: 80px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.5s var(--ease-out);
}

.clientes__item:hover img {
    opacity: 1;
}

/* ============================================
   NOSOTROS
   ============================================ */
.nosotros {
    padding: 140px 0;
    text-align: center;
    position: relative;
    isolation: isolate;
}

.nosotros::after {
    content: '';
    position: absolute;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    filter: blur(110px);
    z-index: -1;
    opacity: 0.4;
    background: radial-gradient(circle, rgba(232, 75, 138, 0.38), transparent 70%);
    bottom: 8%;
    left: -180px;
}

.nosotros__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    text-align: left;
}

.nosotros__card {
    padding: 44px 36px;
    background: linear-gradient(145deg, rgba(18, 25, 40, 0.84), rgba(14, 20, 33, 0.72));
}

.nosotros__number {
    font-family: 'Syne', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--teal), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1;
}

.nosotros .card-shell:hover .nosotros__number {
    filter: drop-shadow(0 0 12px rgba(35, 201, 169, 0.3));
}

.nosotros__card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.nosotros__card p {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.75;
}

/* ============================================
   TESTIMONIOS
   ============================================ */
.testimonios {
    padding: 120px 0;
    text-align: center;
}

.testimonios__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    text-align: left;
}

.testimonios__card {
    padding: 40px 36px;
}

.testimonios__stars {
    color: var(--orange);
    font-size: 1.2rem;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.testimonios__quote {
    color: var(--text);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.75;
    font-style: italic;
    margin-bottom: 28px;
}

.testimonios__author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonios__avatar {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
}

.testimonios__author strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
}

.testimonios__author span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ============================================
   FAQ / ACCORDION
   ============================================ */
.faq {
    padding: 120px 0;
    text-align: center;
    position: relative;
    isolation: isolate;
}

.faq::after {
    content: '';
    position: absolute;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    filter: blur(110px);
    z-index: -1;
    opacity: 0.4;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.28), transparent 70%);
    top: 10%;
    right: -160px;
}

.faq__accordion {
    max-width: 780px;
    margin: 0 auto;
    text-align: left;
}

.faq__item {
    border-bottom: 1px solid var(--border);
}

.faq__item:first-child {
    border-top: 1px solid var(--border);
}

.faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 4px;
    background: none;
    border: none;
    color: var(--white);
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: color 0.3s;
}

.faq__question:hover {
    color: var(--teal);
}

.faq__icon {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--teal);
    flex-shrink: 0;
    width: 28px;
    text-align: center;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s;
}

.faq__item.open .faq__icon {
    transform: rotate(45deg);
    color: var(--orange);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.65s cubic-bezier(0.32, 0.72, 0, 1),
                padding 0.5s cubic-bezier(0.32, 0.72, 0, 1),
                opacity 0.4s ease;
    padding: 0 4px;
    opacity: 0;
}

.faq__item.open .faq__answer {
    max-height: 250px;
    padding: 0 4px 24px;
    opacity: 1;
}

.faq__answer p {
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.75;
    transform: translateY(8px);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}

.faq__item.open .faq__answer p {
    transform: translateY(0);
}

/* ============================================
   DIAGNOSTICO
   ============================================ */
.diagnostico {
    padding: 70px 0 40px;
}

.diagnostico__shell {
    background: linear-gradient(140deg, rgba(255, 177, 93, 0.2), rgba(84, 104, 255, 0.24), rgba(35, 201, 169, 0.2));
}

.diagnostico__core {
    padding: 48px 34px;
}

.diagnostico__content .section__title,
.diagnostico__content .section__subtitle {
    text-align: left;
}

.diagnostico__content .section__subtitle {
    margin: 0 0 26px;
}

.diagnostico__form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 16px;
    margin-bottom: 22px;
}

.diagnostico__form label {
    display: block;
    color: #dce2ee;
    font-size: 0.82rem;
    margin-bottom: 6px;
    font-weight: 600;
}

.diagnostico__form select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(8, 12, 20, 0.66);
    color: var(--white);
    border-radius: 12px;
    padding: 12px 12px;
    font-family: 'Sora', sans-serif;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.diagnostico__form select:focus {
    border-color: rgba(255, 209, 123, 0.9);
    box-shadow: 0 0 0 3px rgba(255, 209, 123, 0.16);
}

.diagnostico__cta {
    width: fit-content;
}

/* ============================================
   CTA
   ============================================ */
.cta {
    padding: 80px 0 140px;
    position: relative;
    isolation: isolate;
}

.cta__shell {
    background: linear-gradient(130deg, rgba(232, 75, 138, 0.18), rgba(84, 104, 255, 0.2), rgba(35, 201, 169, 0.18));
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    padding: 6px;
}

.cta__core {
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(550px 260px at 10% 12%, rgba(255, 163, 97, 0.22), transparent 70%),
        radial-gradient(550px 280px at 100% 0%, rgba(84, 104, 255, 0.24), transparent 70%),
        linear-gradient(135deg, rgba(12, 18, 29, 0.82), rgba(14, 20, 35, 0.9));
    border-radius: calc(var(--radius-lg) - 6px);
    padding: 100px 40px;
    position: relative;
    overflow: hidden;
}

.cta__core h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(125deg, #ffffff 0%, #ffe4b8 40%, #ffb0d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta__core p {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 40px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(8, 12, 20, 0), rgba(8, 12, 20, 0.8));
}

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

.footer__brand {
    padding-right: 24px;
}

.footer__logo-img {
    height: 90px;
    width: auto;
}

.footer__brand p {
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 400;
    margin-top: 20px;
    line-height: 1.65;
}

.footer__location {
    color: var(--text-muted) !important;
    font-size: 0.82rem !important;
    margin-top: 6px !important;
}

.footer__links h4,
.footer__contact h4 {
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer__links a {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.4s var(--ease-out), padding-left 0.4s var(--ease-spring);
    cursor: pointer;
    position: relative;
    display: inline-block;
}

.footer__links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #ffd27b, var(--magenta));
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer__links a:hover {
    color: #ffd27b;
    padding-left: 6px;
}

.footer__links a:hover::after {
    width: 100%;
}

.footer__contact ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer__contact a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 400;
    transition: color 0.4s var(--ease-out);
    cursor: pointer;
    position: relative;
}

.footer__contact a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #ffd27b, var(--teal));
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer__contact a:hover {
    color: #ffd27b;
}

.footer__contact a:hover::after {
    width: 100%;
}

.footer__contact svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.footer__bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
}

.footer__bottom p {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* ============================================
   FOOTER SOCIAL
   ============================================ */
.footer__social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text);
    transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.4s var(--ease-spring);
}

.footer__social a:hover {
    color: var(--white);
    border-color: var(--teal);
    background: rgba(45, 212, 191, 0.08);
    transform: translateY(-3px);
}

.footer__social svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   FOOTER MINI CTA
   ============================================ */
.footer__mini-cta {
    text-align: center;
    padding: 32px 0;
    margin-bottom: 24px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer__mini-cta p {
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.footer__mini-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 50px;
    background: linear-gradient(130deg, var(--orange), var(--magenta));
    color: var(--white);
    font-size: 0.88rem;
    font-weight: 600;
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-spring);
    box-shadow: 0 4px 20px rgba(232, 75, 138, 0.2);
}

.footer__mini-cta-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(232, 75, 138, 0.3);
}

.footer__mini-cta-link svg {
    transition: transform 0.4s var(--ease-spring);
}

.footer__mini-cta-link:hover svg {
    transform: translate(2px, -2px);
}

/* ============================================
   TYPEWRITER
   ============================================ */
.typewriter {
    color: var(--teal);
    -webkit-text-fill-color: var(--teal);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    border-right: 2px solid var(--teal);
    padding-right: 4px;
    animation: blink 0.8s step-end infinite !important;
    white-space: nowrap;
}

@keyframes blink {
    0%, 100% { border-color: var(--teal); }
    50% { border-color: transparent; }
}

/* ============================================
   HOLOGRAPHIC CARD EFFECT
   ============================================ */
.card-shell::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(45, 212, 191, 0.0) 0%,
        rgba(139, 92, 246, 0.06) 25%,
        rgba(236, 72, 153, 0.06) 50%,
        rgba(245, 158, 11, 0.06) 75%,
        rgba(45, 212, 191, 0.0) 100%
    );
    background-size: 400% 400%;
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
    pointer-events: none;
    z-index: 1;
}

.card-shell:hover::after {
    opacity: 1;
    animation: holoShift 3s ease infinite !important;
}

@keyframes holoShift {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

/* ============================================
   WHATSAPP FLOTANTE CON TOOLTIP
   ============================================ */
.whatsapp-wrap {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 12px;
}

.whatsapp-tooltip {
    background: var(--white);
    color: var(--bg);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.4s var(--ease-spring), transform 0.4s var(--ease-spring);
    pointer-events: none;
}

.whatsapp-tooltip.visible {
    opacity: 1;
    transform: translateX(0);
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 4px 24px rgba(37, 211, 102, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    40% {
        box-shadow: 0 4px 24px rgba(37, 211, 102, 0.3), 0 0 0 16px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 4px 24px rgba(37, 211, 102, 0.3), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes whatsappRing {
    0% { transform: scale(1); }
    15% { transform: scale(1.15); }
    30% { transform: scale(1); }
    45% { transform: scale(1.08); }
    60% { transform: scale(1); }
    100% { transform: scale(1); }
}

.whatsapp-float {
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    animation: whatsappPulse 3s cubic-bezier(0.22, 1, 0.36, 1) infinite, whatsappRing 3s ease-in-out infinite !important;
}

.whatsapp-float:hover {
    animation: none !important;
    transform: scale(1.12);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: white;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 40;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s var(--ease-spring), transform 0.4s var(--ease-spring), background 0.3s;
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.back-to-top:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-hover);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    color: var(--white);
}

/* ============================================
   PROMO BANNER
   ============================================ */
.promo-banner {
    background: linear-gradient(90deg, var(--purple), var(--magenta));
    padding: 12px 0;
    text-align: center;
    position: relative;
    z-index: 10;
}

.promo-banner__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.promo-banner p {
    font-size: 0.9rem;
    color: var(--white);
    font-weight: 500;
}

.promo-banner a {
    color: var(--white);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.promo-banner__close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    line-height: 1;
}

.promo-banner__close:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .promo-banner p {
        font-size: 0.8rem;
    }
}

/* ============================================
   SOCIAL PROOF NOTIFICATION
   ============================================ */
.social-proof-notif {
    position: fixed;
    bottom: 100px;
    left: 24px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 20px;
    z-index: 50;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s var(--ease-spring), transform 0.4s var(--ease-spring);
    pointer-events: none;
    max-width: 360px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.social-proof-notif--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.social-proof-notif__content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-proof-notif__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--teal);
}

.social-proof-notif__icon svg {
    width: 100%;
    height: 100%;
}

.social-proof-notif p {
    font-size: 0.82rem;
    color: var(--text);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .social-proof-notif {
        left: 12px;
        right: 12px;
        max-width: none;
        bottom: 90px;
    }
}

/* ============================================
   PROCESO EN NUMEROS
   ============================================ */
.numeros {
    padding: 80px 0 60px;
    text-align: center;
}

.numeros__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.numeros__item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: linear-gradient(145deg, rgba(17, 24, 40, 0.88), rgba(14, 20, 33, 0.65));
    backdrop-filter: blur(10px);
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: border-color 0.5s var(--ease-out), transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-spring);
}

.numeros__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--orange), var(--magenta), var(--purple));
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
}

.numeros__item:hover {
    border-color: rgba(245, 166, 35, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(3, 7, 16, 0.35), 0 0 20px rgba(245, 166, 35, 0.06);
}

.numeros__item:hover::before {
    opacity: 1;
}

.numeros__icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.12), rgba(232, 75, 138, 0.08));
    color: #ffd27b;
    transition: transform 0.5s var(--ease-spring), box-shadow 0.4s var(--ease-out);
}

.numeros__item:hover .numeros__icon {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(245, 166, 35, 0.15);
}

.numeros__icon svg {
    width: 24px;
    height: 24px;
}

.numeros__content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.numeros__value {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 20%, #ffd27b 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.numeros__label {
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.55;
    font-weight: 400;
}

/* ============================================
   CTA GRADIENT BORDER ANIMATION
   ============================================ */
@keyframes ctaBorderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.cta__shell--glow {
    position: relative;
    background: transparent;
    border: none;
    padding: 3px;
    isolation: isolate;
}

.cta__shell--glow::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 3px;
    background: linear-gradient(
        270deg,
        rgba(245, 166, 35, 0.7),
        rgba(232, 75, 138, 0.7),
        rgba(84, 104, 255, 0.7),
        rgba(35, 201, 169, 0.7),
        rgba(245, 166, 35, 0.7)
    );
    background-size: 400% 400%;
    animation: ctaBorderGlow 6s ease infinite !important;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 0;
    pointer-events: none;
}

.cta__shell--glow::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: calc(var(--radius-lg) + 8px);
    background: linear-gradient(
        270deg,
        rgba(245, 166, 35, 0.15),
        rgba(232, 75, 138, 0.15),
        rgba(84, 104, 255, 0.15),
        rgba(35, 201, 169, 0.15),
        rgba(245, 166, 35, 0.15)
    );
    background-size: 400% 400%;
    animation: ctaBorderGlow 6s ease infinite !important;
    filter: blur(20px);
    z-index: -1;
    pointer-events: none;
}

.cta__shell--glow .cta__core {
    position: relative;
    z-index: 1;
}

/* ============================================
   NAV LOGO SMOOTH REVEAL ON SCROLL
   ============================================ */
.nav__logo {
    opacity: 0;
    transform: scale(0.85) translateY(-6px);
    transition: opacity 0.5s var(--ease-spring), transform 0.5s var(--ease-spring);
    pointer-events: none;
}

.nav__logo.nav__logo--visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: all;
}

/* ============================================
   SECTION DIVIDERS (Glow Lines)
   ============================================ */
.section-divider {
    display: block;
    width: 100%;
    height: 1px;
    border: none;
    position: relative;
    overflow: visible;
    margin: 0;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(480px, 70%);
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(245, 166, 35, 0.45) 25%, rgba(232, 75, 138, 0.5) 50%, rgba(84, 104, 255, 0.45) 75%, transparent 100%);
}

.section-divider::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: min(320px, 50%);
    height: 18px;
    background: radial-gradient(ellipse, rgba(232, 75, 138, 0.12) 0%, transparent 70%);
    filter: blur(4px);
}

.section-divider--teal::before {
    background: linear-gradient(90deg, transparent, rgba(35, 201, 169, 0.5), rgba(84, 104, 255, 0.4), transparent);
}
.section-divider--teal::after {
    background: radial-gradient(ellipse, rgba(35, 201, 169, 0.12) 0%, transparent 70%);
}

.section-divider--orange::before {
    background: linear-gradient(90deg, transparent, rgba(245, 166, 35, 0.5), rgba(255, 177, 93, 0.4), transparent);
}
.section-divider--orange::after {
    background: radial-gradient(ellipse, rgba(245, 166, 35, 0.12) 0%, transparent 70%);
}

.section-divider--purple::before {
    background: linear-gradient(90deg, transparent, rgba(84, 104, 255, 0.5), rgba(232, 75, 138, 0.4), transparent);
}
.section-divider--purple::after {
    background: radial-gradient(ellipse, rgba(84, 104, 255, 0.12) 0%, transparent 70%);
}

/* ============================================
   EYEBROW COUNTER
   ============================================ */
.eyebrow__counter {
    display: inline;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}

/* ============================================
   TESTIMONIAL STARS: Staggered Appear
   ============================================ */
.testimonios__stars .star {
    display: inline-block;
    opacity: 0;
    transform: scale(0) rotate(-30deg);
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.testimonios__stars .star:nth-child(1) { transition-delay: 0s; }
.testimonios__stars .star:nth-child(2) { transition-delay: 0.1s; }
.testimonios__stars .star:nth-child(3) { transition-delay: 0.2s; }
.testimonios__stars .star:nth-child(4) { transition-delay: 0.3s; }
.testimonios__stars .star:nth-child(5) { transition-delay: 0.4s; }

.testimonios__stars.stars-visible .star {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

@keyframes starBounce {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.3) rotate(8deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.testimonios__stars.stars-visible .star:nth-child(1) { animation: starBounce 0.4s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both; }
.testimonios__stars.stars-visible .star:nth-child(2) { animation: starBounce 0.4s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both; }
.testimonios__stars.stars-visible .star:nth-child(3) { animation: starBounce 0.4s 0.35s cubic-bezier(0.22, 1, 0.36, 1) both; }
.testimonios__stars.stars-visible .star:nth-child(4) { animation: starBounce 0.4s 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }
.testimonios__stars.stars-visible .star:nth-child(5) { animation: starBounce 0.4s 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* ============================================
   CARD SHIMMER/GLOW BORDER ON ENTER
   ============================================ */
@keyframes shimmerGlow {
    0% {
        border-color: rgba(255, 255, 255, 0.10);
        box-shadow: 0 0 0 rgba(245, 166, 35, 0), 0 0 0 rgba(84, 104, 255, 0);
    }
    25% {
        border-color: rgba(245, 166, 35, 0.45);
        box-shadow: 0 0 18px rgba(245, 166, 35, 0.12), 0 0 6px rgba(245, 166, 35, 0.08);
    }
    50% {
        border-color: rgba(232, 75, 138, 0.45);
        box-shadow: 0 0 18px rgba(232, 75, 138, 0.12), 0 0 6px rgba(232, 75, 138, 0.08);
    }
    75% {
        border-color: rgba(84, 104, 255, 0.45);
        box-shadow: 0 0 18px rgba(84, 104, 255, 0.12), 0 0 6px rgba(84, 104, 255, 0.08);
    }
    100% {
        border-color: rgba(255, 255, 255, 0.10);
        box-shadow: 0 0 0 rgba(84, 104, 255, 0), 0 0 0 rgba(84, 104, 255, 0);
    }
}

.card-shell.shimmer-active {
    animation: shimmerGlow 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
}

/* ============================================
   CONSISTENT CARD HOVER TRANSITIONS
   ============================================ */
.proceso__card,
.casos__card,
.nosotros__card,
.testimonios__card {
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.04);
}

.casos .card-shell,
.testimonios .card-shell,
.nosotros .card-shell,
.proceso .card-shell {
    transition: border-color 0.5s var(--ease-out), transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-spring);
}

.casos .card-shell:hover,
.testimonios .card-shell:hover,
.nosotros .card-shell:hover,
.proceso .card-shell:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(3, 7, 16, 0.35);
}

/* Consistent eyebrow tags */
.stats .eyebrow,
.clientes .eyebrow,
.numeros .eyebrow {
    background: rgba(245, 166, 35, 0.10);
    border-color: rgba(245, 166, 35, 0.25);
    color: #ffd27b;
}

/* ============================================
   ADDITIONAL FOCUS STATES
   ============================================ */
.whatsapp-float:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 3px;
}

.back-to-top:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
}

.nav__cta:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 3px;
}

.servicio-card__link:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
    border-radius: 4px;
}

.faq__question:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

.diagnostico__form select:focus-visible {
    outline: none;
    border-color: rgba(255, 209, 123, 0.9);
    box-shadow: 0 0 0 3px rgba(255, 209, 123, 0.16);
}

.footer__social a:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

.footer__links a:focus-visible,
.footer__contact a:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   DOLOR (Pain Points)
   ============================================ */
.dolor {
    padding: 100px 0;
    text-align: center;
}

.dolor__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    text-align: left;
}

.dolor__card {
    padding: 32px;
    position: relative;
}

.dolor__icon {
    font-family: 'Syne', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--orange), var(--magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 14px;
    line-height: 1;
}

.dolor__card p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 400;
}

.dolor__cta {
    text-align: center;
    color: var(--teal);
    font-style: italic;
    margin-top: 40px;
    font-size: 1.05rem;
    font-weight: 500;
}

/* ============================================
   IA PARA TU NEGOCIO
   ============================================ */
.ia-negocio {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.ia-negocio::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(84, 104, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.ia-negocio__layout {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.ia-negocio__copy {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

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

.ia-negocio__card {
    text-align: center;
    padding: 2.5rem 2rem;
}

.ia-negocio__icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 1rem;
    color: var(--purple);
}

.ia-negocio__icon svg {
    width: 100%;
    height: 100%;
}

.ia-negocio__card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.ia-negocio__card p {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.7;
}

.ia-negocio__cta-wrap {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.ia-negocio__note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .ia-negocio {
        padding: 80px 0;
    }

    .ia-negocio__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .ia-negocio__card {
        padding: 2rem 1.5rem;
    }
}

/* ============================================
   CALIFICA (Para Quien Es / No Es)
   ============================================ */
.califica {
    padding: 100px 0;
    text-align: center;
}

.califica__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    text-align: left;
}

.califica__si {
    border-color: rgba(35, 201, 169, 0.25);
}

.califica__si:hover {
    border-color: rgba(35, 201, 169, 0.5);
}

.califica__no {
    border-color: rgba(232, 75, 138, 0.25);
}

.califica__no:hover {
    border-color: rgba(232, 75, 138, 0.5);
}

.califica__card {
    padding: 36px 32px;
}

.califica__card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.califica__si .califica__card h3 {
    color: var(--teal);
}

.califica__no .califica__card h3 {
    color: var(--magenta);
}

.califica__card ul {
    display: grid;
    gap: 14px;
}

.califica__card li {
    padding-left: 30px;
    position: relative;
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.6;
}

.califica__si .califica__card li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--teal);
}

.califica__no .califica__card li::before {
    content: '\2717';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--magenta);
}

/* ============================================
   GARANTIA
   ============================================ */
.garantia {
    padding: 80px 0;
}

.garantia__shell {
    background: linear-gradient(140deg, rgba(35, 201, 169, 0.15), rgba(84, 104, 255, 0.18), rgba(245, 166, 35, 0.12));
}

.garantia__core {
    padding: 60px 40px;
    text-align: center;
}

.garantia__items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
    text-align: left;
}

.garantia__item {
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.garantia__item strong {
    display: block;
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.garantia__item p {
    color: var(--text);
    font-size: 0.88rem;
    line-height: 1.65;
    font-weight: 400;
}

/* ============================================
   RESPONSIVE — Consolidated
   ============================================ */

/* --- 1024px: Tablet --- */
@media (max-width: 1024px) {
    .hero {
        text-align: center;
    }

    .hero__title,
    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__proof {
        margin: 0 auto;
    }

    .portafolio__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .oferta__layout {
        grid-template-columns: 1fr;
    }

    .casos__grid {
        grid-template-columns: 1fr 1fr;
    }

    .numeros__grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    .califica__grid {
        grid-template-columns: 1fr;
    }

    .garantia__items {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- 768px: Mobile --- */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        line-height: 1.65;
    }

    /* Nav */
    .nav__menu, .nav__cta { display: none; }
    .nav__toggle { display: flex; }

    .nav {
        top: 12px;
        width: calc(100% - 24px);
        left: 50%;
        transform: translateX(-50%);
    }

    .nav__pill {
        width: 100%;
        padding: 6px 8px 6px 14px;
        border-radius: 60px;
        justify-content: space-between;
    }

    .nav__logo-img {
        height: 38px;
    }

    .nav__toggle {
        min-width: 48px;
        min-height: 48px;
        padding: 14px;
    }

    /* Mobile overlay menu */
    .nav__overlay-menu {
        gap: 8px;
        padding: 0 24px;
        width: 100%;
    }

    .nav__overlay-menu li {
        width: 100%;
        text-align: center;
    }

    .nav__overlay-menu a {
        font-size: clamp(1.5rem, 6vw, 2rem);
        padding: 14px 0;
        display: block;
        min-height: 48px;
        line-height: 1.3;
    }

    /* Buttons */
    .btn {
        min-height: 48px;
        padding: 14px 20px 14px 24px;
        font-size: 0.95rem;
    }

    .btn--large {
        min-height: 52px;
        padding: 16px 22px 16px 28px;
        font-size: 1rem;
    }

    .btn--outline {
        min-height: 48px;
        padding: 14px 18px 14px 22px;
    }

    /* Hero */
    .hero {
        padding: 136px 20px 84px;
        min-height: auto;
    }

    .hero__content {
        max-width: 100%;
    }

    .hero__title {
        font-size: clamp(1.9rem, 7.5vw, 2.6rem);
        max-width: none;
        line-height: 1.08;
        margin-bottom: 18px;
    }

    .hero__subtitle {
        font-size: 1rem;
        line-height: 1.65;
        margin-bottom: 32px;
        max-width: 100%;
    }

    .hero__actions {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 24px;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .hero__proof {
        grid-template-columns: 1fr;
        gap: 10px;
        max-width: 480px;
    }

    .hero__proof-card {
        padding: 16px 18px;
        min-height: auto;
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .hero__proof-value {
        font-size: 1rem;
        margin-bottom: 0;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .hero__proof-label {
        font-size: 0.82rem;
        line-height: 1.4;
    }

    .hero .eyebrow {
        font-size: 0.6rem;
        padding: 5px 12px;
    }

    /* Eyebrow */
    .eyebrow {
        font-size: 0.6rem;
        padding: 5px 14px;
        letter-spacing: 0.15em;
    }

    /* Section titles */
    .section__title {
        font-size: clamp(1.5rem, 5.5vw, 2rem);
        margin-bottom: 10px;
        padding: 0 4px;
    }

    .section__subtitle {
        font-size: 0.95rem;
        margin-bottom: 40px;
        padding: 0 4px;
        max-width: 100%;
    }

    /* Marquee */
    .marquee {
        padding: 24px 0;
    }

    .marquee__track span {
        padding: 0 16px;
        font-size: 0.95rem;
    }

    /* Oferta */
    .oferta {
        padding: 60px 0 16px;
    }

    .oferta__copy {
        padding: 22px 18px;
    }

    .oferta__copy .section__title {
        font-size: 1.5rem;
    }

    .oferta__copy .section__subtitle {
        font-size: 0.92rem;
        margin-bottom: 16px;
    }

    .oferta__bullets {
        gap: 10px;
        margin-bottom: 22px;
    }

    .oferta__bullets li {
        font-size: 0.9rem;
        line-height: 1.55;
        padding-left: 24px;
    }

    .oferta__bullets li::before {
        width: 12px;
        height: 12px;
        top: 0.4rem;
    }

    .oferta__deliverables-core {
        padding: 22px 18px;
    }

    .oferta__deliverables h3 {
        font-size: 1.25rem;
        margin-bottom: 14px;
    }

    .oferta__items article {
        padding: 14px;
    }

    .oferta__items h4 {
        font-size: 0.9rem;
    }

    .oferta__items p {
        font-size: 0.85rem;
    }

    /* Portafolio */
    .portafolio {
        padding: 56px 0 48px;
    }

    .portafolio__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 24px;
        padding: 0 20px;
    }

    .portafolio__head .section__title {
        font-size: 1.4rem;
    }

    .portafolio__head .section__subtitle {
        font-size: 0.9rem;
        margin-bottom: 0;
    }

    .portafolio__cta {
        width: 100%;
        justify-content: center;
        text-align: center;
        min-height: 48px;
    }

    .portafolio__item {
        width: 280px;
        aspect-ratio: 16 / 9;
        border-radius: 16px;
    }

    .portafolio__item video {
        border-radius: 16px;
    }

    .portafolio__carousel {
        mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
        -webkit-overflow-scrolling: touch;
    }

    /* Servicios */
    .servicios {
        padding: 80px 0;
    }

    .servicios__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .servicio-card {
        padding: 28px 22px;
    }

    .servicio-card h3 {
        font-size: 1.05rem;
    }

    .servicio-card p {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }

    .servicio-card__icon {
        width: 48px;
        height: 48px;
        margin-bottom: 18px;
    }

    .servicio-card__link {
        font-size: 0.88rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .servicio-card__brands {
        gap: 6px;
    }

    .brand-badge {
        font-size: 0.72rem;
        padding: 6px 10px;
    }

    /* Proceso */
    .proceso {
        padding: 72px 0 56px;
    }

    .proceso__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .proceso__card {
        padding: 24px 20px;
    }

    .proceso__number {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }

    .proceso__card h3 {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .proceso__card p {
        font-size: 0.88rem;
        line-height: 1.6;
    }

    /* Casos */
    .casos {
        padding: 56px 0 64px;
    }

    .casos__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .casos__card {
        padding: 24px 20px;
    }

    .casos__card h3 {
        font-size: 1rem;
    }

    .casos__card p {
        font-size: 0.88rem;
    }

    .casos__metrics {
        gap: 6px;
    }

    .casos__metrics li {
        font-size: 0.85rem;
        padding: 10px 14px;
    }

    /* Stats */
    .stats {
        padding: 64px 0;
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stats__item {
        padding: 32px 14px;
    }

    .stats__number {
        font-size: 2.4rem;
    }

    .stats__plus {
        font-size: 1.3rem;
    }

    .stats__label {
        font-size: 0.82rem;
        margin-top: 10px;
        line-height: 1.45;
    }

    /* Numeros */
    .numeros {
        padding: 56px 0 40px;
    }

    .numeros__item {
        padding: 24px 20px;
        gap: 14px;
    }

    .numeros__icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        border-radius: 12px;
    }

    .numeros__icon svg {
        width: 20px;
        height: 20px;
    }

    .numeros__value {
        font-size: 1.2rem;
    }

    .numeros__label {
        font-size: 0.84rem;
    }

    /* Clientes */
    .clientes {
        padding: 64px 0;
    }

    .clientes__grid {
        gap: 16px;
        justify-content: center;
    }

    .clientes__item {
        padding: 18px 24px;
    }

    .clientes__item img {
        max-height: 56px;
        max-width: 150px;
    }

    /* Testimonios */
    .testimonios {
        padding: 72px 0;
    }

    .testimonios__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .testimonios__card {
        padding: 28px 22px;
    }

    .testimonios__quote {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 22px;
    }

    .testimonios__author strong {
        font-size: 0.88rem;
    }

    .testimonios__author span {
        font-size: 0.78rem;
    }

    /* Nosotros */
    .nosotros {
        padding: 80px 0;
    }

    .nosotros__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .nosotros__card {
        padding: 28px 22px;
    }

    .nosotros__number {
        font-size: 2.2rem;
        margin-bottom: 14px;
    }

    .nosotros__card h3 {
        font-size: 1.05rem;
        margin-bottom: 8px;
    }

    .nosotros__card p {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    /* Dolor */
    .dolor {
        padding: 64px 0;
    }

    .dolor__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .dolor__card {
        padding: 24px 20px;
    }

    .dolor__icon {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .dolor__card p {
        font-size: 0.9rem;
    }

    .dolor__cta {
        font-size: 0.95rem;
        margin-top: 28px;
    }

    /* Califica */
    .califica {
        padding: 64px 0;
    }

    .califica__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .califica__card {
        padding: 28px 22px;
    }

    .califica__card h3 {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }

    .califica__card li {
        font-size: 0.9rem;
    }

    /* Garantia */
    .garantia {
        padding: 56px 0;
    }

    .garantia__core {
        padding: 32px 20px;
    }

    .garantia__items {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 28px;
    }

    .garantia__item {
        padding: 20px;
    }

    .garantia__item strong {
        font-size: 1rem;
    }

    .garantia__item p {
        font-size: 0.85rem;
    }

    /* FAQ */
    .faq {
        padding: 72px 0;
    }

    .faq__accordion {
        max-width: 100%;
    }

    .faq__question {
        font-size: 0.95rem;
        padding: 18px 4px;
        min-height: 48px;
        gap: 12px;
    }

    .faq__question span:first-child {
        flex: 1;
    }

    .faq__icon {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.3rem;
    }

    .faq__answer p {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .faq__item.open .faq__answer {
        max-height: 350px;
        padding-bottom: 20px;
    }

    /* Diagnostico */
    .diagnostico {
        padding: 48px 0 32px;
    }

    .diagnostico__core {
        padding: 28px 18px;
    }

    .diagnostico__content .section__title {
        font-size: 1.4rem;
    }

    .diagnostico__content .section__subtitle {
        font-size: 0.92rem;
        margin-bottom: 22px;
    }

    .diagnostico__form {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 20px;
    }

    .diagnostico__form label {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }

    .diagnostico__form select {
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: 14px 14px;
        min-height: 48px;
        border-radius: 14px;
        -webkit-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath fill='%237c889f' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 14px center;
        padding-right: 36px;
    }

    .diagnostico__cta {
        width: 100%;
        justify-content: center;
        min-height: 52px;
        font-size: 0.95rem;
    }

    /* CTA */
    .cta {
        padding: 48px 0 80px;
    }

    .cta__core {
        padding: 48px 22px;
    }

    .cta__core h2 {
        font-size: 1.5rem;
        line-height: 1.15;
        margin-bottom: 14px;
    }

    .cta__core p {
        font-size: 0.95rem;
        margin-bottom: 28px;
        max-width: 100%;
    }

    .cta__core .btn {
        width: 100%;
        justify-content: center;
    }

    /* Footer */
    .footer {
        padding: 48px 0 28px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }

    .footer__brand {
        padding-right: 0;
    }

    .footer__logo-img {
        height: 70px;
        margin: 0 auto;
    }

    .footer__brand p {
        font-size: 0.9rem;
        max-width: 380px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer__social {
        justify-content: center;
    }

    .footer__social a {
        width: 44px;
        height: 44px;
    }

    .footer__links {
        text-align: center;
    }

    .footer__links ul {
        gap: 16px;
    }

    .footer__links a {
        font-size: 0.95rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .footer__links a:hover {
        padding-left: 0;
    }

    .footer__contact {
        text-align: center;
    }

    .footer__contact a {
        font-size: 0.9rem;
        justify-content: center;
        min-height: 44px;
    }

    .footer__bottom {
        padding-top: 20px;
        margin-top: 8px;
    }

    .footer__bottom p {
        font-size: 0.8rem;
    }

    .footer__mini-cta {
        flex-direction: column;
        gap: 12px;
        padding: 24px 0;
        margin-bottom: 20px;
    }

    .footer__mini-cta p {
        font-size: 1.1rem;
    }

    .footer__mini-cta-link {
        min-height: 44px;
        font-size: 0.9rem;
    }

    /* WhatsApp */
    .whatsapp-wrap {
        bottom: 18px;
        right: 16px;
        gap: 8px;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }

    .whatsapp-tooltip {
        font-size: 0.78rem;
        padding: 7px 12px;
        max-width: 160px;
        white-space: normal;
        text-align: right;
    }

    /* Back to top */
    .back-to-top {
        bottom: 18px;
        left: 16px;
        width: 44px;
        height: 44px;
    }

    /* Card shells */
    .card-shell {
        border-radius: 20px;
        padding: 4px;
    }

    .card-core {
        border-radius: 16px;
    }

    /* Prevent overflow from decorative elements */
    .hero__bg {
        overflow: hidden;
    }

    .hero__orb--1 {
        width: 280px;
        height: 280px;
    }

    .hero__orb--2 {
        width: 220px;
        height: 220px;
    }

    .hero__orb--3 {
        width: 180px;
        height: 180px;
    }

    .servicios::after,
    .nosotros::after,
    .faq::after {
        width: 260px;
        height: 260px;
    }

    .servicios::after {
        right: -80px;
    }

    .nosotros::after {
        left: -80px;
    }

    .faq::after {
        right: -80px;
    }

    .servicios,
    .nosotros,
    .faq,
    .cta,
    .hero {
        overflow-x: clip;
    }

    /* Section dividers */
    .section-divider::before {
        width: min(280px, 60%);
    }

    .section-divider::after {
        width: min(200px, 45%);
    }

    /* Touch targets */
    .servicio-card__link,
    .footer__links a,
    .footer__contact a,
    .footer__social a,
    .nav__overlay-menu a {
        -webkit-tap-highlight-color: transparent;
    }

    select,
    button,
    a {
        touch-action: manipulation;
    }
}

/* --- 520px --- */
@media (max-width: 520px) {
    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero__btn-secondary {
        padding-left: 20px;
    }

    .typewriter {
        display: block;
        margin-top: 4px;
    }
}

/* --- 480px --- */
@media (max-width: 480px) {
    .hero__title {
        font-size: 1.8rem;
    }

    .nav__logo-img {
        height: 36px;
    }

    .portafolio__item {
        width: 260px;
    }

    .stats__number {
        font-size: 2rem;
    }

    .stats__plus {
        font-size: 1.1rem;
    }
}

/* --- 414px: iPhone Plus / Pro Max --- */
@media (min-width: 376px) and (max-width: 414px) {
    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .portafolio__item {
        width: 270px;
    }

    .container {
        padding: 0 18px;
    }
}

/* --- 375px: Small phones --- */
@media (max-width: 375px) {
    .container {
        padding: 0 14px;
    }

    .hero {
        padding: 110px 16px 56px;
    }

    .hero__title {
        font-size: 1.75rem;
    }

    .hero__subtitle {
        font-size: 0.95rem;
    }

    .portafolio__item {
        width: 250px;
    }

    .stats__grid {
        gap: 8px;
    }

    .stats__item {
        padding: 24px 10px;
    }
}

/* ============================================
   iOS Safe Area
   ============================================ */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .whatsapp-wrap {
        bottom: calc(18px + env(safe-area-inset-bottom));
    }

    .back-to-top {
        bottom: calc(18px + env(safe-area-inset-bottom));
    }

    .footer {
        padding-bottom: calc(28px + env(safe-area-inset-bottom));
    }
}

/* ============================================
   PREFERS REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero__content {
        animation: none;
    }

    [data-animate] {
        opacity: 1;
        transform: none;
        filter: none;
    }

    [data-reveal] {
        clip-path: none;
    }

    .portafolio__track {
        animation: none !important;
    }

    .marquee__track {
        animation: none !important;
    }

    .whatsapp-float {
        animation: none !important;
    }

    .testimonios__stars .star {
        opacity: 1;
        transform: none;
        transition: none;
        animation: none !important;
    }

    .card-shell.shimmer-active {
        animation: none !important;
    }

    .faq__answer {
        transition-duration: 0.01ms !important;
        opacity: 1;
    }

    .faq__answer p {
        transform: none;
        transition: none;
    }

    .footer__links a::after,
    .footer__contact a::after {
        transition-duration: 0.01ms !important;
    }

    .cta__shell--glow::before,
    .cta__shell--glow::after {
        animation: none !important;
    }

    .nav__logo {
        opacity: 1;
        transform: none;
        pointer-events: all;
        transition: none;
    }

    .numeros__item {
        transform: none !important;
    }
}
