/* Estilos comunes de la landing: el inicio (eco.html) y las páginas de evento (coleccion.html).
 * Lo propio de cada página queda en su <style>. El build lo publica en dist/comun.css. */
:root {
  --bosque: #1F4D3F; --bosque-oscuro: #143429; --crema: #F7F3EC; --superficie: #FFFDF8;
  --oro: #C9A24A; --oro-texto: #8A6A1F; --salvia: #DCE8DF; --tinta: #1D2B26; --suave: #5B6963;
  --borde: #E6DFD2;
  --oro-claro: #E3C56E; --oro-lema: #E8CF8C; --hoja-texto: #CFE0D8; --hoja-claro: #F1F6F3;
  --patron-hojas: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><g fill='%23DCE8DF' opacity='.09'><path d='M30 40c12-14 30-14 40-4-12 12-28 14-40 4z'/><path d='M120 130c-4-18 6-32 20-36 4 18-4 32-20 36z'/><path d='M150 30c8-8 20-8 26-2-8 8-18 8-26 2z'/></g><g fill='%23E3C56E' opacity='.22'><circle cx='95' cy='70' r='2.5'/><circle cx='20' cy='120' r='2'/><circle cx='165' cy='95' r='2'/><circle cx='70' cy='160' r='2.5'/></g></svg>");
  --script: 'Great Vibes', cursive; --texto: 'Montserrat', system-ui, sans-serif;
  /* Campaña (config.json → campana.color): rosa por defecto; comun.js pone data-campana-color en <html> */
  --campana: #E0457B; --campana-suave: #FBE3EC; --campana-texto: #8A1F4D; --campana-pie: #F4B6CB;
}
*, *::before, *::after { box-sizing: border-box; }
/* Cajas de texto: nunca se redimensionan; crecen con el texto hasta un máximo y luego hacen scroll por dentro */
textarea {
  resize: none;
  width: 100%; max-width: 100%; box-sizing: border-box;
  min-height: 132px; max-height: 260px;
  field-sizing: content;   /* crece con el texto donde el navegador lo soporte */
  overflow-y: auto;        /* donde no lo soporte, queda fijo y hace scroll por dentro */
}
input, select { max-width: 100%; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--crema); color: var(--tinta); font: 400 16px/1.65 var(--texto); overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contenedor { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.script { font-family: var(--script); font-weight: 400; color: var(--oro); }
.ceja { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--oro-texto); }
.ceja::after { content: ''; display: block; width: 36px; height: 2px; margin: 10px auto 0; background: var(--oro); }
.izq .ceja::after { margin-left: 0; }
section { padding: 80px 0; }
h2 { font-size: clamp(28px, 5vw, 40px); line-height: 1.18; margin: 14px 0 10px; }
.titulo { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.titulo p { color: var(--suave); margin: 0; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 24px; border-radius: 99px; border: 0;
  font: 600 15px var(--texto); text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; }
/* Las reglas sobre <symbol> deben ser globales: dentro de <use> no aplican selectores de ancestros */
.wa { fill: currentColor; stroke: none; }
.hoja { fill: var(--oro); stroke: var(--oro); }
.btn--chico { padding: 10px 18px; font-size: 14px; }
/* Por importancia, no por canal: principal (dorado, uno por zona), secundario (bosque) y contorno (navegar o alternativas) */
.btn { min-height: 48px; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease; }
.btn--chico { min-height: 40px; }
.btn:active { transform: scale(.98); }
.btn:focus-visible, .flotante:focus-visible, .menu-btn:focus-visible, .evento:focus-visible, .barra-evento__wa:focus-visible { outline: 3px solid var(--oro-claro); outline-offset: 3px; }
.btn--principal { background: var(--oro); color: var(--bosque-oscuro); box-shadow: 0 8px 20px rgb(201 162 74 / .32); }
.btn--principal:hover { background: var(--oro-claro); box-shadow: 0 10px 26px rgb(201 162 74 / .42); }
/* Principal sobre el héroe, el banner y la barra fija de las páginas de evento: dorado claro */
.hero .btn--principal, .banner .btn--principal, .barra-wa .btn--principal { background: var(--oro-claro); box-shadow: 0 8px 22px rgb(0 0 0 / .25); }
.hero .btn--principal:hover, .banner .btn--principal:hover, .barra-wa .btn--principal:hover { background: #EDD48A; }
.btn--secundario { background: var(--bosque); color: #fff; box-shadow: 0 6px 16px rgb(31 77 63 / .2); }
.btn--secundario:hover, .barra-evento__wa:hover { background: var(--bosque-oscuro); }
.btn--contorno { background: transparent; border: 1.5px solid var(--bosque); color: var(--bosque); }
.btn--contorno:hover { background: var(--bosque); color: #fff; }

/* ---------- Menú ---------- */
.barra { position: sticky; top: 0; z-index: 20; background: rgb(247 243 236 / .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--borde); }
.barra .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; color: var(--bosque); letter-spacing: .01em; }
.logo svg { width: 34px; height: 34px; color: var(--bosque); }
.menu { display: flex; align-items: center; gap: 26px; }
.menu a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--suave); }
.menu a:hover { color: var(--bosque); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--bosque); cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }
@media (max-width: 900px) {
  .menu-btn { display: grid; place-items: center; }
  .barra .btn { display: none; }
  .menu { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--crema); border-bottom: 1px solid var(--borde); box-shadow: 0 18px 30px rgb(0 0 0 / .08); display: none; }
  .menu.abierto { display: flex; }
  .menu a { padding: 16px 20px; border-top: 1px solid var(--borde); font-size: 15px; }
}

/* ---------- Abanico de celulares con las capturas de las demos (scripts/capturas.mjs) ---------- */
.cel {
  position: absolute; left: 50%; bottom: -18%; height: 96%; aspect-ratio: 360 / 740;
  border-radius: 16px; border: 4px solid #0d0f0e; background: #000 center top / cover no-repeat;
  box-shadow: 0 14px 28px rgb(0 0 0 / .45); transition: transform .35s ease;
}
.cel--centro { z-index: 3; height: 104%; bottom: -14%; transform: translateX(-50%); }
.cel--izq { z-index: 2; transform: translateX(-128%) rotate(-10deg); }
.cel--der { z-index: 2; transform: translateX(28%) rotate(10deg); }
.evento:hover .cel--centro { transform: translateX(-50%) translateY(-6px); }
.evento:hover .cel--izq { transform: translateX(-140%) rotate(-14deg); }
.evento:hover .cel--der { transform: translateX(40%) rotate(14deg); }
@media (prefers-reduced-motion: reduce) { .cel { transition: none; } }
.paleta { display: inline-flex; }
.paleta i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--superficie); box-shadow: 0 0 0 1px var(--borde); margin-left: -4px; }
.paleta i:first-child { margin-left: 0; }

/* ---------- Tarjetas de evento (comun.js → tarjetaEvento): abanico a la izquierda y texto a la derecha ---------- */
.eventos { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .eventos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.evento {
  display: flex; min-height: 132px; overflow: hidden; border-radius: 20px; text-decoration: none; color: inherit;
  background: var(--superficie); border: 1px solid var(--borde); box-shadow: 0 10px 26px rgb(20 52 41 / .06);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.evento:hover { border-color: var(--oro); box-shadow: 0 14px 30px rgb(20 52 41 / .1); }
.evento__abanico {
  position: relative; flex: none; width: 128px; overflow: hidden;
  background: radial-gradient(circle at 50% 120%, var(--oro-claro) 0, transparent 55%), linear-gradient(165deg, var(--bosque), var(--bosque-oscuro));
}
.evento__abanico .cel { border-width: 3px; border-radius: 10px; }
.evento__cuerpo { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; min-width: 0; padding: 16px 16px 16px 18px; }
.evento__nombre { margin: 0; font-size: 17px; line-height: 1.25; color: var(--bosque); }
.evento__cantidad { padding: 3px 10px; border-radius: 99px; background: var(--salvia); color: var(--bosque); font-size: 12px; font-weight: 700; }
.evento__ver { font-size: 14px; font-weight: 700; color: var(--oro-texto); }
.evento:hover .evento__ver { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Tarjetas de diseño (comun.js → tarjetaDiseno): portada, paleta, estilo y «Ver demo» ---------- */
.disenos { display: grid; gap: 18px 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .disenos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; } }
@media (min-width: 1000px) { .disenos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.diseno {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 18px;
  background: var(--superficie); border: 1px solid var(--borde); box-shadow: 0 10px 26px rgb(20 52 41 / .06);
}
/* Imagen de la tarjeta: el sobre capturado de fondo, la foto del cliente encima como tarjetita y un degradado para leer el sobre */
.diseno__vista { position: relative; display: block; height: 196px; overflow: hidden; background: var(--salvia); }
@media (min-width: 700px) { .diseno__vista { height: 260px; } }
.diseno__vista::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / .25), transparent 40%); pointer-events: none; }
.diseno__sobre { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 50%; }
.diseno__foto { position: absolute; z-index: 1; left: 50%; top: 50%; width: 60%; aspect-ratio: 3 / 4; object-fit: cover; object-position: var(--portada-posicion, center 25%);
  border: 3px solid #fff; border-radius: 10px; box-shadow: 0 8px 20px rgb(0 0 0 / .28); transform: translate(-50%, -50%) rotate(-3deg); }
@media (min-width: 700px) { .diseno__foto { width: 58%; border-width: 5px; border-radius: 14px; } }
@media (hover: hover) and (min-width: 700px) and (prefers-reduced-motion: no-preference) {
  .diseno__foto { transition: transform .25s ease; }
  .diseno:hover .diseno__foto { transform: translate(-50%, -50%) rotate(0deg); }
}
.diseno__etiqueta {
  position: absolute; z-index: 2; top: 10px; left: 10px; padding: 4px 10px; border-radius: 99px;
  background: var(--oro); color: #1d1606; font-size: 11px; font-weight: 700; box-shadow: 0 4px 10px rgb(0 0 0 / .18);
}
.diseno__cuerpo { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 12px 12px 14px; }
.diseno__estilo { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--bosque); }
.diseno__estilo .paleta { flex: none; }
.diseno .btn { width: 100%; margin-top: auto; min-height: 40px; padding: 9px 12px; font-size: 13px; }

/* ---------- Pie ---------- */
footer { background: var(--bosque-oscuro); color: rgb(255 255 255 / .82); padding: 64px 0 96px; font-size: 15px; }
.pie { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pie h3 { margin: 0 0 16px; font-size: 13px; letter-spacing: .25em; text-transform: uppercase; color: var(--oro); }
.pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pie a { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.pie a:hover { color: #fff; text-decoration: underline; }
.pie svg { width: 20px; height: 20px; }
.pie .logo { color: #fff; margin-bottom: 14px; }
.pie .logo svg { color: #fff; width: 32px; height: 32px; }
.pie__base { margin-top: 48px; padding-top: 26px; border-top: 1px solid rgb(255 255 255 / .12); text-align: center; }
.pie__base .script { font-size: 32px; display: block; margin-bottom: 6px; }
.pie__base small { color: rgb(255 255 255 / .6); }

.flotante { position: fixed; right: 16px; bottom: 16px; z-index: 30; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--oro-claro); color: var(--bosque-oscuro);
  box-shadow: 0 0 0 3px var(--superficie), 0 10px 26px rgb(0 0 0 / .28); }
.flotante svg { width: 30px; height: 30px; fill: currentColor; stroke: none; }

.revelar { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.revelar.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .revelar { opacity: 1; transform: none; }
}

/* ---------- Campaña (config.json → campana): comun.js quita hidden solo entre sus fechas ---------- */
/* Colores de la campaña (texto sobre fondo suave ≥ 4.5:1; --campana-pie va sobre el pie oscuro) */
:root[data-campana-color="dorado"] { --campana: #C9A24A; --campana-suave: #FBF3DF; --campana-texto: #6B5418; --campana-pie: #E8CD8A; }
:root[data-campana-color="azul"] { --campana: #2F6FD1; --campana-suave: #E6EEFB; --campana-texto: #1D4489; --campana-pie: #9DBEF0; }
:root[data-campana-color="celeste"] { --campana: #5BB8E6; --campana-suave: #E8F6FD; --campana-texto: #1C5E80; --campana-pie: #A9DCF2; }
/* Franja superior: no es sticky, se va al bajar. #8A1F4D sobre #FBE3EC ≈ 8:1 */
.franja-campana { position: relative; padding: 8px 44px; background: var(--campana-suave); color: var(--campana-texto); text-align: center; }
.franja-campana__texto { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 600; line-height: 1.35; }
.franja-campana__texto svg { flex: none; width: 16px; height: 16px; color: var(--campana); }
.franja-campana__titulo { font-weight: 700; }
.franja-campana__corta { display: none; }
@media (max-width: 479px) {
  .franja-campana__larga { display: none; }
  .franja-campana__corta { display: inline; }
}
.franja-campana__cerrar {
  position: absolute; right: 6px; top: 50%; translate: 0 -50%; width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: transparent; color: var(--campana-texto); font: 400 22px/1 var(--texto); cursor: pointer;
}
.franja-campana__cerrar:hover { background: color-mix(in srgb, var(--campana-texto) 10%, transparent); }
.franja-campana__cerrar:focus-visible { outline: 2px solid var(--campana-texto); outline-offset: 1px; }

/* Ícono de la campaña (lazo, paloma o cruz) junto al logo, con burbuja al pasar el mouse, con foco o al tocar (clase .abierto) */
.marca-barra { display: flex; align-items: center; gap: 4px; }
.lazo-rosa {
  position: relative; display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; cursor: pointer;
}
.lazo-rosa svg { width: 20px; height: 20px; color: var(--campana); }
.lazo-rosa:focus-visible { outline: 2px solid var(--campana); outline-offset: 2px; }
.lazo-rosa__burbuja {
  position: absolute; top: calc(100% + 10px); left: 50%; z-index: 40; translate: -50% 0;
  width: max-content; max-width: min(240px, calc(100vw - 32px)); padding: 7px 11px; border-radius: 8px;
  background: var(--campana-texto); color: #fff; font: 600 12px/1.35 var(--texto); text-align: center;
  box-shadow: 0 8px 18px rgb(0 0 0 / .18);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s ease, visibility 0s linear .15s;
}
.lazo-rosa__burbuja::before { /* flechita */
  content: ''; position: absolute; bottom: 100%; left: 50%; translate: -50% 0;
  border: 6px solid transparent; border-bottom-color: var(--campana-texto);
}
.lazo-rosa:hover .lazo-rosa__burbuja, .lazo-rosa:focus-visible .lazo-rosa__burbuja, .lazo-rosa.abierto .lazo-rosa__burbuja {
  opacity: 1; visibility: visible; transition: opacity .15s ease;
}

/* Línea del pie */
.pie-campana { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 4px 0 10px; font-size: 13px; color: var(--campana-pie); }
.pie-campana svg { flex: none; width: 15px; height: 15px; color: var(--campana); }
