/* ============================================================
   SCUBA ALUX — Formulario de Reservas
   Versión 1.0 · Julio 2026
   ============================================================ */

:root {
  --navy:      #1B3A6B;
  --navy-deep: #0f2347;
  --blue:      #2E6DA4;
  --blue-lt:   #D6E4F0;
  --red:       #e64b3c;
  --red-dark:  #c0392b;
  --bg:        #0a0d12;
  --bg-surface:#0f131a;
  --bg-card:   #111820;
  --border:    #1e2d42;
  --border-lt: #2a3f5c;
  --text:      #e8e8e8;
  --text-muted:#8a9ab0;
  --white:     #ffffff;
  --success:   #1A7A4A;
  --success-bg:#0d2a1a;
  --error:     #c0392b;
  --error-bg:  #2a0d0d;
  --font-display: 'League Spartan', sans-serif;
  --font-body:    'Montserrat', sans-serif;
  --radius:    6px;
  --radius-lg: 12px;
  --t:         0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

/* ── HERO ─────────────────────────────────────────────────── */
.reservas-hero {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 60px 24px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.reservas-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(43,109,164,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-logo { width: 52px; height: 52px; margin: 0 auto 20px; display: block; filter: brightness(1.1); }
.hero-eyebrow { font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.hero-title { font-family: var(--font-display); font-size: clamp(28px, 5vw, 48px); font-weight: 900; color: var(--white); line-height: 1.1; margin-bottom: 16px; letter-spacing: -0.02em; }
.hero-title span { color: var(--red); }
.hero-desc { color: var(--text-muted); font-size: 15px; max-width: 520px; margin: 0 auto; line-height: 1.7; }

/* ── LAYOUT ───────────────────────────────────────────────── */
.reservas-wrap { max-width: 780px; margin: 0 auto; padding: 48px 24px 80px; }

/* ── SECCIONES ────────────────────────────────────────────── */
.form-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  margin-bottom: 20px;
  transition: border-color var(--t);
}
.form-section:focus-within { border-color: var(--border-lt); }

.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.section-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(43,109,164,0.15); border: 1px solid rgba(43,109,164,0.25);
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.section-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--white); letter-spacing: -0.01em; }
.section-subtitle { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ── GRID ─────────────────────────────────────────────────── */
.fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fields-grid .full { grid-column: 1 / -1; }
@media (max-width: 580px) { .fields-grid { grid-template-columns: 1fr; } .fields-grid .full { grid-column: 1; } }

/* ── CAMPO ────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.field label .req { color: var(--red); margin-left: 3px; }

.field input,
.field select,
.field textarea {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 11px 14px;
  transition: border-color var(--t), box-shadow var(--t);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a9ab0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.field select option { background: var(--bg-card); color: var(--text); }
.field textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--border-lt); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46,109,164,0.15);
}
.field input.error, .field select.error, .field textarea.error {
  border-color: var(--error); box-shadow: 0 0 0 3px rgba(192,57,43,0.12);
}
.field-error { font-size: 11px; color: var(--error); display: none; }
.field-error.visible { display: block; }
.field-hint { font-size: 11px; color: var(--text-muted); line-height: 1.4; }

/* ── CHECKBOXES ───────────────────────────────────────────── */
.checkbox-group { display: flex; flex-direction: column; gap: 14px; }
.checkbox-item { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.checkbox-item input[type="checkbox"] {
  width: 18px; height: 18px; min-width: 18px;
  border: 2px solid var(--border-lt); border-radius: 4px;
  background: var(--bg-surface); appearance: none; -webkit-appearance: none;
  cursor: pointer; margin-top: 1px; transition: all var(--t); position: relative;
}
.checkbox-item input[type="checkbox"]:checked { background: var(--navy); border-color: var(--blue); }
.checkbox-item input[type="checkbox"]:checked::after {
  content: ''; position: absolute; left: 3px; top: 0px;
  width: 6px; height: 10px; border: 2px solid var(--white);
  border-top: none; border-left: none; transform: rotate(45deg);
}
.checkbox-item input[type="checkbox"].error { border-color: var(--error); }
.checkbox-label { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.checkbox-label a { color: var(--blue); text-decoration: none; }
.checkbox-label a:hover { text-decoration: underline; }

/* ── HONEYPOT ─────────────────────────────────────────────── */
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; overflow: hidden; pointer-events: none; }

/* ── BOTONES ──────────────────────────────────────────────── */
.form-actions { margin-top: 28px; display: flex; justify-content: flex-end; }
.btn-submit {
  background: var(--red); border: none; border-radius: var(--radius);
  color: var(--white); cursor: pointer; font-family: var(--font-display);
  font-size: 15px; font-weight: 700; letter-spacing: 0.03em;
  padding: 14px 36px; transition: background var(--t), transform var(--t), box-shadow var(--t);
  display: flex; align-items: center; gap: 10px;
}
.btn-submit:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(230,75,60,0.35); }
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white; border-radius: 50%;
  animation: spin 0.7s linear infinite; display: none;
}
.btn-submit.loading .btn-spinner { display: block; }
.btn-submit.loading .btn-text { opacity: 0.7; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── ALERTAS ──────────────────────────────────────────────── */
.form-alert {
  border-radius: var(--radius); padding: 14px 18px; font-size: 13px;
  margin-bottom: 20px; display: none; align-items: flex-start; gap: 10px; line-height: 1.5;
}
.form-alert.visible { display: flex; }
.form-alert.error { background: var(--error-bg); border: 1px solid var(--error); color: #f08080; }
.form-alert.success { background: var(--success-bg); border: 1px solid var(--success); color: #6fcf97; }

/* ── INFO STRIP ───────────────────────────────────────────── */
.info-strip {
  background: rgba(43,109,164,0.08); border: 1px solid rgba(43,109,164,0.2);
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 28px;
  display: flex; align-items: flex-start; gap: 12px; font-size: 13px;
  color: var(--text-muted); line-height: 1.5;
}
.info-strip-icon { font-size: 18px; flex-shrink: 0; }

/* ── GRACIAS ──────────────────────────────────────────────── */
.gracias-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.gracias-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 52px 40px; text-align: center; max-width: 520px; width: 100%; }
.gracias-icon { font-size: 52px; margin-bottom: 20px; display: block; }
.gracias-title { font-family: var(--font-display); font-size: 28px; font-weight: 900; color: var(--white); margin-bottom: 14px; }
.gracias-text { color: var(--text-muted); font-size: 15px; line-height: 1.7; margin-bottom: 28px; }
.gracias-back { display: inline-block; background: var(--navy); border: 1px solid var(--border-lt); border-radius: var(--radius); color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 14px; padding: 12px 28px; text-decoration: none; transition: background var(--t); }
.gracias-back:hover { background: var(--blue); }

/* ── FOOTER ───────────────────────────────────────────────── */
.reservas-footer { border-top: 1px solid var(--border); padding: 24px; text-align: center; font-size: 12px; color: var(--text-muted); }
.reservas-footer a { color: var(--text-muted); text-decoration: none; }
.reservas-footer a:hover { color: var(--text); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .reservas-hero { padding: 40px 20px 36px; }
  .form-section { padding: 24px 18px; }
  .reservas-wrap { padding: 32px 16px 60px; }
  .gracias-card { padding: 36px 24px; }
  .form-actions { justify-content: stretch; }
  .btn-submit { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
