:root {
  --bg: #ffffff;
  --bg-alt: #f3f5f8;
  --card: #f7f8fa;
  --blue: #1d63d1;
  --blue-dark: #0d3f8f;
  --blue-light: #eaf2fd;
  --ink: #23272e;
  --muted: #6b7280;
  --border: #e2e5ea;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.logo-badge img {
  height: 32px;
  width: auto;
  display: block;
}

.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
}

.ig-link:hover { color: var(--blue); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav > a:not(.ig-link) {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}

.main-nav > a:not(.ig-link):hover { color: var(--blue); }

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 72px; }

/* Hero */
.hero {
  padding: 64px 0 40px;
  background: radial-gradient(ellipse at top right, rgba(29,99,209,0.08), transparent 60%),
              radial-gradient(ellipse at bottom left, rgba(29,99,209,0.05), transparent 55%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--blue);
  font-weight: 700;
  margin: 0 0 12px;
}

.hero-text h1 {
  font-size: 2.6rem;
  line-height: 1.1;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-text h1 span { color: var(--blue); }

.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 28px;
}

.hero-image img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 10px;
  padding: 14px 26px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: linear-gradient(90deg, var(--blue), var(--blue-dark));
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(29,99,209,0.25);
}

.btn-primary:hover { transform: translateY(-2px); }

.btn-block { width: 100%; text-align: center; }

.btn:disabled { opacity: 0.6; cursor: default; transform: none; }

.btn-ghost {
  background: #ffffff;
  color: var(--blue);
  border: 1px solid rgba(29,99,209,0.35);
}

.btn-ghost:hover { transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--border);
  padding: 10px 18px;
  font-size: 0.92rem;
}

.btn-outline:hover { border-color: var(--blue); background: var(--blue-light); }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Pre-order banner */
.preorder-banner {
  background: linear-gradient(90deg, var(--blue-light), #ffffff);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.preorder-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.badge {
  background: var(--blue);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
}

.preorder-inner p { margin: 0; color: var(--ink); }

/* Product section */
.product-section { padding: 64px 0; }

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.gallery img#mainImage {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.thumbs {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
}

.thumb.active, .thumb:hover {
  opacity: 1;
  border-color: var(--blue);
}

.product-info h2 {
  font-size: 2rem;
  margin: 0 0 8px;
  font-weight: 800;
  color: var(--ink);
}

.color-tag {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 0.95rem;
}

.color-tag em { color: var(--blue); font-style: normal; }

.price-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.currency-toggle {
  display: inline-flex;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 14px;
}

.curr-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
}

.curr-btn.active {
  background: var(--blue);
  color: #ffffff;
}

.price {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.deposit-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 6px;
}

.deposit-note strong { color: var(--blue); }

.description {
  color: var(--muted);
  margin-bottom: 20px;
}

.features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
}

.features li {
  padding-left: 26px;
  position: relative;
  color: var(--ink);
  font-size: 0.95rem;
}

.features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 800;
}

.delivery-note {
  background: var(--blue-light);
  border: 1px solid rgba(29,99,209,0.25);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 24px;
}

.delivery-note strong { color: var(--blue-dark); }

/* Design picker (product) */
.design-picker { margin: 0 0 24px; }

.design-label {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 0.95rem;
}

.design-label span { color: var(--muted); }

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px var(--border);
  cursor: pointer;
  padding: 0;
  transition: box-shadow 0.15s, transform 0.15s;
}

.swatch:hover { transform: scale(1.08); }
.swatch.active { box-shadow: 0 0 0 2px var(--blue); }

.swatch-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.swatch-custom span {
  background: #ffffff;
  color: var(--ink);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  line-height: 22px;
  font-size: 0.8rem;
  font-weight: 700;
}

.swatch-group-label {
  margin: 12px 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.swatch-group-label:first-child { margin-top: 0; }

.same-price {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--blue);
  font-weight: 600;
}

.render-note {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Shared section headings */
.section-title {
  font-size: 1.8rem;
  margin: 0 0 10px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-sub {
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 40px;
}

.section-sub.left { margin: 0 0 24px; }

/* Designs gallery */
.designs-section {
  background: var(--bg-alt);
  padding: 64px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.designs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.design-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.design-card.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

.design-img { position: relative; }

.design-img img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center 40%;
}

.design-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.design-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 12px;
}

.design-body h3 { margin: 0; font-size: 1.05rem; color: var(--ink); }
.design-body p { margin: 0; font-size: 0.85rem; color: var(--muted); }

.mini-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--border);
}

.design-card .btn { margin: auto 18px 18px; width: auto; }

.render-disclaimer {
  margin: 20px auto 0;
  max-width: 640px;
  font-size: 0.8rem;
  color: var(--muted);
}

.designs-group-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  text-align: left;
  margin: 48px 0 16px;
}

.designs-group-title:first-of-type { margin-top: 0; }

.designs-group-sub {
  text-align: left;
  color: var(--muted);
  font-size: 0.92rem;
  margin: -8px 0 16px;
}

/* Diseños gráficos: 4 fotos del mismo tamaño y formato (4:5) */
.designs-grid.graphics { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.designs-grid.graphics .design-img img { object-position: center; }
.designs-grid.graphics .design-body { padding: 14px 16px 10px; }
.designs-grid.graphics .btn { margin: auto 16px 16px; }

/* Diseño personalizado */
.custom-card {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: center;
  text-align: left;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.custom-card.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

.custom-art {
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: conic-gradient(from 45deg, #e0262b, #f0821c, #e4e61c, #1fc7a6, #1d7fe0, #8c32e0, #e0262b);
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  font-size: 2.6rem;
  padding: 18px;
}

.custom-art span {
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}

.custom-text h3 { font-size: 1.5rem; margin: 0 0 10px; color: var(--ink); }
.custom-text p { color: var(--muted); margin: 0 0 20px; }
.custom-text p.eyebrow { color: var(--blue); margin-bottom: 8px; }
.custom-text strong { color: var(--ink); }

.field-hint { margin: -6px 0 14px; font-size: 0.8rem; color: var(--muted); }

/* Video */
.video-section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.video-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.video-embed {
  display: flex;
  justify-content: center;
}

.video-embed .instagram-media {
  min-width: 280px !important;
  max-width: 420px !important;
  width: 100% !important;
  margin: 0 !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 24px;
  text-align: center;
  background: var(--card);
}

.video-embed .instagram-media a { color: var(--blue); font-weight: 600; }

/* Contact */
.contact-section {
  background: var(--bg-alt);
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-direct { line-height: 2; margin: 0; }
.contact-direct a { color: var(--blue); font-weight: 600; }

.contact-form {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.form-status { margin: 12px 0 0; font-size: 0.88rem; color: var(--muted); min-height: 1.2em; }
.form-status.ok { color: #12805c; }
.form-status.error { color: #c0392b; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35,39,46,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.modal-overlay.open { display: flex; }

.modal {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 460px;
  width: 100%;
  padding: 32px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(35,39,46,0.2);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.modal h3 { margin: 0 0 8px; font-size: 1.4rem; color: var(--ink); }

.modal-sub {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 24px;
}

#orderForm label, .contact-form label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 14px;
}

#orderForm input, #orderForm select, #orderForm textarea,
.contact-form input, .contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink);
  font-size: 0.95rem;
  font-family: inherit;
}

.contact-form textarea, #orderForm textarea { resize: vertical; }

#orderForm input[type="file"] { padding: 9px 10px; font-size: 0.85rem; }

#orderForm input:focus, #orderForm select:focus, #orderForm textarea:focus,
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
}

#orderForm fieldset {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 14px 0;
  margin: 0 0 16px;
}

#orderForm legend {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue);
  padding: 0 6px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}

.order-summary {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 8px 0 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 6px 0;
  color: var(--ink);
}

.summary-row.highlight {
  color: var(--blue);
  font-weight: 700;
}

.summary-row.muted { color: var(--muted); }

.secure-note {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a { color: var(--muted); font-weight: 600; }

/* WhatsApp */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.15s;
}

.wa-float[hidden] { display: none; }
.wa-float:hover { transform: scale(1.08); }
.footer-links a:hover { color: var(--blue); }

.copy {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
  width: 100%;
  text-align: center;
  order: 3;
}

@media (max-width: 820px) {
  .hero-inner, .product-grid, .video-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 2rem; }
  .designs-grid, .designs-grid.graphics { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .custom-card { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .custom-art { max-width: 220px; }
  .hero { padding-top: 40px; }
  .main-nav > a:not(.ig-link) { display: none; }
}

@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .header-inner { padding: 12px 16px; }
  .designs-grid { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .modal { padding: 24px 18px; }
  .ig-handle { display: none; }
}
