/* ============================================
   Centro Médico Psicotécnico Churriana
   Sistema de estilos compartido
   ============================================ */

:root {
  /* Tweakables — sobrescritos por panel de Tweaks */
  --c-primary: #1e5fa8;
  --c-primary-dark: #0f3a6b;
  --c-primary-soft: #e8f1fb;
  --c-accent: #c9322c;
  --c-bg: #eef5fc;
  --c-surface: #dee8f3;
  --c-border: #d9e3ee;
  --c-text: #0e1a2b;
  --c-text-muted: #5a6478;
  --c-text-soft: #8893a6;

  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(14, 26, 43, 0.04), 0 1px 1px rgba(14, 26, 43, 0.03);
  --shadow: 0 4px 16px rgba(14, 26, 43, 0.06), 0 1px 3px rgba(14, 26, 43, 0.04);
  --shadow-lg: 0 18px 50px rgba(14, 26, 43, 0.10), 0 4px 12px rgba(14, 26, 43, 0.05);

  --container-w: 1180px;
  --gutter: clamp(20px, 4vw, 48px);

  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-size-base: 17px;
  --leading: 1.6;

  --section-pad-y: clamp(64px, 9vw, 112px);
}

/* Dark mode tweak */
:root.dark {
  --c-primary: #5fa0e6;
  --c-primary-dark: #8fc1f0;
  --c-primary-soft: #15243a;
  --c-accent: #f06560;
  --c-bg: #0c1320;
  --c-surface: #131c2c;
  --c-border: #233246;
  --c-text: #eaf0fa;
  --c-text-muted: #9aa7bc;
  --c-text-soft: #6f7d93;
}

/* Style variants */
:root.style-modern {
  --radius: 20px;
  --radius-lg: 32px;
}

:root.style-editorial {
  --radius: 4px;
  --radius-lg: 4px;
  --font-size-base: 18px;
}

/* Density */
:root.dense {
  --section-pad-y: clamp(40px, 6vw, 72px);
}

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--leading);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--c-primary-dark); }

button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  color: var(--c-text);
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

:root.style-editorial h1,
:root.style-editorial h2 {
  font-weight: 600;
  letter-spacing: -0.025em;
}

/* ========== Layout ========== */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

section {
  padding-block: var(--section-pad-y);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1.5px;
  background: var(--c-primary);
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
}

.section-lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--c-text-muted);
  max-width: 64ch;
  margin-bottom: 48px;
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(238, 245, 252, 0.88);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--c-border);
}

:root.dark .site-header {
  background: rgba(12, 19, 32, 0.85);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 0;
}

.brand__mark {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover .brand__mark {
  transform: rotate(-12deg) scale(1.05);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  min-width: 0;
  gap: 3px;
}

.brand__eyebrow {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 22px;
  font-weight: 700;
  color: var(--c-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.0;
}

.brand__eyebrow > span { display: block; }

.brand__name {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--c-text);
  line-height: 1.05;
  margin-top: 4px;
}

.brand { min-width: 0; }

/* ========== Phone display in header ========== */
.phone-display {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px 12px 14px;
  background: var(--c-primary-soft);
  border: 1px solid transparent;
  border-radius: 14px;
  text-decoration: none;
  color: var(--c-text);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s ease,
              background 0.2s ease,
              border-color 0.2s ease;
}

.phone-display:hover {
  background: var(--c-bg);
  border-color: var(--c-primary);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -12px rgba(30, 95, 168, 0.30);
  color: var(--c-text);
}

.phone-display__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--c-primary);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 10px -2px rgba(30, 95, 168, 0.35);
}

.phone-display__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 2px;
}

.phone-display__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}

.phone-display__num {
  font-size: 22px;
  font-weight: 800;
  color: var(--c-primary-dark);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1024px) {
  .phone-display { padding: 10px 18px 10px 12px; }
  .phone-display__icon { width: 40px; height: 40px; }
  .phone-display__num { font-size: 19px; }
  .phone-display__label { font-size: 10px; }
}

@media (max-width: 720px) {
  .phone-display { padding: 10px; border-radius: 12px; }
  .phone-display__text { display: none; }
  .phone-display__icon { width: 40px; height: 40px; }
}

/* Hide the prominent phone-display when really tight — hamburger handles it */
@media (max-width: 520px) {
  .phone-display { display: none; }
}

@media (max-width: 1100px) {
  .brand__mark { width: 80px; height: 80px; }
  .brand__name { font-size: 26px; }
  .brand__eyebrow { font-size: 18px; letter-spacing: 0.05em; }
}

@media (max-width: 820px) {
  .brand__mark { width: 64px; height: 64px; }
  .brand__name { font-size: 21px; }
  .brand__eyebrow { font-size: 14px; letter-spacing: 0.04em; gap: 1px; }
}

@media (max-width: 540px) {
  .brand__mark { width: 56px; height: 56px; }
  .brand__name { font-size: 17px; margin-top: 3px; }
  .brand__eyebrow { font-size: 11px; letter-spacing: 0.04em; }
}

/* legacy class kept for legal pages — same look as brand__eyebrow */
.brand__sub {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.nav__link {
  color: var(--c-text-muted);
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.nav__link:hover { color: var(--c-text); background: var(--c-surface); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 1280px) {
  .nav { display: none; }
}

/* Hide secondary header CTA when space is tight, keep only "Pedir cita" */
@media (max-width: 1100px) {
  .header-cta .btn--ghost { display: none; }
}

/* ========== Mobile hamburger + drawer ========== */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--c-border);
  background: var(--c-bg);
  color: var(--c-text);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: var(--c-primary-soft);
  border-color: var(--c-primary);
}

.nav-toggle__bars {
  position: relative;
  width: 22px;
  height: 16px;
  display: block;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after,
.nav-toggle__bars span {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.32s cubic-bezier(0.6, 0.0, 0.2, 1),
              opacity 0.2s ease,
              top 0.32s cubic-bezier(0.6, 0.0, 0.2, 1);
}

.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars span { top: 7px; }
.nav-toggle__bars::after { top: 14px; }

body.nav-open .nav-toggle__bars::before { top: 7px; transform: rotate(45deg); }
body.nav-open .nav-toggle__bars span { opacity: 0; }
body.nav-open .nav-toggle__bars::after { top: 7px; transform: rotate(-45deg); }

/* Show hamburger when desktop nav is hidden */
@media (max-width: 1280px) {
  .nav-toggle { display: inline-flex; }
}

/* Mobile drawer overlay */
.nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 26, 43, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 70;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 88vw);
  background: var(--c-bg);
  z-index: 80;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0.0, 0.2, 1);
  box-shadow: -10px 0 40px rgba(14, 26, 43, 0.18);
  overscroll-behavior: contain;
}

body.nav-open .nav-drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.nav-open .nav-drawer {
  transform: translateX(0);
}

.nav-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--c-border);
}

.nav-drawer__title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}

.nav-drawer__close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--c-border);
  background: var(--c-bg);
  color: var(--c-text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.nav-drawer__close:hover { background: var(--c-surface); }

.nav-drawer__list {
  display: flex;
  flex-direction: column;
  padding: 12px 12px;
  gap: 2px;
  overflow-y: auto;
  flex: 1;
}

.nav-drawer__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-drawer__link:hover { background: var(--c-surface); color: var(--c-primary); }
.nav-drawer__link--active { background: var(--c-primary-soft); color: var(--c-primary-dark); }

.nav-drawer__link svg { color: var(--c-primary); flex-shrink: 0; }

.nav-drawer__foot {
  padding: 16px 20px 24px;
  border-top: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-drawer__phone {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--c-primary-soft);
  text-decoration: none;
}

.nav-drawer__phone-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--c-primary);
  color: #fff;
  flex-shrink: 0;
}

.nav-drawer__phone-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}

.nav-drawer__phone-num {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--c-primary-dark);
  font-variant-numeric: tabular-nums;
}

.nav-drawer__wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.18s ease;
}
.nav-drawer__wa:hover { background: #1ebe5a; color: #fff; }

/* Hide drawer entirely when desktop nav is visible */
@media (min-width: 1281px) {
  .nav-drawer, .nav-drawer-backdrop, .nav-toggle { display: none !important; }
}

body.nav-open {
  overflow: hidden;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s ease,
              background 0.2s ease,
              color 0.2s ease,
              border-color 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.btn:hover::before { transform: translateX(100%); }

.btn > * { position: relative; z-index: 1; }

.btn--primary {
  background: var(--c-primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--c-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn--ghost {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-border);
}
.btn--ghost:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}

.btn--wa {
  background: #25d366;
  color: #fff;
}
.btn--wa:hover {
  background: #1ebe5a;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn--sm { padding: 8px 14px; font-size: 13.5px; }

:root.style-editorial .btn { border-radius: 4px; }

/* ========== Hero ========== */
.hero {
  position: relative;
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(48px, 7vw, 96px);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

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

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  background: var(--c-primary-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-primary-dark);
  margin-bottom: 24px;
}

.hero__badge-chip {
  background: var(--c-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.hero__title {
  font-size: clamp(36px, 5.5vw, 60px);
  margin-bottom: 22px;
}

:root.style-modern .hero__title { font-weight: 800; }

.hero__title em {
  color: var(--c-primary);
  font-style: normal;
}

.hero__lede {
  font-size: clamp(17px, 1.7vw, 20px);
  color: var(--c-text-muted);
  margin-bottom: 32px;
  max-width: 56ch;
}

.hero__lede strong {
  color: var(--c-text);
  font-weight: 700;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--c-border);
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--c-text-muted);
}

.hero__trust-item svg {
  flex-shrink: 0;
  color: var(--c-primary);
}

/* Hero visual / featured card */
.hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ========== Hours card (compact, sits above feature card) ========== */
.hours-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
}

.hours-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-border);
}

.hours-card__icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  flex-shrink: 0;
}

.hours-card__label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text);
  flex: 1;
}

.hours-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef0f2;
  color: var(--c-text-muted);
  letter-spacing: 0;
  text-transform: none;
}

.hours-card__status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.hours-card__status.is-open {
  background: #e2f5ea;
  color: #1b8049;
}

.hours-card__status.is-closed {
  background: #fdecea;
  color: #b3261e;
}

.hours-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  font-size: 14.5px;
}

.hours-row__day {
  font-weight: 600;
  color: var(--c-text);
}

.hours-row__time {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--c-text);
  font-weight: 500;
  line-height: 1.4;
}

.hours-row--closed .hours-row__day,
.hours-row--closed .hours-row__time {
  color: var(--c-text-muted);
}

.feature-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle at top right, var(--c-primary-soft), transparent 70%);
  pointer-events: none;
}

.feature-card__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 14px;
}

.feature-card__title {
  font-size: clamp(22px, 2.6vw, 28px);
  margin-bottom: 8px;
  line-height: 1.2;
}

.feature-card__desc {
  color: var(--c-text-muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.feature-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 24px;
  padding-block: 18px;
  border-block: 1px solid var(--c-border);
}

.feature-card__price-amount {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--c-text);
  line-height: 1;
}

.feature-card__price-currency {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-text);
}

.feature-card__price-note {
  font-size: 13px;
  color: var(--c-text-muted);
  margin-left: auto;
  max-width: 14ch;
  text-align: right;
  line-height: 1.3;
}

.feature-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-card li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--c-text);
}

.feature-card li::before {
  content: "";
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 3px;
  background: var(--c-primary);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/contain no-repeat;
}

/* ========== Service grid ========== */
.services {
  background: var(--c-surface);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease;
}

/* sheen highlight that sweeps across on hover */
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 60%,
    transparent 100%);
  background-size: 220% 220%;
  background-position: 100% 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, background-position 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
  mix-blend-mode: overlay;
}

.service-card > * { position: relative; z-index: 2; }

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -18px rgba(30, 95, 168, 0.28), 0 4px 12px rgba(14, 26, 43, 0.05);
  border-color: var(--c-primary);
}

.service-card:hover::after {
  opacity: 1;
  background-position: 0% 0%;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
}

.service-card:hover .service-card__icon {
  transform: scale(1.08) rotate(-4deg);
  background: var(--c-primary);
  color: #fff;
}

.service-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.service-card p {
  color: var(--c-text-muted);
  font-size: 14.5px;
  margin-bottom: 16px;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--c-surface);
  color: var(--c-text-muted);
  border: 1px solid var(--c-border);
}

.service-card .tag { background: var(--c-primary-soft); color: var(--c-primary-dark); border-color: transparent; }

/* ========== Tarifas ========== */
.tarifas__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.tarifa {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease;
}

.tarifa:hover {
  transform: translateY(-6px);
  border-color: var(--c-primary);
  box-shadow: 0 26px 50px -22px rgba(30, 95, 168, 0.30), 0 4px 14px rgba(14, 26, 43, 0.06);
}

.tarifa--featured {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 1px var(--c-primary), var(--shadow);
}

.tarifa--featured:hover {
  box-shadow: 0 0 0 1px var(--c-primary), 0 26px 50px -22px rgba(30, 95, 168, 0.35), 0 4px 14px rgba(14, 26, 43, 0.08);
}

.tarifa__flag {
  position: absolute;
  top: -10px;
  left: 28px;
  background: var(--c-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}

.tarifa__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.tarifa__sub {
  font-size: 14px;
  color: var(--c-text-muted);
  margin-bottom: 24px;
  min-height: 2.6em;
}

.tarifa__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
}

.tarifa__price-num {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--c-text);
  line-height: 1;
}
.tarifa__price-cur {
  font-size: 24px;
  font-weight: 700;
  color: var(--c-text);
}

.tarifa__includes {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  font-size: 14.5px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.tarifa__includes li {
  display: flex;
  gap: 10px;
  color: var(--c-text);
}

.tarifa__includes li::before {
  content: "";
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 4px;
  background: var(--c-primary);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/contain no-repeat;
}

/* ========== Proceso ========== */
.proceso {
  background: var(--c-surface);
}

.proceso__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -18px rgba(30, 95, 168, 0.22);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--c-primary);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step:hover .step__num {
  transform: scale(1.12);
}

.step h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.step p {
  color: var(--c-text-muted);
  font-size: 14.5px;
}

/* ========== Documentación ========== */
.docs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.doc-card {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--c-bg);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease;
}

.doc-card:hover {
  transform: translateY(-3px);
  border-color: var(--c-primary);
  box-shadow: 0 18px 36px -18px rgba(30, 95, 168, 0.22), 0 3px 10px rgba(14, 26, 43, 0.04);
}

.doc-card h3 {
  font-size: 16px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.doc-card h3 svg { color: var(--c-primary); flex-shrink: 0; }

.doc-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14.5px;
  color: var(--c-text);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-card li {
  display: flex;
  gap: 10px;
}

.doc-card li::before {
  content: "→";
  color: var(--c-primary);
  font-weight: 700;
}

/* ========== Ubicación / parking ========== */
.ubicacion__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.info-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-row {
  display: flex;
  gap: 16px;
}

.info-row__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  display: grid;
  place-items: center;
}

.info-row__label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 4px;
}

.info-row__value {
  font-size: 16px;
  color: var(--c-text);
  font-weight: 500;
  line-height: 1.4;
}

.info-row__value a { color: inherit; border-bottom: 1px solid var(--c-border); }
.info-row__value a:hover { color: var(--c-primary); border-bottom-color: var(--c-primary); }

.horario-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 18px;
  font-size: 14.5px;
}

.horario-grid dt {
  color: var(--c-text-muted);
  font-weight: 500;
}
.horario-grid dd {
  color: var(--c-text);
  margin: 0;
  font-weight: 500;
}

.map-embed {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-border);
  aspect-ratio: 1 / 1.05;
  min-height: 360px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Parking section */
.parking {
  background: var(--c-surface);
}

.parking__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: center;
}

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

.parking__copy h2 { margin-bottom: 14px; }
.parking__copy p {
  color: var(--c-text-muted);
  font-size: 17px;
  margin-bottom: 24px;
}

.parking__highlight {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
}

.parking__link {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}

.parking__link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.parking__link img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.parking__link:hover img { transform: scale(1.03); }

.parking__overlay {
  position: absolute;
  inset: auto 14px 14px 14px;
  background: rgba(255,255,255, 0.96);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--c-text);
  border: 1px solid rgba(255,255,255,0.5);
}

.parking__overlay strong { color: var(--c-primary-dark); }

.parking__overlay svg {
  margin-left: auto;
  color: var(--c-primary);
  flex-shrink: 0;
}

/* ========== Contacto CTA ========== */
.contacto {
  padding-block: clamp(56px, 8vw, 96px);
}

.contacto__card {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.contacto__card::before {
  content: "";
  position: absolute;
  top: -50%; right: -10%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.10), transparent 60%);
  pointer-events: none;
}

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

.contacto__card h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 14px;
}

.contacto__card p {
  color: rgba(255,255,255,0.82);
  font-size: 17px;
  max-width: 44ch;
}

.contacto__phones {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.phone-pill {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: rgba(255,255,255, 0.10);
  border: 1px solid rgba(255,255,255, 0.18);
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  transition: background 0.18s, transform 0.18s;
  backdrop-filter: blur(6px);
}
.phone-pill:hover {
  background: rgba(255,255,255, 0.18);
  color: #fff;
  transform: translateY(-1px);
}

.phone-pill__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(255,255,255, 0.12);
  border-radius: 12px;
  flex-shrink: 0;
}

.phone-pill__icon--wa { background: #25d366; }

.phone-pill__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.phone-pill__num {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--c-text);
  color: rgba(255,255,255,0.7);
  padding-block: 56px 32px;
}

:root.dark .site-footer { background: #060a13; }

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

@media (max-width: 720px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__col:first-child { grid-column: span 2; }
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer__brand-name {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.footer__desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  max-width: 36ch;
}

.footer__title {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer__list a {
  color: rgba(255,255,255,0.7);
}
.footer__list a:hover { color: #fff; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.10);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
}

.footer__bottom a { color: rgba(255,255,255,0.7); }
.footer__bottom a:hover { color: #fff; }

/* ========== Floating WhatsApp ========== */
.fab-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 4px 8px rgba(0,0,0,0.1);
  z-index: 40;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: wa-pulse 2.4s ease-in-out infinite;
}
.fab-wa:hover {
  transform: scale(1.08);
  color: #fff;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.55);
}

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 4px 8px rgba(0,0,0,0.1), 0 0 0 0 rgba(37,211,102,0.5); }
  50% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 4px 8px rgba(0,0,0,0.1), 0 0 0 14px rgba(37,211,102,0); }
}

/* ========== Cookie banner ========== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 100px;
  max-width: 520px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  z-index: 60;
  display: none;
}
.cookie-banner.show { display: block; }

.cookie-banner__title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--c-text);
}
.cookie-banner__text {
  font-size: 13.5px;
  color: var(--c-text-muted);
  margin-bottom: 14px;
}
.cookie-banner__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 540px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 96px; padding: 16px; }
}

/* ========== Legal pages ========== */
.legal {
  max-width: 760px;
  margin-inline: auto;
  padding-block: clamp(48px, 7vw, 88px);
}

.legal h1 {
  font-size: clamp(32px, 4.4vw, 48px);
  margin-bottom: 12px;
}

.legal__date {
  color: var(--c-text-muted);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 22px;
  margin: 40px 0 12px;
  color: var(--c-text);
}

.legal h3 {
  font-size: 17px;
  margin: 24px 0 8px;
  color: var(--c-text);
}

.legal p, .legal li {
  color: var(--c-text-muted);
  margin-bottom: 14px;
  line-height: 1.7;
  font-size: 16px;
}

.legal ul {
  margin: 0 0 18px 22px;
  padding: 0;
}

.legal a { color: var(--c-primary); border-bottom: 1px solid var(--c-primary-soft); }
.legal a:hover { border-bottom-color: var(--c-primary); }

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}
.legal-back:hover { color: var(--c-primary); }

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 14.5px;
}

.legal th, .legal td {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--c-border);
  color: var(--c-text);
  font-weight: 500;
}

.legal th {
  background: var(--c-surface);
  font-weight: 700;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Print friendly */
@media print {
  .site-header, .site-footer, .fab-wa, .cookie-banner, .tweaks-panel { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ========== Inner page header (precios, ubicacion, etc.) ========== */
.page-hero {
  padding-block: clamp(48px, 7vw, 88px) clamp(28px, 4vw, 48px);
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}

.page-hero__inner {
  max-width: 760px;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  margin-bottom: 14px;
  letter-spacing: -0.025em;
}

.page-hero p {
  font-size: clamp(17px, 1.7vw, 20px);
  color: var(--c-text-muted);
  max-width: 60ch;
}

/* Active nav link */
.nav__link--active {
  color: var(--c-primary-dark);
  background: var(--c-primary-soft);
}
:root.dark .nav__link--active { color: #fff; background: var(--c-primary-soft); }

/* ========== Contact page ========== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  text-decoration: none;
  color: var(--c-text);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease,
              border-color 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--c-primary);
  box-shadow: 0 18px 36px -18px rgba(30, 95, 168, 0.25);
  color: var(--c-text);
}

.contact-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}

.contact-card--wa .contact-card__icon { background: #e8faf0; color: #1ebe5a; }
.contact-card--wa:hover { border-color: #25d366; box-shadow: 0 18px 36px -18px rgba(37,211,102,0.30); }

.contact-card__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}

.contact-card__value {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--c-text);
}

.contact-card__hint {
  font-size: 13.5px;
  color: var(--c-text-muted);
}
