/* ============================================================
   TIENDA DE REGALOS MONARCA · hoja de estilos
   Paleta tomada del logo real del negocio: coral y azul de la
   acuarela, mariposa monarca en naranja, tinta casi negra.
   ============================================================ */

:root {
  /* color de marca que consumen las animaciones (motion.css) */
  --mk-primario: #DD6B4A;

  --coral: #DD6B4A;
  --coral-claro: #F0937A;
  --coral-suave: #FBE7DF;
  --azul: #5B8CB0;
  --azul-suave: #E3EDF4;
  --naranja: #E8871E;
  --crema: #FDF6F0;
  --arena: #F6EAE0;
  --blanco: #FFFFFF;
  --tinta: #2B2320;
  --tinta-suave: #6E625B;
  --borde: #EADDD2;

  --sombra-s: 0 2px 10px rgba(74, 44, 30, .06);
  --sombra: 0 14px 38px rgba(74, 44, 30, .10);
  --sombra-g: 0 26px 70px rgba(74, 44, 30, .16);

  --radio: 22px;
  --radio-s: 14px;
  --ancho: 1180px;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --cuerpo: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: var(--cuerpo);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* height:auto evita que los atributos width/height del HTML deformen la imagen */
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  color: var(--tinta);
}
h1 { font-size: clamp(2.2rem, 5.8vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4.2vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 2.3vw, 1.45rem); }
p { margin: 0 0 1.1em; }

.contenedor { width: min(100% - 2.5rem, var(--ancho)); margin-inline: auto; }
.seccion { padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; }

.ojo {
  font-family: var(--cuerpo);
  font-size: .8rem; font-weight: 700;
  letter-spacing: .17em; text-transform: uppercase;
  color: var(--coral); margin-bottom: .9rem; display: block;
}

.apoyo { color: var(--tinta-suave); max-width: 62ch; font-size: 1.05rem; }
.centrado { text-align: center; }
.centrado .apoyo, .apoyo.centrado { margin-inline: auto; }

/* --- Fondos suaves ------------------------------------------- */
.acuarela { position: relative; isolation: isolate; }
.acuarela::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 45% at 8% 4%, rgba(91, 140, 176, .20), transparent 62%),
    radial-gradient(ellipse 46% 42% at 92% 16%, rgba(221, 107, 74, .18), transparent 62%),
    radial-gradient(ellipse 60% 50% at 55% 98%, rgba(232, 135, 30, .12), transparent 66%);
}
.fondo-arena { background: var(--arena); }

.franja-color {
  height: 5px;
  background: linear-gradient(90deg, var(--azul), var(--coral) 40%, var(--naranja) 65%, var(--azul));
  background-size: 300% 100%;
  animation: deslizar 16s linear infinite;
}
@keyframes deslizar { to { background-position: 300% 0; } }

/* --- Cabecera ------------------------------------------------ */
.cabecera {
  position: sticky; top: 0; z-index: 900;
  background: rgba(253, 246, 240, .9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--borde);
}
.cabecera-fila {
  min-height: 76px; display: flex; align-items: center;
  gap: 1rem; justify-content: space-between;
}
.cabecera-acciones { display: flex; align-items: center; gap: .6rem; }
/* min-width:0 permite que el nombre encoja en móvil en vez de desbordar */
.marca { display: flex; align-items: center; gap: .7rem; text-decoration: none; min-width: 0; }
.marca img { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; }
.marca b {
  font-family: var(--display); font-size: 1.05rem; font-weight: 600;
  line-height: 1.15; display: block; letter-spacing: -.01em;
}
.marca span { display: block; font-family: var(--cuerpo); font-size: .72rem; font-weight: 500; color: var(--tinta-suave); letter-spacing: .03em; }

.nav { display: flex; align-items: center; gap: .3rem; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: .55rem .9rem; border-radius: 999px; color: var(--tinta);
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--coral-suave); }
.nav a[aria-current="page"] { color: var(--coral); }

.tel-cabecera {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: .95rem; text-decoration: none;
  padding: .62rem 1.1rem; border-radius: 999px;
  background: var(--coral); color: #fff; white-space: nowrap;
  box-shadow: 0 8px 20px rgba(221, 107, 74, .28);
}
.tel-cabecera:hover { background: #C85A3B; }

.menu-btn {
  display: none; background: var(--blanco); border: 1px solid var(--borde);
  color: var(--tinta); border-radius: 11px; padding: .5rem .6rem; cursor: pointer;
}

/* --- Botones ------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--cuerpo); font-weight: 700; font-size: 1.02rem;
  text-decoration: none; cursor: pointer; border: 0;
  padding: .95rem 1.7rem; border-radius: 999px;
  transition: transform .2s cubic-bezier(.22, 1, .36, 1), background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-wa { background: #25A75A; color: #fff; box-shadow: 0 12px 28px rgba(37, 167, 90, .28); }
.btn-wa:hover { background: #1E8E4C; }
.btn-primario { background: var(--coral); color: #fff; box-shadow: 0 12px 28px rgba(221, 107, 74, .3); }
.btn-primario:hover { background: #C85A3B; }
.btn-fantasma { background: var(--blanco); color: var(--tinta); border: 1px solid var(--borde); box-shadow: var(--sombra-s); }
.btn-fantasma:hover { border-color: var(--coral); color: var(--coral); }

.botonera { display: flex; flex-wrap: wrap; gap: .9rem; }
.centrado .botonera { justify-content: center; }

/* --- Portada ------------------------------------------------- */
.portada { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.portada-rejilla { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; grid-template-columns: 1.05fr .95fr; }
.portada h1 em { font-style: italic; color: var(--coral); }

.sello { position: relative; display: grid; place-items: center; }
.sello::before {
  content: ""; position: absolute; width: 82%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 200deg, var(--azul), var(--coral), var(--naranja), var(--azul));
  filter: blur(48px); opacity: .38; animation: girar 26s linear infinite;
  /* aísla el halo en su propia capa: el desenfoque se calcula una
     vez y el giro infinito ya sólo cuesta componer */
  will-change: transform;
}
@keyframes girar { to { transform: rotate(360deg); } }
/* <picture> sólo envuelve la imagen para ofrecer el WebP; no debe
   contar como caja en la rejilla, o el logo se descoloca */
.sello picture { display: contents; }
.sello img { position: relative; width: min(100%, 430px); filter: drop-shadow(0 20px 40px rgba(74, 44, 30, .18)); }

.insignias { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.5rem; }
.insignia {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .87rem; font-weight: 600; color: var(--tinta);
  background: var(--blanco); border: 1px solid var(--borde);
  padding: .45rem .95rem; border-radius: 999px; box-shadow: var(--sombra-s);
}
.insignia svg { width: 15px; height: 15px; flex-shrink: 0; stroke: var(--coral); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* --- Cinta --------------------------------------------------- */
.cinta { border-block: 1px solid var(--borde); background: var(--blanco); padding: 1rem 0; }
.cinta .mk-marquee-track { font-family: var(--display); font-weight: 500; }
.cinta i {
  font-style: normal; display: inline-flex; align-items: center; gap: 3rem;
  color: var(--tinta); font-size: clamp(1rem, 2vw, 1.2rem);
}
.cinta i::after { content: "✦"; color: var(--coral); }

/* --- Tarjetas ------------------------------------------------ */
.rejilla { display: grid; gap: 1.3rem; }
.rejilla-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.rejilla-3 { grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); }
.rejilla-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.tarjeta {
  background: var(--blanco); border: 1px solid var(--borde);
  border-radius: var(--radio); padding: 1.7rem;
  box-shadow: var(--sombra-s);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s, border-color .35s;
}
.tarjeta:hover { transform: translateY(-5px); box-shadow: var(--sombra); border-color: var(--coral-claro); }
/* las tarjetas que son un enlace entero */
a.tarjeta { display: block; text-decoration: none; }
/* h2 y h3 son intercambiables dentro de una tarjeta: el nivel lo
   decide el sitio que ocupa en la página, no el tamaño de letra */
.tarjeta h2, .tarjeta h3 { font-size: clamp(1.15rem, 2.3vw, 1.45rem); margin-bottom: .4rem; }
.tarjeta p { color: var(--tinta-suave); font-size: .96rem; margin-bottom: 0; }

.icono {
  width: 54px; height: 54px; border-radius: 16px;
  display: grid; place-items: center; margin-bottom: 1.05rem;
  background: var(--coral-suave); border: 1px solid rgba(221, 107, 74, .22);
}
.icono svg { width: 26px; height: 26px; stroke: var(--coral); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icono--azul { background: var(--azul-suave); border-color: rgba(91, 140, 176, .25); }
.icono--azul svg { stroke: var(--azul); }

.numero {
  font-family: var(--display); font-size: 2.5rem; font-weight: 600;
  line-height: 1; margin-bottom: .5rem; color: var(--coral);
}

/* --- Galería de trabajos ------------------------------------- */
.galeria { display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); }
.galeria figure {
  margin: 0; border-radius: var(--radio); overflow: hidden;
  background: var(--arena); box-shadow: var(--sombra-s);
  position: relative; aspect-ratio: 1;
}
.galeria figure.ancha { grid-column: span 2; aspect-ratio: 2 / 1; }
.galeria--tres { grid-template-columns: repeat(3, 1fr); }
.galeria img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22, 1, .36, 1); }
.galeria figure:hover img { transform: scale(1.06); }
.galeria figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.4rem .95rem .85rem;
  font-size: .88rem; font-weight: 600; color: #fff;
  background: linear-gradient(to top, rgba(43, 35, 32, .82), transparent);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}

/* --- Precios ------------------------------------------------- */
.precios { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.precio {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  background: var(--blanco); border: 1px solid var(--borde);
  border-radius: var(--radio-s); padding: 1rem 1.2rem; box-shadow: var(--sombra-s);
}
.precio span { font-weight: 500; font-size: .98rem; line-height: 1.35; }
.precio b { font-family: var(--display); font-weight: 600; color: var(--coral); white-space: nowrap; font-size: 1.05rem; }
.nota-precio {
  font-size: .88rem; color: var(--tinta-suave); text-align: center;
  margin-top: 1.4rem; padding: .8rem 1rem;
  background: var(--azul-suave); border-radius: var(--radio-s);
}

/* --- Catálogo ------------------------------------------------ */
.buscador {
  display: flex; align-items: center; gap: .7rem;
  background: var(--blanco); border: 1px solid var(--borde);
  border-radius: 999px; padding: .8rem 1.3rem;
  max-width: 520px; margin: 0 auto 1.5rem; box-shadow: var(--sombra-s);
  transition: border-color .2s, box-shadow .2s;
}
/* El campo esconde su propio recuadro de foco, así que el aro lo
   pinta la píldora entera: sin esto, quien navega con el teclado
   no ve dónde está. Mismo aro que el resto de campos del sitio. */
.buscador:focus-within {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(221, 107, 74, .16);
}
.buscador input {
  flex: 1; background: none; border: 0; outline: none; min-width: 0;
  color: var(--tinta); font-family: var(--cuerpo); font-size: 1rem;
}
.buscador input::placeholder { color: #A3958B; }
.buscador svg { width: 19px; height: 19px; stroke: var(--tinta-suave); fill: none; stroke-width: 2; flex-shrink: 0; }

.filtros { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.6rem; }
.filtro {
  font-family: var(--cuerpo); font-weight: 600; font-size: .92rem;
  padding: .5rem 1.15rem; border-radius: 999px; cursor: pointer;
  background: var(--blanco); border: 1px solid var(--borde); color: var(--tinta);
  transition: background .2s, color .2s, border-color .2s;
}
.filtro:hover { border-color: var(--coral-claro); }
.filtro[aria-pressed="true"] { background: var(--coral); color: #fff; border-color: var(--coral); }

.grupo { margin-bottom: 3rem; scroll-margin-top: 100px; }
.grupo-titulo { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.2rem; }
.grupo-titulo h2 { margin: 0; font-size: clamp(1.15rem, 2.3vw, 1.45rem); }
.grupo-titulo .icono { width: 44px; height: 44px; margin: 0; border-radius: 13px; }
.grupo-titulo .icono svg { width: 21px; height: 21px; }
.grupo-titulo .cuenta { color: var(--tinta-suave); font-size: .87rem; margin-left: auto; white-space: nowrap; }

.lista-productos { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.producto {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  background: var(--blanco); border: 1px solid var(--borde);
  border-radius: var(--radio-s); padding: .85rem 1rem;
  text-decoration: none; color: var(--tinta); cursor: pointer;
  transition: background .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.producto:hover {
  background: var(--coral-suave); border-color: var(--coral-claro);
  transform: translateX(3px); box-shadow: var(--sombra-s);
}
.producto > span { font-weight: 500; font-size: .97rem; line-height: 1.35; }
.producto small { color: var(--tinta-suave); display: block; font-size: .82rem; }
.producto em {
  font-style: normal; font-size: .74rem; font-weight: 700; letter-spacing: .05em;
  color: var(--coral); text-transform: uppercase; white-space: nowrap;
  opacity: 0; transition: opacity .25s;
}
.producto:hover em { opacity: 1; }

.sin-resultados {
  text-align: center; color: var(--tinta-suave); padding: 3rem 1rem;
  border: 1px dashed var(--borde); border-radius: var(--radio); background: var(--blanco);
}

/* --- Formulario ---------------------------------------------- */
.formulario {
  background: var(--blanco); border: 1px solid var(--borde);
  border-radius: var(--radio); padding: clamp(1.5rem, 4vw, 2.4rem);
  box-shadow: var(--sombra);
}
.campo { margin-bottom: 1.1rem; }
.campo label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: .4rem; }
.campo input, .campo select, .campo textarea {
  width: 100%; padding: .85rem 1rem;
  background: var(--crema); color: var(--tinta);
  border: 1px solid var(--borde); border-radius: var(--radio-s);
  font-family: var(--cuerpo); font-size: 1rem; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.campo textarea { min-height: 130px; resize: vertical; }
.campo select { appearance: none; cursor: pointer; background-image: none; }
.campo input:focus, .campo select:focus, .campo textarea:focus {
  border-color: var(--coral); background: var(--blanco);
  box-shadow: 0 0 0 3px rgba(221, 107, 74, .16);
}
/* obligatorio sin rellenar (lo marca script.js al enviar). Va
   después de :focus, y con su misma fuerza, para que el aviso
   siga viéndose cuando el campo recibe el foco */
.campo input.campo-vacio, .campo select.campo-vacio, .campo textarea.campo-vacio { border-color: #D9534F; }
.campo input::placeholder, .campo textarea::placeholder { color: #A3958B; }
.dos-columnas { display: grid; gap: 0 1.15rem; grid-template-columns: 1fr 1fr; }
.nota-form { font-size: .86rem; color: var(--tinta-suave); margin: .9rem 0 0; }

/* --- Contacto ------------------------------------------------ */
.datos-contacto { display: grid; gap: .9rem; }
.dato {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--blanco); border: 1px solid var(--borde);
  border-radius: var(--radio-s); padding: 1.05rem 1.2rem;
  text-decoration: none; color: var(--tinta); box-shadow: var(--sombra-s);
  transition: border-color .25s, transform .25s;
}
.dato:hover { border-color: var(--coral-claro); transform: translateY(-2px); }
.dato .icono { width: 42px; height: 42px; border-radius: 12px; margin: 0; flex-shrink: 0; }
.dato .icono svg { width: 20px; height: 20px; }
.dato b { font-family: var(--display); font-weight: 600; display: block; font-size: 1.02rem; }
.dato small { color: var(--tinta-suave); font-size: .89rem; line-height: 1.5; display: block; }

.mapa { border: 1px solid var(--borde); border-radius: var(--radio); overflow: hidden; line-height: 0; background: var(--arena); box-shadow: var(--sombra-s); }
.mapa iframe { width: 100%; height: clamp(300px, 42vw, 430px); border: 0; }

/* --- Cierre -------------------------------------------------- */
.cierre {
  border-radius: clamp(20px, 4vw, 30px);
  padding: clamp(2.4rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3.5rem);
  text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--azul-suave), var(--coral-suave));
  border: 1px solid var(--borde);
}
.cierre h2 { max-width: 20ch; margin-inline: auto; }
.cierre .botonera { justify-content: center; }
.telefono-grande {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2rem, 6.5vw, 3.2rem); letter-spacing: -.02em;
  text-decoration: none; display: inline-block; margin: .2rem 0 1.4rem;
  color: var(--coral);
}
.telefono-grande:hover { color: #C85A3B; }

/* --- Pie ----------------------------------------------------- */
.pie { background: var(--tinta); color: #E8DED6; padding: clamp(2.6rem, 6vw, 3.8rem) 0 1.7rem; }
/* los títulos de columna del pie son h2 (secciones del pie), con su
   aspecto de rótulo pequeño: el nivel lo marca la estructura, no el
   tamaño de letra */
.pie h2 { font-family: var(--cuerpo); font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: var(--coral-claro); margin-bottom: .9rem; }
.pie .marca b { color: #fff; }
.pie .marca span { color: #B5A79E; }
.pie-rejilla { display: grid; gap: 2.2rem; grid-template-columns: 1.6fr .9fr 1.1fr 1.2fr; margin-bottom: 2.2rem; }
.pie ul { list-style: none; margin: 0; padding: 0; }
.pie li { margin-bottom: .5rem; }
.pie a { color: #C9BBB2; text-decoration: none; transition: color .2s; }
.pie a:hover { color: #fff; }
.pie p { color: #C9BBB2; font-size: .94rem; }
.pie-legal {
  border-top: 1px solid rgba(255, 255, 255, .13); padding-top: 1.3rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: .83rem; color: #9C8E85;
}

/* --- Franja de promoción ------------------------------------- */
.promo {
  background: linear-gradient(120deg, #C85A3B, var(--coral) 45%, var(--naranja));
  color: #fff; position: relative; overflow: hidden;
}
.promo::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 40% 70% at 12% 50%, rgba(255,255,255,.22), transparent 60%);
  pointer-events: none;
}
.promo-caja {
  position: relative; display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.5rem);
  padding: clamp(1.6rem, 4vw, 2.6rem) 0; flex-wrap: wrap; justify-content: center;
  text-align: center;
}
.promo-sello {
  flex-shrink: 0; width: clamp(96px, 12vw, 118px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; align-content: center; text-align: center; line-height: 1.02;
  background: #fff; color: var(--coral);
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem); letter-spacing: -.02em;
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
  transform: rotate(-7deg);
}
.promo-sello small { display: block; margin-top: .15rem; font-family: var(--cuerpo); font-size: .55rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.promo-texto { max-width: 60ch; }
.promo-texto b {
  display: block; font-family: var(--display); font-weight: 600;
  font-size: clamp(1.3rem, 3.2vw, 2rem); line-height: 1.15; margin-bottom: .35rem;
}
.promo-texto span { display: block; font-size: clamp(.95rem, 2vw, 1.08rem); opacity: .95; }
.promo-texto em {
  font-style: normal; font-weight: 700;
  background: rgba(255,255,255,.22); padding: 0 .35em; border-radius: 5px;
}
.promo .btn-fantasma { background: #fff; border-color: #fff; color: var(--coral); }
.promo .btn-fantasma:hover { color: #C85A3B; }
.promo-letra-chica { font-size: .8rem; opacity: .85; margin: .6rem 0 0; }

/* --- Horario -------------------------------------------------- */
.horario { list-style: none; margin: 0; padding: 0; }
.horario li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .5rem 0; border-bottom: 1px dashed var(--borde); font-size: .96rem;
}
.horario li:last-child { border-bottom: 0; }
.horario b { font-weight: 600; }
.horario .cerrado { color: #B4553C; font-weight: 600; }
.pie .horario li { border-color: rgba(255,255,255,.14); color: #C9BBB2; }
.pie .horario b { color: #E8DED6; }

/* --- Redes sociales ------------------------------------------ */
.redes { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.red {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; text-decoration: none;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  transition: transform .25s, background .25s;
}
.red:hover { transform: translateY(-3px); background: rgba(255,255,255,.2); }
.red svg { width: 21px; height: 21px; fill: currentColor; }
.pie .red { color: #E8DED6; }

/* --- Página de empresas -------------------------------------- */
.empresas-portada { background: linear-gradient(160deg, #2B2320, #3E322C 55%, #5A4238); color: #F7F2FB; }
.empresas-portada h1, .empresas-portada h2 { color: #fff; }
.empresas-portada .apoyo { color: #D8CBC2; }
.empresas-portada .ojo { color: var(--coral-claro); }
.empresas-portada .insignia { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #F7F2FB; }
.empresas-portada .insignia svg { stroke: var(--coral-claro); }
.empresas-rejilla { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; grid-template-columns: 1.1fr .9fr; }
.empresas-foto {
  border-radius: clamp(18px, 3vw, 26px); overflow: hidden; margin: 0;
  box-shadow: 0 30px 70px rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.14);
  position: relative;
}
.empresas-foto img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.empresas-foto figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.6rem 1.2rem 1rem; color: #fff; font-size: .9rem; font-weight: 600;
  background: linear-gradient(to top, rgba(20,14,12,.9), transparent);
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
@media (max-width: 900px) {
  .empresas-rejilla { grid-template-columns: 1fr; }
  .empresas-foto { max-width: 420px; margin-inline: auto; }
  .empresas-foto img { aspect-ratio: 16 / 11; }
}

.ventaja {
  background: var(--blanco); border: 1px solid var(--borde);
  border-radius: var(--radio); padding: 1.6rem;
  box-shadow: var(--sombra-s); position: relative;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s;
}
.ventaja:hover { transform: translateY(-5px); box-shadow: var(--sombra); }
.ventaja h3 { margin-bottom: .4rem; }
.ventaja p { color: var(--tinta-suave); font-size: .96rem; margin-bottom: 0; }

.escalones { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.escalon {
  background: var(--blanco); border: 1px solid var(--borde);
  border-radius: var(--radio-s); padding: 1.1rem 1.2rem; text-align: center;
  box-shadow: var(--sombra-s);
}
.escalon b { display: block; font-family: var(--display); font-size: 1.7rem; color: var(--coral); line-height: 1.1; }
.escalon span { font-size: .9rem; color: var(--tinta-suave); }

.aviso-ejemplos {
  font-size: .84rem; color: var(--tinta-suave); text-align: center;
  margin-top: 1.1rem; font-style: italic;
}

/* --- WhatsApp flotante --------------------------------------- */
.wa-flotante {
  position: fixed; right: 18px; bottom: 18px; z-index: 950;
  display: flex; align-items: center; gap: .6rem;
  background: #25A75A; color: #fff; text-decoration: none;
  font-weight: 700; font-size: .98rem;
  padding: .8rem 1.3rem; border-radius: 999px;
  box-shadow: 0 14px 30px rgba(28, 105, 57, .35);
  animation: latido 2.8s ease-out infinite;
  transition: transform .25s, background .2s;
}
.wa-flotante:hover { transform: scale(1.05); background: #1E8E4C; }
.wa-flotante svg { width: 24px; height: 24px; fill: #fff; flex-shrink: 0; }
@keyframes latido {
  0%   { box-shadow: 0 14px 30px rgba(28, 105, 57, .35), 0 0 0 0 rgba(37, 167, 90, .5); }
  70%  { box-shadow: 0 14px 30px rgba(28, 105, 57, .35), 0 0 0 18px rgba(37, 167, 90, 0); }
  100% { box-shadow: 0 14px 30px rgba(28, 105, 57, .35), 0 0 0 0 rgba(37, 167, 90, 0); }
}

/* --- Las animaciones sobre fondo claro ----------------------- */
/* el pulso siempre rodea un botón de WhatsApp: verde, no coral */
.mk-pulse::after { border-color: rgba(37, 167, 90, .75); }

/* --- Responsive ---------------------------------------------- */
@media (max-width: 980px) {
  .galeria, .galeria--tres { grid-template-columns: repeat(2, 1fr); }
  .galeria figure.ancha { grid-column: span 2; }
}

@media (max-width: 900px) {
  .portada-rejilla { grid-template-columns: 1fr; }
  .sello { max-width: 320px; margin-inline: auto; order: -1; }
  .pie-rejilla { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: .15rem;
    background: rgba(253, 246, 240, .98);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--borde);
    padding: .6rem 1.25rem 1.1rem;
  }
  .nav.abierto { display: flex; }
  .nav a { padding: .8rem .9rem; border-radius: var(--radio-s); }
  .tel-cabecera span { display: none; }
  .tel-cabecera { padding: .62rem .85rem; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .marca span { display: none; }
  .marca img { width: 42px; height: 42px; }
  .marca b { font-size: .88rem; line-height: 1.15; }
  .cabecera-fila { gap: .6rem; }
  .dos-columnas { grid-template-columns: 1fr; }
  .pie-rejilla { grid-template-columns: 1fr; }
  .lista-productos { grid-template-columns: 1fr; }
  .producto em { opacity: 1; }
  .galeria { grid-template-columns: 1fr; }
  .galeria figure.ancha { grid-column: span 1; aspect-ratio: 16 / 10; }
  .wa-flotante span { display: none; }
  .wa-flotante { padding: .95rem; right: 14px; bottom: 14px; }
  .botonera .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sello::before, .franja-color, .wa-flotante { animation: none; }
  .tarjeta:hover, .btn:hover, .producto:hover, .wa-flotante:hover, .dato:hover { transform: none; }
  .galeria figure:hover img { transform: none; }
}
