/* ============================================================
   PrismaXweb Switzerland - ch.css
   Stylesheet autónomo. NO importa /styles.css de prismaxweb.com.

   DOS TEMAS por tokens semánticos:
   - :root                  → "brand"  (brandkit original PrismaXweb:
                              Cormorant Garamond + DM Sans, bone white,
                              azul #38BDF8, radios suaves)
   - [data-theme="swiss"]   → "swiss"  (código cromático nacional suizo:
                              rojo federal #DA291C + blanco + carbón,
                              Archivo + Manrope, radios rectos)
   El switch flotante (ch.js) alterna data-theme en <html>.
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/cormorant-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/cormorant-300i-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/cormorant-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/cormorant-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/dmsans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- THEME A: brand (original PrismaXweb) ---------- */
:root {
  --ff-disp: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --ff-body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --disp-track: -0.01em;
  --disp-weight: 700;
  --h1-size: clamp(42px, 6.6vw, 74px);
  --h2-size: clamp(32px, 4.6vw, 48px);

  --bg: #F8F7F4;
  --bg-alt: #F0EEE9;
  --card: #FFFFFF;
  --ink: #0F172A;
  --slate: #334155;
  --muted: #566070;
  --border: #E0E4E9;

  --link: #0369A1;
  --mark: #38BDF8;
  --focus: #0369A1;
  --selection-bg: #7DD3FC;

  --cta: #0F172A;
  --cta-hover: #1E293B;
  --cta-ink: #FFFFFF;

  --dark: #0F172A;
  --dark-ink: rgba(255, 255, 255, 0.8);
  --dark-ink-soft: rgba(255, 255, 255, 0.55);
  --dark-border: rgba(255, 255, 255, 0.14);
  --dark-flag: #7DD3FC;

  --compare-us-bg: #EEF3FD;
  --invalid: #B3261E;

  --radius: 14px;
  --radius-btn: 8px;
  --radius-input: 8px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 32px rgba(30, 58, 95, 0.10);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --container: 1200px;
  --pad-x: 24px;
}

/* ---------- THEME B: swiss (DEFINITIVO — activado con data-theme="swiss" en <html>)
     Rojo = #FF0000 exacto (definición oficial de la bandera suiza:
     Pantone 485 / CMYK 0-100-100-0 / RGB 255-0-0). Para texto pequeño
     sobre blanco se usa --link (rojo oscuro AA); el rojo exacto vive en
     acentos, CTAs, marcas y la bandera. ---------- */
[data-theme="swiss"] {
  --ff-disp: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --ff-body: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --disp-track: -0.03em;
  --disp-weight: 700;
  --h1-size: clamp(38px, 6vw, 64px);
  --h2-size: clamp(30px, 4.4vw, 44px);

  --bg: #FFFFFF;
  --bg-alt: #F5F5F3;
  --card: #FFFFFF;
  --ink: #121417;
  --slate: #46505E;
  --muted: #66707D;
  --border: #E6E8EB;

  --link: #B01E12;
  --mark: #FF0000;
  --focus: #B01E12;
  --selection-bg: #F5C0BB;

  --cta: #FF0000;
  --cta-hover: #D90000;
  --cta-ink: #FFFFFF;

  --dark: #16191D;
  --dark-ink: rgba(255, 255, 255, 0.82);
  --dark-ink-soft: rgba(255, 255, 255, 0.55);
  --dark-border: rgba(255, 255, 255, 0.14);
  --dark-flag: #FF8A80;

  --compare-us-bg: #FBF1F0;
  --invalid: #B3261E;

  --radius: 2px;
  --radius-btn: 2px;
  --radius-input: 2px;

  --shadow-sm: 0 1px 2px rgba(18, 20, 23, 0.05);
  --shadow-md: 0 10px 30px rgba(18, 20, 23, 0.08);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

::selection {
  background: var(--selection-bg);
  color: var(--ink);
}

/* ---------- Layout primitives ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section {
  padding-block: 72px;
}

.section-alt {
  background: var(--bg-alt);
  transition: background-color 0.35s var(--ease-out);
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-family: var(--ff-disp);
  font-size: var(--h2-size);
  font-weight: var(--disp-weight);
  letter-spacing: var(--disp-track);
  line-height: 1.12;
  text-wrap: balance;
}

.section-head p {
  margin-top: 16px;
  color: var(--slate);
  max-width: 62ch;
}

.eyebrow {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--link);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-family: var(--ff-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.18s var(--ease-out), background-color 0.18s var(--ease-out), border-color 0.18s var(--ease-out), color 0.18s var(--ease-out);
}

.btn:hover {
  text-decoration: none;
}

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

.btn-primary {
  background: var(--cta);
  color: var(--cta-ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

/* Sobre superficie oscura */
.btn-light {
  background: #FFFFFF;
  color: var(--ink);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--cta-hover);
    transform: translateY(-2px);
  }

  .btn-ghost:hover {
    border-color: var(--link);
    color: var(--link);
    transform: translateY(-2px);
  }

  .btn-light:hover {
    background: var(--bg-alt);
    transform: translateY(-2px);
  }
}

/* ---------- Reveal (JS añade .will-animate; sin JS todo es visible) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .will-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
  }

  .will-animate.revealed {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 68px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}

.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 97%, transparent);
  border-bottom-color: var(--border);
}

.nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.nav-logo:hover {
  text-decoration: none;
}

.nav-logo img {
  height: 34px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--ff-disp);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
}

.nav-logo-text span {
  color: var(--link);
}

.nav-logo-text small {
  display: block;
  font-family: var(--ff-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
}

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

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--slate);
}

.nav-links a:hover {
  color: var(--ink);
  text-decoration: none;
}

.nav-links a.nav-cta {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 15px;
  color: var(--cta-ink);
}

.nav-links a.nav-cta:hover {
  color: var(--cta-ink);
}

/* Selector de idioma */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 3px;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 30px;
  padding: 2px 6px;
  border-radius: calc(var(--radius-btn) - 2px);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.lang-switch a:hover {
  color: var(--ink);
  text-decoration: none;
}

.lang-switch a[aria-current="true"] {
  background: var(--ink);
  color: var(--bg);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

/* Menú móvil */
@media (max-width: 1000px) {
  .nav-links {
    position: fixed;
    inset: 68px 0 auto 0;
    z-index: 49;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 24px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out), visibility 0.3s;
  }

  body.ch-nav-open .nav-links {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  body.ch-nav-open {
    overflow: hidden;
  }

  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 17px;
  }

  .nav-links a:last-of-type {
    border-bottom: none;
  }

  .nav-links a.nav-cta {
    margin-top: 12px;
    width: 100%;
  }

  .nav-links .lang-dd {
    margin-top: 16px;
    align-self: flex-start;
  }

  .nav-links .lang-dd-list {
    position: static;
    box-shadow: none;
    margin-top: 8px;
    min-width: 220px;
  }

  .nav-links .lang-dd-list a {
    border-bottom: none;
    font-size: 15px;
  }

  .nav-toggle {
    display: flex;
  }

  body.ch-nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  body.ch-nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.ch-nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* ============================================================
   BANDERA SUIZA del header (junto a "Switzerland")
   ============================================================ */
.flag-ch {
  display: inline-block;
  vertical-align: -1px;
  width: 12px;
  height: 12px;
  border-radius: 2.5px;
  margin-left: 5px;
  flex-shrink: 0;
}

/* ============================================================
   SELECTOR DE IDIOMA — dropdown vertical con banderas
   ============================================================ */
.lang-dd {
  position: relative;
}

.lang-dd-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--card);
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink);
  transition: border-color 0.2s var(--ease-out);
}

.lang-dd-btn:hover {
  border-color: var(--muted);
}

.lang-dd-btn .chev {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--slate);
  border-bottom: 2px solid var(--slate);
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.25s var(--ease-out);
}

.lang-dd[data-open="true"] .lang-dd-btn .chev {
  transform: rotate(225deg) translateY(-1px);
}

.lang-flag {
  display: block;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
  flex-shrink: 0;
}

.lang-dd-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 55;
  min-width: 180px;
  display: none;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  padding: 6px;
}

.lang-dd[data-open="true"] .lang-dd-list {
  display: flex;
}

.lang-dd-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: calc(var(--radius) + 1px);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.lang-dd-list a:hover {
  background: var(--bg-alt);
  text-decoration: none;
}

.lang-dd-list a[aria-current="true"] {
  background: var(--bg-alt);
  font-weight: 700;
}

.lang-dd-list a[aria-current="true"]::after {
  content: "";
  margin-left: auto;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--link);
  border-bottom: 2px solid var(--link);
  transform: rotate(-45deg) translateY(-1px);
}

/* Refuerzo AA: texto blanco sobre rojo exacto → peso alto */
[data-theme="swiss"] .btn-primary,
[data-theme="swiss"] .hero-cta-main,
[data-theme="swiss"] .nav-links a.nav-cta {
  font-weight: 700;
}

/* ============================================================
   HERO - réplica del hero original de prismaxweb.com
   (split texto + browser mockup 3D + 3 stats + halos)
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 92vh;
  padding-top: 128px;
  padding-bottom: 80px;
}

/* Halo superior derecha */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 65vw;
  height: 65vw;
  background: radial-gradient(circle at 60% 40%,
    color-mix(in srgb, var(--mark) 12%, transparent) 0%,
    color-mix(in srgb, var(--dark) 4%, transparent) 50%,
    transparent 70%);
  pointer-events: none;
}

/* Halo inferior izquierda */
.hero-glow-2 {
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, color-mix(in srgb, var(--dark) 8%, transparent) 0%, transparent 65%);
  pointer-events: none;
}

.hero-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  font-family: var(--ff-disp);
  font-size: clamp(2.6rem, 5.6vw, 4.9rem);
  font-weight: var(--hero-title-weight, 300);
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--ink);
  margin-bottom: 1.6rem;
}

.hero h1 em {
  font-style: var(--hero-em-style, italic);
  color: var(--link);
}

.hero h1 strong {
  font-weight: 600;
}

[data-theme="swiss"] .hero h1 {
  --hero-title-weight: 400;
  --hero-em-style: normal;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-size: clamp(2.3rem, 4.8vw, 4rem);
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--slate);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 2.2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  align-items: center;
}

/* CTA principal del hero: acento con texto oscuro (patrón de la .com) */
.hero-cta-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  background: var(--hero-cta-bg, var(--mark));
  color: var(--hero-cta-ink, var(--navy, #0F172A));
  padding: 0.9rem 2rem;
  border-radius: var(--radius-btn);
  font-family: var(--ff-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: transform 0.18s var(--ease-out), background-color 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}

[data-theme="swiss"] .hero-cta-main {
  --hero-cta-bg: var(--cta);
  --hero-cta-ink: #FFFFFF;
}

.hero-cta-main svg {
  transition: transform 0.25s var(--ease-out);
}

.hero-cta-main:hover {
  text-decoration: none;
}

.hero-cta-main:active {
  transform: translateY(1px) scale(0.98);
}

@media (hover: hover) and (pointer: fine) {
  .hero-cta-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px color-mix(in srgb, var(--hero-cta-bg, var(--mark)) 25%, transparent);
  }

  .hero-cta-main:hover svg {
    transform: translateX(3px);
  }
}

/* CTA secundario: enlace discreto con subrayado (patrón de la .com) */
.hero-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  color: var(--slate);
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.hero-cta-ghost:hover {
  text-decoration: none;
  color: var(--ink);
  border-bottom-color: color-mix(in srgb, var(--mark) 50%, transparent);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-note svg {
  color: var(--link);
  flex-shrink: 0;
}

/* ---------- Browser mockup ---------- */
.hero-visual {
  position: relative;
}

.browser-frame {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.28), 0 0 0 1px color-mix(in srgb, var(--mark) 8%, transparent);
  transform: perspective(900px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.6s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .browser-frame:hover {
    transform: perspective(900px) rotateY(-2deg) rotateX(1deg);
  }
}

.browser-bar {
  background: var(--bg);
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
}

.browser-dots {
  display: flex;
  gap: 5px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-dots span:nth-child(1) { background: #FF5F57; }
.browser-dots span:nth-child(2) { background: #FEBC2E; }
.browser-dots span:nth-child(3) { background: #28C840; }

.browser-url {
  flex: 1;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  border-radius: 4px;
  padding: 0.28rem 0.8rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

.browser-content {
  background: var(--mock-canvas, #E8F4FD);
  height: 280px;
  overflow: hidden;
}

[data-theme="swiss"] .browser-content {
  --mock-canvas: #F6F6F4;
}

.mock-web {
  padding: 1.2rem;
}

.mock-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.mock-logo {
  width: 70px;
  height: 8px;
  background: var(--mark);
  border-radius: 4px;
  opacity: 0.75;
}

.mock-nav-links {
  display: flex;
  gap: 0.6rem;
}

.mock-nav-links span {
  width: 30px;
  height: 6px;
  background: rgba(15, 23, 42, 0.15);
  border-radius: 3px;
}

.mock-hero-mock {
  background: linear-gradient(135deg, var(--dark) 0%, color-mix(in srgb, var(--dark) 75%, var(--mark)) 100%);
  border-radius: 6px;
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.mock-hero-mock::before {
  content: '';
  position: absolute;
  top: 20%;
  right: 15%;
  width: 70px;
  height: 70px;
  background: color-mix(in srgb, var(--mark) 20%, transparent);
  border-radius: 50%;
  filter: blur(22px);
}

.mock-h1 {
  width: 75%;
  height: 12px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 3px;
  margin-bottom: 6px;
}

.mock-h2 {
  width: 50%;
  height: 8px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 3px;
  margin-bottom: 12px;
}

.mock-btn {
  width: 70px;
  height: 20px;
  background: var(--mark);
  border-radius: 3px;
  opacity: 0.9;
}

.mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.mock-card {
  background: rgba(15, 23, 42, 0.04);
  border-radius: 4px;
  padding: 0.5rem;
  border: 1px solid color-mix(in srgb, var(--mark) 10%, transparent);
}

.mock-card-img {
  height: 28px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--mark) 80%, var(--dark)), var(--mark));
  border-radius: 3px;
  margin-bottom: 0.4rem;
}

.mock-card-line {
  height: 5px;
  background: rgba(15, 23, 42, 0.12);
  border-radius: 3px;
  margin-bottom: 0.25rem;
}

.mock-card-line.short {
  width: 60%;
}

/* ---------- Stats del hero ---------- */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
}

.stat-item {
  padding: 1.1rem 1.2rem;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
}

.stat-item:last-child {
  border-right: none;
}

@media (hover: hover) and (pointer: fine) {
  .stat-item:hover {
    background: color-mix(in srgb, var(--mark) 6%, transparent);
  }
}

.stat-num {
  font-family: var(--ff-disp);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--link);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.73rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ============================================================
   VALUE PROPS - grid 2x2 con hairlines
   ============================================================ */
.props-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.prop {
  padding: 36px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.prop h3 {
  font-family: var(--ff-body);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.prop p {
  margin-top: 10px;
  color: var(--slate);
  font-size: 16px;
}

.prop-mark {
  width: 28px;
  height: 3px;
  background: var(--mark);
  margin-bottom: 20px;
}

/* ============================================================
   TARIFS
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }
}

.price-card h3 {
  font-family: var(--ff-body);
  font-size: 20px;
  font-weight: 700;
}

.price-tag {
  margin-top: 18px;
  font-family: var(--ff-disp);
  font-weight: var(--disp-weight);
  font-size: 36px;
  letter-spacing: var(--disp-track);
  font-variant-numeric: tabular-nums;
}

.price-tag small {
  display: block;
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  margin-top: 4px;
}

.price-desc {
  margin-top: 14px;
  color: var(--slate);
  font-size: 15.5px;
}

.price-list {
  margin-top: 22px;
  display: grid;
  gap: 10px;
  flex-grow: 1;
}

.price-list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--slate);
}

.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 2px;
  background: var(--link);
}

.price-card .btn {
  margin-top: 28px;
}

/* Card destacada */
.price-card.featured {
  background: var(--dark);
  border-color: var(--dark);
  color: #FFFFFF;
}

.price-card.featured .price-desc,
.price-card.featured .price-list li {
  color: var(--dark-ink);
}

.price-card.featured .price-tag small {
  color: var(--dark-ink-soft);
}

.price-card.featured .price-list li::before {
  background: var(--dark-flag);
}

/* Card destacada en rojo suizo (tema definitivo) */
[data-theme="swiss"] .price-card.featured {
  background: var(--cta);
  border-color: var(--cta);
}

[data-theme="swiss"] .price-card.featured .price-desc,
[data-theme="swiss"] .price-card.featured .price-list li {
  color: #FFFFFF;
  font-weight: 600;
}

[data-theme="swiss"] .price-card.featured .price-tag small {
  color: rgba(255, 255, 255, 0.92);
}

[data-theme="swiss"] .price-card.featured .price-list li::before {
  background: #FFFFFF;
}

[data-theme="swiss"] .price-card.featured .featured-flag {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.55);
}

.featured-flag {
  align-self: flex-start;
  font-family: var(--ff-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-flag);
  border: 1px solid var(--dark-border);
  padding: 5px 10px;
  border-radius: var(--radius-btn);
  margin-bottom: 18px;
}

.pricing-note {
  margin-top: 28px;
  font-size: 14px;
  color: var(--muted);
}

/* Maintenance strip */
.maint {
  margin-top: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.maint-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  text-align: left;
}

.maint-toggle h3 {
  font-family: var(--ff-body);
  font-size: 19px;
  font-weight: 700;
}

.maint-toggle .price-hint {
  font-family: var(--ff-disp);
  font-weight: var(--disp-weight);
  font-size: 21px;
  white-space: nowrap;
}

.maint-toggle .chev {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--slate);
  border-bottom: 2px solid var(--slate);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease-out);
}

.maint-toggle[aria-expanded="true"] .chev {
  transform: rotate(225deg);
}

.maint-body {
  display: none;
  padding: 0 28px 28px;
  border-top: 1px solid var(--border);
}

.maint-body.open {
  display: block;
}

.maint-body ul {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 32px;
}

.maint-body li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--slate);
}

.maint-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 2px;
  background: var(--link);
}

.maint-body p {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

/* ============================================================
   COMPARATIVA
   ============================================================ */
.compare {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare-row {
  display: grid;
  grid-template-columns: 220px 1fr 1fr;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.compare-row:last-child {
  border-bottom: none;
}

.compare-row > div {
  padding: 20px 24px;
  font-size: 15.5px;
}

.compare-row .c-label {
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.compare-row .c-them {
  color: var(--slate);
  border-left: 1px solid var(--border);
}

.compare-row .c-us {
  border-left: 1px solid var(--border);
  background: var(--compare-us-bg);
  color: var(--ink);
  font-weight: 500;
}

.compare-head .c-them,
.compare-head .c-us {
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}

.compare-head .c-us {
  color: var(--link);
}

.compare-quote {
  margin-top: 32px;
  font-size: 19px;
  color: var(--ink);
  font-weight: 500;
  max-width: 62ch;
}

.compare-quote::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  background: var(--mark);
  margin-bottom: 16px;
}

/* ============================================================
   TRAVAUX
   ============================================================ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work-item img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .work-item:hover img {
    transform: translateY(-4px);
  }
}

.work-item figcaption {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--slate);
}

.work-note {
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
}

/* ============================================================
   PROCESSUS - timeline vertical
   ============================================================ */
.steps {
  display: grid;
  gap: 0;
  max-width: 820px;
}

.step {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child {
  border-bottom: none;
}

.step-num {
  font-family: var(--ff-disp);
  font-size: 52px;
  font-weight: var(--disp-weight);
  letter-spacing: var(--disp-track);
  color: var(--mark);
  line-height: 1;
}

.step h3 {
  font-family: var(--ff-body);
  font-size: 21px;
  font-weight: 700;
}

.step p {
  margin-top: 8px;
  color: var(--slate);
  font-size: 16px;
  max-width: 58ch;
}

/* ============================================================
   STUDIO / TRANSPARENCE
   ============================================================ */
.studio-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 56px;
  align-items: start;
}

.studio-text h2 {
  font-family: var(--ff-disp);
  font-size: var(--h2-size);
  font-weight: var(--disp-weight);
  letter-spacing: var(--disp-track);
  line-height: 1.12;
  text-wrap: balance;
}

.studio-text p {
  margin-top: 18px;
  color: var(--slate);
  max-width: 60ch;
}

.studio-facts {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 8px 28px;
}

.studio-facts div {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.studio-facts div:last-child {
  border-bottom: none;
}

.studio-facts dt {
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.studio-facts dd {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 500;
}

/* ============================================================
   BANDA CTA
   ============================================================ */
.cta-band {
  background: var(--dark);
  color: #FFFFFF;
  transition: background-color 0.35s var(--ease-out);
}

.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-band h2 {
  font-family: var(--ff-disp);
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: var(--disp-weight);
  letter-spacing: var(--disp-track);
  line-height: 1.15;
  max-width: 620px;
  text-wrap: balance;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  max-width: 820px;
  border-top: 1px solid var(--border);
}

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

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  text-align: left;
  font-family: var(--ff-body);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.faq-q .chev {
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--slate);
  border-bottom: 2px solid var(--slate);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease-out);
}

.faq-q[aria-expanded="true"] .chev {
  transform: rotate(225deg);
}

.faq-a {
  display: none;
  padding: 0 4px 24px;
  color: var(--slate);
  max-width: 68ch;
}

.faq-a.open {
  display: block;
}

.faq-a p + p {
  margin-top: 12px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 56px;
  align-items: start;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 700;
}

.form-field label .opt {
  font-weight: 400;
  color: var(--muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: 13px 14px;
  width: 100%;
  transition: border-color 0.25s var(--ease-out);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 15%, transparent);
}

.form-field.invalid input,
.form-field.invalid select,
.form-field.invalid textarea {
  border-color: var(--invalid);
}

.form-privacy {
  grid-column: 1 / -1;
  font-size: 13.5px;
  color: var(--muted);
}

.form-submit {
  grid-column: 1 / -1;
}

.form-error {
  grid-column: 1 / -1;
  display: none;
  font-size: 15px;
  color: var(--invalid);
}

.form-error.visible {
  display: block;
}

/* Honeypot */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-success {
  display: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 32px;
}

.form-success::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  background: var(--mark);
  margin-bottom: 18px;
}

.form-success.visible {
  display: block;
}

.form-success h3 {
  font-family: var(--ff-body);
  font-size: 22px;
  font-weight: 700;
}

.form-success p {
  margin-top: 10px;
  color: var(--slate);
}

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

.shake {
  animation: ch-shake 0.3s ease-in-out 2;
}

/* Canales */
.contact-channels {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 8px 28px;
}

.contact-channels > div {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.contact-channels > div:last-child {
  border-bottom: none;
}

.contact-channels h3 {
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-channels a,
.contact-channels p {
  display: inline-block;
  margin-top: 6px;
  font-size: 16.5px;
  font-weight: 500;
}

.contact-channels p {
  color: var(--slate);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  color: var(--dark-ink);
  padding-block: 64px 40px;
  transition: background-color 0.35s var(--ease-out);
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  height: 30px;
  width: auto;
}

.footer-logo-text {
  font-family: var(--ff-disp);
  font-size: 21px;
  font-weight: 700;
  color: #FFFFFF;
}

.footer-logo-text span {
  color: var(--dark-flag);
}

.footer-brand > p {
  margin-top: 14px;
  font-size: 15px;
  max-width: 40ch;
}

.footer h3 {
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-ink-soft);
  margin-bottom: 16px;
}

.footer ul {
  display: grid;
  gap: 10px;
}

.footer a {
  color: var(--dark-ink);
  font-size: 15px;
}

.footer a:hover {
  color: #FFFFFF;
}

.footer .lang-switch {
  margin-top: 20px;
  border-color: var(--dark-border);
  display: inline-flex;
}

.footer .lang-switch a {
  color: var(--dark-ink-soft);
  font-size: 12.5px;
}

.footer .lang-switch a:hover {
  color: #FFFFFF;
}

.footer .lang-switch a[aria-current="true"] {
  background: #FFFFFF;
  color: var(--dark);
}

.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--dark-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: var(--dark-ink-soft);
}

.footer-bottom a {
  color: var(--dark-ink);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 768px) {
  .section {
    padding-block: 104px;
  }

  .hero {
    padding-top: 140px;
    padding-bottom: 96px;
  }
}

@media (max-width: 1000px) {
  .hero {
    min-height: 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-sub {
    max-width: 58ch;
  }

  .browser-frame {
    transform: none;
    max-width: 560px;
  }

  .hero-stats {
    max-width: 560px;
  }
}

@media (max-width: 1024px) {
  .compare-row {
    grid-template-columns: 170px 1fr 1fr;
  }
}

@media (max-width: 1000px) {
  .studio-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .work-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
}

@media (max-width: 768px) {
  .compare-row {
    grid-template-columns: 1fr;
  }

  .compare-row .c-label {
    padding-bottom: 4px;
  }

  .compare-row .c-them,
  .compare-row .c-us {
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .compare-head {
    display: none;
  }

  .compare-row .c-them::before {
    content: attr(data-col-them);
    display: block;
    font-family: var(--ff-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
  }

  .compare-row .c-us::before {
    content: attr(data-col-us);
    display: block;
    font-family: var(--ff-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--link);
    margin-bottom: 4px;
  }

  .maint-body ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .props-grid {
    grid-template-columns: 1fr;
  }

  .prop {
    padding: 28px 24px;
  }

  .step {
    grid-template-columns: 64px 1fr;
    gap: 20px;
  }

  .step-num {
    font-size: 38px;
  }

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

  .hero-ctas .hero-cta-main {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .cta-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .theme-switch {
    right: 12px;
    bottom: 12px;
    font-size: 12.5px;
    padding: 7px 14px;
  }
}
