/* Millafor Panguipulli
   Verdes del logo, fondo cálido y fotos reales del local. */

:root {
  --verde: #22B14C;
  --verde-claro: #7ED957;
  --verde-texto: #157A36;
  --verde-suave: #E6F4EA;
  --bosque: #0F2D1C;
  --noche: #07150D;
  --tinta: #1A1F1B;
  --texto: #333A35;
  --gris: #646C66;
  --linea: #E2DDD2;
  --papel: #F4F1EA;
  --blanco: #FFFFFF;
  --ancho: 1160px;
  --fuente: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--fuente);
  font-size: 17px;
  line-height: 1.6;
  color: var(--texto);
  background: var(--papel);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
figure { margin: 0; }

h1, h2, h3 {
  margin: 0;
  color: var(--tinta);
  font-weight: 800;
  font-stretch: 104%;
  line-height: 1.1;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h2 { font-size: clamp(30px, 3.6vw, 42px); }

svg.i {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

.envoltura { width: min(var(--ancho), 100% - 32px); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.saltar {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: #fff; padding: 8px 14px; border-radius: 6px; font-weight: 700;
}
.saltar:focus { left: 8px; }

:is(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--verde-claro); outline-offset: 2px; }

/* Botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 20px;
  border: 2px solid transparent; border-radius: 8px;
  font: inherit; font-size: 16px; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.boton svg.i { width: 20px; height: 20px; }
.boton--verde { background: var(--verde); color: var(--noche); }
.boton--verde:hover { background: #2CC259; }
.boton--borde { border-color: var(--tinta); color: var(--tinta); }
.boton--borde:hover { background: var(--tinta); color: #fff; }
.boton--chico { padding: 9px 16px; font-size: 15px; }
.boton--ancho { width: 100%; }

/* Cabecera */
.cabecera {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linea);
}
.cabecera__fila { position: relative; display: flex; align-items: center; gap: 28px; min-height: 76px; }
.marca img { height: 58px; width: auto; }
.menu { display: flex; gap: 26px; margin-left: auto; }
.menu a { padding: 6px 0; font-weight: 600; color: var(--tinta); text-decoration: none; border-bottom: 2px solid transparent; }
.menu a:hover { border-bottom-color: var(--verde); }
.menu-boton {
  display: none; place-items: center;
  width: 44px; height: 44px; border: 1px solid var(--linea); border-radius: 8px;
  background: #fff; color: var(--tinta); cursor: pointer;
}
.menu-boton svg.i { width: 24px; height: 24px; }

/* Portada */
.hero { padding: 56px 0 64px; }
.hero__grilla { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero__lugar { margin: 0 0 14px; font-weight: 700; color: var(--verde-texto); }
.hero h1 { font-size: clamp(40px, 5vw, 62px); font-weight: 900; font-stretch: 108%; letter-spacing: -.02em; }
.hero__bajada { max-width: 520px; margin: 20px 0 14px; font-size: 19px; }
.hero__autorizado { max-width: 520px; margin: 0 0 28px; padding-left: 14px; border-left: 3px solid var(--verde); color: var(--tinta); }
.hero__acciones { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__horario { margin: 22px 0 0; font-size: 15px; color: var(--gris); }
.hero__horario a { color: var(--tinta); font-weight: 600; text-decoration: none; }
.hero__foto img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.hero__foto figcaption { margin-top: 10px; font-size: 14px; color: var(--gris); }

/* Marcas */
.marcas { border-block: 1px solid var(--linea); background: var(--blanco); }
.marcas__fila { display: flex; align-items: center; gap: 12px 32px; flex-wrap: wrap; padding: 18px 0; }
.marcas__titulo { font-size: 14px; color: var(--gris); }
.marcas ul { display: flex; flex-wrap: wrap; gap: 8px 30px; list-style: none; margin: 0; padding: 0; }
.marcas li { font-weight: 800; font-stretch: 112%; font-size: 17px; color: #4A524C; letter-spacing: .01em; }

/* Secciones */
.seccion { padding: 88px 0; }
.titulo-fila { display: flex; align-items: end; justify-content: space-between; gap: 16px 48px; flex-wrap: wrap; margin-bottom: 36px; }
.titulo-fila p { max-width: 460px; margin: 0; color: var(--gris); }
.titulo-fila p a { color: var(--verde-texto); font-weight: 700; }

/* Productos */
.productos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.producto { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--linea); border-radius: 10px; background: var(--blanco); }
.producto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.producto--grande { grid-row: span 2; }
.producto--grande img { flex: 1; aspect-ratio: auto; min-height: 320px; }
.producto__texto { padding: 18px 20px 20px; }
.producto h3 { font-size: 20px; }
.producto p { margin: 6px 0 12px; font-size: 15px; line-height: 1.5; color: var(--gris); }
.producto a { font-size: 15px; font-weight: 700; color: var(--verde-texto); text-decoration: none; }
.producto a::after { content: " →"; }
.producto a:hover { text-decoration: underline; }
.productos__mas { margin: 26px 0 0; color: var(--gris); }

/* Taller */
.taller { padding: 88px 0; background: var(--bosque); color: #C9D6CD; }
.taller h2 { color: #fff; }
.taller__grilla { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.taller__intro { max-width: 560px; margin: 16px 0 20px; font-size: 18px; }
.taller__lista { list-style: none; margin: 0 0 36px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.taller__lista li { position: relative; padding-left: 20px; color: #fff; font-weight: 600; }
.taller__lista li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--verde-claro); }
.taller__fotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.taller__fotos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; }
.taller__fotos figcaption { margin-top: 8px; font-size: 14px; line-height: 1.4; color: #E4ECE6; }
.taller__fotos figcaption span { display: block; margin-top: 2px; font-size: 12px; color: #8FA596; }

.tarjeta-form { padding: 28px; border-radius: 10px; background: #fff; color: var(--texto); }
.tarjeta-form h3 { font-size: 22px; }
.tarjeta-form > p { margin: 6px 0 20px; font-size: 15px; color: var(--gris); }
.tarjeta-form .campo { margin-bottom: 14px; }
.tarjeta-form { position: relative; }
.form-nota { margin: 10px 0 0; font-size: 13px; color: var(--gris); text-align: center; }

/* Campos */
.campo label, .opciones legend {
  display: block; padding: 0; margin-bottom: 7px;
  font-size: 14px; font-weight: 700; color: var(--tinta);
}
.campo small { font-weight: 500; color: var(--gris); }
input[type="text"], input[type="tel"], input[type="number"], input[type="password"], select, textarea {
  width: 100%; padding: 11px 12px;
  border: 1.5px solid var(--linea); border-radius: 8px;
  background: #fff; color: var(--tinta);
  font: inherit; font-size: 16px;
}
input:focus, select:focus, textarea:focus { border-color: var(--verde); outline: none; box-shadow: 0 0 0 3px rgba(34, 177, 76, .18); }
textarea { min-height: 104px; resize: vertical; }

/* Cadenas */
.cadenas__grilla { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.cadenas__intro { max-width: 560px; margin: 16px 0 26px; font-size: 18px; }
.espada { padding: 24px; border: 1px solid var(--linea); border-radius: 10px; background: var(--blanco); }
.espada svg { width: 100%; height: auto; overflow: visible; }
.espada__etiquetas circle { fill: var(--verde); }
.espada__etiquetas text { fill: var(--noche); font: 800 15px var(--fuente); text-anchor: middle; }
.espada__etiquetas text.nombre { fill: var(--tinta); font-weight: 700; }
.espada__guias { stroke: var(--verde-texto); stroke-width: 1.5; stroke-dasharray: 4 4; fill: none; }
.espada__sello text { fill: #3C4540; font: 700 17px ui-monospace, Consolas, "Courier New", monospace; text-anchor: middle; letter-spacing: .04em; }
.espada figcaption { margin-top: 14px; font-size: 15px; color: var(--gris); }
.espada figcaption a { color: var(--verde-texto); font-weight: 700; }

.buscador { position: relative; padding: 26px; border: 1px solid var(--linea); border-radius: 10px; background: var(--blanco); }
.opciones { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 9px 14px;
  border: 1.5px solid var(--linea); border-radius: 8px;
  background: #fff; color: var(--tinta);
  font-size: 15px; font-weight: 700;
  transition: background .15s, border-color .15s;
}
.chip input:hover + span { border-color: var(--verde); }
.chip input:checked + span { background: var(--verde); border-color: var(--verde); color: var(--noche); }
.chip input:focus-visible + span { outline: 3px solid var(--verde-claro); outline-offset: 2px; }
.campo-fila { display: grid; grid-template-columns: 150px 1fr; gap: 12px; margin-bottom: 18px; }
.contador { display: flex; border: 1.5px solid var(--linea); border-radius: 8px; overflow: hidden; }
.contador:focus-within { border-color: var(--verde); box-shadow: 0 0 0 3px rgba(34, 177, 76, .18); }
.contador input { min-width: 0; border: 0; border-radius: 0; padding: 11px 2px; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.contador input:focus { box-shadow: none; }
.contador input::-webkit-outer-spin-button,
.contador input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.contador button { flex: none; width: 38px; border: 0; background: var(--papel); color: var(--tinta); font-size: 20px; font-weight: 700; cursor: pointer; }
.contador button:hover { background: var(--verde-suave); }
.buscador__resumen {
  margin: 0 0 14px; padding: 11px 14px;
  border-left: 4px solid var(--linea); border-radius: 6px;
  background: var(--papel); color: var(--gris);
  font-size: 15px; font-weight: 600;
}
.buscador__resumen.listo { border-left-color: var(--verde); color: var(--tinta); }
.buscador__resumen.aviso { border-left-color: #D98C1F; color: var(--tinta); }

/* Instagram */
.insta { padding: 0 0 88px; }
.insta__grilla { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.insta__grilla img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; transition: opacity .15s; }
.insta__grilla a:hover img { opacity: .85; }

/* Contacto */
.contacto { background: var(--blanco); border-top: 1px solid var(--linea); }
.contacto__grilla { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: stretch; }
.datos { margin: 24px 0 28px; }
.datos div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--linea); }
.datos div:first-child { border-top: 1px solid var(--linea); }
.datos dt { color: var(--gris); font-size: 15px; }
.datos dd { margin: 0; color: var(--tinta); font-weight: 600; overflow-wrap: anywhere; }
.datos a { text-decoration: none; }
.datos a:hover { color: var(--verde-texto); text-decoration: underline; }
.contacto__acciones { display: flex; flex-wrap: wrap; gap: 12px; }
.mapa { min-height: 420px; overflow: hidden; border: 1px solid var(--linea); border-radius: 10px; background: #E4E8E2; }
.mapa iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }

/* Pie */
.pie { padding: 44px 0 24px; background: var(--noche); color: #A3B5A9; font-size: 15px; }
.pie__fila { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.pie img { height: 76px; width: auto; }
.pie p { margin: 0 0 6px; }
.pie strong { color: #fff; }
.pie a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.pie a:hover { color: #fff; }
.pie__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 28px; padding: 18px 76px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px;
}
.pie__credito a { color: #fff; font-weight: 700; }
.pie__credito a:hover { color: var(--verde-claro); }
.corazon { color: #E5484D; }

/* WhatsApp flotante */
.wa-flotante {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--verde); color: var(--noche);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .35);
}
.wa-flotante svg.i { width: 30px; height: 30px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Tablet */
@media (max-width: 980px) {
  .hero__grilla, .taller__grilla, .cadenas__grilla, .contacto__grilla { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 36px; }
  .hero__foto { max-width: 620px; }
  .productos { grid-template-columns: repeat(2, 1fr); }
  .producto--grande { grid-row: auto; grid-column: span 2; }
  .producto--grande img { aspect-ratio: 16 / 10; min-height: 0; }
}

@media (max-width: 860px) {
  .cabecera__fila { gap: 12px; min-height: 68px; }
  .marca img { height: 50px; }
  .cabecera .boton--chico { margin-left: auto; }
  .menu-boton { display: grid; }
  .menu {
    position: absolute; top: 100%; left: -16px; right: -16px; margin: 0;
    flex-direction: column; gap: 0; padding: 6px 16px 14px;
    border-bottom: 1px solid var(--linea); background: #fff;
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .2);
    display: none;
  }
  .menu.abierto { display: flex; }
  .menu a { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid var(--linea); }
  .menu a:last-child { border-bottom: 0; }
}

/* Celular */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .seccion, .taller { padding: 60px 0; }
  .insta { padding-bottom: 60px; }
  .hero__bajada { font-size: 17px; }
  .hero__acciones .boton { flex: 1 1 auto; }
  .productos { grid-template-columns: 1fr; }
  .producto--grande { grid-column: auto; }
  .taller__lista { grid-template-columns: 1fr; }
  .taller__fotos { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .taller__fotos figcaption { font-size: 12px; }
  .tarjeta-form, .buscador, .espada { padding: 18px; }
  .campo-fila { grid-template-columns: 1fr; }
  .insta__grilla { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .datos div { grid-template-columns: 90px 1fr; gap: 10px; }
  .mapa, .mapa iframe { min-height: 300px; }
}
