/* ============================================================
   FAMARA WEB STUDIO — style-upgrade.css  v8
   Luxury layer · carga DESPUÉS de style.css
   Quiet Luxury · Champagne Volcánico #C4AD8C
   Satoshi · Scroll Indicator · Cursor Ver → · Quiz · Calc · Form
   ============================================================ */

/* ── ROOT — OVERRIDES PREMIUM ───────────────────────────────── */
:root {
  --ease:       cubic-bezier(0.23, 1, 0.32, 1);
  --ease-soft:  cubic-bezier(0.16, 1, 0.3, 1);
  --space-section: clamp(8.5rem, 16vh, 13rem);

  /* Fondos — negro volcánico profundo */
  --bg:         #050505;
  --bg-2:       #0C0C0B;
  --bg-3:       #141412;
  --bg-surface: #181715;

  /* Textos */
  --text:       #EDEBE6;
  --text-muted: #A8A49D;
  --text-dim:   #6B6760;

  /* Acento — Cobre Volcánico */
  --accent:        #d4924f;
  --accent-light:  #e8a86a;
  --accent-deep:   #b8783a;
  --accent-dim:    rgba(212, 146, 79, 0.10);
  --accent-dim-2:  rgba(212, 146, 79, 0.16);

  /* Bordes */
  --border:        rgba(237, 235, 230, 0.05);
  --border-mid:    rgba(237, 235, 230, 0.10);
  --border-accent: rgba(196, 173, 140, 0.22);
  --border-strong: rgba(196, 173, 140, 0.38);
}

/* ── MULTI-LAYER TEXTURE — solo desktop ─────────────────────── */
@media (min-width: 861px) {

/* Capa 1: Grain fino — ruido uniforme */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.072;
  pointer-events: none;
  z-index: 99990;
  mix-blend-mode: overlay;
}

/* Capa 2: Linen/paper fiber — fibras direccionales horizontales */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='l'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.04 0.28' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23l)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.042;
  pointer-events: none;
  z-index: 99989;
  mix-blend-mode: soft-light;
}

} /* end @media (min-width: 861px) */

/* ── SECTION SPACING — MÁS AIRE ────────────────────────────── */
.section {
  padding: var(--space-section) clamp(1.5rem, 5vw, 4rem);
}
.problema {
  padding: var(--space-section) clamp(1.5rem, 5vw, 4rem);
}
.quiz-section {
  padding: var(--space-section) clamp(1.5rem, 5vw, 4rem);
}
.diff-section {
  padding: var(--space-section) clamp(1.5rem, 5vw, 4rem);
}

/* Más espacio en section-header */
.section-header {
  margin-bottom: clamp(4.5rem, 9vw, 7.5rem);
}

/* Más espacio interno en cards de servicio */
.srv-card {
  padding: 3.4rem 2.8rem;
}

/* Subtítulo hero — más respiro */
.hero-sub {
  margin-bottom: 3rem;
  line-height: 1.9;
}

/* ── SCROLL REVEALS — PREMIUM ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.95s var(--ease),
    transform 0.95s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition:
    opacity 0.95s var(--ease),
    transform 0.95s var(--ease);
}
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition:
    opacity 0.95s var(--ease),
    transform 0.95s var(--ease);
}
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}
.reveal-d1 { transition-delay: 0.12s; }
.reveal-d2 { transition-delay: 0.24s; }
.reveal-d3 { transition-delay: 0.38s; }

/* ── BACK TO TOP — CIRCULAR PREMIUM ────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 44px;
  height: 44px;
  background: #0f0f0e;
  border: 0.5px solid rgba(196, 173, 140, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  color: var(--accent);
  z-index: 8900;
  transition:
    opacity 0.4s var(--ease),
    transform 0.3s var(--ease),
    border-color 0.3s,
    box-shadow 0.3s;
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.scroll-top:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(196, 173, 140, 0.12);
}

/* ── IG DM FLOAT ────────────────────────────────────────────── */
@keyframes igDmBreath {
  0%   { box-shadow: 0 0 0 0    rgba(169, 138, 98, 0);    }
  40%  { box-shadow: 0 0 0 8px  rgba(169, 138, 98, 0.2);  }
  100% { box-shadow: 0 0 0 14px rgba(169, 138, 98, 0);    }
}

.ig-dm-float {
  position: fixed;
  bottom: 6.4rem;
  right: 2rem;
  z-index: 8950;
  width: 44px;
  height: 44px;
  background: #111110;
  border: 0.5px solid rgba(196, 173, 140, 0.28);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--accent);
  animation: igDmBreath 3s ease-in-out infinite;
  transition:
    transform 0.2s var(--ease),
    border-color 0.3s,
    box-shadow 0.3s;
}
.ig-dm-float:hover {
  transform: scale(1.08);
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(196, 173, 140, 0.12);
  animation-play-state: paused;
}
.ig-dm-float svg {
  width: 20px;
  height: 20px;
}

/* ── CARD HOVER — LIFT PREMIUM (CSS puro) ───────────────────── */
.extras-card,
.srv-card,
.mant-card,
.test-card,
.port-item,
.blog-card,
.diff-col {
  will-change: transform;
  transition:
    transform 0.55s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.55s cubic-bezier(0.23, 1, 0.32, 1),
    border-color 0.4s;
}

@media (hover: hover) and (pointer: fine) {
  .extras-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.45);
  }
  .srv-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--border-accent);
  }
  .mant-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.45);
  }
  .test-card:hover {
    transform: translateY(-10px) scale(1.015);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  }
  .port-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.45);
  }
  .blog-card:hover {
    transform: translateY(-10px) scale(1.015);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  }
  .diff-col:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  }
}

/* Border accent line en hover (ya existe en style.css, aquí refinamos) */
.extras-card::after,
.srv-card::before,
.mant-card::before {
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ── BOTONES — HOVER LIFT ────────────────────────────────────── */
.btn {
  transition: color 0.3s, transform 0.22s var(--ease);
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0px);
}
.btn-header {
  transition: color 0.3s, transform 0.22s var(--ease);
}
.btn-header:hover {
  transform: translateY(-1px);
}

/* ── NAV — PREMIUM ───────────────────────────────────────────── */
.header {
  transition:
    background 0.45s,
    box-shadow 0.45s,
    border-color 0.45s,
    backdrop-filter 0.45s;
}
.header.scrolled {
  background: rgba(8, 8, 8, 0.96);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

/* Nav links — hover suave */
.nav a {
  transition: color 0.28s;
}
.nav a::after {
  transition: width 0.4s var(--ease);
}

/* ── FOOTER — MÁS PREMIUM ────────────────────────────────────── */
.footer {
  padding: clamp(5.5rem, 11vh, 8.5rem) 2.5rem clamp(4rem, 8vh, 6rem);
  position: relative;
  overflow: hidden;
}

/* Textura footer — grain + luz dorada desde abajo */
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='fg'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23fg)' opacity='1'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 100% 55% at 50% 100%, rgba(196,173,140,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 60% 30% at 50% 0%, rgba(0,0,0,0.3) 0%, transparent 60%);
  background-repeat: repeat, no-repeat, no-repeat;
  background-size: 180px 180px, 100% 100%, 100% 100%;
  opacity: 0.55;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}

/* Contenido por encima de la textura */
.footer-inner,
.footer-bottom {
  position: relative;
  z-index: 1;
}

/* ── PORT-IMG — overflow hidden forzado para que el scale no desborde ── */
.port-img {
  overflow: hidden !important;
  border-radius: 0;
}
.port-item {
  overflow: hidden;
}
.footer-brand p {
  line-height: 1.9;
  font-size: 0.83rem;
}
.footer-nav a,
.footer-contact a {
  transition: color 0.25s var(--ease), letter-spacing 0.35s var(--ease);
}
.footer-nav a:hover,
.footer-contact a:hover {
  letter-spacing: 0.015em;
}
.footer-bottom {
  padding-top: 2.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  opacity: 0.65;
}

/* ── SCROLL PROGRESS BAR — REFINADA ─────────────────────────── */
#scrollProgress {
  height: 1px !important;
  background: linear-gradient(90deg, var(--accent), rgba(196, 173, 140, 0.5)) !important;
  transition: width 0.08s linear !important;
  z-index: 99998 !important;
}

/* ── CURSOR — UPGRADE ────────────────────────────────────────── */
#cursorRing {
  width: 30px !important;
  height: 30px !important;
  border: 0.5px solid rgba(196, 173, 140, 0.38) !important;
  transition:
    opacity 0.3s ease,
    width 0.28s var(--ease),
    height 0.28s var(--ease),
    border-color 0.25s !important;
}

/* ── TICKER — VELOCIDAD + PAUSA/RESUME EN HOVER ──────────────── */
/* Ticker principal: más lento (40s → 58s) */
.ticker-track {
  animation-duration: 60s !important;
  animation-play-state: running !important;
}
.ticker-track-reverse {
  animation-duration: 120s !important;
  animation-play-state: running !important;
}
/* Ticker — sin pausa en hover */

/* ── TICKER INVERSO — BRAND MARK ─────────────────────────────── */
@keyframes tickerReverse {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.ticker-track-reverse {
  animation-name: tickerReverse !important;
}

.ticker-reverse {
  background: #0c0b0a !important;
  border-top: none !important;
  border-bottom: 1px solid rgba(196, 173, 140, 0.10) !important;
}

.ticker-reverse .tbrand {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(196, 173, 140, 0.55);
}

.ticker-reverse .tsep {
  color: rgba(196, 173, 140, 0.22);
}

/* ── SC-COL H2 — PESO CORRECTO (IGUAL QUE RESTO DE SECCIONES) ── */
.sc-col h2 {
  font-weight: 300;
}

/* ── WA FLOAT — REFINADO ─────────────────────────────────────── */
.wa-float {
  transition:
    transform 0.22s var(--ease),
    box-shadow 0.22s;
}
.wa-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.28);
}

/* ── MAGNETIC BUTTONS ────────────────────────────────────────── */
.btn-magnetic {
  will-change: transform;
}

/* ── PAGE TRANSITION OVERLAY ─────────────────────────────────── */
#page-transition {
  position: fixed;
  inset: 0;
  background: #080808;
  z-index: 999999;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.52s var(--ease);
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .ig-dm-float {
    bottom: 5.6rem;
    right: 1.2rem;
    width: 40px;
    height: 40px;
  }
  .scroll-top {
    bottom: 1.2rem;
    left: 1.2rem;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 600px) {
  .section,
  .problema,
  .quiz-section,
  .diff-section {
    padding: 5rem 1.25rem;
  }
  .srv-card {
    padding: 2.6rem 2rem;
  }
}

/* ── HERO BADGES — LUXURY MINIMAL ───────────────────────────── */
.hero-highlights {
  gap: 0.4rem 0.6rem;
  margin-top: 2.5rem;
}
.hero-hl {
  border-radius: 0;
  background: transparent;
  border: none;
  border-left: 1px solid rgba(196, 173, 140, 0.38);
  padding: 0.18rem 0.7rem;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: rgba(240, 236, 228, 0.55);
  gap: 0;
  transition: color 0.25s, border-color 0.25s;
}
.hero-hl:hover {
  color: var(--accent);
  border-left-color: var(--accent);
}
.hl-icon {
  display: none;
}

/* ── HERO BG GLOW — DRAMÁTICO ATMOSFÉRICO ────────────────────── */
.hero-bg {
  background:
    radial-gradient(
      ellipse 55% 45% at 15% 25%,
      rgba(196, 173, 140, 0.052) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 40% 50% at 85% 72%,
      rgba(196, 173, 140, 0.022) 0%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 100% 100% at 50% 50%,
      transparent 38%,
      rgba(5, 5, 5, 0.5) 100%
    ),
    var(--bg) !important;
}

/* ── HERO — MÁS ESCALA ───────────────────────────────────────── */
.hero {
  min-height: 100svh;
  gap: 4rem;
}
.hero-inner {
  padding-top: calc(var(--header-h) + 5rem);
  padding-bottom: 5rem;
}
.hero h1 {
  font-size: clamp(4.5rem, 10vw, 11rem);
  line-height: 0.92;
  letter-spacing: -0.042em;
  margin-bottom: 2.5rem;
}
/* Glow sutil en el texto rotativo cursiva */
.h1-rot {
  text-shadow: 0 0 60px rgba(196, 173, 140, 0.15);
}

.hero-sub {
  font-size: 1rem;
  max-width: 520px;
  line-height: 1.9;
  margin-bottom: 3rem;
  color: var(--text-muted);
}
.hero-micro {
  margin-top: 0.5rem;
  letter-spacing: 0.2em;
}
.hero-highlights {
  margin-top: 3rem;
}

/* ── TIPOGRAFÍA — ESCALA LUXURY ──────────────────────────────── */
body {
  line-height: 1.8;
  font-size: 1rem;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtítulos de sección — más aire */
.section-sub,
.hero-sub,
.problema-texto p,
.sc-col p {
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: 0.01em;
}

/* Labels / overlines — más tracking */
.section-label,
.srv-tier,
.footer-label {
  letter-spacing: 0.35em;
  font-size: 0.6rem;
}

/* Cormorant — optical sizing */
.hero h1,
.section-inner h2,
.section-header h2,
.problema-texto h2,
.sc-col h2 {
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  line-height: 1.0;
}

/* Nav links — más refinados */
.nav a {
  letter-spacing: 0.2em;
  font-size: 0.62rem;
}

/* Footer text */
.footer-brand p {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ── BUTTON FILL SLIDE — FIX VISIBLE ─────────────────────────── */
.btn {
  overflow: hidden !important;
  position: relative !important;
  z-index: 1 !important;
}
.btn::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  transform: translateX(-101%) !important;
  transition: transform 0.38s var(--ease) !important;
  z-index: -1 !important;
}
.btn:hover::after {
  transform: translateX(0) !important;
}
.btn-primary::after,
.btn-outline::after {
  background: var(--accent) !important;
}
.btn-primary:hover,
.btn-outline:hover {
  color: var(--bg) !important;
}
.btn-ghost-light::after {
  background: var(--accent) !important;
}
.btn-ghost-light:hover {
  color: var(--bg) !important;
  border-color: var(--accent) !important;
}
.btn-header::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: var(--accent) !important;
  transform: translateX(-101%) !important;
  transition: transform 0.38s var(--ease) !important;
  z-index: -1 !important;
}
.btn-header:hover::after {
  transform: translateX(0) !important;
}

/* ── MOBILE NAV — TRANSICIÓN PREMIUM ────────────────────────── */
.mobile-nav {
  transition: opacity 0.5s var(--ease);
}
.mobile-nav a {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease),
    color 0.25s;
}
.mobile-nav.open a {
  opacity: 1;
  transform: translateY(0);
}
.mobile-nav.open a:nth-child(1) { transition-delay: 0.06s; }
.mobile-nav.open a:nth-child(2) { transition-delay: 0.12s; }
.mobile-nav.open a:nth-child(3) { transition-delay: 0.18s; }
.mobile-nav.open a:nth-child(4) { transition-delay: 0.24s; }
.mobile-nav.open a:nth-child(5) { transition-delay: 0.30s; }
.mobile-nav.open a:nth-child(6) { transition-delay: 0.36s; }
.mobile-nav.open a:nth-child(7) { transition-delay: 0.40s; }

/* Cuando se cierra, reset inmediato */
.mobile-nav:not(.open) a {
  transition-delay: 0s !important;
}

/* ── PAGE TRANSITION — MÁS DRAMÁTICA ────────────────────────── */
#page-transition {
  transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

/* ── PREFERS REDUCED MOTION ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ig-dm-float {
    animation: none;
    box-shadow: 0 0 0 1px rgba(196, 173, 140, 0.22);
  }
  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── HERO LINES — REVEAL DRAMÁTICO CON BLUR ─────────────────── */
.hero .reveal-h2,
.hero .reveal-h3 {
  animation-name: heroLineReveal !important;
  animation-duration: 1.2s !important;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.hero .reveal-h2 { animation-delay: 0.18s !important; }
.hero .reveal-h3 { animation-delay: 0.44s !important; }
@keyframes heroLineReveal {
  from {
    opacity: 0;
    transform: translateY(72px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ── TEXT SPLIT — HERO H1 (solo desktop) ─────────────────────── */
/* Cuando el JS activa el split, el padre pasa a visible de golpe
   y cada .word-split entra individualmente con stagger */
.hero .reveal-h2.split-ready {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}
.word-split {
  display: inline-block;
  opacity: 0;
  transform: translateY(52px);
  filter: blur(5px);
  animation: wordReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(0.15s + var(--wi, 0) * 0.085s);
}
@keyframes wordReveal {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ── MAGNETIC BUTTONS — estado visual base ───────────────────── */
/* El efecto magnético lo gestiona JS, aquí solo transición suave */
[data-magnetic] {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .word-split {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* ── SECTION LABEL — COPPER ACCENT LINE ─────────────────────── */
.section-label {
  position: relative;
  padding-bottom: 0.65rem;
}
.section-label::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 2.5rem;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease) 0.12s;
}
.section-label.visible::after {
  transform: scaleX(1);
}
/* Labels sin .reveal → línea siempre visible */
.section-label:not(.reveal)::after {
  transform: scaleX(1);
}

/* ── PRICING CARDS — TIPOGRAFÍA LUXURY ──────────────────────── */
.srv-price {
  font-family: var(--font-display) !important;
  font-size: clamp(3.8rem, 5.5vw, 5rem) !important;
  font-weight: 300 !important;
  line-height: 1 !important;
  letter-spacing: -0.025em !important;
  margin: 1.5rem 0 0.5rem !important;
  color: var(--text) !important;
}
.srv-price span {
  font-family: var(--font-body) !important;
  font-size: 1.05rem !important;
  font-weight: 300 !important;
  color: var(--accent) !important;
  vertical-align: 0.5em !important;
  letter-spacing: 0 !important;
  margin-left: 0.1em !important;
}
.srv-tier {
  font-size: 0.52rem !important;
  letter-spacing: 0.34em !important;
  color: var(--accent) !important;
  border-bottom: 1px solid rgba(196, 173, 140, 0.15) !important;
  padding-bottom: 1.2rem !important;
  margin-bottom: 0.25rem !important;
}

/* ── CURSOR LUXURY — punto + anillo inercial ─────────────────── */
@media (pointer: fine) {
  body { cursor: none !important; }
  a, button, [role="button"], .port-item, .extras-card, .srv-card, label { cursor: none !important; }
}

#cursor {
  position: fixed;
  width: 6px !important;
  height: 6px !important;
  background: var(--accent) !important;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition:
    opacity 0.3s ease,
    width 0.25s var(--ease),
    height 0.25s var(--ease),
    background 0.25s var(--ease);
  mix-blend-mode: normal !important;
}

#cursor.cursor-hover {
  width: 10px !important;
  height: 10px !important;
  background: var(--accent-light) !important;
}

#cursor.cursor-click {
  width: 14px !important;
  height: 14px !important;
  opacity: 0.6 !important;
}

#cursorRing {
  position: fixed;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50%;
  border: 1px solid rgba(196, 173, 140, 0.45) !important;
  pointer-events: none;
  z-index: 999998;
  opacity: 0;
  transform: translate(-50%, -50%);
  background: transparent !important;
  transition:
    opacity 0.3s ease,
    width 0.4s var(--ease-soft),
    height 0.4s var(--ease-soft),
    border-color 0.3s ease,
    background 0.3s ease !important;
}

#cursorRing.cursor-hover {
  width: 48px !important;
  height: 48px !important;
  border-color: rgba(196, 173, 140, 0.7) !important;
  background: rgba(196, 173, 140, 0.04) !important;
}

#cursorRing.cursor-view {
  width: 76px !important;
  height: 76px !important;
  background: rgba(196, 173, 140, 0.06) !important;
  border-color: rgba(196, 173, 140, 0.65) !important;
  opacity: 0.95 !important;
}

#cursorLabel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}

/* ── PORTFOLIO — WIDE CARDS: ASPECT-RATIO RESET EN MOBILE ────── */
@media (max-width: 860px) {
  .port-item--wide .port-img {
    aspect-ratio: unset !important;
    height: 200px !important;
  }
  .section {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
}

/* ── PORTFOLIO — HOVER ORGÁNICO MEJORADO ────────────────────── */
@media (hover: hover) and (pointer: fine) {
  .port-item:hover .port-img {
    transform: scale(1.055) !important;
    transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  .port-item:hover .port-img::after {
    background: rgba(8, 8, 8, 0.42) !important;
    transition: background 0.6s var(--ease) !important;
  }
  .port-item:hover .port-cta {
    transform: translateX(-50%) translateY(-5px) !important;
    transition: opacity 0.35s var(--ease), transform 0.5s var(--ease) !important;
  }
  .port-item:hover {
    transition: transform 0.45s var(--ease) !important;
  }
  .port-item:hover .port-meta h3 {
    letter-spacing: 0.015em;
    transition: letter-spacing 0.4s var(--ease);
  }
}

/* ── WA FLOAT — PULSE PREMIUM ───────────────────────────────── */
@keyframes waPremium {
  0%   { box-shadow: 0 4px 20px rgba(37,211,102,.2),  0 0 0 0   rgba(37,211,102,0);   }
  35%  { box-shadow: 0 4px 20px rgba(37,211,102,.2),  0 0 0 10px rgba(37,211,102,.16); }
  70%  { box-shadow: 0 4px 20px rgba(37,211,102,.2),  0 0 0 22px rgba(37,211,102,.05); }
  100% { box-shadow: 0 4px 20px rgba(37,211,102,.2),  0 0 0 28px rgba(37,211,102,0);  }
}
.wa-float {
  animation: waPremium 3.5s cubic-bezier(0.23, 1, 0.32, 1) infinite !important;
}
.wa-float:hover {
  animation-play-state: paused !important;
  transform: scale(1.1) translateY(-3px) !important;
}

/* ── SC-COL H3 WORDPRESS — PULL QUOTE CORMORANT ─────────────── */
[data-i18n="sc.wph3"] {
  font-family: var(--font-display) !important;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem) !important;
  font-weight: 300 !important;
  font-style: italic !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em !important;
  color: var(--text) !important;
  border-left: 1px solid var(--accent) !important;
  padding-left: 1.4rem !important;
  margin: 2rem 0 1.8rem !important;
  opacity: 0.92 !important;
}

/* ── COUNTERS — STAT NUMBERS ─────────────────────────────────── */
.hstat-n {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  transition: none;
  /* Número en blanco puro — el acento va al símbolo */
  color: var(--text);
}
.hstat-suffix {
  color: var(--accent);
}

/* ── MARQUEE — FADE EDGES ────────────────────────────────────── */
.marquee-wrap {
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    black 7%,
    black 93%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    black 7%,
    black 93%,
    transparent 100%
  );
}

/* ╔════════════════════════════════════════════════════════════╗
   ║  v6 — Satoshi · Scroll Indicator · Cursor Ver →            ║
   ║  Mobile H1 · Quiz · Calc · Contact Form                     ║
   ╚════════════════════════════════════════════════════════════╝ */

/* ── SATOSHI — DISPLAY FONT OVERRIDE ────────────────────────── */
:root {
  --font-display: 'Satoshi', 'Inter', -apple-system, sans-serif;
}

/* ── HERO SCROLL INDICATOR ───────────────────────────────────── */
.hero {
  position: relative;
}
.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  opacity: 0;
  animation: scrollIndFade 0.8s var(--ease-soft) 2s forwards;
  pointer-events: none;
  z-index: 2;
}
.hero-scroll-indicator span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  animation: scrollIndPulse 2.4s ease-in-out 2s infinite;
}
@keyframes scrollIndFade {
  to { opacity: 0.5; }
}
@keyframes scrollIndPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50%       { transform: scaleY(0.55); opacity: 0.2; }
}
@media (max-width: 860px) {
  .hero-scroll-indicator { display: none; }
}

/* ── CURSOR — VER → ──────────────────────────────────────────── */
#cursorRing {
  transition: width 0.4s var(--ease-soft), height 0.4s var(--ease-soft),
              background 0.3s, border-color 0.3s !important;
}
#cursorRing.cursor-view {
  width: 76px !important;
  height: 76px !important;
  background: rgba(196, 173, 140, 0.06) !important;
  border-color: rgba(196, 173, 140, 0.65) !important;
  opacity: 0.95 !important;
}
#cursorLabel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}

/* ── MOBILE H1 ENTRANCE ANIMATION ───────────────────────────── */
@media (max-width: 859px) {
  .hero h1 {
    font-size: clamp(2.4rem, 9vw, 3.4rem) !important;
  }
  .hero h1 .h1-line {
    opacity: 0;
    transform: translateY(22px);
    animation: heroMobLine 0.8s var(--ease-soft) forwards;
  }
  .hero h1 .h1-line:nth-child(2) {
    animation-delay: 0.16s;
  }
  @keyframes heroMobLine {
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (max-width: 859px) and (prefers-reduced-motion: reduce) {
  .hero h1 .h1-line {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── QUIZ — LUXURY VISUAL ────────────────────────────────────── */
.quiz-section {
  background: var(--bg-2);
}
.quiz-inner {
  max-width: 600px;
  margin: 0 auto;
}
.quiz-box {
  background: rgba(255, 255, 255, 0.015) !important;
  border: 0.5px solid var(--border) !important;
  padding: clamp(2rem, 4vw, 3rem) !important;
  margin-top: 2.5rem;
  margin-bottom: 0 !important;
  min-height: unset !important;
}
.quiz-q {
  font-size: clamp(1.05rem, 2vw, 1.3rem) !important;
  font-weight: 400 !important;
  letter-spacing: -0.01em;
  text-align: left !important;
  line-height: 1.45;
}
.quiz-btn {
  background: transparent !important;
  border: 0.5px solid rgba(237, 235, 230, 0.07) !important;
  color: var(--text-dim) !important;
  padding: 0.9rem 1.2rem 0.9rem 1.4rem !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}
.quiz-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease);
}
.quiz-btn:hover {
  border-color: rgba(196, 173, 140, 0.2) !important;
  color: var(--text) !important;
  background: rgba(196, 173, 140, 0.03) !important;
  transform: translateX(3px);
  transition: border-color 0.3s, color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.quiz-btn:hover::before {
  transform: scaleY(1);
}
/* Progress dots → lines */
.quiz-progress {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.6rem;
}
.qp-dot {
  width: 24px;
  height: 1px;
  background: rgba(237, 235, 230, 0.12);
  border-radius: 0;
  transition: background 0.4s, width 0.4s;
}
.qp-dot.active {
  background: var(--accent);
  width: 40px;
}
/* Quiz result refinement */
.quiz-result-plan {
  font-size: clamp(2.4rem, 5vw, 3.4rem) !important;
  font-weight: 500 !important;
  letter-spacing: -0.03em;
}
.quiz-result-price {
  font-size: 1.25rem !important;
  font-weight: 300 !important;
  opacity: 0.85;
}
.quiz-reset {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.3s;
  margin-top: 0.5rem;
  padding: 0;
}
.quiz-reset:hover { opacity: 0.75; }

/* ── CALCULATOR — LUXURY VISUAL ──────────────────────────────── */
.calc-inputs {
  border: 0.5px solid var(--border);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  background: rgba(255, 255, 255, 0.015);
}
.calc-results {
  border: 0.5px solid var(--border-accent) !important;
  padding: clamp(1.8rem, 3vw, 2.6rem) !important;
  background: rgba(196, 173, 140, 0.025) !important;
  gap: 0 !important;
}
.calc-field-header label {
  font-size: 0.62rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0.6;
}
.calc-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.calc-slider::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(196, 173, 140, 0.18) !important;
  width: 14px !important;
  height: 14px !important;
}
.calc-result-item {
  flex-direction: row !important;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem !important;
  padding: 1rem 0 !important;
  border-bottom: 0.5px solid var(--border) !important;
}
.calc-result-item:last-of-type { border-bottom: none !important; }
.calc-result-label {
  font-size: 0.62rem !important;
  letter-spacing: 0.1em !important;
  opacity: 0.65;
  line-height: 1.5;
  max-width: 160px;
}
.calc-result-num {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem) !important;
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.calc-result-highlight .calc-result-num {
  font-size: clamp(1.8rem, 3vw, 2.6rem) !important;
  color: var(--accent) !important;
}
.calc-result-highlight .calc-result-label {
  color: var(--text) !important;
  opacity: 0.85 !important;
  font-size: 0.68rem !important;
}
.calc-cta {
  width: 100%;
  text-align: center;
  margin-top: 1.6rem !important;
  display: block;
  align-self: unset !important;
}
@media (max-width: 860px) {
  .calc-result-item {
    flex-direction: column !important;
    gap: 0.3rem !important;
  }
}

/* ── EXTRAS CARDS — LUXURY UPGRADE ──────────────────────────── */
.extras-grid {
  gap: clamp(1rem, 2vw, 1.8rem) !important;
  margin-top: clamp(3rem, 6vw, 5rem) !important;
}
.extras-card {
  background: rgba(255, 255, 255, 0.012) !important;
  border-radius: 0 !important;
  border: 0.5px solid var(--border) !important;
  padding: 2.4rem 2rem !important;
  gap: 0.55rem !important;
  transition: border-color 0.4s var(--ease), transform 0.45s var(--ease-soft) !important;
}
/* Reemplazar bottom bar por top accent line */
.extras-card::after {
  height: 1px !important;
  top: 0 !important;
  bottom: unset !important;
  background: linear-gradient(90deg, var(--accent), transparent) !important;
  transform-origin: left !important;
}
.extras-card:hover {
  border-color: var(--border-accent) !important;
}
.extras-icon {
  opacity: 0.45 !important;
  margin-bottom: 0 !important;
}
.extras-card h3 {
  font-family: var(--font-display) !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  letter-spacing: -0.01em;
  color: var(--text) !important;
}
.extras-card p {
  font-size: 0.78rem !important;
  line-height: 1.8 !important;
  color: var(--text-dim) !important;
  opacity: 0.75;
}
.extras-price {
  font-family: var(--font-body) !important;
  font-size: 0.58rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
  color: var(--accent) !important;
  opacity: 0.6;
  margin-top: 0.5rem !important;
}

/* ── CONTACT FORM — LUXURY UNDERLINE ─────────────────────────── */
.contacto-form .form-group label {
  font-size: 0.6rem !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0.55;
  transition: opacity 0.3s, color 0.3s;
}
.contacto-form .form-group:focus-within label {
  opacity: 1;
  color: var(--accent);
}
.contacto-form .form-group input,
.contacto-form .form-row .form-group input,
.contacto-form .form-group select,
.contacto-form .form-row .form-group select {
  background: transparent !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: 0.5px solid rgba(237, 235, 230, 0.15) !important;
  padding: 0.6rem 0 !important;
  font-size: 0.88rem !important;
  color: var(--text) !important;
  transition: border-bottom-color 0.4s var(--ease);
  border-radius: 0;
}
.contacto-form .form-group input:focus,
.contacto-form .form-row .form-group input:focus,
.contacto-form .form-group select:focus,
.contacto-form .form-row .form-group select:focus {
  border-bottom-color: var(--accent) !important;
  outline: none;
}
.contacto-form .form-group textarea {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 0.5px solid rgba(237, 235, 230, 0.08) !important;
  padding: 0.9rem 1rem !important;
  font-size: 0.88rem !important;
  color: var(--text) !important;
  resize: none !important;
  transition: border-color 0.4s var(--ease), background 0.3s;
}
.contacto-form .form-group textarea:focus {
  border-color: rgba(196, 173, 140, 0.35) !important;
  background: rgba(196, 173, 140, 0.02) !important;
}

/* ── SOBRE-CONDENSED — 3 cols tras eliminar col WordPress ────── */
.sobre-condensed {
  grid-template-columns: repeat(3, 1fr) !important;
}
@media (max-width: 900px) {
  .sobre-condensed {
    grid-template-columns: 1fr !important;
  }
}

/* ── MOBILE REPASO ────────────────────────────────────────────── */
@media (max-width: 860px) {
  /* Extras: padding más ajustado */
  .extras-card {
    padding: 1.8rem 1.5rem !important;
  }
  /* Quiz: box sin padding excesivo */
  .quiz-box {
    padding: 1.5rem !important;
  }
  .quiz-q {
    font-size: 1rem !important;
  }
  /* Calc: campos apilados con más espacio */
  .calc-inputs,
  .calc-results {
    padding: 1.5rem !important;
  }
  /* Contact: form-row en columna */
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  /* Section-header menos margen */
  .section-header {
    margin-bottom: clamp(3rem, 8vw, 5rem) !important;
  }
  /* Servicios: cards sin padding excesivo */
  .srv-card {
    padding: 2.2rem 1.8rem !important;
  }
  /* Hero stats en mobile: texto un poco más pequeño */
  .hstat-l {
    font-size: 0.65rem !important;
  }
  /* Port-meta h3 más compacto */
  .port-meta h3 {
    font-size: 0.95rem !important;
  }
  /* Test cards en mobile: ancho automático */
  .test-card {
    width: 85vw !important;
    padding: 2rem 1.6rem !important;
  }
}

/* ── TESTIMONIOS — QUOTE MARK TIPOGRÁFICO ────────────────────── */
.test-quote::before {
  content: '\201C';
  display: block;
  font-family: var(--font-display);
  font-size: 3.8rem;
  font-weight: 300;
  line-height: 0.75;
  color: var(--accent);
  opacity: 0.30;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

/* Test card — más aire y presencia */
.test-card {
  width: 420px !important;
  padding: 2.8rem 2.4rem !important;
}

/* ── PORTFOLIO — HOVER OVERLAY CINEMATOGRÁFICO ───────────────── */
@media (hover: hover) and (pointer: fine) {
  .port-item:hover .port-img::after {
    background: linear-gradient(
      135deg,
      rgba(5, 5, 5, 0.28) 0%,
      rgba(5, 5, 5, 0.72) 100%
    ) !important;
    transition: background 0.65s var(--ease) !important;
  }
}

/* ── PORTFOLIO — CLIP-PATH REVEAL ────────────────────────────── */
/* Solo aplica cuando port-item tiene .reveal (página principal) */
@media (hover: hover) and (pointer: fine) {
  .port-item.reveal .port-img {
    clip-path: inset(0 0 100% 0);
    transition:
      clip-path 1.1s var(--ease-soft) var(--d, 0s),
      transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .port-item.reveal.visible .port-img {
    clip-path: inset(0 0 0% 0);
  }

  /* Meta aparece después de que la imagen se revela */
  .port-item.reveal .port-meta {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 0.7s var(--ease) calc(0.55s + var(--d, 0s)),
      transform 0.7s var(--ease) calc(0.55s + var(--d, 0s));
  }
  .port-item.reveal.visible .port-meta {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── SERVICIOS — BADGE LUXURY ────────────────────────────────── */
.srv-badge {
  background: rgba(196, 173, 140, 0.06) !important;
  color: var(--accent) !important;
  border: 0.5px solid var(--border-accent) !important;
  font-size: 0.52rem !important;
  letter-spacing: 0.24em !important;
  padding: 5px 20px !important;
}

/* Top bar más fino — menos is more */
.srv-card::before,
.mant-card::before {
  height: 1px !important;
}

/* Featured card — glow atmosférico */
.srv-featured {
  background:
    radial-gradient(
      ellipse 80% 50% at 50% 0%,
      rgba(196, 173, 140, 0.04) 0%,
      var(--bg-surface) 60%
    ) !important;
}

/* ── HEADER — BORDER GRADIENT EN SCROLLED ────────────────────── */
.header {
  position: relative;
}
.header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(196, 173, 140, 0.00) 10%,
    rgba(196, 173, 140, 0.18) 30%,
    rgba(196, 173, 140, 0.28) 50%,
    rgba(196, 173, 140, 0.18) 70%,
    rgba(196, 173, 140, 0.00) 90%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.header.scrolled::after {
  opacity: 1;
}
/* Quitar el border-bottom inline cuando scrolled */
.header.scrolled {
  border-bottom-color: transparent !important;
}

/* ── FOOTER — SEPARADOR DECORATIVO ───────────────────────────── */
.footer {
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2.5rem;
  right: 2.5rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(196, 173, 140, 0.15) 20%,
    rgba(196, 173, 140, 0.30) 50%,
    rgba(196, 173, 140, 0.15) 80%,
    transparent 100%
  );
}

/* ── BOTONES — HALO ACCENT EN HOVER ──────────────────────────── */
.btn-primary:hover,
.btn-outline:hover {
  box-shadow: 0 8px 28px rgba(196, 173, 140, 0.10);
}
.btn:active {
  transform: translateY(1px) scale(0.99) !important;
  transition-duration: 0.08s !important;
}

/* ── H1 ACCENT WORD — champagne highlight ───────────────────── */
.h1-accent {
  color: var(--accent);
  font-style: inherit;
}

/* ── HERO GRAIN — ANIMATED FILM TEXTURE ─────────────────────── */
.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.hero-grain::before {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  opacity: 0.055;
  mix-blend-mode: overlay;
  animation: heroGrain 0.72s steps(1) infinite;
  will-change: transform;
}
@keyframes heroGrain {
  0%   { transform: translate(0,    0); }
  14%  { transform: translate(-6%,  -11%); }
  28%  { transform: translate(-14%,  5%); }
  42%  { transform: translate(9%,  -16%); }
  57%  { transform: translate(-4%,  12%); }
  71%  { transform: translate(13%,  -5%); }
  85%  { transform: translate(-8%,   7%); }
  100% { transform: translate(4%,   -9%); }
}
.hero-inner,
.hero-stats {
  position: relative;
  z-index: 2;
}
@media (prefers-reduced-motion: reduce) {
  .hero-grain::before { animation: none; }
}

/* ── DIFF-COL — NÚMEROS ORDINALES EDITORIALES ────────────────── */
.diff-grid {
  counter-reset: diff-counter;
}
.diff-col {
  position: relative;
  counter-increment: diff-counter;
}
.diff-col::after {
  content: "0" counter(diff-counter);
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--text);
  opacity: 0.05;
  line-height: 1;
  pointer-events: none;
}

/* ============================================================
   LUXURY TOTAL PATCH
   1. Grain animado (vive, respira)
   2. Vignette perimetral premium
   3. Nav underline desde el centro
   4. Tilt 3D — will-change y transform-style
   5. CTA borde animado SVG
   6. Stagger visual en grids
   ============================================================ */

/* ── 1. GRAIN ANIMADO — solo desktop ────────────────────────── */
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-2px, 1px); }
  40%  { transform: translate(1px, -2px); }
  60%  { transform: translate(-1px, 2px); }
  80%  { transform: translate(2px, -1px); }
  100% { transform: translate(0, 0); }
}

@media (min-width: 861px) {
  body::before {
    animation: grainShift 7s steps(2) infinite;
    will-change: transform;
  }

  /* Fallback si no existe el div — radial en body::after */
  body::after {
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='l'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.04 0.28' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23l)' opacity='1'/%3E%3C/svg%3E"),
      radial-gradient(ellipse 140% 100% at 50% 50%,
        transparent 38%,
        rgba(0, 0, 0, 0.28) 65%,
        rgba(0, 0, 0, 0.58) 100%),
      radial-gradient(ellipse 100% 55% at 50% 100%, rgba(196,173,140,0.04) 0%, transparent 70%),
      radial-gradient(ellipse 60% 30% at 50% 0%, rgba(0,0,0,0.3) 0%, transparent 60%);
    background-repeat: repeat, no-repeat, no-repeat, no-repeat;
    background-size: 320px 320px, 100% 100%, 100% 100%, 100% 100%;
  }
}

/* ── 2. VIGNETTE PERIMETRAL ──────────────────────────────────── */
.vignette-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99988;
  box-shadow: inset 0 0 180px 60px rgba(0, 0, 0, 0.55);
}
@media (max-width: 860px) {
  .vignette-overlay {
    display: none;
  }
}

/* ── 3. NAV — underline desde el centro ─────────────────────── */
.nav a {
  position: relative;
  padding-bottom: 3px;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

/* ── 4. TILT 3D — preparar cards ────────────────────────────── */
.srv-card,
.extras-card,
.diff-item {
  will-change: transform;
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(0deg) rotateY(0deg);
  transition: transform 0.65s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Evitar que el tilt rompa el overflow del shimmer */
.srv-card {
  isolation: isolate;
}

/* ── 5. CTA — borde que se dibuja en hover ───────────────────── */
.btn-primary,
.btn-outline {
  position: relative;
}
/* SVG border animado via outline clip-path */
.btn-primary::after,
.btn-outline::after {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid var(--accent);
  opacity: 0;
  transform: scale(0.92);
  transition:
    opacity 0.45s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
  z-index: 5;
}
.btn-primary:hover::after,
.btn-outline:hover::after {
  opacity: 0.5;
  transform: scale(1.04);
}

/* ── 6. STAGGER VISUAL — nth-child delays en grids ──────────── */
/* CSS puro como respaldo al JS stagger */
.srv-grid .srv-card.reveal:nth-child(1) { transition-delay: 0s; }
.srv-grid .srv-card.reveal:nth-child(2) { transition-delay: 0.09s; }
.srv-grid .srv-card.reveal:nth-child(3) { transition-delay: 0.18s; }
.srv-grid .srv-card.reveal:nth-child(4) { transition-delay: 0.27s; }
.srv-grid .srv-card.reveal:nth-child(5) { transition-delay: 0.36s; }

.extras-grid .extras-card.reveal:nth-child(1) { transition-delay: 0s; }
.extras-grid .extras-card.reveal:nth-child(2) { transition-delay: 0.09s; }
.extras-grid .extras-card.reveal:nth-child(3) { transition-delay: 0.18s; }
.extras-grid .extras-card.reveal:nth-child(4) { transition-delay: 0.27s; }
.extras-grid .extras-card.reveal:nth-child(5) { transition-delay: 0.36s; }
.extras-grid .extras-card.reveal:nth-child(6) { transition-delay: 0.45s; }
.extras-grid .extras-card.reveal:nth-child(7) { transition-delay: 0.54s; }
.extras-grid .extras-card.reveal:nth-child(8) { transition-delay: 0.63s; }
.extras-grid .extras-card.reveal:nth-child(9) { transition-delay: 0.72s; }

.port-grid .port-item.reveal:nth-child(1) { transition-delay: 0s; }
.port-grid .port-item.reveal:nth-child(2) { transition-delay: 0.09s; }
.port-grid .port-item.reveal:nth-child(3) { transition-delay: 0.18s; }
.port-grid .port-item.reveal:nth-child(4) { transition-delay: 0.27s; }
.port-grid .port-item.reveal:nth-child(5) { transition-delay: 0.36s; }
.port-grid .port-item.reveal:nth-child(6) { transition-delay: 0.45s; }
.port-grid .port-item.reveal:nth-child(7) { transition-delay: 0.54s; }
.port-grid .port-item.reveal:nth-child(8) { transition-delay: 0.63s; }

/* ── MOBILE — desactivar grain en pantallas pequeñas ──────── */
@media (max-width: 860px) {
  body::before,
  body::after {
    content: none !important;
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
  .hero-grain,
  .hero-grain::before {
    content: none !important;
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
  .srv-card,
  .extras-card,
  .diff-item {
    will-change: auto;
    transform-style: flat;
  }
}

/* ── HERO MOBILE — una columna, stats en fila horizontal ──────── */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-stats {
    flex-direction: row;
    justify-content: flex-start;
    gap: 2rem;
    border-left: none;
    border-top: 0.5px solid var(--border);
    padding-left: 0;
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-right: 0;
  }
  .hstat {
    border-left: 2px solid var(--border-accent);
    padding-left: 1rem;
  }
  .hstat-n {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }
  .hstat-suffix {
    font-size: clamp(0.9rem, 3vw, 1.2rem);
  }
  .hstat-l {
    font-size: 0.65rem;
  }
}

/* ── MOBILE PREMIUM — animaciones, tap UX, GPU ───────────────
   Todo lo que hace que el desktop se sienta raro en touch
   ============================================================ */
@media (max-width: 860px) {

  /* 1. Hero reveal — sin blur (blur animado es muy costoso en GPU mobile) */
  .hero .reveal-h2,
  .hero .reveal-h3 {
    animation-name: heroLineRevealMob !important;
    animation-duration: 0.75s !important;
  }
  @keyframes heroLineRevealMob {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* 2. Word-split — desactivado en mobile, entra con el padre */
  .word-split {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .hero .reveal-h2.split-ready {
    animation: heroLineRevealMob 0.75s cubic-bezier(0.16, 1, 0.3, 1) both !important;
    opacity: 0;
  }

  /* 3. Scroll reveals — más rápidos y menor desplazamiento */
  .reveal {
    transform: translateY(16px);
    transition:
      opacity 0.55s var(--ease),
      transform 0.55s var(--ease);
  }
  .reveal-left  { transform: translateX(-16px); }
  .reveal-right { transform: translateX(16px); }

  /* 4. will-change — reset global en mobile para ahorrar GPU */
  *,
  *::before,
  *::after {
    will-change: auto !important;
  }
  /* Excepciones: solo lo que realmente anima en mobile */
  .ticker-track,
  .ticker-track-reverse {
    will-change: transform !important;
  }

  /* 5. Imágenes y divs — sin menú largo-presión */
  img,
  .port-img,
  .sobre-foto,
  .hero-portrait {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
  }
}

/* ── TOUCH DEVICES — desactivar efectos hover costosos ────────── */
@media (hover: none) {
  /* Sin tilt 3D en touch */
  .srv-card,
  .extras-card,
  .port-item {
    transform: none !important;
    transition: none !important;
  }
  /* Sin shimmer top-bar en touch (no hay hover) */
  .srv-card::before,
  .mant-card::before,
  .extras-card::after {
    transform: scaleX(0) !important;
  }
  /* Sin lift de botones en touch */
  .btn:hover,
  .btn-header:hover {
    transform: none !important;
  }
  /* Port-cta siempre visible en touch (no hay hover para revelarlo) */
  .port-cta {
    opacity: 1 !important;
    transform: translate(-50%, 0) !important;
  }
}

/* ── REDUCED MOTION — todo estático ────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none !important; }
  .srv-card,
  .extras-card { transform: none !important; }
}

/* ============================================================
   SECTION DIVIDERS — línea SVG que se dibuja al entrar
   ============================================================ */

.section-divider {
  display: block;
  width: 100%;
  overflow: visible;
  margin: 0;
  padding: 0;
  line-height: 0;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.section-divider.visible {
  opacity: 1;
}

/* La línea SVG en sí */
.section-divider line,
.section-divider path {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.23, 1, 0.32, 1) 0.1s;
}

.section-divider.visible line,
.section-divider.visible path {
  stroke-dashoffset: 0;
}

/* Variante centrada con puntos decorativos */
.section-divider--ornate line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
}

/* Reemplazar border-top en secciones que tienen divider */
.has-divider {
  border-top: none !important;
}

/* Mobile — línea más corta */
@media (max-width: 768px) {
  .section-divider line,
  .section-divider path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-divider line,
  .section-divider path {
    stroke-dashoffset: 0;
    transition: none;
  }
  .section-divider {
    opacity: 1;
  }
}

/* ============================================================
   FIX PATCH — cards, port-img, diff-col, footer svg
   ============================================================ */

/* ── PORT-IMG — animar background-size en vez de transform ──── */
/* El transform en port-img escala el contenedor pero no el bg-image.
   La solución: animar background-size directamente */
.port-img {
  background-size: 100% !important;
  transition: background-size 0.85s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
@media (hover: hover) and (pointer: fine) {
  .port-item:hover .port-img {
    background-size: 108% !important;
    transform: none !important;
  }
}

/* ── DIFF-COL — luxury hover (wash + corner) ─────────────────── */
.diff-col {
  transition:
    transform 0.55s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.55s cubic-bezier(0.23, 1, 0.32, 1),
    border-color 0.45s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
}

/* wash desde abajo */
.diff-col::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(196, 173, 140, 0.05);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.55s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
  z-index: 0;
}
.diff-col:hover::before {
  transform: scaleY(1);
}
.diff-col > * {
  position: relative;
  z-index: 1;
}

/* corner accent top-right */
.diff-col::after {
  /* Sobreescribir el counter pseudo-element — moverlo a otro método */
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  width: 0 !important;
  height: 0 !important;
  border-top: 1px solid var(--accent) !important;
  border-right: 1px solid var(--accent) !important;
  opacity: 0 !important;
  font-size: 0 !important;
  background: none !important;
  transition:
    width  0.45s cubic-bezier(0.23, 1, 0.32, 1),
    height 0.45s cubic-bezier(0.23, 1, 0.32, 1),
    opacity 0.35s ease !important;
  z-index: 4 !important;
}
.diff-col:hover::after {
  width: 36px !important;
  height: 36px !important;
  opacity: 1 !important;
}
@media (hover: hover) and (pointer: fine) {
  .diff-col:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.35);
    border-color: rgba(196, 173, 140, 0.2);
  }
  .diff-col:hover h3 {
    color: var(--accent);
    transition: color 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  }
}

/* ── FOOTER SVG — menos visible ─────────────────────────────── */
.footer-deco-svg {
  opacity: 0.38 !important;
}

/* ── MOBILE ──────────────────────────────────────────────────── */
@media (hover: none) {
  .diff-col:hover { transform: none; box-shadow: none; }
  .diff-col::before { display: none; }
}

/* ── CARD TILT FIX — CSS no sobreescribe el transform del JS ─── */
/* El JS maneja transform completo en desktop.
   CSS solo pone la transición base y el box-shadow */
@media (hover: hover) and (pointer: fine) and (min-width: 860px) {
  .srv-card,
  .extras-card,
  .diff-col {
    will-change: transform;
  }
  /* box-shadow en hover — el JS no lo maneja */
  .srv-card:hover {
    box-shadow:
      0 28px 70px rgba(0,0,0,0.48),
      0 0 0 1px rgba(196,173,140,0.12),
      inset 0 1px 0 rgba(196,173,140,0.04);
  }
  .extras-card:hover {
    box-shadow: 0 20px 48px rgba(0,0,0,0.42);
  }
  .diff-col:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,0.38);
  }
}

/* ── PORT-IMG HOVER EXPAND — contenedor crece con la imagen ──── */
/* aspect-ratio no es animable — usamos max-height con transición */
@media (hover: hover) and (pointer: fine) {

  /* Base — port-img con altura calculada desde aspect-ratio */
  .port-img {
    aspect-ratio: unset !important;
    height: 240px;
    transition:
      height 0.65s cubic-bezier(0.23, 1, 0.32, 1),
      background-size 0.85s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  /* En hover — crece el contenedor Y hace zoom el fondo */
  .port-item:hover .port-img {
    height: 272px !important;
    background-size: 106% !important;
    transform: none !important;
  }

  /* Wide cards — más altas de base */
  .port-item--wide .port-img {
    height: 320px;
  }
  .port-item--wide:hover .port-img {
    height: 356px !important;
  }

  /* Mobile — desactivar */
  @media (max-width: 860px) {
    .port-img {
      height: 200px !important;
    }
    .port-item:hover .port-img {
      height: 200px !important;
    }
  }
}

/* ── OCULTAR IDIOMA ALEMÁN ───────────────────────────────────── */
.lang-opt[data-lang="de"] {
  display: none !important;
}

/* ── FOOTER SVG — menos visible ─────────────────────────────── */
.footer-deco-svg {
  opacity: 0.25 !important;
}

/* ============================================================
   FIX PATCH 2 — quiz-btn, port-item frame, cards uniform
   ============================================================ */

/* ── PORT-ITEM — quitar marco visible en hover ───────────────── */
/* El ::after con border se ve como recuadro feo.
   Lo reemplazamos por un box-shadow inset que no sobresale */
.port-item {
  position: relative;
  overflow: hidden;
}
.port-item::after {
  border: none !important;
  box-shadow: inset 0 0 0 0 rgba(196, 173, 140, 0) !important;
  transition: box-shadow 0.45s cubic-bezier(0.23, 1, 0.32, 1) !important;
}
.port-item:hover::after {
  box-shadow: inset 0 0 0 1px rgba(196, 173, 140, 0.18) !important;
}

/* ── QUIZ-BTN — lift + shimmer luxury ───────────────────────── */
.quiz-btn {
  transition:
    border-color 0.35s cubic-bezier(0.23, 1, 0.32, 1),
    color 0.35s cubic-bezier(0.23, 1, 0.32, 1),
    background 0.35s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.45s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.45s cubic-bezier(0.23, 1, 0.32, 1) !important;
  will-change: transform;
}
.quiz-btn:hover {
  transform: translateX(6px) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3) !important;
}

/* Shimmer sweep en quiz-btn */
.quiz-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.06) 50%,
    transparent 100%
  );
  transform: skewX(-15deg);
  pointer-events: none;
  z-index: 2;
  transition: left 0s;
}
.quiz-btn:hover::after {
  left: 140%;
  transition: left 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ── TODAS LAS CARDS — comportamiento uniforme tipo extras-card ─ */
/* srv-card, diff-col, test-card, sobre-card, mant-card */
.srv-card,
.diff-col,
.mant-card {
  transition:
    transform 0.55s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.55s cubic-bezier(0.23, 1, 0.32, 1),
    border-color 0.45s cubic-bezier(0.23, 1, 0.32, 1) !important;
  will-change: transform;
}

/* El JS tilt sobreescribe el transform en desktop —
   estas reglas actúan como fallback en mobile/touch */
@media (hover: none) {
  .srv-card:active,
  .extras-card:active,
  .diff-col:active {
    transform: scale(0.98);
    transition: transform 0.15s ease;
  }
}

/* ============================================================
   LUXURY REFINEMENT v7 — De 8.5 a 9.3
   Selection · Focus · Logo · Port micro · Hero fade
   Footer links · Scrollbar · Hero rot mobile
   ============================================================ */

/* ── VARIABLES nuevas ────────────────────────────────────────── */
:root {
  --shadow-card:        0 4px 24px rgba(0,0,0,0.28), 0 1px 4px rgba(0,0,0,0.18);
  --shadow-card-hover:  0 24px 64px rgba(0,0,0,0.52), 0 2px 8px rgba(0,0,0,0.22);
  --shadow-glow:        0 0 48px rgba(196,173,140,0.055);
  --transition-fast:    0.18s var(--ease);
  --transition-med:     0.38s var(--ease);
  --transition-slow:    0.65s var(--ease);
}

/* ── SELECTION — champagne sobre negro ───────────────────────── */
::selection {
  background: rgba(196,173,140,0.20);
  color: var(--text);
  text-shadow: none;
}
::-moz-selection {
  background: rgba(196,173,140,0.20);
  color: var(--text);
}

/* ── FOCUS-VISIBLE — anillo accent fino ─────────────────────── */
:focus-visible {
  outline: 1px solid rgba(196,173,140,0.5);
  outline-offset: 3px;
}
.btn:focus-visible,
.port-item:focus-visible,
.extras-card:focus-visible,
.srv-card:focus-visible {
  outline-offset: 4px;
}

/* ── LOGO — opacity micro-transition ────────────────────────── */
.logo {
  transition: opacity 0.35s var(--ease);
}
.logo:hover {
  opacity: 0.68;
}
.header.scrolled .logo {
  transform: scale(0.97);
  transition: transform 0.5s var(--ease), opacity 0.35s var(--ease);
}

/* ── PORT-TIER — glow sutil cuando la card está en hover ────── */
.port-item:hover .port-tier {
  background: rgba(196,173,140,0.11);
  border-color: rgba(196,173,140,0.32);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

/* ── PORT-META P — aparece con fade al hover ─────────────────── */
@media (hover: hover) and (pointer: fine) {
  .port-meta p {
    opacity: 0.5;
    transform: translateY(5px);
    transition:
      opacity 0.45s var(--ease) 0.04s,
      transform 0.45s var(--ease) 0.04s;
  }
  .port-item:hover .port-meta p {
    opacity: 0.88;
    transform: translateY(0);
  }
}

/* ── PORT-IMG — warm tint champagne en hover ─────────────────── */
@media (hover: hover) and (pointer: fine) {
  .port-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
      ellipse 90% 80% at 30% 75%,
      rgba(196,173,140,0.07) 0%,
      transparent 70%
    );
    opacity: 0;
    transition: opacity 0.7s var(--ease);
    z-index: 2;
    pointer-events: none;
    mix-blend-mode: screen;
  }
  .port-item:hover .port-img::before {
    opacity: 1;
  }
}

/* ── PORT-ITEM — sombra de profundidad ───────────────────────── */
@media (hover: hover) and (pointer: fine) {
  .port-item {
    transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease) !important;
  }
  .port-item:hover {
    box-shadow: var(--shadow-card-hover) !important;
  }
}

/* ── CARDS — ambient glow bajo las cards en hover ────────────── */
@media (hover: hover) and (pointer: fine) {
  .srv-card:hover,
  .extras-card:hover,
  .mant-card:hover,
  .test-card:hover {
    box-shadow:
      var(--shadow-card-hover),
      var(--shadow-glow) !important;
  }
}

/* ── HERO — fade-out bottom (sutura visual con la sección sig.) ─ */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 2;
}

/* ── H1-ACCENT — halo de luz interior sutil ─────────────────── */
.h1-accent {
  position: relative;
}
.h1-accent::after {
  content: '';
  position: absolute;
  inset: -6px -14px;
  background: radial-gradient(
    ellipse 80% 100% at 50% 65%,
    rgba(196,173,140,0.065) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
}

/* ── FOOTER LINKS — opacity base + color en hover ────────────── */
.footer-nav a,
.footer-contact a {
  opacity: 0.55;
  transition:
    opacity 0.32s var(--ease),
    color 0.32s var(--ease),
    letter-spacing 0.4s var(--ease) !important;
}
.footer-nav a:hover,
.footer-contact a:hover {
  opacity: 1;
  color: var(--accent);
  letter-spacing: 0.018em;
}

/* ── SCROLLBAR — gradient champagne ─────────────────────────── */
::-webkit-scrollbar-thumb {
  background: linear-gradient(
    to bottom,
    var(--accent-light),
    var(--accent-deep)
  ) !important;
  border-radius: 2px;
}

/* h1-rot mobile — rotación activa en todos los tamaños */

/* ── PREFERS-REDUCED-MOTION — hero fade y glow estáticos ────── */
@media (prefers-reduced-motion: reduce) {
  .hero::after { display: none; }
  .h1-accent::after { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   PREMIUM REFINEMENT — Hero · Calc · Whitespace · Footer
   ══════════════════════════════════════════════════════════════ */

/* ── HERO — escala refinada en desktop ───────────────────────── */
@media (min-width: 1280px) {
  .hero h1 {
    font-size: clamp(5rem, 8.5vw, 10rem) !important;
    letter-spacing: -0.044em !important;
  }
}
@media (min-width: 1600px) {
  .hero h1 {
    font-size: clamp(5.5rem, 9vw, 11.5rem) !important;
  }
}

/* ── HERO-BG — preparado para parallax JS ────────────────────── */
.hero-bg {
  will-change: transform;
  transition: none !important;
}

/* ── WHITESPACE — más aire en secciones clave ────────────────── */
:root {
  --space-section: clamp(9rem, 18vh, 15rem);
}
.section-header {
  margin-bottom: clamp(5rem, 10vw, 9rem) !important;
}
.srv-grid {
  gap: clamp(1.5rem, 3vw, 2.8rem) !important;
}
.extras-grid {
  gap: clamp(1.2rem, 2.5vw, 2.2rem) !important;
}

/* ── CALC — resultado: flash accent cuando cambia ────────────── */
@keyframes calcFlash {
  0%   { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}
.calc-result-num.updating {
  animation: calcFlash 0.4s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* ── FOOTER — tagline grande premium ─────────────────────────── */
.footer-tagline-big {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.03em;
  opacity: 0.08;
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  pointer-events: none;
  user-select: none;
  position: relative;
  z-index: 1;
  border-bottom: 0.5px solid var(--border);
  margin-bottom: clamp(3rem, 6vw, 5rem);
  transition: opacity 0.8s var(--ease);
}
.footer:hover .footer-tagline-big {
  opacity: 0.14;
}
@media (max-width: 768px) {
  .footer-tagline-big {
    font-size: clamp(2.5rem, 12vw, 5rem);
    padding: 2.5rem 0 2rem;
    margin-bottom: 2.5rem;
  }
}

/* ── FOOTER — más presencia general ──────────────────────────── */
.footer {
  padding-top: 0 !important;
}
.footer-inner {
  padding-top: 0 !important;
}
.footer-brand p {
  max-width: 260px;
  line-height: 1.9;
}

/* ── SECTION LABEL — más tracking ───────────────────────────── */
.section-label {
  letter-spacing: 0.38em !important;
}

/* ── SECTOR MARQUEE — sectores en lugar de testimonios ──────── */
.sector-track {
  gap: 0;
  align-items: center;
}
.sector-item {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 0 0.5rem;
  opacity: 0.72;
  transition: opacity 0.3s var(--ease), color 0.3s var(--ease);
}
.sector-track .tsep {
  color: var(--accent);
  opacity: 0.35;
  font-size: 0.7rem;
  padding: 0 0.2rem;
}
.sector-track:hover .sector-item {
  opacity: 0.45;
}
.sector-item:hover {
  opacity: 1 !important;
  color: var(--accent);
}
/* Test-section sin altura fija de cards */
.test-section .marquee-track {
  min-height: unset;
  padding: 2.5rem 0;
}

/* ══════════════════════════════════════════════════════════════
   CARD HOVER — BLOQUE DEFINITIVO
   Gana sobre todo lo anterior. No tocar.
   ══════════════════════════════════════════════════════════════ */
@media (hover: hover) and (pointer: fine) {
  .extras-card,
  .srv-card,
  .mant-card,
  .test-card,
  .port-item,
  .blog-card,
  .diff-col {
    transition:
      transform 0.55s cubic-bezier(0.23, 1, 0.32, 1),
      box-shadow 0.55s cubic-bezier(0.23, 1, 0.32, 1),
      border-color 0.4s !important;
    will-change: transform;
  }

  .extras-card:hover,
  .srv-card:hover,
  .mant-card:hover {
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.45) !important;
  }

  .test-card:hover,
  .blog-card:hover {
    transform: translateY(-8px) scale(1.015) !important;
    box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.4) !important;
  }

  .port-item:hover {
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.45) !important;
  }

  .diff-col:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.4) !important;
  }

  .qr-demo-card,
  .pricing-card,
  .qr-sector-item,
  .step-item {
    transition:
      transform 0.55s cubic-bezier(0.23, 1, 0.32, 1),
      box-shadow 0.55s cubic-bezier(0.23, 1, 0.32, 1),
      border-color 0.4s !important;
    will-change: transform;
  }
}

/* ── HERO H1 MOBILE — gap entre línea blanca y línea cobre ─── */
@media (max-width: 768px) {
  .h1-em { margin-top: 0.45rem; }
}

/* ============================================================
   ANIMATION LAYER v2 — Reveals, Hover upgrades, Polish
   ============================================================ */

/* ── PORT-META — slide-up con delay tras clip-path de imagen ── */
.port-item .port-meta {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s var(--ease-soft),
    transform 0.55s var(--ease-soft);
  transition-delay: 0.18s;
}

.port-item.visible .port-meta {
  opacity: 1;
  transform: translateY(0);
}

/* ── DECISION-ITEM — stagger reveal ──────────────────────────── */
.decision-item {
  opacity: 0;
  transform: translateX(-14px);
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease);
}

.decision.visible .decision-item:nth-child(1) { opacity:1; transform:none; transition-delay:.05s; }
.decision.visible .decision-item:nth-child(2) { opacity:1; transform:none; transition-delay:.13s; }
.decision.visible .decision-item:nth-child(3) { opacity:1; transform:none; transition-delay:.21s; }
.decision.visible .decision-item:nth-child(4) { opacity:1; transform:none; transition-delay:.29s; }

/* ── SC-NUM — números de proceso: entrada accent + fade ────── */
.sc-num {
  transition: color 0.6s var(--ease), opacity 0.6s var(--ease);
}

.sc-col.visible .sc-num {
  color: var(--accent) !important;
}

.sc-step:nth-child(1) .sc-num { transition-delay: .1s; }
.sc-step:nth-child(2) .sc-num { transition-delay: .22s; }
.sc-step:nth-child(3) .sc-num { transition-delay: .34s; }

/* ── SC-STEP — cada paso entra con stagger ───────────────────── */
.sc-col .sc-step {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.sc-col.visible .sc-step:nth-child(1) { opacity:1; transform:none; transition-delay:.12s; }
.sc-col.visible .sc-step:nth-child(2) { opacity:1; transform:none; transition-delay:.24s; }
.sc-col.visible .sc-step:nth-child(3) { opacity:1; transform:none; transition-delay:.36s; }

/* ── BUTTON GLOW — drop-shadow accent en hover ───────────────── */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    filter: drop-shadow(0 0 16px rgba(212, 146, 79, 0.28));
  }
  .btn-outline:hover {
    filter: drop-shadow(0 0 12px rgba(212, 146, 79, 0.18));
  }
}

/* ── TEST-QUOTE — quote mark anima en hover de la card ───────── */
.test-card .test-quote::before {
  display: block;
  opacity: 0.15;
  transform: scale(0.85) translateY(4px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.test-card:hover .test-quote::before {
  opacity: 0.35;
  transform: scale(1) translateY(0);
}

/* ── EXTRAS-ICON — rotación suave en hover ────────────────────── */
@media (hover: hover) and (pointer: fine) {
  .extras-card:hover .extras-icon {
    transform: rotate(8deg) scale(1.12);
    transition: transform 0.45s var(--ease);
  }
}

/* ── FOOTER LINKS — letter-spacing en hover ──────────────────── */
.footer-nav a,
.footer-links a {
  transition:
    color 0.28s,
    letter-spacing 0.35s var(--ease),
    opacity 0.28s;
}

.footer-nav a:hover,
.footer-links a:hover {
  letter-spacing: 0.04em;
}

/* ── FOOTER-INNER — reveal suave ─────────────────────────────── */
.footer-inner {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft);
}

.footer-inner.visible {
  opacity: 1;
  transform: none;
}

/* ── SECTION-LABEL underline — timing refinado ───────────────── */
.section-label::after {
  transition: width 0.9s var(--ease-soft) !important;
  transition-delay: 0.15s !important;
}

/* ── MAGNETIC BUTTON — efecto atracción sutil ────────────────── */
.btn-magnetic {
  transition:
    transform 0.25s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.25s,
    color 0.3s,
    background 0.3s;
  will-change: transform;
}

/* ── QUIZ PRICE — número aparece con fade luxury ─────────────── */
#quizPrice {
  display: inline-block;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

#quizPrice.counting {
  opacity: 0.3;
  transform: translateY(6px) scale(0.95);
}

#quizPrice.done {
  opacity: 1;
  transform: none;
}

/* ── HERO SCROLL FADE — contenido hero se difumina al bajar ──── */
.hero-inner {
  transition: opacity 0.15s linear;
  will-change: opacity;
}

/* ── SECTION-NUM — números 01 02 03 animan al entrar ─────────── */
.section-num {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.section-header.visible .section-num,
.section-inner > .section-header .section-num {
  opacity: 1;
  transform: none;
}

/* ── DIFF-COL ORDINAL — fade-in luxury ───────────────────────── */
.diff-col::after {
  transition: opacity 0.8s var(--ease);
}

.diff-col.visible::after {
  opacity: 0.05 !important;
}

/* ── REDUCED MOTION — respetar preferencia ───────────────────── */
@media (prefers-reduced-motion: reduce) {
  .port-item .port-meta,
  .decision-item,
  .sc-step,
  .footer-inner { transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* ── PACK ARRANCA YA ─────────────────────────────────────────── */
.srv-pack {
  background:
    radial-gradient(
      ellipse 90% 55% at 50% 0%,
      rgba(196, 130, 80, 0.07) 0%,
      var(--bg-surface) 65%
    ) !important;
  border-color: rgba(196, 130, 80, 0.35) !important;
}

.srv-pack::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(196, 130, 80, 0.6) 50%,
    transparent 100%
  ) !important;
}

.srv-badge-pack {
  background: rgba(196, 130, 80, 0.1) !important;
  color: #d4915a !important;
  border-color: rgba(196, 130, 80, 0.4) !important;
}

/* ══════════════════════════════════════════════════════════════
   VS WORDPRESS — sección de comparación
══════════════════════════════════════════════════════════════ */
.notwp-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.notwp-header {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}
/* Línea de acento centrada cuando el label está en bloque centrado */
.notwp-header .section-label {
  display: inline-block;
}
.notwp-header .section-label::after {
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
}
.notwp-header .section-label.visible::after,
.notwp-header .section-label:not(.reveal)::after {
  transform: translateX(-50%) scaleX(1);
}

.notwp-intro {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.7;
  margin-top: 1rem;
}

/* Grid de comparación — 2 columnas */
.notwp-vs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 880px;
  margin: 0 auto;
  border: 0.5px solid rgba(196,173,140,.12);
  border-radius: 6px;
  overflow: hidden;
}

/* Cabeceras de columna */
.notwp-col {
  padding: .75rem 1.2rem;
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
}
.notwp-col--bad {
  background: rgba(255,255,255,.02);
  color: var(--text-muted);
  border-bottom: 0.5px solid rgba(196,173,140,.1);
}
.notwp-col--good {
  background: rgba(196,173,140,.06);
  color: var(--accent);
  border-bottom: 0.5px solid rgba(196,173,140,.15);
  border-left: 0.5px solid rgba(196,173,140,.12);
}

/* Celdas */
.notwp-cell {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .85rem 1.2rem;
  font-size: .82rem;
  line-height: 1.5;
  border-bottom: 0.5px solid rgba(196,173,140,.07);
}
.notwp-cell:last-child,
.notwp-cell:nth-last-child(2) { border-bottom: none; }

.notwp-cell--bad {
  color: var(--text-muted);
  opacity: .65;
}
.notwp-cell--good {
  color: var(--text);
  background: rgba(196,173,140,.03);
  border-left: 0.5px solid rgba(196,173,140,.12);
}

.notwp-icon {
  flex-shrink: 0;
  font-size: .75rem;
  margin-top: .1rem;
}
.notwp-cell--bad .notwp-icon  { color: rgba(255,80,80,.45); }
.notwp-cell--good .notwp-icon { color: var(--accent); }

/* Mobile: apilado */
@media (max-width: 640px) {
  .notwp-vs {
    grid-template-columns: 1fr;
  }
  /* Ocultar columna "mala" en móvil — solo mostramos los beneficios */
  .notwp-col--bad,
  .notwp-cell--bad { display: none; }
  .notwp-col--good { border-left: none; }
  .notwp-cell--good { border-left: none; }
}

/* ══════════════════════════════════════════════════════════════
   RENTING BANNER — bloque de forma de pago (debajo de los planes)
══════════════════════════════════════════════════════════════ */
.renting-banner {
  margin-top: clamp(3rem, 6vw, 5rem);
  border: 0.5px solid var(--border-accent);
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}

/* línea de acento superior */
.renting-banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .5;
}

.renting-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2rem, 4vw, 3rem) clamp(2rem, 5vw, 3.5rem);
}

.renting-banner-left {
  flex: 1;
  min-width: 0;
}

.renting-banner-left .section-label {
  display: inline-block;
  margin-bottom: 1rem;
}

.renting-banner-left h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: .75rem;
  line-height: 1.2;
}

.renting-banner-left p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
}

.renting-banner-note {
  margin-top: .5rem !important;
  font-size: .75rem !important;
  opacity: .6;
  font-style: italic;
}

.renting-banner-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.25rem;
  flex-shrink: 0;
}

.renting-banner-price {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--accent);
  letter-spacing: .02em;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .renting-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .renting-banner-right {
    align-items: flex-start;
    width: 100%;
  }
}

/* ══════════════════════════════════════════════════════════════
   BANNERS UNIFICADOS — effects luxury coherentes
   aplica a: .amedida · .decision · .renting-banner
══════════════════════════════════════════════════════════════ */

/* ── Base compartida ─────────────────────────────────────────── */
.amedida,
.decision,
.renting-banner {
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

/* Shimmer en hover */
.amedida::before,
.decision::before,
.renting-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,.05) 40%,
    rgba(255,255,255,.09) 50%,
    rgba(255,255,255,.05) 60%,
    transparent 100%
  );
  transform: skewX(-15deg);
  pointer-events: none;
  z-index: 3;
  transition: left 0s;
}
.amedida:hover::before,
.decision:hover::before,
.renting-banner:hover::before {
  left: 160%;
  transition: left 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Línea de acento inferior al hover */
.amedida::after,
.decision::after,
.renting-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.55s var(--ease);
  pointer-events: none;
  z-index: 2;
}
.amedida:hover::after,
.decision:hover::after,
.renting-banner:hover::after {
  transform: scaleX(1);
}

/* Corner lines */
.amedida .corner-tl,
.amedida .corner-br,
.decision .corner-tl,
.decision .corner-br,
.renting-banner .corner-tl,
.renting-banner .corner-br {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  transition:
    width  0.45s cubic-bezier(0.23, 1, 0.32, 1),
    height 0.45s cubic-bezier(0.23, 1, 0.32, 1),
    opacity 0.3s ease;
}
.amedida .corner-tl,
.decision .corner-tl,
.renting-banner .corner-tl {
  top: 0; left: 0;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
}
.amedida .corner-br,
.decision .corner-br,
.renting-banner .corner-br {
  bottom: 0; right: 0;
  border-bottom: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
}
.amedida:hover .corner-tl,
.amedida:hover .corner-br,
.decision:hover .corner-tl,
.decision:hover .corner-br,
.renting-banner:hover .corner-tl,
.renting-banner:hover .corner-br {
  width: 36px;
  height: 36px;
  opacity: 1;
}

/* Lift + glow en hover */
.amedida:hover,
.decision:hover,
.renting-banner:hover {
  border-color: var(--border-accent);
  box-shadow:
    0 16px 50px rgba(0,0,0,.3),
    0 0 0 1px var(--border-accent);
}

/* ── Espaciado coherente ─────────────────────────────────────── */
.amedida {
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(2rem, 4vw, 3rem);
  margin-top: clamp(3rem, 6vw, 5rem);
  border-radius: 0;                /* coherencia con el resto */
  border: 0.5px solid var(--border-accent);
}
.amedida-text h3 {
  margin-bottom: 1rem;
  line-height: 1.25;
}
.amedida-text p {
  line-height: 1.8;
}
.amedida-inner {
  gap: clamp(2rem, 5vw, 4rem);
}

.decision {
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(2rem, 4vw, 3rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  border: 0.5px solid var(--border);
}
.decision h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 300;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.25;
}
.decision-grid {
  gap: clamp(1.2rem, 2.5vw, 2rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.decision-item {
  padding-top: 1.4rem;
  gap: 0.9rem;
}

.renting-banner {
  margin-top: clamp(3rem, 6vw, 5rem);
  border: 0.5px solid var(--border-accent);
  background: var(--bg-2);
}
/* Sobreescribe el ::before del gradiente que pusimos antes */
.renting-banner::before {
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,.05) 40%,
    rgba(255,255,255,.09) 50%,
    rgba(255,255,255,.05) 60%,
    transparent 100%
  );
  height: 100%;
  top: 0;
}
.renting-banner-inner {
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(2rem, 4vw, 3rem);
  gap: clamp(2rem, 5vw, 4rem);
}
.renting-banner-left .section-label {
  margin-bottom: 1rem;
}
.renting-banner-left h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 300;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.25;
}
.renting-banner-left p {
  font-size: .85rem;
  color: var(--text-dim);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 0;
}
.renting-banner-note {
  margin-top: .75rem !important;
  font-size: .75rem !important;
  opacity: .55;
  font-style: italic;
  line-height: 1.6 !important;
}
.renting-banner-price {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 300;
  color: var(--accent);
  letter-spacing: .02em;
  white-space: nowrap;
}

/* ── Espaciado entre bloques de la sección #servicios ─────────── */
.maint-block {
  margin-top: clamp(3rem, 6vw, 5rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  padding: 1.75rem 2.25rem;
}
.maint-block h3 {
  margin-bottom: 0.85rem;
}

/* ══════════════════════════════════════════════════════════════
   SHIMMER SWEEP GLOBAL — se aplica a todos los elementos
   interactivos que aún no lo tienen. Preserva efectos existentes.
══════════════════════════════════════════════════════════════ */

/* Mixin reutilizable — shimmer diagonal en ::before
   Para: diff-col, extras-card, port-item, blog-card (demos),
         qr-demo-card, qr-sector-item, step-item, sc-step col,
         contacto wrapper, cta-block
   NO toca: srv-card (ya tiene), amedida/decision/renting (ya tienen)
*/

/* ── diff-col ────────────────────────────────────────────────── */
.diff-col {
  position: relative;
  overflow: hidden;
  border-radius: 0 !important;
  transition:
    border-color 0.4s var(--ease),
    box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease);
}
.diff-col::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 55%; height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,.055) 40%,
    rgba(255,255,255,.09) 50%,
    rgba(255,255,255,.055) 60%,
    transparent 100%
  );
  transform: skewX(-15deg);
  pointer-events: none;
  z-index: 3;
  transition: left 0s;
}
.diff-col:hover::before {
  left: 160%;
  transition: left 0.65s cubic-bezier(0.23, 1, 0.32, 1);
}
.diff-col:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.28);
}

/* ── extras-card — reemplaza wash por shimmer ────────────────── */
.extras-card::before {
  top: 0; left: -100%;
  width: 55%; height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,.055) 40%,
    rgba(255,255,255,.09) 50%,
    rgba(255,255,255,.055) 60%,
    transparent 100%
  ) !important;
  transform: skewX(-15deg) !important;
  transform-origin: unset !important;
  transition: left 0s !important;
  inset: unset !important;
}
.extras-card:hover::before {
  left: 160% !important;
  transform: skewX(-15deg) !important;
  transition: left 0.65s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

/* ── port-item — shimmer via ::before (::after ya tiene barra) ── */
.port-item {
  overflow: hidden;
}
.port-item::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 55%; height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,.06) 40%,
    rgba(255,255,255,.1) 50%,
    rgba(255,255,255,.06) 60%,
    transparent 100%
  );
  transform: skewX(-15deg);
  pointer-events: none;
  z-index: 3;
  transition: left 0s;
}
.port-item:hover::before {
  left: 160%;
  transition: left 0.65s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ── qr-demo-card / qr-sector-item / step-item ───────────────── */
.qr-demo-card,
.qr-sector-item,
.step-item {
  position: relative;
  overflow: hidden;
}
.qr-demo-card::before,
.qr-sector-item::before,
.step-item::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 55%; height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,.05) 40%,
    rgba(255,255,255,.09) 50%,
    rgba(255,255,255,.05) 60%,
    transparent 100%
  );
  transform: skewX(-15deg);
  pointer-events: none;
  z-index: 3;
  transition: left 0s;
}
.qr-demo-card:hover::before,
.qr-sector-item:hover::before,
.step-item:hover::before {
  left: 160%;
  transition: left 0.65s cubic-bezier(0.23, 1, 0.32, 1);
}
.qr-demo-card:hover,
.qr-sector-item:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}

/* ── blog-card (demos.html) — añade shimmer, mantiene ::after ── */
/* ::before ya usado para top-accent-line → reusamos con shimmer */
.blog-card {
  overflow: hidden !important;
  position: relative;
}
.blog-card::before {
  content: '' !important;
  position: absolute !important;
  top: 0; left: -100% !important;
  width: 55%; height: 100% !important;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,.05) 40%,
    rgba(255,255,255,.09) 50%,
    rgba(255,255,255,.05) 60%,
    transparent 100%
  ) !important;
  transform: skewX(-15deg) !important;
  transform-origin: unset !important;
  pointer-events: none;
  z-index: 3;
  transition: left 0s !important;
}
.blog-card:hover::before {
  left: 160% !important;
  transition: left 0.65s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

/* ══════════════════════════════════════════════════════════════
   ESPACIO NEGATIVO — aire entre secciones y elementos
══════════════════════════════════════════════════════════════ */

/* Sección principal: más respiro */
.section {
  padding: clamp(6rem, 13vh, 10rem) 2.5rem;
}
.section-dark {
  padding: clamp(6rem, 13vh, 10rem) 2.5rem;
}

/* section-header más aire bajo el título */
.section-header {
  margin-bottom: clamp(4rem, 8vw, 7rem);
}
.section-sub {
  margin-top: 1.25rem;
  line-height: 1.85;
}

/* Grids más respirados */
.srv-grid {
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.extras-grid {
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.diff-grid {
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

/* Espacio interno en tarjetas */
.extras-card {
  padding: clamp(1.8rem, 3.5vw, 2.5rem);
}
.diff-col {
  padding: clamp(2rem, 4vw, 2.8rem);
}

/* Espacio entre bloques dentro de sección servicios */
.srv-grid + .renting-banner,
.srv-grid + .maint-block {
  margin-top: clamp(3.5rem, 7vw, 6rem);
}

/* Separación entre secciones consecutivas */
.section + .section,
.section + .section-dark,
.section-dark + .section {
  border-top: 0.5px solid var(--border);
}

@media (max-width: 768px) {
  .section,
  .section-dark {
    padding: clamp(4rem, 10vw, 6rem) 1.5rem;
  }
  .section-header {
    margin-bottom: clamp(2.5rem, 6vw, 4rem);
  }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE — PROTECCIÓN TOUCH / LONGPRESS
   Todos los efectos hover (shimmer, lift, corners) quedan
   desactivados en dispositivos sin hover real.
   NUNCA usar :hover sin esta capa de protección.
══════════════════════════════════════════════════════════════ */

/* ── 1. Shimmer global — solo en dispositivos con hover real ─── */
@media (hover: none), (pointer: coarse) {

  /* Nuevos shimmers añadidos esta sesión — resetear */
  .diff-col::before,
  .port-item::before,
  .qr-demo-card::before,
  .qr-sector-item::before,
  .step-item::before,
  .blog-card::before,
  .amedida::before,
  .decision::before,
  .renting-banner::before {
    display: none !important;
  }

  /* extras-card shimmer override */
  .extras-card::before {
    left: -100% !important;
    transition: none !important;
  }

  /* Corner lines — siempre ocultos en touch */
  .corner-tl,
  .corner-br,
  .amedida .corner-tl,
  .amedida .corner-br,
  .decision .corner-tl,
  .decision .corner-br,
  .renting-banner .corner-tl,
  .renting-banner .corner-br {
    display: none !important;
  }

  /* Línea inferior de acento — visible desde el inicio en touch */
  .amedida::after,
  .decision::after,
  .renting-banner::after {
    transform: scaleX(1) !important;
    opacity: 0.35;
  }

  /* Sin lift / transform en tarjetas */
  .diff-col:hover,
  .diff-col,
  .qr-demo-card:hover,
  .qr-sector-item:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  /* Sin hover en banners */
  .amedida:hover,
  .decision:hover,
  .renting-banner:hover {
    border-color: var(--border-accent) !important;
    box-shadow: none !important;
    transform: none !important;
  }

  /* touch-action explícito en todos los interactivos */
  .amedida,
  .decision,
  .renting-banner,
  .diff-col,
  .extras-card,
  .blog-card,
  .qr-demo-card,
  .qr-sector-item {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
  }
}

/* ── 2. Reveals profundos en mobile — banners y nuevos elems ─── */
@media (max-width: 860px) {

  /* Banners — entran desde más abajo con más drama */
  .renting-banner.reveal,
  .decision.reveal,
  .amedida.reveal {
    transform: translateY(40px);
    opacity: 0;
    transition:
      opacity  0.75s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .renting-banner.reveal.visible,
  .decision.reveal.visible,
  .amedida.reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* maint-block — entra desde la izquierda */
  .maint-block.reveal {
    transform: translateX(-20px);
    opacity: 0;
    transition:
      opacity  0.65s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .maint-block.reveal.visible {
    opacity: 1;
    transform: translateX(0);
  }

  /* srv-card en mobile — escala sutil + subida */
  .srv-card.reveal {
    transform: translateY(28px) scale(0.98);
    transition:
      opacity  0.65s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .srv-card.reveal.visible {
    transform: translateY(0) scale(1);
  }

  /* extras-card — stagger con escala */
  .extras-card.reveal {
    transform: translateY(24px) scale(0.97);
    transition:
      opacity  0.6s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .extras-card.reveal.visible {
    transform: translateY(0) scale(1);
  }

  /* diff-col — desde lados alternos */
  .diff-col.reveal {
    transform: translateY(30px);
    transition:
      opacity  0.65s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .diff-col.reveal.visible {
    transform: translateY(0);
  }

  /* blog-card / qr cards — igual que extras */
  .blog-card.reveal,
  .qr-demo-card.reveal,
  .qr-sector-item.reveal {
    transform: translateY(24px) scale(0.97);
    transition:
      opacity  0.6s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .blog-card.reveal.visible,
  .qr-demo-card.reveal.visible,
  .qr-sector-item.reveal.visible {
    transform: translateY(0) scale(1);
  }

  /* ── Layout mobile de los banners ────────────────────────── */
  .renting-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
  }
  .renting-banner-right {
    align-items: flex-start;
    width: 100%;
    gap: 1rem;
  }
  .renting-banner-right .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

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

  .amedida-inner {
    gap: 1.75rem;
  }

  /* Sección — más aire en mobile */
  .section,
  .section-dark {
    padding: clamp(4.5rem, 11vw, 7rem) 1.5rem;
  }
}

@media (max-width: 480px) {
  .decision-grid {
    grid-template-columns: 1fr;
  }
  .amedida-text h3 {
    font-size: clamp(1.2rem, 5.5vw, 1.5rem);
  }
}
