/* Terra & Madera — colores sacados del logo */
:root {
  --azul-noche: #15306f;   /* letras del logo */
  --cobalto: #2747a8;      /* esmalte azul */
  --cobalto-hover: #1e3a8f;
  --crema: #f4efe6;        /* fondo cerámica */
  --crema-clara: #fbf8f2;
  --arena: #e9dfcd;
  --madera: #8b5530;
  --texto: #3b3d48;
  --texto-suave: #6a6b75;
  --verde-wa: #1f9d55;
  --borde: rgba(21, 48, 111, 0.14);
  --sombra: 0 10px 30px rgba(21, 48, 111, 0.10);
  --radio: 20px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--texto);
  background: var(--crema) url("img/moteado.png") repeat;
  background-size: 360px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); color: var(--azul-noche); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--cobalto); }
:focus-visible { outline: 3px solid var(--cobalto); outline-offset: 3px; border-radius: 6px; }

.contenedor { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .contenedor { padding: 0 28px; } }

.saltar { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; }
.saltar:focus { left: 8px; }

.ico, [data-icono] { display: inline-flex; }
.ico svg { width: 20px; height: 20px; }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 2px solid var(--cobalto);
  background: var(--cobalto); color: #fff;
  font: 700 16px/1 var(--sans); text-decoration: none; letter-spacing: 0.01em;
  cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
}
.boton:hover { background: var(--cobalto-hover); border-color: var(--cobalto-hover); }
.boton:active { transform: translateY(1px); }
.boton svg { width: 20px; height: 20px; flex: none; }
.boton--borde { background: transparent; color: var(--cobalto); }
.boton--borde:hover { background: rgba(39, 71, 168, 0.08); color: var(--cobalto-hover); }
.boton--chico { min-height: 40px; padding: 0 16px; font-size: 15px; }
.boton--wa { background: var(--verde-wa); border-color: var(--verde-wa); }
.boton--wa:hover { background: #18834a; border-color: #18834a; }
.boton--claro { background: #fff; border-color: #fff; color: var(--azul-noche); }
.boton--claro:hover { background: var(--crema); border-color: var(--crema); }
.boton--claro-borde { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.boton--claro-borde:hover { background: rgba(255,255,255,.12); }

/* ---------- Cabecera ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 30;
  background: rgba(244, 239, 230, 0.88);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--borde);
}
.cabecera__fila { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.cabecera__marca img { height: 30px; width: auto; }
.cabecera__nav { display: none; gap: 28px; }
.cabecera__nav a { color: var(--azul-noche); text-decoration: none; font-weight: 600; font-size: 15px; }
.cabecera__nav a:hover { color: var(--cobalto); text-decoration: underline; text-underline-offset: 6px; }
@media (min-width: 860px) { .cabecera__nav { display: flex; } .cabecera__marca img { height: 34px; } }

/* ---------- Portada ---------- */
.portada { padding: 36px 0 44px; }
.portada__grid { display: grid; gap: 28px; align-items: center; }
.portada__logo { order: -1; justify-self: center; width: min(62vw, 260px); }
.portada__logo img { width: 100%; height: auto; border-radius: 50%; box-shadow: 0 22px 50px rgba(21, 48, 111, 0.18); }
.portada__texto { text-align: center; }
.etiqueta { font-weight: 700; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cobalto); }
.portada h1 { font-size: clamp(36px, 9vw, 64px); margin-top: 12px; }
.portada h1 em { font-style: italic; font-weight: 500; color: var(--cobalto); }
.portada__lead { margin: 16px auto 0; max-width: 34em; font-size: 18px; }
.portada__botones { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.portada__datos { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; font-size: 15px; font-weight: 600; color: var(--azul-noche); }
.portada__datos li { display: inline-flex; align-items: center; gap: 7px; }
.portada__datos .ico { color: var(--cobalto); }
@media (min-width: 860px) {
  .portada { padding: 64px 0 72px; }
  .portada__grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
  .portada__logo { order: 0; width: 100%; max-width: 420px; justify-self: end; }
  .portada__texto { text-align: left; }
  .portada__lead { margin-left: 0; }
  .portada__botones, .portada__datos { justify-content: flex-start; }
}

/* Franja azul + madera, como la portada de Facebook */
.franja img { width: 100%; object-fit: cover; }
.franja img:first-child { height: clamp(44px, 7vw, 84px); }
.franja img:last-child { height: clamp(16px, 2.4vw, 28px); }

/* ---------- Secciones ---------- */
.seccion { padding: 56px 0; }
.seccion--clara { background: rgba(255, 255, 255, 0.45); border-top: 1px solid var(--borde); border-bottom: 1px solid var(--borde); }
.seccion__titulo { text-align: center; margin-bottom: 28px; }
.seccion__titulo h2 { font-size: clamp(32px, 6vw, 46px); }
.seccion__titulo p { margin-top: 8px; color: var(--texto-suave); }
.emblema { width: 132px; height: auto; margin: 0 auto 14px; }
@media (min-width: 860px) { .seccion { padding: 84px 0; } .seccion__titulo { margin-bottom: 40px; } }

/* ---------- Filtros ---------- */
.filtros { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.filtros button {
  min-height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--borde); background: rgba(255,255,255,.7);
  font: 600 15px/1 var(--sans); color: var(--azul-noche); cursor: pointer;
}
.filtros button[aria-pressed="true"] { background: var(--azul-noche); border-color: var(--azul-noche); color: #fff; }
.filtros button:hover:not([aria-pressed="true"]) { border-color: var(--cobalto); }
.filtros .n { opacity: .6; font-weight: 400; margin-left: 4px; }

.aviso-demo { text-align: center; font-size: 14px; background: #fff7e0; border: 1px solid #ecd9a2; color: #6b5414; padding: 10px 14px; border-radius: 12px; margin: 0 auto 20px; max-width: 640px; }

/* ---------- Grilla de productos ---------- */
.grilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .grilla { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1000px) { .grilla { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }

.pieza { background: var(--crema-clara); border: 1px solid var(--borde); border-radius: var(--radio); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 0 rgba(21,48,111,.03); scroll-margin-top: 84px; }
.pieza:target { outline: 3px solid var(--cobalto); outline-offset: 2px; }
.pieza__fotos { position: relative; aspect-ratio: 4 / 5; background: var(--arena); }
.pieza__carril { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pieza__carril::-webkit-scrollbar { display: none; }
.pieza__carril > * { flex: 0 0 100%; height: 100%; scroll-snap-align: center; }
.pieza__carril img { width: 100%; height: 100%; object-fit: cover; }
.pieza__ilustracion { display: grid; place-items: center; background: linear-gradient(180deg, #efe6d6, #e4d7c0); }
.pieza__ilustracion svg { width: 78%; height: auto; }
.pieza__puntos { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.pieza__puntos i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.6); box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.pieza__puntos i.activo { background: #fff; }
.pieza__sello { position: absolute; top: 10px; left: 10px; font: 700 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: var(--cobalto); color: #fff; }
.pieza__sello--agotada { background: var(--azul-noche); }
.pieza__sello--promo { background: #c0392b; }
.pieza__precio s { font: 600 15px/1 var(--sans); color: var(--texto-suave); margin-left: 8px; text-decoration-thickness: 1.5px; }
.pieza__cuerpo { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pieza h3 { font-size: 17px; line-height: 1.2; }
.pieza__detalle { font-size: 13px; color: var(--texto-suave); line-height: 1.35; }
.pieza__desc { display: none; font-size: 14px; line-height: 1.45; }
.pieza__pie { margin-top: auto; padding-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.pieza__precio { font: 600 22px/1 var(--serif); color: var(--azul-noche); }
.pieza__precio small { font: 600 12px/1 var(--sans); color: var(--texto-suave); margin-left: 4px; letter-spacing: .04em; }
.pieza .boton { min-height: 42px; padding: 0 12px; font-size: 15px; width: 100%; }
@media (min-width: 700px) {
  .pieza__cuerpo { padding: 16px 16px 18px; }
  .pieza h3 { font-size: 20px; }
  .pieza__desc { display: block; }
}

/* Catálogo vacío (antes de tener fotos) */
.vacio { grid-column: 1 / -1; text-align: center; background: var(--crema-clara); border: 1px dashed rgba(39,71,168,.35); border-radius: var(--radio); padding: 32px 18px; }
.vacio h3 { font-size: clamp(24px, 5vw, 32px); }
.vacio p { margin: 10px auto 0; max-width: 32em; }
.vacio__botones { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.vacio__tipos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 26px auto 0; max-width: 620px; }
.vacio__tipo { background: linear-gradient(180deg, #efe6d6, #e4d7c0); border-radius: 16px; padding: 12px 8px 10px; }
.vacio__tipo svg { width: 100%; height: auto; max-width: 150px; margin: 0 auto; display: block; }
.vacio__tipo b { display: block; font-family: var(--serif); color: var(--azul-noche); font-size: 17px; margin-top: 4px; }
.vacio__tipo span { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--cobalto); font-weight: 700; }
@media (min-width: 520px) { .vacio__tipo span { font-size: 12px; letter-spacing: .12em; } }

/* ---------- Pasos ---------- */
.pasos { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.pasos li { background: var(--crema-clara); border: 1px solid var(--borde); border-radius: var(--radio); padding: 20px 20px 20px 84px; position: relative; }
.pasos__n { position: absolute; left: 20px; top: 20px; width: 46px; height: 46px; border-radius: 50%; background: var(--cobalto); color: #fff; font: 600 22px/46px var(--serif); text-align: center; box-shadow: 0 0 0 3px var(--crema-clara), 0 0 0 5px var(--azul-noche); }
.pasos h3 { font-size: 21px; }
.pasos p { margin-top: 4px; font-size: 16px; }
@media (min-width: 860px) {
  .pasos { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .pasos li { padding: 84px 22px 24px; }
}

/* ---------- Envíos y pagos ---------- */
.tarjetas { display: grid; gap: 16px; }
@media (min-width: 760px) { .tarjetas { grid-template-columns: 1fr 1fr; gap: 24px; } }
.tarjeta { background: var(--crema-clara); border: 1px solid var(--borde); border-radius: var(--radio); padding: 26px 22px; }
.tarjeta__ico { width: 56px; height: 56px; border-radius: 50%; background: var(--cobalto); color: #fff; display: grid !important; place-items: center; }
.tarjeta__ico svg { width: 30px; height: 30px; }
.tarjeta h3 { font-size: 26px; margin-top: 14px; }
.tarjeta ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.tarjeta li { padding-left: 22px; position: relative; }
.tarjeta li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--cobalto); }
.tarjeta b { color: var(--azul-noche); }

/* ---------- Sobre nosotros ---------- */
.sobre__grid { display: grid; gap: 18px; text-align: center; max-width: 760px; }
.sobre h2 { font-size: clamp(28px, 5vw, 40px); }
.sobre p { margin-top: 12px; }
.emblema--grande { width: 180px; margin-bottom: 0; }

/* ---------- Contacto ---------- */
.contacto { background: var(--azul-noche); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.contacto::before { content: ""; position: absolute; inset: 0; background: url("img/moteado.png"); background-size: 360px; opacity: .25; mix-blend-mode: screen; }
.contacto__caja { position: relative; text-align: center; }
.contacto h2 { color: #fff; font-size: clamp(30px, 6vw, 44px); }
.contacto p { margin-top: 8px; opacity: .9; }
.contacto__botones { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ---------- Pie ---------- */
.pie { background: #10255a; color: rgba(255,255,255,.82); padding: 40px 0 calc(96px + env(safe-area-inset-bottom)); text-align: center; font-size: 15px; }
.pie__grid { display: grid; gap: 14px; justify-items: center; }
.pie__marca { width: 220px; height: auto; }
.pie__emblema { width: 96px; height: auto; opacity: .9; }
.pie__redes { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.pie__redes a { color: #fff; font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.pie__redes a:hover { text-decoration: underline; }
.pie__redes svg { width: 18px; height: 18px; }
.pie__legal { font-size: 13px; opacity: .6; }

/* ---------- Botón flotante y aviso ---------- */
.flotante {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--cobalto); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(21, 48, 111, .35);
  transition: transform .15s;
}
.flotante:hover { transform: scale(1.05); }
.flotante svg { width: 28px; height: 28px; }
.flotante.es-wa { background: var(--verde-wa); }

.aviso {
  position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 50;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  width: max-content; max-width: calc(100vw - 32px);
  background: var(--azul-noche); color: #fff; padding: 12px 18px; border-radius: 14px;
  font-size: 15px; line-height: 1.4; text-align: center; box-shadow: var(--sombra);
  transition: opacity .2s, transform .2s;
}
.aviso.visible { opacity: 1; transform: translate(-50%, 0); }
