/* nube · helado suave
   Tokens tomados del manual de marca (design/manual-de-marca), versión 1.0.
   Azul nube sobre crema; Comfortaa Light solo en el lema, Quicksand en el resto. */

:root {
  color-scheme: light;

  --azul: #5C8CAF;
  --crema: #F9F2E9;
  --profundo: #4A6779;
  --leche: #FFFAF3;
  --destello: #DFB27D;
  --oro: #D09450;
  --accion: #477190;
  --accion-2: #3C617B;
  --tinta: #2F4A5C;
  --bruma: #DCE7F0;
  --crema-dim: #F1E7DA;
  --linea: #E6DACB;
  --tierra: #E8DCCE;
  --gris: #8C9BA5;
  --claro-sobre-azul: #AFC6D8;

  --f-marca: "Comfortaa", ui-rounded, sans-serif;
  --f-texto: "Quicksand", ui-rounded, "Segoe UI", system-ui, sans-serif;

  --gutter: 20px;
  --ancho: 1200px;
  --r-chico: 16px;
  --r-medio: 22px;
  --r-grande: 26px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: auto;
  /* que el encabezado pegajoso no tape el destino de los anclas */
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--crema);
  color: var(--profundo);
  font-family: var(--f-texto);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: var(--profundo); text-decoration: none; }
a:hover { color: var(--tinta); }

:focus-visible {
  outline: 3px solid var(--accion);
  outline-offset: 3px;
  border-radius: 6px;
}

.saltar {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 14px 22px;
  background: var(--accion);
  color: var(--leche);
  font-weight: 700;
  border-radius: 0 0 var(--r-chico) 0;
}
.saltar:focus { left: 0; color: var(--leche); }

.contenedor {
  width: 100%;
  max-width: var(--ancho);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Tipografía de marca ---------- */

h1 {
  font-size: clamp(30px, 5.2vw, 52px);
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--profundo);
}

h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--profundo);
}

h3 {
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.25;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--profundo);
}

/* Comfortaa Light: una sola vez por página, en minúsculas y desde 36px */
.lema {
  font-family: var(--f-marca);
  font-weight: 300;
  font-size: clamp(36px, 5.4vw, 56px);
  line-height: 1.2;
  color: var(--azul);
}

.parrafo-grande {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
  max-width: 62ch;
}

.etiqueta {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--azul);
}
.etiqueta--clara { color: var(--claro-sobre-azul); }

.titulo-seccion {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  margin-bottom: 36px;
}
.titulo-seccion p {
  font-size: clamp(16px, 1.5vw, 19px);
  max-width: 78ch;
}
.separador { width: 220px; height: auto; margin-top: 4px; }

/* ---------- Botones ---------- */

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}
.boton--grande { min-height: 56px; padding-inline: 32px; font-size: 16px; }

/* Azul acción, no azul nube: con texto de 15-16px el azul nube da 3.3:1 y no pasa AA */
.boton--solido { background: var(--accion); color: var(--leche); }
.boton--solido:hover { background: var(--accion-2); color: var(--leche); }

.boton--linea { border: 2px solid var(--azul); color: var(--profundo); }
.boton--linea:hover { background: var(--bruma); color: var(--tinta); }

.boton--crema { background: var(--crema); color: var(--tinta); }
.boton--crema:hover { background: var(--leche); color: var(--tinta); }

.botonera { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Encabezado ---------- */

.encabezado {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--crema);
  border-bottom: 1px solid var(--linea);
}
.encabezado__fila {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 80px;
  padding-block: 12px;
}
.encabezado__marca img { width: 104px; height: auto; }
.encabezado__nav {
  display: none;
  flex-grow: 1;
  gap: 32px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.encabezado .boton { margin-left: auto; }

@media (min-width: 900px) {
  .encabezado__nav { display: flex; }
  .encabezado .boton { margin-left: 0; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 48px 8px;
}
.hero__fila {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}
.hero__texto { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero__foto img { width: min(320px, 76vw); height: auto; }

.destello { position: absolute; opacity: 0.8; pointer-events: none; }
.destello--a { top: 12px; right: 7%; width: 20px; }
.destello--b, .destello--c { display: none; }

.cajas-dato { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.caja-dato {
  padding: 20px 26px;
  background: var(--leche);
  border: 3px solid var(--azul);
  border-radius: var(--r-medio);
  text-align: center;
}
.caja-dato__valor {
  margin-top: 8px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  color: var(--tinta);
  line-height: 1.2;
}
.caja-dato__pie { margin-top: 4px; font-size: 15px; }

@media (min-width: 1000px) {
  .hero { padding-block: 76px 24px; }
  .hero__fila { flex-direction: row; align-items: flex-start; text-align: left; gap: 64px; }
  .hero__texto { align-items: flex-start; flex: 1 1 620px; }
  .hero__foto { flex: 0 0 auto; }
  .hero__foto img { width: 372px; }
  .botonera { justify-content: flex-start; }
  .caja-dato { text-align: left; }
  .destello--b, .destello--c { display: block; }
  .destello--a { top: 22px; left: 56%; width: 30px; }
  .destello--b { top: 330px; right: 1%; width: 44px; }
  .destello--c { bottom: 10%; left: 1.5%; width: 22px; }
}

/* ---------- Pasos ---------- */

.pasos {
  padding-block: 56px;
  background: var(--leche);
  border-block: 1px solid var(--linea);
}
.pasos__lista {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.paso {
  padding: 30px 28px;
  background: var(--crema);
  border: 2px solid var(--linea);
  border-radius: var(--r-grande);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.paso__numero {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--azul);
  color: var(--crema);
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nota-sabor {
  margin-top: 24px;
  padding: 20px 26px;
  background: var(--crema);
  border: 3px solid var(--azul);
  border-radius: var(--r-medio);
  font-size: 17px;
  line-height: 1.55;
  text-align: center;
}

@media (min-width: 820px) {
  .pasos { padding-block: 72px; }
  .nota-sabor { margin-top: 32px; font-size: 18px; }
  .pasos__lista { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .paso { align-items: flex-start; text-align: left; }
}

/* ---------- Prioridad ---------- */

.prioridad { padding-block: 56px; }
.prioridad__fila {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.prioridad__trazo { width: 96px; height: auto; }
.prioridad h2 { margin-bottom: 14px; }
.prioridad p { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; max-width: 80ch; }

@media (min-width: 900px) {
  .prioridad { padding-block: 64px; }
  .prioridad__fila { flex-direction: row; text-align: left; gap: 56px; }
  .prioridad__trazo { width: 132px; flex-shrink: 0; }
}

/* ---------- Galería ---------- */

.galeria { padding-block: 56px; }
.galeria__rejilla {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.tarjeta-foto {
  background: var(--leche);
  border: 2px solid var(--linea);
  border-radius: var(--r-medio);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tarjeta-foto__zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
}
.tarjeta-foto picture { display: block; }
.tarjeta-foto picture img { transition: transform .35s ease; }
.tarjeta-foto__zoom:hover picture img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .tarjeta-foto picture img,
  .tarjeta-foto__zoom:hover picture img { transition: none; transform: none; }
}
.tarjeta-foto picture img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--crema-dim);
}
.tarjeta-foto__pie {
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--tinta);
  line-height: 1.35;
}

@media (min-width: 820px) {
  .galeria { padding-block: 76px; }
  .galeria__rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .tarjeta-foto picture img { height: 420px; }
  .tarjeta-foto__pie { padding: 16px 18px; font-size: 19px; }
}

/* ---------- Dónde estamos ---------- */

.visitanos { padding-block: 56px; background: var(--azul); }
.visitanos h2 { color: var(--crema); }
.visitanos__fila { display: flex; flex-direction: column; gap: 28px; }
.visitanos__datos { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }

.visitanos address { font-style: normal; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.calle { font-size: clamp(22px, 2.4vw, 29px); font-weight: 700; color: var(--crema); line-height: 1.3; }
.colonia { font-size: clamp(17px, 1.8vw, 24px); font-weight: 500; color: var(--crema); line-height: 1.3; }

.chip { padding: 16px 22px; background: var(--profundo); border-radius: 18px; }
.chip__valor { margin-top: 8px; font-size: clamp(17px, 1.6vw, 21px); font-weight: 700; color: var(--crema); }

.redes { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.redes__icono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--crema);
  color: var(--tinta);
  flex-shrink: 0;
}
.redes__icono:hover { background: var(--leche); color: var(--accion); }
.redes__usuario { font-size: clamp(17px, 1.6vw, 21px); font-weight: 700; color: var(--crema); }

.mapa {
  padding: 16px;
  background: var(--leche);
  border-radius: var(--r-grande);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mapa__dibujo, .mapa iframe {
  border-radius: 18px;
  overflow: hidden;
  background: var(--tierra);
  border: 0;
  width: 100%;
}
.mapa__dibujo svg { width: 100%; height: auto; }
.mapa__pie {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--profundo);
  text-align: left;
}
.mapa__pie img { width: 76px; height: 76px; flex-shrink: 0; }

@media (min-width: 1000px) {
  .visitanos { padding-block: 72px; }
  .visitanos__fila { flex-direction: row; align-items: stretch; gap: 48px; }
  .visitanos__datos { flex: 0 0 470px; align-items: flex-start; text-align: left; }
  .visitanos address { align-items: flex-start; }
  .mapa { flex: 1 1 auto; padding: 20px; gap: 16px; }
  .mapa__pie { font-size: 16px; }
  .mapa__pie img { width: 84px; height: 84px; }
}

/* ---------- Preguntas ---------- */

.preguntas { padding-block: 56px; }
.preguntas__rejilla { display: grid; grid-template-columns: 1fr; gap: 16px; }
.pregunta {
  padding: 24px 26px;
  background: var(--leche);
  border: 2px solid var(--linea);
  border-radius: var(--r-medio);
}
.pregunta dt { font-size: clamp(17px, 1.7vw, 19px); font-weight: 700; color: var(--tinta); margin-bottom: 10px; }
.pregunta dd { font-size: 16px; line-height: 1.55; }

@media (min-width: 820px) {
  .preguntas { padding-block: 76px; }
  .preguntas__rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; }
  .pregunta { padding: 28px 30px; }
  .pregunta dd { font-size: 17px; }
}

/* ---------- Pie ---------- */

.pie { padding-block: 44px; background: var(--profundo); color: var(--crema); }
.pie a { color: var(--crema); }
.pie__fila {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}
.pie__marca img { width: 140px; height: auto; margin-inline: auto; }
.pie__marca p { margin-top: 14px; font-size: 15px; color: var(--bruma); }
.pie__col p { font-size: 16px; line-height: 1.5; color: var(--crema); }
.pie__col .etiqueta { margin-bottom: 10px; }
.pie .redes { justify-content: center; }
/* El ícono hereda color de `.pie a` (más específico) y se volvía crema
   sobre crema: invisible. Se fija aquí con la misma especificidad. */
.pie a.redes__icono { width: 42px; height: 42px; color: var(--tinta); }
.pie a.redes__icono:hover { color: var(--accion); }

@media (min-width: 900px) {
  .pie { padding-block: 54px; }
  .pie__fila { flex-direction: row; align-items: flex-start; text-align: left; gap: 56px; }
  .pie__marca { flex: 0 0 280px; }
  .pie__marca img { margin-inline: 0; }
  .pie .redes { justify-content: flex-start; }
}

/* ---------- Visor de fotos ---------- */

.visor {
  width: min(100vw, 1200px);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--crema);
  overflow: hidden;
}
.visor::backdrop { background: rgba(31, 48, 60, 0.92); }

.visor__cuerpo {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 72px 16px 24px;
  box-sizing: border-box;
}

.visor__lienzo {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  touch-action: none;
  cursor: zoom-in;
}
.visor__lienzo[data-zoom="si"] { cursor: grab; }
.visor__lienzo[data-zoom="si"]:active { cursor: grabbing; }
.visor__lienzo picture { display: contents; }
.visor__img {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: var(--r-medio);
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
}

.visor__barra {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.visor__pie { font-size: 17px; font-weight: 700; color: var(--crema); }
.visor__cuenta {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--claro-sobre-azul);
}

.visor__control {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--crema);
  color: var(--tinta);
  cursor: pointer;
  padding: 0;
}
.visor__control:hover { background: var(--leche); color: var(--accion); }
.visor__control--cerrar { top: 16px; right: 16px; }
.visor__control--anterior { left: 16px; top: 50%; transform: translateY(-50%); }
.visor__control--siguiente { right: 16px; top: 50%; transform: translateY(-50%); }

@media (min-width: 820px) {
  .visor__cuerpo { padding: 80px 88px 32px; }
  .visor__control { width: 56px; height: 56px; }
  .visor__pie { font-size: 19px; }
}
