/* ═══════════════════════════════════════════════
   SICKTECH — shared.css  v2.0
   Fuente: Syne (display) + DM Sans (body)
═══════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

/* ── TOKENS: LIGHT ── */
:root {
  --blue-main: #2563EB;
  --blue-deep: #1D4ED8;
  --blue-dark: #1E3A8A;
  --blue-night: #0F172A;
  --blue-pale: #EFF6FF;
  --blue-light: #DBEAFE;

  --bg: #F9FAFB;
  --bg-card: #FFFFFF;
  --bg-section: #FFFFFF;
  --bg-hover: #F3F4F6;

  --border: #E5E7EB;
  --border-hover: #D1D5DB;

  --text: #111827;
  --text-muted: #6B7280;
  --text-subtle: #9CA3AF;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .08);
  --shadow-lg: 0 12px 40px rgba(37, 99, 235, .12);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;

  --top-bar-h: 38px;
  --nav-h: 64px;
  --total-top: calc(var(--top-bar-h) + var(--nav-h));

  --transition: all .28s cubic-bezier(.4, 0, .2, 1);
  --green-wa: #25D366;
}

/* ── TOKENS: DARK ── */
[data-theme="dark"] {
  --bg: #0F172A;
  --bg-card: #1E293B;
  --bg-section: #1E293B;
  --bg-hover: #334155;

  --border: #334155;
  --border-hover: #475569;

  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --text-subtle: #64748B;

  --blue-pale: #1E3A8A22;
  --blue-light: #1E3A8A55;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .5);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--total-top);
  overflow-x: hidden;
  transition: background .3s, color .3s;
}

h1,
h2,
h3,
h4,
h5,
.font-display {
  font-family: 'Syne', sans-serif;
}

a {
  text-decoration: none;
}

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

/* ══════════════════════════════════
   TOP BAR (promo strip)
══════════════════════════════════ */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  height: var(--top-bar-h);
  background: linear-gradient(90deg, var(--blue-dark), var(--blue-main));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 0 1rem;
  overflow: hidden;
}

/* ── Compatibilidad con la barra de admin de WordPress ──
   Cuando el usuario está logueado, WP añade `.admin-bar` al <body>
   y muestra una barra fija de 32px (escritorio) o 46px (móvil < 783px)
   en top:0. Empujamos el top-bar y la nav debajo. */
body.admin-bar .top-bar { top: 32px; }
body.admin-bar .nav-wrapper { top: calc(var(--top-bar-h) + 32px); }
body.admin-bar.no-topbar .nav-wrapper { top: 32px; }
body.admin-bar .mobile-menu { top: calc(var(--top-bar-h) + 32px); }
@media (max-width: 782px) {
  body.admin-bar .top-bar { top: 46px; }
  body.admin-bar .nav-wrapper { top: calc(var(--top-bar-h) + 46px); }
  body.admin-bar.no-topbar .nav-wrapper { top: 46px; }
  body.admin-bar .mobile-menu { top: calc(var(--top-bar-h) + 46px); }
}
@media (max-width: 600px) {
  body.admin-bar .top-bar,
  body.admin-bar .nav-wrapper,
  body.admin-bar .mobile-menu { /* La WP admin bar se oculta automáticamente con el scroll en <600px, pero la respetamos arriba */ }
}

.top-bar p {
  color: #fff;
  font-size: .78rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-bar a {
  color: #93C5FD;
  font-weight: 700;
  font-size: .78rem;
  white-space: nowrap;
}

.top-bar a:hover {
  color: #fff;
}

.top-bar-close {
  margin-left: auto;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, .7);
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 4px;
  transition: color .2s;
}

.top-bar-close:hover {
  color: #fff;
}

.top-bar-close svg {
  width: 16px;
  height: 16px;
}

/* when top-bar is hidden */
body.no-topbar {
  padding-top: var(--nav-h);
}

body.no-topbar .top-bar {
  display: none;
}

body.no-topbar .nav-wrapper {
  top: 0;
}

/* ══════════════════════════════════
   NAV
══════════════════════════════════ */
.nav-wrapper {
  position: fixed;
  top: var(--top-bar-h);
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(249, 250, 251, 0.93);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s, background .3s;
}

[data-theme="dark"] .nav-wrapper {
  background: rgba(15, 23, 42, 0.93);
}

.nav-wrapper.scrolled {
  box-shadow: 0 2px 20px rgba(37, 99, 235, .09);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-main));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-mark svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.logo-text {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
}

.logo-text span {
  color: var(--blue-main);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
}

.nav-links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue-main);
  background: var(--blue-pale);
}

.nav-cta {
  background: var(--blue-main) !important;
  color: #fff !important;
  padding: 8px 16px !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, .3);
}

.nav-cta:hover {
  background: var(--blue-deep) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, .4) !important;
}

/* ─ DARK TOGGLE ─ */
.dark-toggle {
  flex-shrink: 0;
  width: 40px;
  height: 22px;
  background: var(--border);
  border-radius: 11px;
  border: none;
  cursor: pointer;
  position: relative;
  transition: background .3s;
  margin-left: .25rem;
}

.dark-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform .3s, background .3s;
}

[data-theme="dark"] .dark-toggle {
  background: var(--blue-main);
}

[data-theme="dark"] .dark-toggle::after {
  transform: translateX(18px);
  background: #fff;
}

.toggle-icons {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  pointer-events: none;
}

.toggle-icons svg {
  width: 10px;
  height: 10px;
}

.icon-sun {
  color: #F59E0B;
}

.icon-moon {
  color: #93C5FD;
}

/* ─ HAMBURGER ─ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  transition: background .2s;
}

.hamburger:hover {
  background: var(--bg-hover);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─ MOBILE MENU ─ */
.mobile-menu {
  position: fixed;
  top: var(--total-top);
  left: 0;
  right: 0;
  z-index: 199;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 1rem 1.5rem 1.5rem;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1), opacity .3s;
  pointer-events: none;
  max-height: calc(100vh - var(--total-top));
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

body.no-topbar .mobile-menu {
  top: var(--nav-h);
}

.mobile-menu a {
  display: block;
  padding: .75rem .5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}

.mobile-menu a:last-of-type {
  border-bottom: none;
}

.mobile-menu a:hover {
  color: var(--blue-main);
}

.mobile-menu .mob-cta {
  display: block;
  margin-top: 1rem;
  background: var(--blue-main);
  color: #fff !important;
  text-align: center;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700 !important;
  font-size: .95rem !important;
  border-bottom: none !important;
}

/* ══════════════════════════════════
   PAGE-LEVEL HERO (inner pages)
══════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, #0F172A 0%, var(--blue-dark) 45%, var(--blue-main) 100%);
  padding: 5rem 1.5rem 3.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.04em;
  color: #fff;
  line-height: 1.1;
  margin-bottom: .75rem;
}

.page-hero p {
  color: rgba(255, 255, 255, .7);
  font-size: 1.05rem;
  max-width: 540px;
  line-height: 1.7;
}

.breadcrumb {
  display: flex;
  gap: .4rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.breadcrumb a,
.breadcrumb span {
  font-size: .8rem;
  color: rgba(255, 255, 255, .5);
}

.breadcrumb a:hover {
  color: rgba(255, 255, 255, .85);
}

.breadcrumb .sep {
  color: rgba(255, 255, 255, .25);
}

/* ══════════════════════════════════
   FRONTPAGE HERO SECTION
══════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 45%, #2563EB 80%, #3B82F6 100%);
  padding: 6rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255, 255, 255, .22);
  border: 1.5px solid rgba(255, 255, 255, .45);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 20px;
  margin-bottom: 1.75rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -.04em;
  color: #fff;
  line-height: 1.08;
  max-width: 680px;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: normal;
  color: #93C5FD;
}

.hero-sub {
  color: rgba(255, 255, 255, .72);
  font-size: 1.05rem;
  line-height: 1.78;
  max-width: 520px;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}

.stat-label {
  font-size: .78rem;
  color: #93C5FD;
  font-weight: 500;
  margin-top: 1px;
}

.stat-div {
  width: 1px;
  background: rgba(255, 255, 255, .18);
}

.svc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: var(--transition);
  display: block;
  text-decoration: none;
}

.svc-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-main);
}

.svc-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.svc-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .45rem;
}

.svc-card p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.svc-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue-main);
}

.svc-link svg {
  width: 14px;
  height: 14px;
  transition: transform .2s;
}

.svc-card:hover .svc-link svg {
  transform: translateX(4px);
}

/* ══════════════════════════════════
   SECTION HELPERS
══════════════════════════════════ */
.section {
  padding-top: 5rem;
  padding-right: 1.5rem;
  padding-bottom: 5rem;
  padding-left: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-full {
  padding: 5rem 1.5rem;
}

.section-alt {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-alt .section {
  padding-top: 0;
  padding-bottom: 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-main);
  margin-bottom: .75rem;
}

.section-label::before {
  content: '';
  width: 16px;
  height: 2px;
  background: var(--blue-main);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--text);
}

.section-subtitle {
  margin-top: .75rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 540px;
}

/* ══════════════════════════════════
   CARDS
══════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.card:hover .card-icon {
  background: var(--blue-light);
}

.card-icon svg {
  width: 22px;
  height: 22px;
  color: var(--blue-main);
}

/* ══════════════════════════════════
   BUTTONS
══════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-main), var(--blue-dark));
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, .25);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(37, 99, 235, .4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--blue-main);
  border: 1.5px solid var(--blue-main);
}

.btn-outline:hover {
  background: var(--blue-pale);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--blue-main);
  color: var(--blue-main);
}

.btn-white {
  background: #fff;
  color: var(--blue-dark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
}

.btn-sm {
  padding: 7px 14px;
  font-size: .82rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* ══════════════════════════════════
   BADGE
══════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: 20px;
}

.badge-blue {
  background: var(--blue-light);
  color: var(--blue-dark);
}

.badge-green {
  background: #D1FAE5;
  color: #065F46;
}

.badge-amber {
  background: #FEF3C7;
  color: #92400E;
}

.badge-red {
  background: #FEE2E2;
  color: #991B1B;
}

.badge-purple {
  background: #EDE9FE;
  color: #5B21B6;
}

/* ══════════════════════════════════
   FORM
══════════════════════════════════ */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 5px;
}

.form-label .req {
  color: var(--blue-main);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 11px 14px;
  font-family: inherit;
  font-size: .9375rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--blue-main);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-subtle);
}

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

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .875rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.5;
}

.form-checkbox input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--blue-main);
  flex-shrink: 0;
  cursor: pointer;
}

.form-checkbox a {
  color: var(--blue-main);
}

.form-checkbox a:hover {
  text-decoration: underline;
}

/* ── FORM MESSAGES ── */
.form-msg {
  margin-top: 1rem;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  display: none;
}

.form-msg.success {
  background: #D1FAE5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  display: block;
}

.form-msg.error {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
  display: block;
}

/* ══════════════════════════════════
   PRICE TABLE
══════════════════════════════════ */
.price-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.price-table-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1.1rem 1.4rem;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-main));
  color: #fff;
}

.price-table-header svg {
  width: 20px;
  height: 20px;
  fill: rgba(255, 255, 255, .8);
}

.price-table-title {
  font-size: 1rem;
  font-weight: 600;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .95rem 1.4rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
  transition: background .2s;
}

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

.price-row:hover {
  background: var(--blue-pale);
}

.price-name {
  font-size: .9375rem;
  color: var(--text);
  font-weight: 500;
}

.price-detail {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.price-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-dark);
  white-space: nowrap;
  font-family: 'DM Mono', monospace;
}

[data-theme="dark"] .price-value {
  color: #93C5FD;
}

/* ══════════════════════════════════
   INFO BOX
══════════════════════════════════ */
.info-box {
  background: var(--blue-pale);
  border: 1px solid var(--blue-light);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.info-box svg {
  width: 20px;
  height: 20px;
  color: var(--blue-main);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-box p {
  font-size: .9rem;
  color: var(--blue-dark);
  line-height: 1.6;
}

[data-theme="dark"] .info-box p {
  color: #93C5FD;
}

/* ══════════════════════════════════
   PRODUCT CARD (Reparaciones)
══════════════════════════════════ */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-main);
}

.product-img-wrap {
  position: relative;
  background: linear-gradient(145deg, #EFF6FF, #DBEAFE);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

[data-theme="dark"] .product-img-wrap {
  background: linear-gradient(145deg, #1E3A8A22, #1E3A8A44);
}

.product-img-wrap img {
  height: 130px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .15));
}

.product-label {
  position: absolute;
  top: 10px;
  left: 10px;
}

.product-body {
  padding: 1.25rem 1.25rem .75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-model {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .35rem;
}

.product-desc {
  font-size: .83rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
}

.product-price {
  font-family: 'DM Mono', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-dark);
}

[data-theme="dark"] .product-price {
  color: #93C5FD;
}

.product-price small {
  font-size: .75rem;
  font-weight: 400;
  color: var(--text-muted);
  display: block;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 1px;
}

/* ── GRID DE PRODUCTOS (Reparaciones) ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/*
 * Los grids de reparaciones.html usan style="display:grid;gap:1.5rem" inline.
 * Usamos !important para sobreescribirlos sin tocar el HTML.
 */
.tab-panel>div[style*="display:grid"] {
  gap: 25px !important;
  grid-template-columns: repeat(auto-fill, 220px) !important;
  justify-content: center !important;
  max-width: 1000px;
  margin: 0 auto;
}

/* ── IMAGEN: dimensiones estandarizadas ── */
.products-grid .product-img-wrap,
.tab-panel .product-img-wrap {
  position: relative;
  width: 90%;
  height: 200px !important;
  background: linear-gradient(145deg, #EFF6FF, #DBEAFE);
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: inset 0 -2px 8px rgba(37, 99, 235, 0.06);
}

[data-theme="dark"] .products-grid .product-img-wrap,
[data-theme="dark"] .tab-panel .product-img-wrap {
  background: linear-gradient(145deg, #1E3A8A22, #1E3A8A44);
}

.products-grid .product-img-wrap img,
.tab-panel .product-img-wrap img {
  width: 220px !important;
  height: 200px !important;
  object-fit: cover;
  border-radius: 0;
  filter: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── HOVER: zoom suave estilo thumbnail ── */
.products-grid .product-card:hover .product-img-wrap img,
.tab-panel .product-card:hover .product-img-wrap img {
  transform: scale(1.05);
}

/* ── SHADOW MEJORADO EN CARD ── */
.products-grid .product-card,
.tab-panel .product-card {
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.products-grid .product-card:hover,
.tab-panel .product-card:hover {
  box-shadow:
    0 12px 40px rgba(37, 99, 235, 0.14),
    0 4px 16px rgba(0, 0, 0, 0.08);
}

/* ══════════════════════════════════
   TABS
══════════════════════════════════ */
.tab-bar {
  display: flex;
  gap: .35rem;
  overflow-x: auto;
  padding-bottom: .25rem;
  scrollbar-width: none;
}

.tab-bar::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex-shrink: 0;
  padding: 7px 16px;
  font-size: .85rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.tab-btn:hover {
  border-color: var(--blue-main);
  color: var(--blue-main);
}

.tab-btn.active {
  background: var(--blue-main);
  border-color: var(--blue-main);
  color: #fff;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ══════════════════════════════════
   REVIEW CARD
══════════════════════════════════ */
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.review-stars {
  color: #F59E0B;
  font-size: 1rem;
  letter-spacing: .05em;
  margin-bottom: .6rem;
}

.review-text {
  font-size: .9rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  color: #fff;
  flex-shrink: 0;
}

.review-name {
  font-weight: 600;
  font-size: .875rem;
  color: var(--text);
}

.review-date {
  font-size: .75rem;
  color: var(--text-subtle);
}

/* ══════════════════════════════════
   LEGAL PAGES
══════════════════════════════════ */
.legal-section {
  padding: 4rem 1.5rem 6rem;
}

.legal-inner {
  max-width: 800px;
  margin: 0 auto;
}

.legal-inner h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin: 2.5rem 0 .65rem;
}

.legal-inner p,
.legal-inner li {
  font-size: .95rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: .55rem;
}

.legal-inner ul {
  padding-left: 1.5rem;
  margin-bottom: .6rem;
}

.legal-inner a {
  color: var(--blue-main);
}

.legal-meta {
  font-size: .8rem;
  color: var(--text-subtle);
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
/* ── FOOTER (responsive light/dark mode) ── */
.site-footer {
  background: #F3F4F6;
  color: #374151;
  padding: 4rem 1.5rem 2rem;
  border-top: 1px solid var(--border);
  transition: background .3s, color .3s;
}
[data-theme="dark"] .site-footer {
  background: #0F172A;
  color: #94A3B8;
  border-top-color: rgba(255,255,255,.06);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
[data-theme="dark"] .footer-top {
  border-bottom-color: rgba(255,255,255,.07);
}

.footer-brand p {
  font-size: .9rem;
  line-height: 1.7;
  color: #4B5563;
  margin-top: .85rem;
  max-width: 270px;
}
[data-theme="dark"] .footer-brand p {
  color: #94A3B8;
}

/* Logo color in footer also adapts */
.site-footer .logo-text {
  color: #111827;
}
[data-theme="dark"] .site-footer .logo-text {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: .6rem;
  margin-top: 1.25rem;
}

.social-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .04);
  border: 1px solid rgba(0, 0, 0, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4B5563;
  font-size: .8rem;
  text-decoration: none;
  transition: var(--transition);
}
[data-theme="dark"] .social-btn {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .1);
  color: #94A3B8;
}

.social-btn:hover {
  background: var(--blue-main);
  color: #fff;
  border-color: var(--blue-main);
}

.footer-col h5 {
  font-family: 'Syne', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
[data-theme="dark"] .footer-col h5 {
  color: #fff;
}

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

.footer-links a {
  font-size: .9rem;
  color: #4B5563;
  text-decoration: none;
  transition: color .2s;
}
[data-theme="dark"] .footer-links a {
  color: #94A3B8;
}

.footer-links a:hover {
  color: var(--blue-main);
}
[data-theme="dark"] .footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: .85rem;
  color: #4B5563;
}
[data-theme="dark"] .footer-bottom p {
  color: #94A3B8;
}

.footer-legal {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: .82rem;
  color: #6B7280;
  text-decoration: none;
  transition: color .2s;
}
[data-theme="dark"] .footer-legal a {
  color: #64748B;
}

.footer-legal a:hover {
  color: var(--blue-main);
}
[data-theme="dark"] .footer-legal a:hover {
  color: #fff;
}

/* ══════════════════════════════════
   WHATSAPP FLOAT
══════════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 150;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--green-wa);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .4);
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
  animation: waPop .45s cubic-bezier(.68, -.55, .265, 1.55) 1.2s both;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(37, 211, 102, .55);
}

.wa-float svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}

@keyframes waPop {
  from {
    opacity: 0;
    transform: scale(0);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ══════════════════════════════════
   COOKIE BANNER
══════════════════════════════════ */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 400;
  background: var(--blue-night);
  color: #CBD5E1;
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .4);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 680px;
  margin: 0 auto;
  left: 0;
  right: 0;
  width: calc(100% - 2rem);
  margin-left: auto;
  margin-right: auto;
  transition: transform .4s, opacity .4s;
}

.cookie-banner.hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

.cookie-banner p {
  font-size: .85rem;
  line-height: 1.55;
  flex: 1;
  min-width: 200px;
}

.cookie-banner a {
  color: #93C5FD;
}

.cookie-banner a:hover {
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.cookie-accept {
  background: var(--blue-main);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.cookie-accept:hover {
  background: var(--blue-deep);
}

.cookie-reject {
  background: transparent;
  color: #94A3B8;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.cookie-reject:hover {
  border-color: #64748B;
  color: #CBD5E1;
}

/* ══════════════════════════════════
   SCROLL ANIMATIONS
══════════════════════════════════ */
/* ══════════════════════════════════
   SCROLL ANIMATIONS
   - Por defecto el contenido es visible (resiliente sin JS).
   - Cuando JS carga correctamente añade `.js` al <html> y entonces
     los elementos se animan al entrar en viewport.
══════════════════════════════════ */
[data-anim] {
  /* Estado por defecto sin JS: visible y normal */
  opacity: 1;
  transform: none;
}

.js [data-anim] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s cubic-bezier(.4, 0, .2, 1), transform .6s cubic-bezier(.4, 0, .2, 1);
}

.js [data-anim="fade"] {
  transform: none;
}

.js [data-anim="left"] {
  transform: translateX(-28px);
}

.js [data-anim="right"] {
  transform: translateX(28px);
}

.js [data-anim="scale"] {
  transform: scale(.94);
}

.js [data-anim].visible {
  opacity: 1;
  transform: none;
}

[data-delay="1"] {
  transition-delay: .1s;
}

[data-delay="2"] {
  transition-delay: .2s;
}

[data-delay="3"] {
  transition-delay: .3s;
}

[data-delay="4"] {
  transition-delay: .4s;
}

[data-delay="5"] {
  transition-delay: .5s;
}

/* ══════════════════════════════════
   GRID HELPERS
══════════════════════════════════ */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

/* ══════════════════════════════════
   MISC
══════════════════════════════════ */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 0 1.5rem;
}

.tag {
  display: inline-block;
  background: var(--blue-pale);
  color: var(--blue-main);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .2rem .65rem;
  border-radius: 20px;
}

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --top-bar-h: 34px;
    --nav-h: 58px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section {
    padding-top: 3.5rem;
    padding-right: 1.25rem;
    padding-bottom: 3.5rem;
    padding-left: 1.25rem;
  }

  .section-full {
    padding: 3.5rem 1.25rem;
  }

  .section-alt {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .section-alt .section {
    padding-top: 0;
    padding-bottom: 0;
  }

  .page-hero {
    padding: 4rem 1.25rem 2.5rem;
  }

  .cookie-banner {
    left: .75rem;
    right: .75rem;
    width: calc(100% - 1.5rem);
    bottom: .75rem;
    padding: 1rem;
  }
}

/* ══════════════════════════════════
   GALERÍA COMPACTA (contenedor-reparaciones)
══════════════════════════════════ */

/* Contenedor compacto */
.contenedor-reparaciones {
  display: grid;
  /* Evita que las imágenes crezcan para rellenar el hueco */
  grid-template-columns: repeat(auto-fit, 220px);
  gap: 25px;
  justify-content: center;
  /* Centra la galería si sobran huecos */
  max-width: 1000px;
  margin: 30px auto;
}

/* Imagen estilo "Thumbnail" (Miniatura) */
.contenedor-reparaciones img {
  width: 220px;
  /* Tamaño fijo más pequeño */
  height: 220px;
  /* Proporción cuadrada 1:1 */
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.contenedor-reparaciones img:hover {
  transform: scale(1.05);
  /* Efecto de zoom suave en vez de subir */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
/* ══════════════════════════════════════════
   FIXES v2.1 — Mobile responsive + nav focus
   ══════════════════════════════════════════ */

/* Fix: nav-cta nunca debe activarse como "active" automáticamente */
.nav-links a.nav-cta.active,
.nav-links a.nav-cta:focus {
  background: var(--blue-main) !important;
  color: #fff !important;
}

/* Fix: quitar el outline persistente que queda tras click 
   (fue el "Inicio se queda azul tras click en Contactar"). 
   Mantenemos visible-focus para teclado. */
.nav-links a:focus {
  outline: none;
}
.nav-links a:focus-visible {
  outline: 2px solid var(--blue-main);
  outline-offset: 2px;
}

/* ── PROMO CARDS: forzar columna en móvil ── */
@media (max-width: 720px) {
  .promo-card-row {
    flex-direction: column !important;
  }
  .promo-card-row > div:first-child {
    min-width: unset !important;
    flex-basis: auto !important;
    width: 100% !important;
    padding: 2rem !important;
    aspect-ratio: 16 / 9;
  }
  .promo-card-row > div:last-child {
    padding: 1.75rem 1.5rem !important;
  }
}

/* ── FIX GENERAL MÓVIL: grids inline rotos en mobile ──
   Cuando un dev usa style="grid-template-columns: 1fr 1fr"
   el inline tiene más prioridad que cualquier media query.
   Para arreglarlo sin tocar todos los inline styles,
   forzamos en móvil con !important sobre la clase .grid-2 */
@media (max-width: 720px) {
  .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

/* ── PRODUCT CARDS: mejor presentación visual ── */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card .product-img-wrap {
  width: 100%;
  height: 220px;
  background: linear-gradient(145deg, #EFF6FF, #DBEAFE);
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
[data-theme="dark"] .product-card .product-img-wrap {
  background: linear-gradient(145deg, #1E293B, #334155);
}
.product-card .product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.04);
}
.product-card .product-label {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}
.product-card .product-body {
  padding: 1.25rem 1.25rem .85rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.product-card .product-model {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -.01em;
}
.product-card .product-desc {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.product-card .product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.product-card .product-price {
  font-family: 'DM Mono', monospace;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--blue-deep);
  white-space: nowrap;
}
[data-theme="dark"] .product-card .product-price {
  color: #93C5FD;
}
.product-card .product-price strong {
  font-weight: 700;
}

/* ── HERO en móvil: textos un poco más pequeños ── */
@media (max-width: 480px) {
  .page-hero h1 {
    font-size: 1.85rem !important;
    line-height: 1.15;
  }
  .page-hero p {
    font-size: .95rem;
  }
  .section-title {
    font-size: 1.6rem !important;
  }
}

/* ── FORM ROW (teléfono/email) en móvil ── */
@media (max-width: 520px) {
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
}

/* ══════════════════════════════════════════════════
   v2.3 — IMÁGENES FAMILIAS + PASO CALIDAD + MOBILE UX
   ══════════════════════════════════════════════════ */

/* ── LOGO con imagen real (sustituye SVG fallback) ── */
.logo-mark {
  position: relative;
  overflow: hidden;
}
.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
/* Si hay <img>, ocultar el SVG fallback */
.logo-mark img + svg,
.logo-mark:has(img) > svg {
  display: none;
}

/* ── TILE con imagen (familias) ── */
.repair-tile .tile-img {
  width: 70px;
  height: 70px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--blue-pale), var(--bg-card));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  z-index: 1;
  border: 1px solid var(--border);
  transition: transform .25s ease;
}
[data-theme="dark"] .repair-tile .tile-img {
  background: linear-gradient(145deg, rgba(37,99,235,.12), var(--bg-card));
}
.repair-tile .tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.repair-tile:hover .tile-img {
  transform: scale(1.06);
}

/* Para que las tarjetas con imagen sean un poco más altas que con emoji */
.repair-tile:has(.tile-img) {
  min-height: 170px;
  padding: 1.4rem 1rem;
}

/* ══════════════════════════════════════════════════
   PASO INTERMEDIO: ELEGIR CALIDAD (Original/Compatible)
   ══════════════════════════════════════════════════ */
.quality-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 720px;
}

.quality-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem 1.4rem;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--text);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.quality-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(37,99,235,.08));
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.quality-card:hover {
  border-color: var(--blue-main);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.quality-card:hover::before { opacity: 1; }
.quality-card:focus-visible {
  outline: 3px solid var(--blue-main);
  outline-offset: 3px;
}

.quality-card .q-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: .35rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: 99px;
  position: relative;
  z-index: 1;
}
.q-badge.q-original {
  background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
  color: #1E3A8A;
  border: 1px solid #93C5FD;
}
.q-badge.q-compatible {
  background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
  color: #065F46;
  border: 1px solid #6EE7B7;
}
[data-theme="dark"] .q-badge.q-original {
  background: rgba(37,99,235,.2);
  color: #93C5FD;
  border-color: rgba(147,197,253,.3);
}
[data-theme="dark"] .q-badge.q-compatible {
  background: rgba(34,197,94,.15);
  color: #86efac;
  border-color: rgba(110,231,183,.3);
}

.quality-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.01em;
  position: relative;
  z-index: 1;
  margin: 0;
}
.quality-card p {
  font-size: .88rem;
  line-height: 1.55;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
  margin: 0;
}
.quality-card .q-features {
  list-style: none;
  padding: 0;
  margin: .25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  position: relative;
  z-index: 1;
}
.quality-card .q-features li {
  font-size: .82rem;
  color: var(--text-muted);
  display: flex;
  gap: .45rem;
  align-items: flex-start;
  line-height: 1.5;
}
.quality-card .q-features li::before {
  content: '✓';
  color: var(--blue-main);
  font-weight: 800;
  flex-shrink: 0;
}
.quality-card .q-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--blue-main);
  position: relative;
  z-index: 1;
}
.quality-card .q-cta svg {
  width: 14px; height: 14px;
  transition: transform .2s;
}
.quality-card:hover .q-cta svg {
  transform: translateX(3px);
}

@media (max-width: 540px) {
  .quality-grid {
    grid-template-columns: 1fr;
    gap: .85rem;
  }
  .quality-card {
    padding: 1.4rem 1.15rem;
  }
  .quality-card h3 { font-size: 1.05rem; }
}

/* ══════════════════════════════════════════════════
   MODEL QUALITY TAG (en nivel 3)
   ══════════════════════════════════════════════════ */
.model-quality {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .15rem .5rem;
  border-radius: 99px;
  margin-left: .4rem;
  vertical-align: middle;
}
.model-quality-original {
  background: #DBEAFE;
  color: #1E3A8A;
}
.model-quality-compatible {
  background: #D1FAE5;
  color: #065F46;
}
[data-theme="dark"] .model-quality-original {
  background: rgba(37,99,235,.2);
  color: #93C5FD;
}
[data-theme="dark"] .model-quality-compatible {
  background: rgba(34,197,94,.15);
  color: #86efac;
}

/* ══════════════════════════════════════════════════
   DRILL-DOWN: REPAIR LEVELS
   ══════════════════════════════════════════════════ */

/* ─── Hidden class ─── */
.hidden {
  display: none !important;
}

/* ─── Repair level containers ─── */
.repair-level {
  display: block;
  animation: fadeIn .35s ease-out;
}

.repair-level.hidden {
  display: none !important;
}

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

/* ─── Repair grid (tiles) ─── */
.repair-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1rem;
}

/* ─── Repair tile button ─── */
.repair-tile {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 1.2rem 1rem;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  min-height: 140px;
  justify-content: center;
  opacity: 0;
  animation: slideInUp .35s ease-out forwards;
}

.repair-tile:nth-child(1) { animation-delay: 0s; }
.repair-tile:nth-child(2) { animation-delay: .05s; }
.repair-tile:nth-child(3) { animation-delay: .1s; }
.repair-tile:nth-child(4) { animation-delay: .15s; }
.repair-tile:nth-child(5) { animation-delay: .2s; }
.repair-tile:nth-child(6) { animation-delay: .25s; }
.repair-tile:nth-child(7) { animation-delay: .3s; }
.repair-tile:nth-child(8) { animation-delay: .35s; }

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

.repair-tile:hover {
  border-color: var(--blue-main);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: var(--blue-pale);
}

.repair-tile:focus-visible {
  outline: 3px solid var(--blue-main);
  outline-offset: 2px;
}

/* ─── Tile components ─── */
.tile-icon {
  font-size: 2.2rem;
  display: block;
}

.tile-label {
  font-family: 'Syne', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.tile-from {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── Drill back button ─── */
.drill-back {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .6rem 1rem;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 1.5rem;
}

.drill-back:hover {
  border-color: var(--text-muted);
  background: var(--bg-hover);
  transform: translateX(-2px);
}

.drill-back:focus-visible {
  outline: 2px solid var(--blue-main);
  outline-offset: 2px;
}

.drill-back svg {
  width: 16px;
  height: 16px;
  transition: transform .2s;
}

.drill-back:hover svg {
  transform: translateX(-2px);
}

/* ─── Drill breadcrumb ─── */
.drill-breadcrumb {
  display: flex;
  gap: .65rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  margin-top: 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--blue-pale);
  border: 1px solid var(--blue-light);
  border-radius: 12px;
  font-size: .9rem;
  color: var(--text-muted);
}

[data-theme="dark"] .drill-breadcrumb {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.25);
  color: #94A3B8;
}

.drill-breadcrumb button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 500;
  padding: 2px 4px;
  text-decoration: none;
  transition: color .2s;
  border-radius: 4px;
}

.drill-breadcrumb button:hover {
  color: var(--blue-main);
  background: none;
  text-decoration: none;
}

.drill-breadcrumb button:focus-visible {
  outline: 2px solid var(--blue-main);
  outline-offset: 2px;
  border-radius: 4px;
}

.drill-breadcrumb .sep {
  color: var(--blue-light);
  margin: 0 .15rem;
  font-weight: 400;
}

.drill-breadcrumb .current {
  color: var(--blue-main);
  font-weight: 700;
  padding: 2px 4px;
}

/* ─── Drill title ─── */
.drill-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
  margin: 1rem 0 .5rem;
}

/* ─── Model card (level 3) ─── */
.model-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: var(--transition);
  opacity: 0;
  animation: slideInUp .35s ease-out forwards;
}

.model-card:hover {
  border-color: var(--blue-main);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.model-card:nth-child(1) { animation-delay: 0s; }
.model-card:nth-child(2) { animation-delay: .05s; }
.model-card:nth-child(3) { animation-delay: .1s; }
.model-card:nth-child(4) { animation-delay: .15s; }
.model-card:nth-child(5) { animation-delay: .2s; }
.model-card:nth-child(6) { animation-delay: .25s; }
.model-card:nth-child(7) { animation-delay: .3s; }
.model-card:nth-child(8) { animation-delay: .35s; }
.model-card:nth-child(9) { animation-delay: .4s; }
.model-card:nth-child(10) { animation-delay: .45s; }

.model-card.model-not-found {
  opacity: 1;
  background: var(--blue-pale);
  border-color: var(--blue-light);
}

.model-info {
  flex: 1;
  min-width: 0;
}

.model-name {
  font-family: 'Syne', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.model-detail {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.model-action {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.model-price {
  font-family: 'DM Mono', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-dark);
  white-space: nowrap;
}

[data-theme="dark"] .model-price {
  color: #93C5FD;
}

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

/* ══════════════════════════════════════════════════
   QUICK CONTACT SECTION
   ══════════════════════════════════════════════════ */

.quick-contact {
  background: linear-gradient(135deg, var(--blue-pale), var(--bg-card));
  border: 2px solid var(--blue-light);
  border-radius: 24px;
  padding: 3rem 2rem;
  text-align: center;
}

[data-theme="dark"] .quick-contact {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), var(--bg-card));
  border-color: rgba(37, 99, 235, 0.3);
}

.quick-contact h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
  margin-bottom: 0.75rem;
}

.quick-contact > p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.quick-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.75rem;
  max-width: 700px;
  margin: 0 auto;
}

.quick-contact-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  cursor: pointer;
}

.quick-contact-card:hover {
  border-color: var(--blue-main);
  background: var(--blue-pale);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .quick-contact-card:hover {
  background: rgba(37, 99, 235, 0.15);
}

.quick-contact-card:focus-visible {
  outline: 3px solid var(--blue-main);
  outline-offset: 2px;
}

.qc-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.qc-label {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.qc-value {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

/* ══════════════════════════════════════════════════
   MOBILE STICKY ACTION BAR
   ══════════════════════════════════════════════════ */

.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 160;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  display: none;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .08);
}

@media (max-width: 768px) {
  .mobile-sticky-bar {
    display: flex;
    align-items: stretch;
    padding-bottom: env(safe-area-inset-bottom);
  }
  
  body {
    padding-bottom: calc(56px + env(safe-area-inset-bottom));
  }
}

.mobile-sticky-bar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.75rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  border-right: 1px solid var(--border);
}

.mobile-sticky-bar a:last-child {
  border-right: none;
}

.mobile-sticky-bar a:hover {
  background: var(--bg-hover);
  color: var(--blue-main);
}

.mobile-sticky-bar a:active {
  background: var(--blue-pale);
  color: var(--blue-main);
}

.mobile-sticky-bar svg {
  width: 20px;
  height: 20px;
  color: inherit;
}

.msb-call,
.msb-wa,
.msb-mail {
  text-align: center;
}



/* ══════════════════════════════════════════════════
   MOBILE UX — refinamientos generales
   ══════════════════════════════════════════════════ */
@media (max-width: 540px) {
  /* Tiles más compactas en móvil */
  .repair-grid {
    gap: .75rem;
  }
  .repair-tile {
    min-height: 110px;
    padding: 1rem .55rem;
    border-radius: 14px;
  }
  .repair-tile:has(.tile-img) {
    min-height: 150px;
    padding: 1.15rem .85rem;
  }
  .repair-tile .tile-img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }
  .repair-tile .tile-icon {
    font-size: 1.85rem;
  }
  .repair-tile .tile-label {
    font-size: .85rem;
    line-height: 1.2;
  }
  .repair-tile .tile-from {
    font-size: .7rem;
  }

  /* Drill breadcrumb mejor wrapping */
  .drill-breadcrumb {
    font-size: .82rem;
    gap: .45rem;
    padding: 0.7rem 1rem;
    margin-bottom: 1.25rem;
  }
  
  .drill-breadcrumb button {
    padding: 2px 3px;
  }

  /* Drill title más compacto */
  .drill-title {
    font-size: 1.4rem !important;
    margin-bottom: 0.75rem;
  }

  /* Botón volver táctil */
  .drill-back {
    padding: .55rem .85rem;
    font-size: .82rem;
    min-height: 40px;
  }

  /* Model card mobile: nombre/precio arriba, botón debajo a ancho completo */
  .model-card {
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
    padding: 1rem 1.1rem;
  }
  .model-info { min-width: 0; }
  .model-action {
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: .65rem;
  }
  .model-action .btn {
    flex-shrink: 0;
  }

  /* Section padding más reducido */
  .section { padding: 2.5rem 1rem; }
  .section-full { padding: 2.5rem 1rem; }

  /* Page hero más compacto en móvil */
  .page-hero {
    padding: 3rem 1rem 2.25rem;
  }

  /* Domicilio alert más compacta */
  .domicilio-alert {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  .domicilio-alert .da-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  /* Quick-contact tarjetas grid 1 col */
  .quick-contact {
    padding: 1.75rem 1.25rem;
    border-radius: 18px;
  }
  
  .quick-contact h2 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
  }
  
  .quick-contact > p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  
  .quick-contact-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  
  .quick-contact-card {
    padding: 1.1rem;
    gap: 0.85rem;
  }
  
  .qc-icon {
    font-size: 1.8rem;
  }
  
  .qc-label {
    font-size: 0.75rem;
  }
  
  .qc-value {
    font-size: 0.9rem;
  }
  
  /* Mobile sticky bar adjustments */
  .mobile-sticky-bar {
    height: 56px;
  }
  
  .mobile-sticky-bar a {
    padding: 0.6rem 0.4rem;
    font-size: 0.65rem;
    gap: 0.2rem;
  }
  
  .mobile-sticky-bar svg {
    width: 18px;
    height: 18px;
  }

  /* Form más compacto */
  .form-input, .form-textarea, .form-select {
    padding: 12px 13px;
    font-size: 16px; /* evita zoom de iOS */
  }
  .form-group { margin-bottom: 1rem; }
}

/* iOS zoom prevention: inputs >= 16px */
@media (max-width: 720px) {
  input, textarea, select {
    font-size: 16px !important;
  }
}

/* ══════════════════════════════════════════════════
   FOOTER fix definitivo: marca en footer cambia con tema
   ══════════════════════════════════════════════════ */
.site-footer .footer-brand a.logo .logo-text,
.site-footer .footer-brand .logo-text {
  color: var(--text) !important;
}
[data-theme="dark"] .site-footer .footer-brand a.logo .logo-text,
[data-theme="dark"] .site-footer .footer-brand .logo-text {
  color: #fff !important;
}
.site-footer .footer-brand a.logo .logo-text > span,
.site-footer .footer-brand .logo-text > span {
  color: var(--blue-main) !important;
}
[data-theme="dark"] .site-footer .footer-brand a.logo .logo-text > span,
[data-theme="dark"] .site-footer .footer-brand .logo-text > span {
  color: #60A5FA !important;
}

/* ══════════════════════════════════════════════════
   v2.4 — STEP INDICATOR + STICKY BAR + SOCIAL ICONS
   ══════════════════════════════════════════════════ */

/* ── Eliminar wa-float (sustituido por sticky bar) ── */
.wa-float { display: none !important; }

/* ── DRILL: nuevo step indicator (sustituye breadcrumb) ── */
.drill-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.drill-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: .55rem .9rem;
  border-radius: 10px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.drill-back:hover {
  background: var(--blue-pale);
  border-color: var(--blue-main);
  color: var(--blue-main);
}
.drill-back svg { width: 14px; height: 14px; }

/* Pasos visuales (chip pills) */
.drill-steps {
  display: flex;
  gap: .35rem;
  align-items: center;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}
.drill-step {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .85rem;
  font-size: .78rem;
  font-weight: 600;
  font-family: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 99px;
  white-space: nowrap;
  transition: all .25s ease;
  cursor: default;
}
.drill-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: .68rem;
  font-weight: 700;
  border-radius: 50%;
  background: var(--bg-hover);
  color: var(--text-muted);
}
.drill-step.is-done {
  background: var(--blue-pale);
  border-color: transparent;
  color: var(--blue-deep);
}
[data-theme="dark"] .drill-step.is-done {
  background: rgba(37,99,235,.18);
  color: #93C5FD;
}
.drill-step.is-done .step-num {
  background: #10B981;
  color: #fff;
}
.drill-step.is-done .step-num::before { content: '✓'; }
.drill-step.is-done .step-num span { display: none; }
.drill-step.is-active {
  background: var(--blue-main);
  border-color: var(--blue-main);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,99,235,.25);
}
.drill-step.is-active .step-num {
  background: rgba(255,255,255,.25);
  color: #fff;
}
.drill-step-sep {
  flex-shrink: 0;
  color: var(--border);
  font-size: 1rem;
  user-select: none;
}

@media (max-width: 540px) {
  .drill-header {
    gap: .65rem;
    margin-bottom: 1.25rem;
  }
  .drill-back {
    padding: .5rem .75rem;
    font-size: .8rem;
  }
  .drill-step {
    padding: .35rem .65rem .35rem .35rem;
    font-size: .72rem;
    gap: .3rem;
  }
  .drill-step .step-num {
    width: 16px;
    height: 16px;
    font-size: .65rem;
  }
  .drill-steps {
    gap: .25rem;
  }
}

/* Esconder breadcrumb antiguo si aún existe */
.drill-breadcrumb { display: none; }

/* ── Model card clickable (para batería: paso 3) ── */
.model-card-clickable {
  cursor: pointer;
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-align: left;
  font-family: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.model-card-clickable:hover {
  border-color: var(--blue-main);
  background: var(--blue-pale);
  transform: translateX(4px);
}
[data-theme="dark"] .model-card-clickable:hover {
  background: rgba(37,99,235,.08);
}
.model-card .model-arrow {
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-left: .35rem;
  transition: transform .2s, color .2s;
}
.model-card-clickable:hover .model-arrow {
  color: var(--blue-main);
  transform: translateX(3px);
}

/* ── QUALITY CARDS — refinamiento con precio destacado ── */
.q-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.q-price {
  font-family: 'DM Mono', monospace;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--blue-deep);
  letter-spacing: -.02em;
}
[data-theme="dark"] .q-price { color: #93C5FD; }
.quality-card .q-cta {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .9rem;
  font-weight: 700;
  color: var(--blue-main);
  background: var(--blue-pale);
  padding: .55rem .95rem;
  border-radius: 99px;
  margin: 0;
  transition: var(--transition);
}
[data-theme="dark"] .quality-card .q-cta {
  background: rgba(37,99,235,.18);
}
.quality-card:hover .q-cta {
  background: var(--blue-main);
  color: #fff;
}
.quality-card .q-cta svg {
  width: 14px; height: 14px;
  transition: transform .2s;
}
.quality-card:hover .q-cta svg {
  transform: translateX(2px);
}

/* ══════════════════════════════════════════════════
   MOBILE STICKY BAR — pulido completo
   ══════════════════════════════════════════════════ */
.mobile-sticky-bar {
  display: none;
}

@media (max-width: 720px) {
  .mobile-sticky-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 140;
    padding: .5rem .55rem calc(.5rem + env(safe-area-inset-bottom, 0));
    gap: .45rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px rgba(0,0,0,.08);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
  }
  [data-theme="dark"] .mobile-sticky-bar {
    background: rgba(15,23,42,.94);
    box-shadow: 0 -8px 24px rgba(0,0,0,.4);
  }

  .mobile-sticky-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .65rem .35rem;
    border-radius: 12px;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .15s ease, opacity .15s ease;
    min-height: 46px;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-sticky-bar a:active {
    transform: scale(.96);
    opacity: .85;
  }

  .mobile-sticky-bar .msb-call {
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37,99,235,.35);
  }
  .mobile-sticky-bar .msb-wa {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37,211,102,.35);
  }
  .mobile-sticky-bar .msb-mail {
    background: var(--bg-hover);
    color: var(--text);
    border: 1px solid var(--border);
  }

  .mobile-sticky-bar svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  /* Body padding para que el sticky bar no tape contenido */
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0));
  }

  /* Cuando hay cookie banner abierto, desplazar el sticky bar */
  .cookie-banner:not(.hidden) ~ .mobile-sticky-bar {
    bottom: auto;
    top: -200px;
    visibility: hidden;
  }
}

/* ══════════════════════════════════════════════════
   FOOTER SOCIAL — botones con SVG real
   ══════════════════════════════════════════════════ */
.footer-social {
  display: flex;
  gap: .55rem;
  margin-top: .6rem;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}
[data-theme="dark"] .social-btn {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
}
.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.social-btn.social-ig:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: transparent;
  color: #fff;
}
.social-btn.social-tt:hover {
  background: #000;
  border-color: transparent;
  color: #fff;
}
.social-btn svg {
  width: 18px;
  height: 18px;
}

/* ══════════════════════════════════════════════════
   PROMOCIONES — Ruleta + tarjetas adicionales
   ══════════════════════════════════════════════════ */
.wheel-section {
  background: linear-gradient(135deg, #1E3A8A, #2563EB, #7C3AED);
  border-radius: 24px;
  padding: 3rem 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 3rem;
}
.wheel-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.08), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(255,255,255,.08), transparent 50%);
  pointer-events: none;
}
.wheel-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
}
.wheel-text { color: #fff; }
.wheel-text .badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .35rem .85rem;
  border-radius: 99px;
  margin-bottom: 1rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.wheel-text h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: .85rem;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.wheel-text p {
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.wheel-text ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.wheel-text ul li {
  font-size: .92rem;
  color: rgba(255,255,255,.92);
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  line-height: 1.5;
}
.wheel-text ul li::before {
  content: '✓';
  color: #10B981;
  font-weight: 800;
  flex-shrink: 0;
}

.wheel-stage {
  position: relative;
  width: 320px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  /* Garantiza que ningún hijo desborde la columna asignada */
  min-width: 0;
}
.wheel-pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 26px solid #fff;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.35));
  z-index: 3;
}
.wheel-canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}
#wheelCanvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  box-shadow:
    0 24px 60px rgba(0,0,0,.4),
    0 0 0 6px rgba(255,255,255,.08),
    inset 0 0 0 1px rgba(255,255,255,.15);
  transition: box-shadow .4s ease;
}
#wheelSpin {
  background: #fff;
  color: #1E3A8A;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: .9rem 2rem;
  border: none;
  border-radius: 99px;
  cursor: pointer;
  box-shadow:
    0 6px 20px rgba(0,0,0,.25),
    0 0 0 0 rgba(255,255,255,.5);
  transition: transform .2s ease, box-shadow .3s ease;
  letter-spacing: -.01em;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 2;
}
#wheelSpin:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 32px rgba(0,0,0,.32),
    0 0 0 8px rgba(255,255,255,.12);
}
#wheelSpin:active { transform: translateY(0); }
#wheelSpin:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.wheel-result {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  background: rgba(255,255,255,.18);
  padding: .65rem 1.25rem;
  border-radius: 16px;
  opacity: 0;
  transform: scale(.85);
  transition: opacity .35s, transform .35s cubic-bezier(.34, 1.56, .64, 1);
  text-align: center;
  pointer-events: none;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.35;
  min-height: 2.4em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wheel-result.is-visible {
  opacity: 1;
  transform: scale(1);
  animation: wheelResultPulse 1.6s ease-out;
}
@keyframes wheelResultPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.55); }
  100% { box-shadow: 0 0 0 24px rgba(255,255,255,0); }
}

@media (max-width: 720px) {
  .wheel-section { padding: 2.25rem 1.25rem; }
  .wheel-inner { grid-template-columns: 1fr; gap: 1.75rem; text-align: center; }
  .wheel-text ul { align-items: flex-start; max-width: 320px; margin-left: auto; margin-right: auto; }
  .wheel-stage {
    margin: 0 auto;
    width: min(320px, 100%);
  }
  .wheel-text h2 { font-size: 1.5rem; }
  .wheel-result {
    font-size: .95rem;
    padding: .55rem 1rem;
  }
}

@media (max-width: 380px) {
  .wheel-stage {
    width: min(280px, 100%);
  }
  .wheel-result {
    font-size: .85rem;
    padding: .5rem .85rem;
    line-height: 1.3;
  }
  #wheelSpin {
    font-size: .92rem;
    padding: .8rem 1.6rem;
  }
}

/* Tarjetas servicio extra (Disashop / Digi / Simulador) */
.extra-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.extra-service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem 1.6rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: .85rem;
  position: relative;
  overflow: hidden;
}
.extra-service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gradient-from), var(--gradient-to));
}
.extra-service-card.es-disashop { --gradient-from: #F59E0B; --gradient-to: #EF4444; }
.extra-service-card.es-digi     { --gradient-from: #2563EB; --gradient-to: #7C3AED; }
.extra-service-card.es-sim      { --gradient-from: #10B981; --gradient-to: #2563EB; }

.extra-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.extra-service-card .es-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: .35rem;
}
[data-theme="dark"] .extra-service-card .es-icon {
  background: rgba(37,99,235,.15);
}
.extra-service-card.es-disashop .es-icon { background: linear-gradient(135deg, #FEF3C7, #FED7AA); }
.extra-service-card.es-digi .es-icon     { background: linear-gradient(135deg, #DBEAFE, #DDD6FE); }
.extra-service-card.es-sim .es-icon      { background: linear-gradient(135deg, #D1FAE5, #DBEAFE); }
[data-theme="dark"] .extra-service-card.es-disashop .es-icon { background: rgba(245,158,11,.15); }
[data-theme="dark"] .extra-service-card.es-digi .es-icon     { background: rgba(124,58,237,.15); }
[data-theme="dark"] .extra-service-card.es-sim .es-icon      { background: rgba(16,185,129,.15); }

.extra-service-card h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -.01em;
  margin: 0;
}
.extra-service-card p {
  font-size: .9rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}
.extra-service-card .es-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  border-radius: 99px;
  align-self: flex-start;
}
.extra-service-card.es-disashop .es-tag { background: #FEF3C7; color: #92400E; }
.extra-service-card.es-digi .es-tag     { background: #DBEAFE; color: #1E3A8A; }
.extra-service-card.es-sim .es-tag      { background: #D1FAE5; color: #065F46; }
[data-theme="dark"] .extra-service-card.es-disashop .es-tag { background: rgba(245,158,11,.2); color: #FCD34D; }
[data-theme="dark"] .extra-service-card.es-digi .es-tag     { background: rgba(37,99,235,.2); color: #93C5FD; }
[data-theme="dark"] .extra-service-card.es-sim .es-tag      { background: rgba(16,185,129,.2); color: #6EE7B7; }
