:root {
  --color-bg: #f6f7fa;
  --color-surface: #ffffff;
  --color-primary: #0b2545;
  --color-primary-dark: #071831;
  --color-primary-light: #16406e;
  --color-accent: #f2994a;
  --color-accent-dark: #d9822b;
  --color-text: #16213d;
  --color-muted: #5b6577;
  --color-border: #e3e6ec;
  --color-success-bg: #e9f7ef;
  --color-success-text: #1e7e42;
  --color-warning-bg: #fff4e5;
  --color-warning-text: #8a5300;
  --color-error-bg: #fdeaea;
  --color-error-text: #b3261e;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(11, 37, 69, 0.08);
  --font-heading: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
}

h1, h2, h3 { font-family: var(--font-heading); margin: 0; }

p { margin: 0; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--color-primary);
  white-space: nowrap;
}
.logo span { color: var(--color-accent); }
.logo-icon { width: 38px; height: 38px; flex-shrink: 0; }
.logo-suffix { font-size: 0.6em; font-weight: 600; color: var(--color-muted); margin-left: 2px; }

.main-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  flex: 1;
  justify-content: center;
  min-width: 0;
}
.main-nav a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
  padding: 8px 0;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--color-primary); }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-primary);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.menu-toggle:focus-visible, .main-nav a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.lang-switch button {
  border: none;
  background: transparent;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-muted);
  cursor: pointer;
}
.lang-switch button.active {
  background: var(--color-primary);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-call {
  background: var(--color-primary);
  color: #fff;
}
.btn-call:hover { background: var(--color-primary-light); }
.btn-call-icon { width: 16px; height: 16px; flex-shrink: 0; }

.btn-accent {
  background: var(--color-accent);
  color: #1d1305;
}
.btn-accent:hover { background: var(--color-accent-dark); }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.6);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }

.btn-block { width: 100%; }

/* ---------- Hero ---------- */

.hero {
  background: radial-gradient(circle at 20% 20%, var(--color-primary-light), var(--color-primary) 55%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 84px 0 64px;
}

.hero-inner { max-width: 760px; }

.hero-kicker {
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: #ffd8ae;
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 20px;
}
.hero-title .accent { color: var(--color-accent); }

.hero-subtitle {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }

.hero-note { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* ---------- Quick bar ---------- */

.quickbar {
  background: var(--color-bg);
  padding: 36px 0 44px;
  margin-top: -28px;
  position: relative;
  z-index: 2;
}
.quickbar-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 28px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.quick-item-featured {
  border-top: 4px solid var(--color-accent);
  box-shadow: 0 14px 36px rgba(11, 37, 69, 0.14);
}
.quick-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.3rem;
  color: var(--color-primary);
  line-height: 1.1;
}
.quick-label { font-size: 0.88rem; color: var(--color-muted); font-weight: 600; }

.status-value { display: inline-flex; align-items: center; gap: 10px; font-size: 1.5rem; }
.status-dot {
  width: 13px; height: 13px; border-radius: 50%;
  background: #2fa860;
  box-shadow: 0 0 0 5px rgba(47,168,96,0.15);
}
.status-dot.closed {
  background: #c0392b;
  box-shadow: 0 0 0 4px rgba(192,57,43,0.15);
}

/* ---------- Sections ---------- */

.section { padding: 72px 0; }
.section-alt { background: var(--color-surface); }

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--color-primary);
}
.section-subtitle {
  margin-top: 8px;
  color: var(--color-muted);
  font-size: 1.02rem;
  margin-bottom: 36px;
}

/* ---------- Tarifas ---------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 1.05rem; margin-bottom: 14px; color: var(--color-primary); }
.card-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.9rem;
  padding: 8px 0;
  border-bottom: 1px dashed var(--color-border);
}
.card-row:last-child { border-bottom: none; }
.card-big { font-family: var(--font-heading); font-size: 2.1rem; font-weight: 800; color: var(--color-primary); }
.card-desc { color: var(--color-muted); font-size: 0.88rem; margin-top: 6px; }
.card-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  color: var(--color-accent-dark);
  font-size: 0.9rem;
}
.card-highlight {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.card-highlight h3 { color: #fff; }
.card-highlight .card-desc { color: rgba(255,255,255,0.75); }
.card-highlight .card-link { color: var(--color-accent); }

/* ---------- Servicios ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
}
.service {
  text-align: center;
  padding: 8px;
}
.service-icon {
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #eaf0fb;
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
}
.service-icon svg { width: 28px; height: 28px; }
.service h3 { font-size: 1.02rem; margin-bottom: 8px; color: var(--color-primary); }
.service p { color: var(--color-muted); font-size: 0.9rem; }

/* ---------- Horario ---------- */

.horario-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: stretch;
  margin-top: 24px;
}

.schedule-table {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.schedule-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table td:first-child { font-weight: 600; color: var(--color-primary); }
.schedule-table td.closed { color: #b3261e; font-weight: 600; }

.acceso-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.acceso-box h3 { color: var(--color-primary); margin-bottom: 10px; font-size: 1.1rem; }
.acceso-box .muted { color: var(--color-muted); font-size: 0.9rem; margin-top: 4px; }
.acceso-box .card-link { margin-top: 16px; }

/* ---------- Abonos: tipos ---------- */

.tipos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 640px;
}
.tipo-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.tipo-card h3 { color: var(--color-primary); font-size: 1.1rem; margin-bottom: 10px; }
.tipo-card p { color: var(--color-muted); font-size: 0.92rem; }

/* ---------- Abonos: qué incluye ---------- */

.incluye-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.incluye-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.incluye-box h3 { color: var(--color-primary); font-size: 1.05rem; margin-bottom: 16px; }

.feature-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
}
.feature-row:last-child { border-bottom: none; }
.feature-row span:first-child { color: var(--color-muted); }
.feature-row span:last-child { font-weight: 700; color: var(--color-primary); }

.bullet-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.bullet-list li {
  padding-left: 26px;
  position: relative;
  font-size: 0.92rem;
  color: var(--color-text);
}
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ---------- Abonos: cómo funciona ---------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 14px;
}
.step h3 { color: var(--color-primary); font-size: 1.02rem; margin-bottom: 8px; }
.step p { color: var(--color-muted); font-size: 0.9rem; }

/* ---------- Abonos: FAQ ---------- */

.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 700;
  color: var(--color-primary);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  font-size: 1.3rem;
  color: var(--color-accent-dark);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 0 18px; color: var(--color-muted); font-size: 0.92rem; }

/* ---------- Reserva ---------- */

.reserva-container { max-width: 720px; }

.reserva-form {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.reserva-form[hidden] { display: none; }

.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-row-half > div { display: flex; flex-direction: column; gap: 6px; }

label { font-size: 0.88rem; font-weight: 600; color: var(--color-text); }

input, select, textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(22,64,110,0.12);
}

textarea { resize: vertical; }

.hp-field { position: absolute; left: -9999px; top: -9999px; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-muted);
  cursor: pointer;
}
.checkbox-row input { width: 17px; height: 17px; margin-top: 2px; flex-shrink: 0; accent-color: var(--color-primary); }

.price-box {
  background: var(--color-primary);
  border-radius: var(--radius);
  padding: 24px 26px;
  text-align: center;
}
.price-box p { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.price-box-label {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.price-box-amount {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.6rem;
  color: #fff;
  line-height: 1.1;
}
.price-box-duration {
  display: block;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: 4px;
}
.price-box-disclaimer {
  margin-top: 14px;
  font-size: 0.78rem !important;
  color: rgba(255,255,255,0.55) !important;
}

.reserva-warning {
  background: var(--color-warning-bg);
  color: var(--color-warning-text);
  border: 1px solid #f0d3a0;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.88rem;
  font-weight: 600;
}

.reserva-result {
  margin-top: 20px;
  padding: 20px;
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.reserva-result.success {
  background: var(--color-success-bg);
  color: var(--color-success-text);
  border: 1px solid #b7e4c7;
}
.reserva-result.warning-outside {
  background: var(--color-warning-bg);
  color: var(--color-warning-text);
  border: 1px solid #f0d3a0;
}
.reserva-result.error {
  background: var(--color-error-bg);
  color: var(--color-error-text);
  border: 1px solid #f3b8b4;
}
.reserva-result h3 { margin-bottom: 8px; font-size: 1.05rem; }
.reserva-result button {
  margin-top: 14px;
  background: none;
  border: none;
  text-decoration: underline;
  font-weight: 700;
  cursor: pointer;
  color: inherit;
}

/* ---------- Enlace cruzado (abonos ↔ reserva temporal) ---------- */

.cross-link-box {
  margin-top: 28px;
  padding: 22px 26px;
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cross-link-box p { font-weight: 600; color: var(--color-primary); }
.cross-link-box a { font-weight: 700; color: var(--color-accent-dark); white-space: nowrap; }
.cross-link-box a:hover { text-decoration: underline; }

/* ---------- Legal ---------- */

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 0 80px;
}
.legal-content h1 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  color: var(--color-primary);
  margin-bottom: 8px;
}
.legal-content .legal-updated {
  color: var(--color-muted);
  font-size: 0.85rem;
  margin-bottom: 36px;
}
.legal-content h2 {
  font-size: 1.15rem;
  color: var(--color-primary);
  margin: 32px 0 10px;
}
.legal-content p, .legal-content li {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 12px;
}
.legal-content ul { padding-left: 20px; }
.legal-content a { color: var(--color-accent-dark); font-weight: 600; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 40px 0 28px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo { font-size: 1.2rem; margin-bottom: 8px; color: #fff; }
.footer-logo .logo-suffix { color: rgba(255,255,255,0.55); }
.footer-inner p { margin: 4px 0; font-size: 0.9rem; }
.footer-inner a:hover { text-decoration: underline; }
.footer-rights { font-size: 0.82rem; }

.footer-legal {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.82rem;
}
.footer-legal a, .footer-legal button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.footer-legal a:hover, .footer-legal button:hover { text-decoration: underline; }

/* ---------- Modal de cookies ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 24, 49, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.modal-box h3 { color: var(--color-primary); font-size: 1.15rem; margin-bottom: 14px; }
.modal-box p { color: var(--color-text); font-size: 0.92rem; line-height: 1.6; margin-bottom: 22px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .header-actions { gap: 8px; }
  .btn-call-text { display: none; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 12px 24px;
    max-height: calc(100dvh - 140px);
    overflow-y: auto;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 0; }
}

@media (max-width: 860px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .horario-grid { grid-template-columns: 1fr; }
  .schedule-table { height: auto; }
  .quickbar-inner { grid-template-columns: 1fr; }
  .tipos-grid { grid-template-columns: 1fr; max-width: none; }
  .incluye-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .header-inner { gap: 8px; flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; }
  .header-actions { width: 100%; justify-content: space-between; }
  .logo { font-size: 1.15rem; }
  .lang-switch button { padding: 6px 7px; font-size: 0.72rem; }
  .btn-call-text { display: none; }
  .btn-call { padding: 11px 13px; }
}

@media (max-width: 560px) {
  .cards-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row-half { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 44px; }
}
