/* Mobile-first: contenedor centrado, márgenes iguales, colores cálidos */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #fdf6ef;
  --card: #fff9f3;
  --ink: #3d3429;
  --muted: #7a6f66;
  --accent: #c17f59;
  --accent-dark: #a66b4a;
  --border: #e8dcc8;
  --shadow: rgba(61, 52, 41, 0.08);
  --radius: 16px;
  --max: 500px;
  --pad: 16px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: linear-gradient(165deg, #fdf6ef 0%, #f5e6d8 50%, #fdf6ef 100%);
}

/* Contenedor principal: centrado, max-width 500px */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(253, 246, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px var(--pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.logo {
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.05rem;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 2px 8px var(--shadow);
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 1px;
}

.nav-panel {
  width: 100%;
  flex-basis: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 8px;
}

.nav-panel[hidden] {
  display: none !important;
}

.nav-panel a {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
}

.nav-panel a:hover {
  background: rgba(193, 127, 89, 0.12);
}

@media (min-width: 640px) {
  .header-inner {
    flex-wrap: nowrap;
  }

  .nav-toggle {
    display: none;
  }

  .nav-panel {
    width: auto;
    flex-basis: auto;
    flex-direction: row;
    padding-bottom: 0;
    order: 3;
  }

  .nav-panel[hidden] {
    display: flex !important;
  }

  .logo {
    order: 1;
  }

  .nav-toggle {
    order: 2;
  }
}

/* Tarjetas */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 4px 24px var(--shadow);
  border: 1px solid var(--border);
}

.hero {
  text-align: center;
}

/* Imagen entre detalles y formulario: mismo ancho que el contenedor, responsive */
.content-photo {
  margin: 0;
  padding: 0;
  overflow: hidden;
  line-height: 0;
}

.content-photo.card {
  padding: 0;
}

.content-photo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  max-height: min(70vh, 420px);
  object-fit: contain;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--accent-dark);
  font-weight: 600;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: 1.65rem;
  line-height:1.25;
}

.lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.details h2,
.form-section h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

.detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.detail-list .icon {
  flex-shrink: 0;
}

/* Formulario */
.form-section label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-section input {
  width: 100%;
  margin-top: 6px;
  padding: 14px 14px;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.form-section input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(193, 127, 89, 0.2);
}

.hint {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-msg {
  min-height: 1.5rem;
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.form-msg.error {
  color: #b33c3c;
}

.form-msg.ok {
  color: #2d7a4d;
}

/* Botones grandes */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(166, 107, 74, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Footer */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--pad) 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer .small {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
}

/* Página de confirmación tras pagar (Stripe → success.html) */
.page-landing {
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.success-card {
  text-align: center;
}

.success-icon {
  font-size: 3.25rem;
  line-height: 1;
  margin: 0 0 0.5rem;
}

.success-title {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  line-height: 1.25;
  color: var(--ink);
}

.success-sub {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #2d7a4d;
}

.success-box {
  text-align: left;
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  background: rgba(45, 122, 77, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(45, 122, 77, 0.2);
  font-size: 0.95rem;
}

.success-box strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.success-muted {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-secondary {
  background: var(--card);
  color: var(--accent-dark);
  border: 2px solid var(--border);
  box-shadow: none;
}

.btn-secondary:hover {
  background: #fff;
  filter: none;
}
