/* ============================================================
   LA CASA DE LA NOVIA — main.css
   ============================================================ */

/* === Variables === */
:root {
  --rose: #c8896b;
  --gold: #c9a96e;
  --dark: #2a1f1a;
  --bg:   #fdfaf7;
  --text: #3d2f28;
  --muted:#8b7d74;
  --border:#e8d9cc;
  --white:#ffffff;
  --radius:12px;
  --shadow:0 4px 24px rgba(42,31,26,.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a   { color: var(--rose); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === Tipografía === */
h1, h2, h3, .serif {
  font-family: 'Playfair Display', Georgia, serif;
}

/* === Barra superior === */
.topbar {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  text-align: center;
  font-size: .8rem;
  letter-spacing: .08em;
  padding: .55rem 1rem;
}

/* === Navbar === */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(42,31,26,.06);
}

.navbar__brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: .02em;
}

.navbar__brand span {
  color: var(--gold);
}

.navbar__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.navbar__links a {
  color: var(--text);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .2s;
}

.navbar__links a:hover { color: var(--rose); text-decoration: none; }

/* === Hero / Welcome === */
.hero {
  text-align: center;
  padding: 5rem 2rem 4rem;
}

.hero__eyebrow {
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: .75rem;
}

.hero__subtitle {
  font-size: .85rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

/* === Cards de categoría (home) === */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

.category-card {
  background: var(--white);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: transform .22s, box-shadow .22s;
  text-decoration: none;
  color: var(--dark);
  display: block;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--dark);
}

.category-card__icon {
  margin: 0 auto 1.5rem;
  width: 64px;
  height: 64px;
  color: var(--gold);
}

.category-card__title {
  font-size: 1.5rem;
  margin-bottom: .5rem;
  color: var(--dark);
}

.category-card__sub {
  font-size: .85rem;
  color: var(--muted);
}

/* === Catálogo === */
.catalog-header {
  text-align: center;
  padding: 3.5rem 2rem 2rem;
}

.catalog-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--dark);
  margin-bottom: .5rem;
}

.catalog-header p {
  color: var(--muted);
  font-size: .95rem;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.model-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .22s, box-shadow .22s;
}

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

.model-card__img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: #f0e8e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .85rem;
}

.model-card__body {
  padding: 1.25rem;
}

.model-card__name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: .35rem;
}

.model-card__desc {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: .75rem;
  line-height: 1.5;
}

.model-card__price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rose);
  margin-bottom: 1rem;
}

.model-card__colors {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1rem;
}

.color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,.12);
  cursor: default;
  title: attr(title);
}

/* === Sección "Cómo funciona" === */
.how-section {
  background: var(--dark);
  color: rgba(255,255,255,.9);
  padding: 4rem 2rem;
  text-align: center;
}

.how-section h2 {
  font-size: 1.9rem;
  color: var(--gold);
  margin-bottom: 2.5rem;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.how-step__num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--gold);
  opacity: .5;
  line-height: 1;
  margin-bottom: .5rem;
}

.how-step__title {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .35rem;
}

.how-step__desc {
  font-size: .82rem;
  color: rgba(255,255,255,.6);
}

/* === Contacto === */
.contact-section {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg);
}

.contact-section h2 {
  font-size: 1.7rem;
  color: var(--dark);
  margin-bottom: .75rem;
}

.contact-section p {
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 9999px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: filter .2s, transform .15s;
  text-decoration: none;
}

.btn:hover { filter: brightness(1.08); transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn--rose    { background: var(--rose); color: #fff; }
.btn--gold    { background: var(--gold); color: #fff; }
.btn--dark    { background: var(--dark); color: #fff; }
.btn--outline { background: transparent; color: var(--dark); border: 1.5px solid var(--border); }
.btn--wa      { background: #25d366; color: #fff; }
.btn--block   { display: flex; width: 100%; justify-content: center; }

/* === Footer === */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.55);
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: .82rem;
}

.footer a { color: var(--gold); }

/* === Página de pedido === */
.order-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem;
}

.order-back {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  display: inline-block;
}

.order-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 680px) {
  .order-grid { grid-template-columns: 1fr; }
  .navbar__links { display: none; }
  .catalog-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
}

.order-gallery {
  position: sticky;
  top: 80px;
}

.gallery-main {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
  background: #f0e8e0;
  margin-bottom: .75rem;
}

.gallery-thumbs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s;
}

.gallery-thumb.active,
.gallery-thumb:hover { border-color: var(--gold); }

/* Color picker */
.color-picker {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: .75rem 0;
}

.color-swatch {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform .15s, border-color .15s, box-shadow .15s;
  position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}

.color-swatch:hover { transform: scale(1.12); box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.color-swatch.selected { border-color: #c9a96e; transform: scale(1.08); box-shadow: 0 0 0 4px rgba(201,169,110,.3); }

.color-preview-bar {
  height: 48px;
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: background .3s;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 500;
}

/* Formulario */
.form-section {
  margin-bottom: 1.75rem;
}

.form-section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 1rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.form-group {
  margin-bottom: .75rem;
}

label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .35rem;
}

input[type=text], input[type=tel], input[type=email],
input[type=number], input[type=date], select, textarea {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  transition: border-color .2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
}

textarea { resize: vertical; min-height: 80px; }

/* Resumen pedido */
.order-summary {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.order-summary__row {
  display: flex;
  justify-content: space-between;
  font-size: .9rem;
  padding: .4rem 0;
  border-bottom: 1px solid #f0e8e0;
}

.order-summary__row:last-child { border-bottom: none; font-weight: 700; font-size: 1rem; }

/* Métodos de pago */
.pay-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 1.25rem;
}

.pay-method {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  cursor: pointer;
  text-align: center;
  transition: border-color .2s, background .2s;
}

.pay-method input[type=radio] { display: none; }

.pay-method.selected,
.pay-method:has(input:checked) {
  border-color: var(--gold);
  background: #fdf6ec;
}

.pay-method__icon { font-size: 1.5rem; margin-bottom: .35rem; }
.pay-method__label { font-size: .82rem; font-weight: 600; color: var(--dark); }
.pay-method__sub   { font-size: .72rem; color: var(--muted); }

/* Info pago (SPEI) */
.spei-info {
  background: #f9f4ef;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  font-size: .88rem;
}

.spei-info strong { color: var(--dark); }
.spei-info p { margin-bottom: .4rem; }

/* Alerta / mensaje */
.alert {
  padding: .85rem 1.1rem;
  border-radius: 8px;
  font-size: .88rem;
  margin-bottom: 1rem;
}
.alert--success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.alert--error   { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }
.alert--info    { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }

/* Políticas */
.policies-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.policies-page h1 { margin-bottom: 2rem; }
.policy-section { margin-bottom: 2.5rem; }
.policy-section h2 { font-size: 1.25rem; color: var(--dark); margin-bottom: .75rem; }
.policy-section p, .policy-section li { color: var(--muted); font-size: .93rem; line-height: 1.7; margin-bottom: .5rem; }
.policy-section ul { padding-left: 1.5rem; }
