/* ============================================================
   RESERVAS — Anaho Beach Club
   ============================================================ */

:root {
  --bg: #050F12;
  --bg-2: #0B1A20;
  --bg-3: #112430;
  --accent: #2BBFA4;
  --accent-dark: #1F9984;
  --teal: #3A9E72;
  --cream: #E8F2EE;
  --text: #B8D4CC;
  --border: rgba(232,242,238,.1);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --radius: 12px;
}

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

body.reservas-page {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

/* NAV */
.res-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(11,9,7,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.res-nav-logo {
  font-family: var(--serif); font-style: italic;
  font-size: 1.4rem; color: var(--cream);
  text-decoration: none; letter-spacing: .05em;
}

.res-nav-wa {
  display: flex; align-items: center; gap: .5rem;
  font-size: .85rem; color: var(--accent);
  text-decoration: none; font-weight: 500;
  transition: opacity .2s;
}
.res-nav-wa:hover { opacity: .8; }

/* STEPS */
.res-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 0; padding: 2rem 1rem 1rem;
}

.res-step {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 500; letter-spacing: .05em;
  text-transform: uppercase; color: rgba(200,187,168,.35);
  transition: color .3s;
}
.res-step span {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid currentColor; font-size: .75rem;
}
.res-step.active { color: var(--accent); }
.res-step.done { color: var(--teal); }

.res-step-line {
  width: 40px; height: 1px;
  background: var(--border); margin: 0 .5rem;
}

/* MAIN */
.res-main { padding: 1rem 1rem 4rem; }

.res-container {
  max-width: 760px; margin: 0 auto;
}

/* SECTION */
.res-section { animation: fadeUp .4s ease both; }

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

.res-section h1 {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--cream); margin-bottom: .5rem; margin-top: 1.5rem;
}
.res-section h2 {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--cream); margin-bottom: .5rem; margin-top: 1.5rem;
}

.res-subtitle {
  color: var(--text); margin-bottom: 2rem; max-width: 540px;
}

/* PRODUCTO GRID */
.producto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .75rem; margin-bottom: 2rem;
}

.producto-card {
  position: relative; cursor: pointer;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
  transition: border-color .2s, background .2s;
  overflow: hidden;
}
.producto-card:hover { border-color: rgba(217,120,74,.4); }
.producto-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.producto-card.selected {
  border-color: var(--accent);
  background: rgba(217,120,74,.07);
}

.producto-card-inner {
  display: flex; flex-direction: column; gap: .2rem;
  padding: 1rem 1rem .9rem;
}

.producto-tipo {
  font-size: .65rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal);
}
.producto-precio {
  font-size: 1.15rem; font-weight: 600; color: var(--cream);
  margin: .15rem 0;
}
.producto-precio small { font-size: .75rem; font-weight: 400; color: var(--text); }
.producto-nombre { font-size: .9rem; font-weight: 500; color: var(--cream); }
.producto-desc { font-size: .78rem; color: var(--text); line-height: 1.4; }

.producto-popular {
  display: inline-block; margin-top: .3rem;
  font-size: .65rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
  background: rgba(217,120,74,.12); border: 1px solid rgba(217,120,74,.3);
  padding: .15rem .5rem; border-radius: 100px; width: fit-content;
}

.producto-check {
  position: absolute; top: .75rem; right: .75rem;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: .7rem; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s;
}
.producto-card.selected .producto-check { opacity: 1; transform: scale(1); }

/* FIELDS */
.res-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-bottom: 1.5rem;
}
.res-field { display: flex; flex-direction: column; gap: .4rem; }
.res-field--full { grid-column: 1 / -1; }

.res-field label {
  font-size: .78rem; font-weight: 500; letter-spacing: .04em;
  text-transform: uppercase; color: rgba(200,187,168,.6);
}
.res-field input,
.res-field select,
.res-field textarea {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 8px; color: var(--cream);
  padding: .75rem 1rem; font-family: var(--sans); font-size: .9rem;
  transition: border-color .2s; outline: none;
  width: 100%;
}
.res-field input:focus,
.res-field select:focus,
.res-field textarea:focus { border-color: var(--accent); }
.res-field textarea { resize: vertical; min-height: 80px; }
.res-field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.6); }
.res-field select option { background: var(--bg-3); }

/* PRECIO PREVIEW */
.res-precio-preview {
  display: flex; align-items: baseline; gap: 1rem;
  background: rgba(27,122,120,.1); border: 1px solid rgba(27,122,120,.3);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  margin-bottom: 1.5rem; flex-wrap: wrap;
}
.precio-label {
  font-size: .75rem; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--teal);
}
.precio-valor {
  font-size: 1.5rem; font-weight: 600; color: var(--cream);
  font-family: var(--serif);
}
.precio-nota { font-size: .8rem; color: var(--text); }

/* RESUMEN */
.res-resumen {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.res-resumen h4 {
  font-size: .75rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: .75rem; padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.res-resumen-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .4rem 0; font-size: .9rem;
  border-bottom: 1px solid rgba(242,235,217,.05);
}
.res-resumen-row:last-child { border-bottom: none; }
.res-resumen-total {
  margin-top: .5rem; padding-top: .75rem;
  border-top: 1px solid var(--border) !important;
  border-bottom: none !important;
}
.res-resumen-total span { font-weight: 600; color: var(--cream); }
.res-resumen-total strong { font-size: 1.1rem; color: var(--accent); }

/* PAGO */
.res-pago-header { text-align: center; margin-bottom: 2rem; }
.res-pago-icon { font-size: 2.5rem; margin-bottom: .5rem; }

.res-pago-metodos {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 2rem; font-size: .8rem; color: var(--text);
}
.res-pago-logos { display: flex; gap: .5rem; flex-wrap: wrap; }
.pago-logo {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 6px; padding: .3rem .7rem;
  font-size: .75rem; color: var(--cream);
}

.btn-pagar {
  background: #22C55E !important;
  font-size: 1rem !important;
}
.btn-pagar:hover { background: #16a34a !important; }

.res-legal {
  text-align: center; font-size: .78rem;
  color: rgba(200,187,168,.4); margin-top: 1rem;
}
.res-legal a { color: var(--text); }

/* LOADING */
.res-loading {
  display: flex; align-items: center; gap: .75rem;
  color: var(--text); font-size: .9rem;
  padding: 1rem; justify-content: center;
}
.res-spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ERROR */
.res-field-error {
  background: rgba(220,38,38,.1); border: 1px solid rgba(220,38,38,.3);
  color: #f87171; border-radius: 8px; padding: .75rem 1rem;
  font-size: .85rem; margin-bottom: 1rem;
}

/* CONFIRMACIÓN */
.res-confirmacion { text-align: center; padding: 3rem 1rem; }
.confirm-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(34,197,94,.15); border: 2px solid rgba(34,197,94,.4);
  color: #22C55E; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
}
.confirm-ref {
  display: inline-flex; align-items: center; gap: .75rem;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 8px; padding: .75rem 1.5rem; margin: 1.5rem 0;
  font-size: .9rem;
}
.confirm-ref strong { color: var(--accent); font-size: 1rem; }
.confirm-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .8rem 1.75rem;
  border-radius: 100px; font-family: var(--sans); font-weight: 500;
  font-size: .9rem; cursor: pointer; border: none; text-decoration: none;
  transition: all .2s; letter-spacing: .02em;
}
.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--cream); }
.btn-full { width: 100%; }

.res-step-actions {
  display: flex; gap: 1rem; align-items: center; margin-top: .5rem;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .res-nav { padding: .75rem 1rem; }
  .res-fields { grid-template-columns: 1fr; }
  .producto-grid { grid-template-columns: 1fr 1fr; }
  .res-step-actions { flex-direction: column-reverse; }
  .res-step-actions .btn { width: 100%; }
  .res-steps { gap: 0; }
  .res-step-line { width: 20px; }
}
@media (max-width: 380px) {
  .producto-grid { grid-template-columns: 1fr; }
}
