/* ==========================================================================
   ORELIS · Luz en cada historia
   Hoja de estilos principal — sitio estático (Cloudflare Pages)
   ========================================================================== */

/* ----------  Tokens de diseño  ---------- */
:root {
  /* Marca */
  --wine-900: #4d1622;
  --wine-800: #5c1a29;
  --wine-700: #6e1f30;
  --wine-600: #7c2438;
  --wine-500: #8f2c43;
  --gold-600: #b8935a;
  --gold-500: #c6a465;
  --gold-400: #d7bd8a;

  /* Neutros cálidos */
  --cream-50:  #fdfaf6;
  --cream-100: #faf3ec;
  --cream-200: #f5e9dd;
  --cream-300: #efdccb;
  --blush-100: #fbf1ec;
  --sand-100:  #f2e6d8;

  --ink-900: #33232a;
  --ink-700: #4f3d43;
  --ink-500: #6f5b61;
  --ink-300: #9a888e;
  --line:    #e7d8ca;

  --white: #ffffff;

  /* Tipografía */
  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-sans: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-script: "Dancing Script", cursive;

  /* Sistema */
  --maxw: 1200px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(77, 22, 34, .06);
  --shadow-md: 0 10px 30px rgba(77, 22, 34, .10);
  --gutter: 20px;
}

/* ----------  Reset  ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--cream-50);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.1; color: var(--wine-800); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 56px; }
.script { font-family: var(--font-script); color: var(--gold-600); }
.muted { color: var(--ink-500); }
.text-center { text-align: center; }

/* ----------  Botones  ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-weight: 500; font-size: 13px; letter-spacing: .3px;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--wine-700); color: var(--white); }
.btn-primary:hover { background: var(--wine-600); }
.btn-outline { border: 1.5px solid var(--wine-700); color: var(--wine-700); }
.btn-outline:hover { background: var(--wine-700); color: var(--white); }
.btn-light { background: var(--white); color: var(--wine-700); box-shadow: var(--shadow-sm); }
.btn-gold { background: var(--gold-600); color: var(--white); }
.btn-gold:hover { background: var(--gold-500); }
.btn-wa { background: #2aa d55; }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 16px; font-size: 12px; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.topbar { background: var(--wine-800); color: #f4e4d8; font-size: 12px; }
.topbar .container {
  display: flex; gap: 26px; align-items: center; justify-content: center;
  padding-block: 9px; flex-wrap: wrap;
}
.topbar__item { display: flex; align-items: center; gap: 9px; }
.topbar__item svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.topbar__item b { display: block; font-weight: 600; font-size: 12px; }
.topbar__item span { display: block; font-size: 11px; opacity: .8; }

.header { background: var(--cream-50); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header__main {
  display: grid; grid-template-columns: auto 1fr auto; gap: 26px;
  align-items: center; padding-block: 16px;
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-serif); font-size: 30px; font-weight: 600;
  letter-spacing: 6px; color: var(--gold-600);
}
.brand__tag { font-size: 8.5px; letter-spacing: 3px; color: var(--ink-500); margin-top: 3px; }

.search { display: flex; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 30px; padding: 6px 8px 6px 18px; }
.search input { flex: 1; border: none; outline: none; font-family: inherit; font-size: 13px; background: transparent; color: var(--ink-900); }
.search button { width: 34px; height: 34px; border-radius: 50%; background: var(--wine-700); color: #fff; display: grid; place-items: center; }
.search button svg { width: 16px; height: 16px; }

.header__actions { display: flex; align-items: center; gap: 18px; }
.iconlink { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--ink-700); position: relative; }
.iconlink svg { width: 21px; height: 21px; }
.iconlink .badge {
  position: absolute; top: -6px; right: 4px; background: var(--wine-700); color: #fff;
  font-size: 10px; min-width: 16px; height: 16px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px;
}
.header__actions .btn-wa { background: var(--gold-600); color: #fff; padding: 10px 16px; border-radius: 8px; }

.nav { border-top: 1px solid var(--line); }
.nav .container { display: flex; justify-content: center; gap: 34px; padding-block: 12px; }
.nav a { font-size: 14px; color: var(--ink-700); font-weight: 500; padding-bottom: 3px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--wine-700); }
.nav a.active { color: var(--wine-700); border-color: var(--wine-700); }

.nav-toggle { display: none; }

/* ==========================================================================
   PLACEHOLDERS DE IMAGEN (reemplazar por fotos reales)
   ========================================================================== */
.ph {
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.6), transparent 55%),
    linear-gradient(135deg, var(--cream-200), var(--sand-100) 55%, var(--cream-300));
  display: grid; place-items: center; color: var(--gold-600);
  border-radius: var(--radius); position: relative; overflow: hidden;
}
.ph::after { content: attr(data-label); position: absolute; bottom: 10px; font-size: 10px; letter-spacing: 1px; color: var(--ink-300); text-transform: uppercase; }
.ph svg { width: 40%; max-width: 70px; opacity: .55; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { background: linear-gradient(120deg, var(--cream-100), var(--cream-200)); overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-block: 60px; }
.hero__title { font-size: clamp(38px, 6vw, 68px); line-height: 1; color: var(--wine-800); }
.hero__sub { font-size: 17px; color: var(--ink-700); margin: 20px 0 26px; max-width: 44ch; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero__feats { display: flex; gap: 26px; flex-wrap: wrap; }
.hero__feat { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-700); }
.hero__feat svg { width: 22px; height: 22px; color: var(--wine-600); }
.hero__media { aspect-ratio: 4/3.4; }

/* ==========================================================================
   SECCIONES GENÉRICAS
   ========================================================================== */
.sec-head { margin-bottom: 30px; }
.sec-head .eyebrow { font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold-600); font-weight: 600; }
.sec-head h2 { font-size: clamp(28px, 4vw, 40px); margin-top: 4px; }
.sec-head p { color: var(--ink-500); margin-top: 6px; }
.sec-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.sec-head--row .link-more { color: var(--wine-700); font-size: 12px; font-weight: 600; letter-spacing: 1px; white-space: nowrap; }

/* Categorías (círculos) */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.cat { text-align: center; }
.cat__img { aspect-ratio: 1; border-radius: 16px; margin-bottom: 10px; }
.cat__img.round { border-radius: 50%; }
.cat span { font-family: var(--font-serif); font-size: 17px; color: var(--wine-800); }

/* Grid de tarjetas promocionales (banners) */
.promo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.promo {
  border-radius: var(--radius); padding: 26px; min-height: 190px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(135deg, var(--cream-200), var(--sand-100));
  position: relative; overflow: hidden;
}
.promo--wine { background: linear-gradient(135deg, var(--wine-700), var(--wine-900)); color: #fbeee2; }
.promo--wine h3 { color: #fff; }
.promo h3 { font-size: 24px; margin-bottom: 6px; }
.promo p { font-size: 12.5px; opacity: .9; margin-bottom: 14px; }

/* Tarjetas de producto */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.products--6 { grid-template-columns: repeat(6, 1fr); }
.pcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; position: relative; }
.pcard:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.pcard__media { aspect-ratio: 1; position: relative; }
.pcard__tag { position: absolute; top: 10px; left: 10px; background: var(--wine-700); color: #fff; font-size: 10px; letter-spacing: .5px; padding: 4px 10px; border-radius: 20px; z-index: 2; }
.pcard__tag.gold { background: var(--gold-600); }
.pcard__fav { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; background: rgba(255,255,255,.9); border-radius: 50%; display: grid; place-items: center; z-index: 2; }
.pcard__fav svg { width: 16px; height: 16px; color: var(--wine-600); }
.pcard__body { padding: 14px; }
.pcard__name { font-family: var(--font-serif); font-size: 18px; color: var(--wine-800); }
.pcard__meta { font-size: 12px; color: var(--ink-500); margin: 2px 0 8px; }
.pcard__stars { color: var(--gold-500); font-size: 12px; margin-bottom: 6px; }
.pcard__price { font-size: 18px; font-weight: 700; color: var(--wine-800); }
.pcard__price del { font-size: 13px; color: var(--ink-300); font-weight: 400; margin-left: 6px; }
.pcard__btn { margin-top: 12px; }

/* Pasos "cómo funciona" */
.steps { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.step { flex: 1; min-width: 140px; text-align: center; position: relative; }
.step__ico { width: 66px; height: 66px; border-radius: 50%; background: var(--blush-100); display: grid; place-items: center; margin: 0 auto 12px; position: relative; }
.step__ico svg { width: 28px; height: 28px; color: var(--wine-600); }
.step__num { position: absolute; top: -4px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--wine-700); color: #fff; font-size: 12px; display: grid; place-items: center; font-family: var(--font-sans); }
.step h4 { font-size: 17px; margin-bottom: 4px; }
.step p { font-size: 12px; color: var(--ink-500); padding-inline: 6px; }

/* Bloques de "opciones de pedido" */
.optgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.opt { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: center; display: flex; flex-direction: column; }
.opt__img { aspect-ratio: 1.15; }
.opt__body { padding: 16px 14px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.opt__body h4 { font-size: 19px; }
.opt__body p { font-size: 12px; color: var(--ink-500); flex: 1; }

/* Confianza (iconos en fila) */
.trust { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.trust--4 { grid-template-columns: repeat(4, 1fr); }
.trust__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; font-size: 12px; color: var(--ink-700); }
.trust__item svg { width: 30px; height: 30px; color: var(--wine-600); }
.trust__item b { font-family: var(--font-serif); font-size: 15px; color: var(--wine-800); font-weight: 600; }

/* Valores / features en línea con iconos verticales */
.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.value { text-align: center; }
.value__ico { width: 52px; height: 52px; border-radius: 50%; background: var(--blush-100); display: grid; place-items: center; margin: 0 auto 10px; }
.value__ico svg { width: 24px; height: 24px; color: var(--wine-600); }
.value b { display: block; font-family: var(--font-serif); font-size: 16px; color: var(--wine-800); }
.value span { font-size: 11.5px; color: var(--ink-500); }

/* Testimonios */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.testi p { font-style: italic; color: var(--ink-700); font-size: 14px; }
.testi__author { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testi__avatar { width: 46px; height: 46px; border-radius: 50%; flex: none; }
.testi__author b { font-size: 14px; color: var(--wine-800); }
.testi__stars { color: var(--gold-500); font-size: 12px; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); padding: 4px 4px; }
.faq summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 500; color: var(--wine-800); display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--gold-600); }
.faq details[open] summary::after { content: "–"; }
.faq p { padding: 0 16px 16px; color: var(--ink-500); font-size: 13px; }

/* ==========================================================================
   FORMULARIO (Realiza tu pedido)
   ========================================================================== */
.order { display: grid; grid-template-columns: 1.4fr 1fr; gap: 34px; align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--ink-700); font-weight: 500; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 14px; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--cream-50); color: var(--ink-900); outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-600); background: #fff; }
.field textarea { resize: vertical; min-height: 110px; }
.field .hint { font-size: 11px; color: var(--ink-300); }
.checkbox { display: flex; align-items: center; gap: 9px; grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-500); }
.checkbox input { width: 16px; height: 16px; accent-color: var(--wine-700); }

.aside-card { background: var(--cream-200); border-radius: var(--radius); padding: 26px; }
.aside-card h3 { font-size: 26px; }
.wa-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 18px; box-shadow: var(--shadow-sm); }
.wa-box h4 { font-size: 18px; margin-bottom: 6px; }
.contact-list { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--ink-700); }
.contact-list svg { width: 20px; height: 20px; color: var(--wine-600); flex: none; margin-top: 2px; }

/* ==========================================================================
   PRODUCTOS · layout con filtros
   ========================================================================== */
.shop { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.filters { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.filters h3 { font-size: 20px; margin-bottom: 14px; }
.filter-group { border-top: 1px solid var(--line); padding: 14px 0; }
.filter-group h4 { font-size: 14px; font-family: var(--font-sans); color: var(--wine-800); margin-bottom: 10px; display: flex; justify-content: space-between; }
.filter-group label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-700); padding: 4px 0; }
.filter-group input { accent-color: var(--wine-700); }
.shop__toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.shop__toolbar select { padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: inherit; background: #fff; }
.breadcrumb { font-size: 12px; color: var(--ink-300); margin-bottom: 10px; }
.breadcrumb a:hover { color: var(--wine-700); }

/* Barra de categorías tipo píldora (productos) */
.catbar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 12px; margin-bottom: 28px; }
.catbar .cat__img { border-radius: 12px; }
.catbar .cat span { font-size: 13px; }

/* Paginación */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 30px; }
.pagination a { min-width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; color: var(--ink-700); }
.pagination a.active, .pagination a:hover { background: var(--wine-700); color: #fff; border-color: var(--wine-700); }

/* Banda de ofertas destacadas */
.offer-band { background: linear-gradient(120deg, var(--cream-100), var(--cream-200)); }
.offer-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.offer-tile { border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 16/10; }
.offer-tile__label { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: linear-gradient(0deg, rgba(77,22,34,.28), rgba(77,22,34,.05)); }
.offer-tile__label h3 { color: #fff; font-size: 30px; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.badge-off { position: absolute; top: 10px; left: 10px; background: var(--wine-700); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 8px; z-index: 2; }

/* Bloque CTA mayoristas */
.cta-band { background: linear-gradient(120deg, var(--wine-800), var(--wine-900)); color: #f6e7da; border-radius: var(--radius); padding: 40px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.cta-band h2 { color: #fff; font-size: 40px; }
.cta-band .script { color: var(--gold-400); }

/* Bloque de dos columnas (personalizadas / bridal) */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.duo__card { background: var(--cream-100); border-radius: var(--radius); padding: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.duo__card h3 { font-size: 26px; margin-bottom: 8px; }
.duo__card p { font-size: 13px; color: var(--ink-500); margin-bottom: 16px; }
.duo__media { aspect-ratio: 1; }

/* Instagram strip */
.ig-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.ig-strip .ph { aspect-ratio: 1; border-radius: var(--radius-sm); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--blush-100); border-top: 1px solid var(--line); padding-top: 46px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 26px; padding-bottom: 34px; }
.footer .brand__name { font-size: 26px; }
.footer__col h4 { font-family: var(--font-sans); font-size: 14px; color: var(--wine-800); margin-bottom: 14px; }
.footer__col ul { display: flex; flex-direction: column; gap: 9px; }
.footer__col a, .footer__col li { font-size: 13px; color: var(--ink-500); }
.footer__col a:hover { color: var(--wine-700); }
.footer__intro p { font-size: 13px; color: var(--ink-500); margin: 12px 0; max-width: 30ch; }
.socials { display: flex; gap: 10px; }
.socials a { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.socials a svg { width: 17px; height: 17px; color: var(--wine-600); }
.footer__contact li { display: flex; gap: 9px; align-items: flex-start; }
.footer__contact svg { width: 16px; height: 16px; color: var(--wine-600); flex: none; margin-top: 3px; }
.footer__bottom { border-top: 1px solid var(--line); padding-block: 18px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink-300); flex-wrap: wrap; gap: 8px; }
.footer__bottom a:hover { color: var(--wine-700); }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); z-index: 60; }
.wa-float svg { width: 30px; height: 30px; color: #fff; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .header__main { grid-template-columns: auto 1fr; }
  .search { grid-column: 1 / -1; order: 3; }
  .cats, .catbar, .promo-grid, .products, .products--6, .optgrid, .trust, .values,
  .testi-grid, .offer-tiles, .ig-strip, .footer__top { grid-template-columns: repeat(2, 1fr) !important; }
  .hero .container, .order, .shop, .duo, .cta-band, .duo__card { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .shop .filters { position: static; }
  .nav .container { flex-wrap: wrap; gap: 16px; }
}
@media (max-width: 560px) {
  .cats, .catbar, .promo-grid, .products, .products--6, .optgrid, .trust, .values,
  .testi-grid, .offer-tiles, .ig-strip, .form-grid { grid-template-columns: 1fr !important; }
  .header__actions .iconlink span { display: none; }
  .topbar .container { gap: 14px; }
  .brand__name { font-size: 24px; letter-spacing: 4px; }
}
