/* ========================================
   VARIABLES Y RESET
   ======================================== */
:root {
    --color-primary: #d4a574;
    --color-accent: #ff8c42;
    --color-bg-dark: #0a0a0a;
    --color-bg-darker: #050505;
    --color-bg-light: #1a1a1a;
    --color-text: #e0e0e0;
    --color-text-dim: #a0a0a0;
    --color-white: #ffffff;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Fraunces', 'Inter', Georgia, serif;
    --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-elevated: 0 8px 32px rgba(0, 0, 0, 0.7);
    --lines-offset: 0px;
    --color-wa: #25D366;
    --color-wa-dark: #128C7E;
}

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

html {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow: visible;
    position: relative;
    font-family: var(--font-primary);
    color: var(--color-text);
    line-height: 1.6;
}

@keyframes scroll-horizontal {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 6)); }
}

@media (max-width: 768px) {
    .testimonials .section-subtitle { flex-direction: column; gap: 0.5rem; }
    .trust-counter { padding: 0.4rem 1rem; font-size: 0.85rem; }
    .trust-counter-number { font-size: 1.4rem; }
    .trust-counter-label { font-size: 0.75rem; }
    .hero { overflow: visible; }
}

/* ========================================
   TESTIMONIOS
   ======================================== */
.testimonials {
    padding: 6rem 0;
    background: transparent;
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

/* Tipografía editorial premium para el title de testimonios */
.testimonials .section-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.trust-counter {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: rgba(212, 165, 116, 0.1);
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 50px;
    margin-left: 0.5rem;
    position: relative;
    overflow: visible;
}

.trust-counter::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50px;
    box-shadow: 0 0 20px rgba(212, 165, 116, 0.6);
    opacity: 0;
    will-change: opacity;
    animation: counter-glow 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes counter-glow {
    0%, 100% { opacity: 0; }
    50%       { opacity: 1; }
}

.trust-counter-number {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-primary);
    text-shadow: 0 0 10px rgba(212, 165, 116, 0.5);
    font-feature-settings: "tnum" 1, "zero" 1;
    letter-spacing: -0.02em;
}

.trust-counter-label {
    font-size: 0.72rem;
    color: var(--color-text);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════════════
   ZAP 3D BOOK — Testimonios premium tipo flipbook
   Lib: page-flip (lazy-loaded) · GPU: transform + opacity
   ════════════════════════════════════════════════════════════════ */

/* sr-only para fallback semántico (lectores de pantalla) */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.zap-book-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    padding: 1rem 0 0;
    position: relative;
}

.zap-book {
    perspective: 2000px;
    max-width: 100%;
    margin: 0 auto;
    min-height: 470px;
}

/* Anti-flash hasta que page-flip monte */
.zap-book:not(.is-ready) .zap-book__page { display: none; }
.zap-book:not(.is-ready)::before {
    content: '';
    display: block;
    width: 320px;
    max-width: 90vw;
    height: 470px;
    margin: 0 auto;
    background: linear-gradient(160deg, #141414 0%, #050505 100%);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 4px;
    opacity: 0.6;
}

.zap-book__page {
    background: #0d0d0d;
    color: var(--color-text);
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

/* ── COVER + BACK ─────────────────────────────────────────────── */
.zap-book__cover,
.zap-book__back {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    text-align: center;
    background:
        radial-gradient(circle at 50% 25%, rgba(212, 165, 116, 0.20) 0%, transparent 55%),
        linear-gradient(160deg, #141414 0%, #050505 100%);
    border: 1px solid rgba(212, 165, 116, 0.35);
}

.zap-book__cover-mark {
    width: 56px; height: 56px;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 0 12px rgba(212, 165, 116, 0.5));
    border-radius: 50%;
}

.zap-book__cover-eyebrow,
.zap-book__back-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.zap-book__cover-title,
.zap-book__back-title {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 600;
    line-height: 1.12;
    color: var(--color-white);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    font-variation-settings: "opsz" 96;
}

.zap-book__cover-title em,
.zap-book__back-title em {
    font-style: italic;
    color: var(--color-primary);
    font-weight: 500;
}

.zap-book__cover-rule {
    width: 56px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    margin-bottom: 1.25rem;
}

.zap-book__cover-hint {
    font-size: 0.78rem;
    color: var(--color-text-dim);
    letter-spacing: 0.05em;
    font-style: italic;
}

.zap-book__back-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.72rem 1.6rem;
    background: linear-gradient(135deg, #d4a574 0%, #e8b88a 45%, #c8874a 100%);
    color: #0a0a0a;
    border-radius: 100px;
    font-family: var(--font-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 18px rgba(212, 165, 116, 0.32);
    transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.28s ease;
    will-change: transform;
}
.zap-book__back-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.22) 50%, transparent 70%);
    transform: translateX(-120%) skewX(-10deg);
    transition: transform 0.55s ease;
    pointer-events: none;
}
.zap-book__back-cta:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(212, 165, 116, 0.52); }
.zap-book__back-cta:hover::after { transform: translateX(120%) skewX(-10deg); }

/* ── INTRO / TOC ──────────────────────────────────────────────── */
.zap-book__intro {
    padding: 1.75rem 1.5rem;
    background: linear-gradient(180deg, #0e0e0e 0%, #080808 100%);
    border: 1px solid rgba(212, 165, 116, 0.15);
}

.zap-book__page-num {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    color: var(--color-primary);
    opacity: 0.65;
}

.zap-book__intro-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 0.85rem;
    margin-top: 1rem;
}

.zap-book__intro-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-white);
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}
.zap-book__intro-title em { font-style: italic; color: var(--color-primary); font-weight: 500; }

.zap-book__intro-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.zap-book__intro-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.85rem;
    align-items: baseline;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid rgba(212, 165, 116, 0.12);
}
.zap-book__intro-num {
    grid-row: 1 / 3;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--color-primary);
    font-weight: 600;
    font-feature-settings: 'tnum' 1;
    align-self: center;
}
.zap-book__intro-name {
    font-family: var(--font-primary);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.2;
}
.zap-book__intro-role {
    font-size: 0.7rem;
    color: var(--color-text-dim);
    line-height: 1.3;
}

/* ── TESTIMONIO ───────────────────────────────────────────────── */
.zap-book__testimonial {
    padding: 2rem 1.4rem 1.6rem;
    background: linear-gradient(180deg, #0e0e0e 0%, #080808 100%);
    border: 1px solid rgba(212, 165, 116, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.zap-book__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1.5px solid var(--color-primary);
    object-fit: cover;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 0 18px rgba(212, 165, 116, 0.3);
}

.zap-book__person {
    text-align: center;
    margin-bottom: 1.25rem;
}
.zap-book__person-name {
    display: block;
    font-family: var(--font-primary);
    font-style: normal;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--color-white);
    letter-spacing: 0.01em;
}
.zap-book__person-job {
    display: block;
    font-size: 0.7rem;
    color: var(--color-text-dim);
    letter-spacing: 0.04em;
    margin-top: 2px;
}

.zap-book__quote {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--color-text);
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0.5rem 0.75rem;
    font-variation-settings: "opsz" 14;
}

.zap-book__quote::before,
.zap-book__quote::after {
    font-family: var(--font-display);
    font-size: 2.4rem;
    line-height: 0;
    color: var(--color-primary);
    opacity: 0.5;
    position: absolute;
    font-weight: 700;
}
.zap-book__quote::before { content: '\201C'; top: 0.85rem; left: 0; }
.zap-book__quote::after  { content: '\201D'; bottom: 1.4rem; right: 0; }

.zap-book__stars {
    display: inline-flex;
    gap: 3px;
    margin-top: 0.85rem;
    color: var(--color-primary);
}
.zap-book__stars svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    filter: drop-shadow(0 0 4px rgba(212, 165, 116, 0.5));
}

/* ── CONTROLES DEL LIBRO ──────────────────────────────────────── */
.zap-book__controls {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 5px 10px;
    background: rgba(10, 10, 10, 0.55);
    border: 1px solid rgba(212, 165, 116, 0.18);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.zap-book__nav {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(212, 165, 116, 0.4);
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.zap-book__nav:hover,
.zap-book__nav:focus-visible {
    background: var(--color-primary);
    color: #0a0a0a;
    transform: scale(1.06);
    outline: none;
}
.zap-book__nav svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.zap-book__counter {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--color-text);
    letter-spacing: 0.06em;
    font-feature-settings: 'tnum' 1;
    min-width: 56px;
    text-align: center;
    padding: 0 4px;
}

@media (max-width: 640px) {
    .zap-book__cover-title,
    .zap-book__back-title { font-size: 1.5rem; }
    .zap-book__quote { font-size: 0.9rem; }
}

/* ========================================
   NOSOTROS
   ======================================== */
.about {
    padding: 6rem 0;
    background: transparent;
    position: relative;
}

.about::before, .about::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 40%;
    background: linear-gradient(180deg, transparent 0%, var(--color-primary) 50%, transparent 100%);
    top: 30%;
    opacity: 0.4;
    animation: pulse-line 3s ease-in-out infinite;
}

.about::before { left: 5%; }
.about::after { right: 5%; }

@keyframes pulse-line {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* ── MANIFIESTO ─────────────────────────────────────────────── */
.about-manifesto {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3.5rem;
}

.about-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--color-text-dim);
    margin-bottom: 1.2rem;
}

.about-statement {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 5.5vw, 3.6rem);
    font-weight: 500;
    line-height: 1.14;
    color: var(--color-white);
    margin-bottom: 2.4rem;
}

.about-statement em {
    font-style: italic;
    color: var(--color-primary);
}

.about-proof {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(2rem, 6vw, 4.5rem);
}

.about-proof li { display: flex; flex-direction: column; gap: 0.25rem; }

.about-proof__num {
    font-family: var(--font-mono);
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--color-primary);
    font-variant-numeric: tabular-nums;
}

.about-proof__label { font-size: 0.78rem; color: var(--color-text-dim); }

/* ── DUO: pasos editoriales + foto natural ──────────────────── */
.about-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 6vw, 4.5rem);
    align-items: center;
    max-width: 940px;
    margin: 0 auto;
}

.about-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.9rem;
}

.about-step__num {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
}

.about-step__title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-white);
    margin: 0.35rem 0 0.3rem;
}

.about-step__desc {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--color-text-dim);
}

/* ── FOTO (proporción natural, sin recorte agresivo) ────────── */
.about-photo {
    position: relative;
    margin: 0;
}

.about-photo img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(212, 165, 116, 0.22);
    filter: saturate(0.82) contrast(1.04) brightness(0.96) sepia(0.12);
}

.about-photo__badge {
    position: absolute;
    bottom: 16px;
    left: 18px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1a1208;
    background: var(--color-primary);
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
}

@media (max-width: 968px) {
    .about { padding: 4rem 0; }
    .about::before, .about::after { display: none; }
    .about-manifesto { margin-bottom: 2.4rem; }
    .about-duo { grid-template-columns: 1fr; gap: 2rem; max-width: 480px; }
    .about-steps { gap: 1.25rem; }
    .about-step__desc { font-size: 0.84rem; }
    .about-photo img { aspect-ratio: 4 / 3; object-position: 50% 32%; }
}

/* ========================================
   PORTAL
   ======================================== */
.portal {
    padding: 6rem 0;
    background: transparent;
    position: relative;
}

.portal-panel {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
    max-width: 880px;
    margin: 0 auto;
    position: relative;
}

.portal-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--color-text-dim);
    margin-bottom: 1rem;
}

.portal-statement {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    font-weight: 500;
    line-height: 1.18;
    color: var(--color-white);
    margin-bottom: 1.6rem;
}

.portal-statement em { font-style: italic; color: var(--color-primary); }

.portal-actions {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 2rem;
}

.portal-actions li {
    font-size: 0.95rem;
    color: var(--color-text);
    padding-left: 1.4rem;
    position: relative;
}

.portal-actions li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-size: 0.8rem;
}

/* ── Logo de marca con glow dorado y flotación suave (GPU) ── */
.portal-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-logo img {
    width: min(210px, 60%);
    height: auto;
    filter: drop-shadow(0 0 28px rgba(212, 165, 116, 0.28));
    animation: portal-logo-float 5s ease-in-out infinite;
    will-change: transform;
}

@keyframes portal-logo-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
    .portal-logo img { animation: none; }
}

@media (max-width: 860px) {
    .portal-panel {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    .portal-logo { order: -1; }
    .portal-logo img { width: 120px; }
    .portal-actions { align-items: center; }
    .portal-actions li { text-align: left; }
}

.portal-note {
    font-size: 0.95rem;
    color: var(--color-text-dim);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 165, 116, 0.2);
}

.link-accent {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    position: relative;
    transition: color 0.3s ease;
}

.link-accent:hover { color: var(--color-accent); }

/* ========================================
   AGENDA / CONTACTO
   ======================================== */
.schedule {
    padding: 6rem 0;
    background: transparent;
    position: relative;
}

.schedule-content { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-bottom: 4rem; }

.schedule-option {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px 5px rgba(212, 165, 116, 0.1);
    transition: all 0.3s ease;
}

.schedule-option:hover { border-color: var(--color-primary); box-shadow: 0 0 30px 10px rgba(212, 165, 116, 0.2); }

.schedule-option-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.schedule-option-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 60%;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-accent) 100%);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(212, 165, 116, 0.5);
}

.schedule-option-desc { font-size: 1rem; color: var(--color-text-dim); margin-bottom: 2rem; }

.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }

.form-group { display: flex; flex-direction: column; gap: 0.5rem; position: relative; }

.form-label { font-size: 0.95rem; font-weight: 600; color: var(--color-text); transition: color 0.3s ease; }
.form-group:focus-within .form-label { color: var(--color-primary); }

.form-input {
    padding: 0.875rem 1rem;
    min-height: 48px;
    background: rgba(10, 10, 10, 0.6);
    border: 1.5px solid rgba(212, 165, 116, 0.22);
    border-radius: 10px;
    color: var(--color-white);
    font-size: 1rem;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.13), 0 0 26px rgba(212, 165, 116, 0.22);
    background: rgba(10, 10, 10, 0.85);
}

/* Campo validado: check dorado dentro del campo (confirmación de avance) */
.form-input.is-valid {
    border-color: rgba(212, 165, 116, 0.55);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4a574' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 17px;
    padding-right: 42px;
}

textarea.form-input.is-valid { background-position: right 14px top 16px; }

/* Select: flecha dorada propia (la nativa del SO rompe la paleta) */
select.form-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4a574' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 42px;
    cursor: pointer;
}

select.form-input option { background: #111; color: #e0e0e0; }

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

.form-error { font-size: 0.85rem; color: #ff4444; display: none; padding-left: 0.5rem; }
.form-error.visible { display: block; animation: shake 0.3s ease; }

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-input.error { border-color: #ff4444; box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1); }

.form-checkbox { flex-direction: row; align-items: flex-start; gap: 0.75rem; }

.form-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 0.2rem;
    border: 1.5px solid rgba(212, 165, 116, 0.5);
    border-radius: 5px;
    background: rgba(10, 10, 10, 0.6);
    cursor: pointer;
    display: inline-grid;
    place-content: center;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.form-checkbox input[type="checkbox"]::before {
    content: '';
    width: 11px;
    height: 11px;
    background: #0d0d0d;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    transform: scale(0);
    transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form-checkbox input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #d4a574, #c8874a);
    border-color: var(--color-primary);
}

.form-checkbox input[type="checkbox"]:checked::before { transform: scale(1); }

.form-checkbox input[type="checkbox"]:focus-visible {
    outline: 2px solid rgba(212, 165, 116, 0.6);
    outline-offset: 2px;
}

.checkbox-label { font-size: 0.9rem; color: var(--color-text-dim); line-height: 1.5; }

.form-message {
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    display: none;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-message.success { display: block; background: rgba(46, 204, 113, 0.2); border: 1px solid #2ecc71; color: #2ecc71; }
.form-message.error { display: block; background: rgba(255, 68, 68, 0.2); border: 1px solid #ff4444; color: #ff4444; }

.contact-direct {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: rgba(26, 26, 26, 0.5);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.contact-direct-title { font-size: 1.5rem; font-weight: 600; color: var(--color-white); margin-bottom: 1.5rem; }

.contact-methods { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }

.contact-method { display: flex; align-items: center; gap: 0.75rem; transition: transform 0.3s ease; }
.contact-method:hover { transform: translateY(-3px); }

.contact-icon { font-size: 1.5rem; }

.contact-link {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.contact-link:hover::after { width: 100%; }
.contact-link:hover { color: var(--color-accent); }
.contact-text { color: var(--color-text); font-size: 1.05rem; }

.map-wrapper {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(212, 165, 116, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px 5px rgba(212, 165, 116, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.map-wrapper:hover {
    border-color: var(--color-primary);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), 0 0 30px 10px rgba(212, 165, 116, 0.2);
}

.map-iframe { width: 100%; height: 100%; border: none; }

@media (max-width: 968px) {
    .contact-methods { flex-direction: column; gap: 1.5rem; align-items: center; }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: rgba(5, 5, 5, 0.95);
    padding: 4rem 0 2rem;
    border-top: 2px solid rgba(212, 165, 116, 0.3);
    position: relative;
    overflow: hidden;
}

/* ── OPTIMIZADO GPU: border-slide reescrito ─────────────────────────────────
   Original: animaba `left` de -100% a 100% → causaba Layout + Repaint.
   Ahora: elemento full-width fijo, translate3d en X → solo Composite layer.  */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;          
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-accent), transparent);
    will-change: transform;
    animation: border-slide 4s linear infinite;
    pointer-events: none;
}

@keyframes border-slide {
    0%   { transform: translate3d(-100%, 0, 0); }
    100% { transform: translate3d(100%, 0, 0); }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column { display: flex; flex-direction: column; gap: 1rem; }

.footer-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }

.footer-brand { font-size: 1.25rem; font-weight: 700; color: var(--color-white); }
.footer-tagline { color: var(--color-text-dim); font-size: 0.95rem; margin-bottom: 1rem; }

.footer-social { display: flex; gap: 1rem; }

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 165, 116, 0.1);
    border-radius: 50%;
    color: var(--color-primary);
    transition: all 0.3s ease;
    position: relative;
}

.footer-social a:hover {
    background: var(--color-primary);
    color: var(--color-bg-darker);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.4);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary) 0%, transparent 100%);
    border-radius: 2px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }

.footer-links a {
    color: var(--color-text-dim);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    padding-left: 0;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.footer-links a:hover { color: var(--color-primary); padding-left: 1rem; }
.footer-links a:hover::before { opacity: 1; left: 0; }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-location {
    color: var(--color-primary);
    font-weight: 600;
    display: inline-block;
    position: relative;
}

.footer-location::before { content: '📍'; margin-right: 0.3rem; }

/* ========================================
   MODALES LEGALES
   ======================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active { display: flex; }

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: var(--color-bg-dark);
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    padding: 3rem;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
    -webkit-overflow-scrolling: touch;
}

.modal-content::-webkit-scrollbar { width: 6px; }
.modal-content::-webkit-scrollbar-track { background: transparent; }
.modal-content::-webkit-scrollbar-thumb { background: rgba(212, 165, 116, 0.3); border-radius: 3px; }

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-50px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(212, 165, 116, 0.1);
    color: var(--color-primary);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.modal-close:hover { background: var(--color-primary); color: var(--color-bg-darker); transform: rotate(90deg); }

.modal-title { font-size: 2rem; font-weight: 600; color: var(--color-white); margin-bottom: 1.5rem; padding-right: 2rem; }

.modal-legal .modal-content { max-width: 800px; max-height: 85vh; }
.modal-legal .modal-title { font-size: 2.2rem; color: var(--color-primary); margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 2px solid rgba(212, 165, 116, 0.3); }
.modal-legal .legal-update { font-size: 0.85rem; color: var(--color-text-dim); font-style: italic; margin-bottom: 2rem; display: block; }

.modal-legal h4 {
    font-size: 1.3rem;
    color: var(--color-white);
    margin-top: 2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1rem;
}

.modal-legal h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
    border-radius: 2px;
}

.modal-legal p { margin-bottom: 1rem; line-height: 1.8; color: var(--color-text); }
.modal-legal ul, .modal-legal ol { margin: 1rem 0 1rem 2rem; color: var(--color-text); }
.modal-legal li { margin-bottom: 0.75rem; line-height: 1.7; }
.modal-legal strong { color: var(--color-primary); font-weight: 600; }
.modal-legal a { color: var(--color-primary); text-decoration: underline; transition: color 0.3s ease; }
.modal-legal a:hover { color: var(--color-accent); }

.legal-contact {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 165, 116, 0.2);
    font-size: 0.95rem;
    color: var(--color-text-dim);
}

/* ========================================
   SCROLL TO TOP
   ======================================== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: var(--color-bg-darker);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 999;
    box-shadow: 0 4px 20px rgba(212, 165, 116, 0.3);
}

@media (max-width: 768px) {
    .scroll-top { bottom: 1rem; right: 1rem; width: 45px; height: 45px; }
}

.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(212, 165, 116, 0.5); }

.star-rating {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    gap: 10px;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--color-primary);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.star-rating.revealed { opacity: 1; transform: translateY(0); }
.star { opacity: 0; display: inline-block; margin: 0; }
.star-rating.revealed .star { animation: blink-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.star-rating.revealed .star-1 { animation-delay: 0.1s; }
.star-rating.revealed .star-2 { animation-delay: 0.2s; }
.star-rating.revealed .star-3 { animation-delay: 0.3s; }
.star-rating.revealed .star-4 { animation-delay: 0.4s; }
.star-rating.revealed .star-5 { animation-delay: 0.5s; }

@keyframes blink-in {
    0% { opacity: 0; transform: scale(0.3) rotate(-30deg); text-shadow: none; }
    60% { opacity: 1; transform: scale(1.3) rotate(10deg); text-shadow: 0 0 20px var(--color-primary); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); text-shadow: 0 0 10px rgba(212, 165, 116, 0.5); }
}

/* ========================================
   NEUROTILT: TARJETA 3D (Hero)
   ======================================== */
.tilt-card {
    flex: 1 1 280px;
    min-height: 400px;
    background: rgba(10, 10, 10, 0.75);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    perspective: 1000px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0 0 15px 5px var(--color-primary), 0 0 30px 10px rgba(255, 140, 66, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--color-text);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-out;
}

.tilt-card h2 { color: var(--color-primary); font-size: 1.8rem; margin-bottom: 1rem; font-weight: 700; }
.tilt-card p { color: var(--color-text-dim); line-height: 1.6; }
.tilt-card .btn-primary { width: 90%; max-width: 250px; margin-top: 20px; font-size: 0.95rem; padding: 0.8rem 1.5rem; }
.tilt-card:focus, .tilt-card:focus-visible { outline: none !important; border-color: transparent !important; }

/* ========================================
   ZAP TUBE NAV — Menú principal premium
   Indicador con FLIP (translateX) + glow superior
   GPU: transform + opacity. Width se aísla con `contain`.
   ======================================== */
.zap-tube-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 0 12px;
  max-width: calc(100vw - 16px);
  pointer-events: auto;
}

.zap-tube-nav__bar {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid rgba(212, 165, 116, 0.18);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-radius: 999px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.04) inset;
  isolation: isolate;
  /* solo layout: paint recortaba el label emergente móvil (fuera de la barra) */
  contain: layout;
}

.zap-tube-nav__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: var(--font-primary);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(224, 224, 224, 0.72);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.35s ease;
  -webkit-tap-highlight-color: transparent;
}

.zap-tube-nav__item:hover,
.zap-tube-nav__item:focus-visible { color: var(--color-primary); }
.zap-tube-nav__item.is-active { color: var(--color-primary); }
.zap-tube-nav__item:focus-visible { outline: 2px solid rgba(212, 165, 116, 0.6); outline-offset: 2px; }

.zap-tube-nav__icon { display: none; line-height: 0; }
.zap-tube-nav__icon svg { width: 18px; height: 18px; display: block; }

.zap-tube-nav__indicator {
  position: absolute;
  top: 5px;
  left: 0;
  height: calc(100% - 10px);
  width: var(--zw, 0);
  transform: translate3d(var(--zx, 0), 0, 0);
  background: rgba(212, 165, 116, 0.10);
  border: 1px solid rgba(212, 165, 116, 0.20);
  border-radius: 999px;
  z-index: -1;
  pointer-events: none;
  will-change: transform, width;
  transition:
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
    width     0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Tubo de luz superior — solo opacity/transform al hover */
.zap-tube-nav__indicator::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 4px;
  border-radius: 0 0 6px 6px;
  background: var(--color-primary);
  box-shadow:
    0 0 18px 2px rgba(212, 165, 116, 0.65),
    0 0 36px 6px rgba(212, 165, 116, 0.30);
}

/* CTA "Agendar" — siempre dorado */
.zap-tube-nav__cta {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #0a0a0a;
  box-shadow: 0 6px 18px rgba(212, 165, 116, 0.30);
}
.zap-tube-nav__cta:hover,
.zap-tube-nav__cta.is-active { color: #0a0a0a; }

/* ── MÓVIL: iconos, mismo top (no choca con scroll-top BTN) ── */
@media (max-width: 768px) {
  .zap-tube-nav { top: 10px; }
  .zap-tube-nav__bar { gap: 0; padding: 4px; }
  .zap-tube-nav__item { padding: 0 11px; min-height: 40px; }
  .zap-tube-nav__label { display: none; }
  .zap-tube-nav__icon { display: inline-flex; }
  .zap-tube-nav__cta { padding: 0 13px; }
  .zap-tube-nav__cta .zap-tube-nav__icon svg { width: 19px; height: 19px; }
}

/* Admin bar WP */
body.admin-bar .zap-tube-nav { top: 46px; }
@media (max-width: 768px) { body.admin-bar .zap-tube-nav { top: 42px; } }

@media (prefers-reduced-motion: reduce) {
  .zap-tube-nav__indicator,
  .zap-tube-nav__item { transition: none; }
}

/* ========================================
   VELVET OVERLAY
   ======================================== */
#velvet-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: radial-gradient(circle, rgba(10, 10, 10, 0.95) 0%, rgba(5, 5, 5, 1) 100%);
    z-index: 9997;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

#velvet-transition-overlay.is-active { opacity: 1; pointer-events: all; }

/* ========================================
   PARTÍCULAS
   ======================================== */
.particle {
    position: fixed;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.25), 0 0 12px 3px rgba(212, 165, 116, 0.12);
    transition: opacity 3s ease-out;
    will-change: transform, opacity;
}

.particle.visible { opacity: 0.6; }

/* ========================================
   MEDIA QUERIES GLOBALES
   ======================================== */
@media (max-width: 768px) {
    .hero-cta-group { flex-direction: column; }
    .btn { width: 100%; }
    .tilt-card { flex: 0 0 80% !important; min-height: 220px !important; scroll-snap-align: start; }
    .tilt-card h2 { font-size: 1.2rem; margin-bottom: 0.5rem; }
    .tilt-card p { font-size: 0.875rem; }
    .tilt-card .btn-primary { margin-top: 1rem; font-size: 0.85rem; padding: 0.6rem 1.2rem; }
    body::before { animation: none; }
    .cursor-aura { display: none; }
    .particle:nth-child(2n) { display: none; }
    .particle { box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.2); }
}

@media print {
    .header, .footer, .scroll-top, .cursor-aura, .particle, #velvet-transition-overlay { display: none !important; }
    body::before, body::after { display: none !important; }
}

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

/* ========================================
   BACKGROUND PREMIUM
   ======================================== */
body {
    font-family: var(--font-primary);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(180deg, #000000 0%, #0a0a0a 15%, #141414 30%, #1a1a1a 50%, #141414 70%, #0f0f0f 85%, #1e1e1e 100%);
    background-attachment: scroll;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    box-shadow: inset 0 0 200px 50px rgba(0, 0, 0, 0.8);
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0.6;
    background-image:
        linear-gradient(90deg, rgba(212, 165, 116, 1) 0%, transparent 20%),
        linear-gradient(180deg, rgba(212, 165, 116, 1) 0%, transparent 20%),
        linear-gradient(90deg, transparent 80%, rgba(212, 165, 116, 1) 100%),
        linear-gradient(180deg, transparent 80%, rgba(212, 165, 116, 1) 100%);
    background-size: 300px 3px, 3px 300px, 300px 3px, 3px 300px;
    background-position: top left, top left, bottom right, bottom right;
    background-repeat: no-repeat;
    overflow: hidden;
}

@media (max-width: 768px) {
    body::after { display: none; }
    .container { max-width: 100%; padding: 0 1rem; }
    .hero-content { width: 100%; max-width: 100%; }
}

/* ========================================
   CURSOR AURA
   ======================================== */
.cursor-aura {
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.4) 0%, rgba(212, 165, 116, 0.1) 50%, transparent 70%);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.cursor-aura.active { opacity: 1; }

@media (hover: none) { .cursor-aura { display: none; } }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition-smooth); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ========================================
   UTILIDADES
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.section-header { text-align: center; margin-bottom: 3rem; }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 500;
    font-variation-settings: "opsz" 96, "SOFT" 30;
    letter-spacing: -0.02em;
    color: var(--color-white);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.section-title em {
    font-style: italic;
    font-weight: 500;
    color: var(--color-primary);
}

.section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--color-text-dim);
    max-width: 700px;
    margin: 0 auto;
}

.section-separator {
    height: 80px;
    background: linear-gradient(135deg, var(--color-bg-dark) 50%, var(--color-bg-light) 50%);
    margin-top: -1px;
}

.section-separator-inverted {
    background: linear-gradient(135deg, var(--color-bg-light) 50%, var(--color-bg-dark) 50%);
}

/* ========================================
   BOTONES — SISTEMA PREMIUM
   GPU: shimmer via transform, spring via cubic-bezier
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.8rem 1.875rem;
    border-radius: 100px;
    font-family: var(--font-primary);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
    -webkit-font-smoothing: antialiased;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.28s ease,
                background-color 0.22s ease,
                color 0.22s ease;
    will-change: transform;
}

/* shimmer sweep — GPU only, sin repaint */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255, 255, 255, 0.22) 50%,
        transparent 70%
    );
    transform: translateX(-120%) skewX(-10deg);
    transition: transform 0.55s ease;
    pointer-events: none;
}
.btn:hover::after { transform: translateX(120%) skewX(-10deg); }
.btn:active { transform: translateY(1px) scale(0.975); transition-duration: 0.1s; }

.btn-primary {
    background: linear-gradient(135deg, #d4a574 0%, #e8b88a 45%, #c8874a 100%);
    color: #0d0d0d;
    box-shadow:
        0 0 0 1px rgba(212, 165, 116, 0.18),
        0 4px 18px rgba(212, 165, 116, 0.28);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 0 0 1px rgba(212, 165, 116, 0.4),
        0 8px 36px rgba(212, 165, 116, 0.48),
        0 0 70px rgba(212, 165, 116, 0.14);
}

.btn-secondary {
    background: transparent;
    border: 1.5px solid rgba(212, 165, 116, 0.5);
    color: var(--color-primary);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 165, 116, 0.9);
    background: rgba(212, 165, 116, 0.08);
    color: var(--color-primary);
    box-shadow:
        0 0 28px rgba(212, 165, 116, 0.28),
        inset 0 0 0 1px rgba(212, 165, 116, 0.12);
}

.btn-full { width: 100%; }

@media (prefers-reduced-motion: reduce) {
    .btn { transition: none; }
    .btn::after { display: none; }
}

/* ========================================
   ZAP BRAND MARK — Logo flotante (sustituye al .header)
   GPU: transform + opacity. Sin layout shift.
   ======================================== */
.zap-brand-mark {
    position: fixed;
    top: 14px;
    left: 18px;
    z-index: 9998;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    background: rgba(10, 10, 10, 0.55);
    border: 1px solid rgba(212, 165, 116, 0.18);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-radius: 999px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.45),
        0 1px 0 rgba(255, 255, 255, 0.04) inset;
    text-decoration: none;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.35s ease;
    will-change: transform;
}

.zap-brand-mark:hover,
.zap-brand-mark:focus-visible {
    transform: translateY(-1px);
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(212, 165, 116, 0.35) inset,
        0 0 20px rgba(212, 165, 116, 0.20);
    outline: none;
}

.zap-brand-mark__logo {
    width: 36px;
    height: 36px;
    display: block;
    border-radius: 50%;
    flex-shrink: 0;
}

.zap-brand-mark__wordmark {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
    gap: 3px;
}

.zap-brand-mark__name {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--color-white);
    text-transform: uppercase;
}

.zap-brand-mark__suffix {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--color-primary);
    text-transform: uppercase;
}

/* Admin bar WP */
body.admin-bar .zap-brand-mark { top: 46px; }

/* ── MÓVIL: solo logo redondo ── */
@media (max-width: 768px) {
    .zap-brand-mark {
        top: 10px;
        left: 12px;
        padding: 4px;
        gap: 0;
    }
    .zap-brand-mark__logo { width: 34px; height: 34px; }
    .zap-brand-mark__wordmark { display: none; }
    body.admin-bar .zap-brand-mark { top: 42px; }
}

@media (prefers-reduced-motion: reduce) {
    .zap-brand-mark { transition: none; }
}
.logo { width: 50px; height: 50px; }



/* ========================================
   HERO — VIDEO CORPORATIVO DE FONDO
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;       
    background: #000;       
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #000;
}

.hero-video-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    will-change: transform;   
    pointer-events: none;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.60);
    z-index: 1;
    pointer-events: none;
}

.hero-video-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 220px;
    background: linear-gradient(to bottom, transparent 0%, #000 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 4rem 1.5rem;
}

.hero-title { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; animation: fadeInUp 0.8s ease-out; }

.hero-accent {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    font-weight: 500;
    color: var(--color-primary);
    letter-spacing: 0;
    font-variation-settings: "opsz" 72;
}
.hero-main {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 4.8rem);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.08;
    letter-spacing: -0.02em;
    font-variation-settings: "opsz" 144;
}

.split-text { display: inline-block; opacity: 0; animation: text-reveal 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards; animation-delay: 0.3s; }

@keyframes text-reveal {
    0% { opacity: 0; transform: translateY(30px) rotateX(-90deg); }
    100% { opacity: 1; transform: translateY(0) rotateX(0); }
}

/* ════════════════════════════════════════════════════════════════
   HERO SPARKLES — franja de chispas bajo el título
   Canvas ligero propio (sin tsparticles) · convive con video bg
   Líneas: gradiente estático (sin animación = cero coste)
   ════════════════════════════════════════════════════════════════ */
.hero-sparkles {
    position: relative;
    width: min(640px, 86vw);
    height: 110px;
    margin: -0.5rem auto 0.5rem;
    pointer-events: none;
    animation: fadeInUp 0.8s ease-out 0.15s backwards;
    /* máscara radial: desvanece bordes como el original */
    -webkit-mask-image: radial-gradient(ellipse 60% 100% at 50% 0%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 60% 100% at 50% 0%, #000 30%, transparent 75%);
}

.hero-sparkles__line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 999px;
}

.hero-sparkles__line--wide {
    width: 72%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.85), transparent);
    filter: blur(3px);
}

.hero-sparkles__line--thin {
    width: 72%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.hero-sparkles__line--core {
    width: 30%;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255, 200, 130, 0.9), transparent);
    filter: blur(5px);
}

.hero-sparkles__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 768px) {
    .hero-sparkles { height: 80px; margin-top: -0.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-sparkles__canvas { display: none; }
}

.hero-subtitle { font-size: clamp(1.1rem, 2.5vw, 1.5rem); color: rgba(224,224,224,0.9); max-width: 700px; margin: 0 auto 2.5rem; animation: fadeInUp 0.8s ease-out 0.2s backwards; }

.hero-cta-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 4rem; animation: fadeInUp 0.8s ease-out 0.4s backwards; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════════
   MÓVIL HERO — 3 AJUSTES UI/UX PREMIUM (TEXTOS + ENCUADRE)
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    .hero {
        min-height: 100svh;
    }

    .hero-video-bg video {
        object-position: 20% center; /* acción izquierda del frame visible */
    }

    .hero-content {
        padding: 6rem 1.75rem 3rem;  
    }

    .hero-title {
        margin-top: 0;
        gap: 0.4rem;
        margin-bottom: 1.25rem;
    }

    .hero-accent {
        font-size: clamp(1rem, 5.5vw, 1.35rem);
        letter-spacing: 0.08em;
        line-height: 1.4;
        text-shadow:
            0 2px 8px  rgba(0, 0, 0, 1.00),
            0 4px 28px rgba(0, 0, 0, 0.90);
    }

    .hero-main {
        font-size: clamp(1.9rem, 9.5vw, 2.8rem);
        line-height: 1.15;
        text-shadow:
            0 2px 8px  rgba(0, 0, 0, 1.00),
            0 4px 28px rgba(0, 0, 0, 0.90);
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
        line-height: 1.65;
        margin-bottom: 2rem;
        padding: 0 0.25rem;
        color: #ffffff;
        font-weight: 500;
        text-shadow:
            0 2px 8px  rgba(0, 0, 0, 1.00),
            0 4px 28px rgba(0, 0, 0, 0.90);
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 2.5rem;
    }

    .hero-cta-group .btn {
        width: min(100%, 320px); 
    }

    .hero-video-overlay {
        background:
            linear-gradient(
                to bottom,
                rgba(0, 0, 0, 0.80) 0%,
                rgba(0, 0, 0, 0.70) 35%,
                rgba(0, 0, 0, 0.45) 65%,
                rgba(0, 0, 0, 0.20) 100%
            ),
            linear-gradient(
                to right,
                rgba(0, 0, 0, 0.30) 0%,
                transparent 60%
            );
    }
}

/* ========================================
   SCROLL REVEAL
   ======================================== */
.scroll-reveal { opacity: 0; transform: translateY(50px); transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), transform 0.8s cubic-bezier(0.77, 0, 0.175, 1); }
.scroll-reveal.revealed { opacity: 1; transform: translateY(0); }

/* ========================================
   ALIADOS
   ======================================== */
.partners-carousel { padding: 6rem 0; background: transparent; position: relative; }

.logo-carousel {
    max-width: 900px;
    width: 90%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.logo-track {
    display: flex;
    width: calc(200px * 12);
    animation: scroll-horizontal 40s linear infinite;
    animation-play-state: running;
}

.logo-carousel:hover .logo-track { animation-play-state: paused; }

.logo-item {
    width: 200px;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    height: 120px;
    flex-shrink: 0;
    position: relative;
}

.partner-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    font-family: var(--font-primary);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: rgba(212, 165, 116, 0.12);
    padding: 0.22rem 0.7rem;
    border-radius: 100px;
    border: 1px solid rgba(212, 165, 116, 0.3);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.logo-item:hover .partner-badge { opacity: 1; transform: translateX(-50%) translateY(-120%); }

/* móvil: badges visibles por defecto (no hay hover en touch) */
@media (max-width: 768px) {
    .partner-badge {
        opacity: 1;
        transform: translateX(-50%) translateY(-110%);
    }
}

.logo-item img {
    max-width: 140px;
    height: auto;
    filter: grayscale(100%) brightness(0.6);
    transition: filter 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-item:hover img { filter: grayscale(0%) brightness(1); transform: scale(1.15); }

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
    z-index: 20;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(212, 165, 116, 0.2);
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
    opacity: 0;
}

.logo-carousel:hover .carousel-btn { opacity: 1; }
.carousel-btn:hover { background: var(--color-primary); color: var(--color-bg-darker); transform: scale(1.1); }

/* ========================================
   CARRUSEL MÓVIL HERO (tilt cards)
   ======================================== */
@media (max-width: 768px) {
    #tiltCarousel { width: 100%; overflow: hidden; }
    .carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 1rem; }
    .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(212, 165, 116, 0.3); transition: all 0.3s; cursor: pointer; }
    .dot.active { background: var(--color-primary); width: 24px; border-radius: 4px; }
}

@media (min-width: 769px) {
    .carousel-dots { display: none; }
}

/* ==========================================================
   CATÁLOGO PREMIUM — GRID PC + CARRUSEL MÓVIL
   ========================================================== */
.services-catalog-grid    { display: grid; }
.services-mobile-carousel { display: none; }

@media (max-width: 768px) {
    .services-catalog-grid    { display: none; }
    .services-mobile-carousel { display: block; }
}

.services-catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.catalog-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    background: #0a0a0a;
    border: 1px solid rgba(212, 165, 116, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
    display: flex;
    flex-direction: column;
    isolation: isolate;
}

.catalog-card:hover,
.catalog-card:focus-visible {
    border-color: var(--color-primary);
    box-shadow: 0 0 28px 6px rgba(212, 165, 116, 0.35), 0 8px 32px rgba(0, 0, 0, 0.7);
    transform: translateY(-6px);
    outline: none;
}

.catalog-card--featured {
    border-color: rgba(255, 140, 66, 0.4);
    background: linear-gradient(160deg, rgba(255, 140, 66, 0.06) 0%, #0a0a0a 60%);
}

.catalog-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 62%;
    overflow: hidden;
    background: #111;
}

.catalog-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
}

.catalog-img--hover { opacity: 0;  transform: scale(1.06); z-index: 1; }
.catalog-img--main  { opacity: 1;  transform: scale(1);    z-index: 2; }

.catalog-card:hover .catalog-img--main,
.catalog-card:focus-visible .catalog-img--main {
    opacity: 0;
    transform: scale(1.06);
}
.catalog-card:hover .catalog-img--hover,
.catalog-card:focus-visible .catalog-img--hover {
    opacity: 1;
    transform: scale(1);
}

.catalog-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 3;
    pointer-events: none;
}

.catalog-body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.catalog-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.3;
    transition: color 0.3s ease;
}

.catalog-card:hover .catalog-title { color: var(--color-primary); }

.catalog-hook {
    font-size: 0.9rem;
    color: var(--color-text-dim);
    line-height: 1.55;
}

.catalog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(212, 165, 116, 0.1);
}

.catalog-price {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.catalog-price-label {
    font-size: 0.7rem;
    color: var(--color-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.catalog-price-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    text-shadow: 0 0 10px rgba(212, 165, 116, 0.4);
}

.catalog-cta {
    padding: 0.45rem 1.2rem;
    border-radius: 100px;
    border: 1.5px solid rgba(212, 165, 116, 0.5);
    color: var(--color-primary);
    font-family: var(--font-primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    -webkit-font-smoothing: antialiased;
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.22s ease, border-color 0.22s ease,
                box-shadow 0.22s ease, transform 0.22s cubic-bezier(0.34,1.56,0.64,1);
    will-change: transform;
}

.catalog-cta:hover {
    background: rgba(212, 165, 116, 0.12);
    border-color: rgba(212, 165, 116, 0.9);
    box-shadow: 0 0 18px rgba(212, 165, 116, 0.35);
    transform: translateY(-1px);
}

.catalog-badge {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 10;
    background: var(--color-accent);
    color: #000;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
}

/* ── CARRUSEL MÓVIL SERVICIOS ── */
.services-mobile-carousel {
    width: 100%;
    position: relative;
    padding: 0.5rem 0 1.5rem;
}

.smc-track {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.5rem 1rem 1rem;
    padding-right: 1.5rem;
    touch-action: pan-x pan-y;
}

.smc-track::-webkit-scrollbar { display: none; }

.smc-card {
    flex: 0 0 calc(55vw - 1.25rem);
    min-width: 160px;
    max-width: 280px;
    scroll-snap-align: center;
    border-radius: 12px;
    overflow: hidden;
    background: #0a0a0a;
    border: 1px solid rgba(212, 165, 116, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
    isolation: isolate;
    touch-action: auto;
}

.smc-card.is-active-swipe {
    border-color: var(--color-primary);
    box-shadow: 0 0 22px 5px rgba(212, 165, 116, 0.3);
    transform: scale(1.02);
}

.smc-card--featured { border-color: rgba(255, 140, 66, 0.35); }

.smc-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 65%;
    overflow: hidden;
    background: #111;
    flex-shrink: 0;
}

.smc-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
}

.smc-img--hover { opacity: 0; transform: scale(1.06); z-index: 1; }
.smc-img--main  { opacity: 1; transform: scale(1);    z-index: 2; }

.smc-card.is-active-swipe .smc-img--main  { opacity: 0; transform: scale(1.06); }
.smc-card.is-active-swipe .smc-img--hover { opacity: 1; transform: scale(1);    }

.smc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 3;
    pointer-events: none;
}

.smc-body {
    padding: 0.85rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.smc-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.3;
}

.smc-hook {
    font-size: 0.75rem;
    color: var(--color-text-dim);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.smc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(212, 165, 116, 0.1);
}

.smc-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
}

.smc-cta {
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
    border: 1.5px solid rgba(212, 165, 116, 0.45);
    color: var(--color-primary);
    font-family: var(--font-primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    -webkit-font-smoothing: antialiased;
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.22s ease, border-color 0.22s ease,
                box-shadow 0.22s ease, transform 0.22s cubic-bezier(0.34,1.56,0.64,1);
    will-change: transform;
}

.smc-cta:hover { background: rgba(212,165,116,0.1); border-color: rgba(212,165,116,0.85); transform: translateY(-1px); }
.smc-cta:active { background: var(--color-primary); color: #000; transform: scale(0.97); }

.smc-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 1rem;
    padding: 0 1rem;
}

.smc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(212, 165, 116, 0.25);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, width 0.3s ease, border-radius 0.3s ease;
    flex-shrink: 0;
}

.smc-dot.is-active {
    background: var(--color-primary);
    width: 22px;
    border-radius: 4px;
}

@media (min-width: 769px) {
    .smc-dots { display: none; }
}

/* ========================================
   MODAL PREMIUM (Bottom Sheet móvil)
   ======================================== */
.pmodal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

@media (min-width: 769px) {
    .pmodal { align-items: center; }
}

.pmodal.is-open { display: flex; }

.pmodal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
    cursor: pointer;
    animation: pmodal-fade-in 0.3s ease forwards;
}

@keyframes pmodal-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.pmodal__sheet {
    position: relative;
    z-index: 1;
    background: linear-gradient(160deg, #141414 0%, #0a0a0a 100%);
    border: 1px solid rgba(212, 165, 116, 0.25);
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 100%;
    max-height: 88dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    animation: pmodal-slide-up 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.pmodal__sheet::-webkit-scrollbar { display: none; }

@keyframes pmodal-slide-up {
    from { opacity: 0; transform: translateY(80px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (min-width: 769px) {
    .pmodal__sheet {
        border-radius: 20px;
        max-width: 460px;
        max-height: 90dvh;
        animation: pmodal-scale-in 0.32s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
    }

    @keyframes pmodal-scale-in {
        from { opacity: 0; transform: scale(0.88) translateY(-20px); }
        to   { opacity: 1; transform: scale(1) translateY(0); }
    }
}

.pmodal__sheet::before {
    content: '';
    display: block;
    width: 44px;
    height: 5px;
    border-radius: 3px;
    background: rgba(212, 165, 116, 0.3);
    margin: 12px auto 0;
}

@media (min-width: 769px) {
    .pmodal__sheet::before { display: none; }
}

.pmodal__close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /* fondo oscuro glassy: visible sobre CUALQUIER foto, clara u oscura */
    background: rgba(10, 10, 10, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
    z-index: 5;
}

.pmodal__close:hover { background: var(--color-primary); color: #0a0a0a; transform: rotate(90deg); }

@media (max-width: 768px) {
    /* 44px = mínimo táctil; un poco más adentro para no chocar con el borde */
    .pmodal__close { width: 44px; height: 44px; top: 0.7rem; right: 0.7rem; }
}

.pmodal__img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;   /* exportar las fotos a 900×600 px → encajan sin recorte */
    overflow: hidden;
}

.pmodal__img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.pmodal__sheet:hover .pmodal__img-wrap img { transform: scale(1.04); }

.pmodal__img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.95) 100%);
    z-index: 1;
    pointer-events: none;
}

.pmodal__body {
    padding: 1.5rem 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

@media (max-width: 768px) {
    .pmodal__body { padding: 1.15rem 1.25rem 1.5rem; gap: 0.7rem; }
    .pmodal__title { font-size: 1.25rem; }
}

.pmodal__title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.25;
}

.pmodal__hook {
    font-size: 0.98rem;
    color: var(--color-text-dim);
    line-height: 1.6;
}

.pmodal__price-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(212, 165, 116, 0.06);
    border: 1px solid rgba(212, 165, 116, 0.18);
    border-radius: 12px;
}

.pmodal__price-block {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.pmodal__price-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-dim);
}

.pmodal__price-amount {
    font-size: 1.95rem;
    font-weight: 800;
    color: var(--color-primary);
    text-shadow: 0 0 18px rgba(212, 165, 116, 0.45);
    letter-spacing: -0.02em;
}

.pmodal__price-sub {
    font-size: 0.72rem;
    color: var(--color-text-dim);
}

.pmodal__price-note {
    font-size: 0.72rem;
    color: var(--color-text-dim);
    text-align: right;
    line-height: 1.4;
    align-self: flex-end;
}

.pmodal__wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.75rem;
    border-radius: 100px;
    font-family: var(--font-primary);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    -webkit-font-smoothing: antialiased;
    color: #fff;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35), 0 0 0 0 rgba(37, 211, 102, 0.4);
    text-decoration: none;
    overflow: hidden;
    position: relative;
    transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.28s ease;
    animation: wa-pulse 2.8s ease-in-out infinite;
    will-change: transform;
}

@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35), 0 0 0 0 rgba(37, 211, 102, 0.4); }
    50%       { box-shadow: 0 4px 28px rgba(37, 211, 102, 0.55), 0 0 0 8px rgba(37, 211, 102, 0); }
}

.pmodal__wa-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.55);
    animation: none;
}

.pmodal__wa-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.pmodal__secondary-btn {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-dim);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0.25rem;
}

.pmodal__secondary-btn:hover { color: var(--color-primary); }

.pmodal__sheet.is-closing {
    animation: pmodal-slide-down 0.28s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pmodal-slide-down {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(60px); }
}

@media (min-width: 769px) {
    .pmodal__sheet.is-closing {
        animation: pmodal-scale-out 0.24s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }
    @keyframes pmodal-scale-out {
        from { opacity: 1; transform: scale(1) translateY(0); }
        to   { opacity: 0; transform: scale(0.9) translateY(10px); }
    }
}

@media (max-width: 768px) {
  .services-mobile-carousel { touch-action: auto; }
}

/* ========================================
   TAREA 4 — INTERACCIÓN MÓVIL PREMIUM
   GPU only: transform + opacity. Sin repaints.
   ======================================== */

/* ── 1. Sheet deslizable: anular el rebote elástico de iOS para
       que el gesto de arrastre no compita con el overscroll nativo ── */
.pmodal__sheet {
    overscroll-behavior: none;
    touch-action: pan-y;
}

/* ── 2. Label emergente del tube nav (móvil, solo iconos) ── */
@media (max-width: 768px) {
    .zap-tube-nav__item { position: relative; }

    .zap-tube-nav__item.show-label .zap-tube-nav__label {
        display: block;
        position: absolute;
        top: calc(100% + 12px);
        left: 50%;
        background: rgba(8, 8, 8, 0.96);
        border: 1px solid rgba(212, 165, 116, 0.45);
        color: var(--color-primary);
        padding: 0.3rem 0.85rem;
        border-radius: 100px;
        font-size: 0.65rem;
        font-weight: 700;
        letter-spacing: 0.07em;
        text-transform: uppercase;
        white-space: nowrap;
        pointer-events: none;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
        transform: translateX(-50%);
        animation: zap-label-pop 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    @keyframes zap-label-pop {
        from { opacity: 0; transform: translateX(-50%) translateY(-6px) scale(0.9); }
        to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
    }
}

/* ── 3. Feedback de presión táctil (solo touch, no afecta desktop) ── */
@media (hover: none) and (pointer: coarse) {
    .zap-svc-card:active,
    .smc-card:active,
    .catalog-card:active,
    .tilt-card:active {
        transform: scale(0.975);
        transition: transform 0.12s ease;
    }

    .btn:active,
    .pmodal__wa-btn:active,
    .zap-book__nav:active,
    .zap-book__back-cta:active,
    .scroll-top:active {
        transform: scale(0.94);
        transition: transform 0.1s ease;
    }
}

/* ── 4. Safe areas (iPhone notch / barra de gestos) ── */
@supports (padding: env(safe-area-inset-bottom)) {
    .scroll-top { bottom: calc(2rem + env(safe-area-inset-bottom)); }

    @media (max-width: 768px) {
        .scroll-top { bottom: calc(1rem + env(safe-area-inset-bottom)); }
        .pmodal__body { padding-bottom: calc(2rem + env(safe-area-inset-bottom)); }
    }
}

/* ── 5. Firma terminal — validación del formulario en mono ── */
.form-error {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0;
}

.form-error:not(:empty)::before { content: '>_ '; opacity: 0.75; }

.form-message {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-align: left;
}

.form-message.success::before { content: '>_ ok · '; opacity: 0.8; }
.form-message.error::before   { content: '>_ err · '; opacity: 0.8; }

/* ── 6. Botón enviar: estado de carga con spinner dorado oscuro ── */
.btn.is-loading { pointer-events: none; opacity: 0.85; }

.btn.is-loading::before {
    content: '';
    width: 15px;
    height: 15px;
    border: 2px solid rgba(13, 13, 13, 0.3);
    border-top-color: #0d0d0d;
    border-radius: 50%;
    flex-shrink: 0;
    animation: zap-spin 0.7s linear infinite;
}

@keyframes zap-spin { to { transform: rotate(360deg); } }

/* ── 7. Contador de caracteres del mensaje — firma mono ── */
.form-char-count {
    display: block;
    text-align: right;
    margin-top: 0.35rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-text-dim);
    font-variant-numeric: tabular-nums;
}

.form-char-count.is-near { color: var(--color-primary); }