/* ==========================================================================
   Dulcería Fiesta Sorpresa · Hoja de estilos
   Paleta tomada del logotipo original: rosa fuerte, rosa claro y verde lima.
   ========================================================================== */

:root {
  --rosa: #ec2e7d;
  --rosa-oscuro: #c4155f;
  --rosa-claro: #fcd6e9;
  --rosa-palido: #fff3f9;
  --lima: #c9ee4a;
  --lima-oscuro: #a8cc2f;
  --menta: #8fdfc6;
  --whatsapp: #25d366;
  --whatsapp-oscuro: #1da851;

  --tinta: #3a2333;
  --texto-suave: #7c6a75;
  --borde: #f4dce8;
  --blanco: #ffffff;

  --radio: 22px;
  --radio-sm: 14px;
  --radio-pill: 999px;
  --sombra: 0 12px 30px rgba(236, 46, 125, 0.10);
  --sombra-hover: 0 20px 44px rgba(236, 46, 125, 0.20);
  --ancho: 1180px;

  --fuente-titulos: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --fuente-texto: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--fuente-texto); color: var(--tinta); background: var(--blanco); line-height: 1.7; font-size: 1.02rem; -webkit-font-smoothing: antialiased; }
body.sin-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: var(--rosa); text-decoration: none; }
a:hover { color: var(--rosa-oscuro); }

h1, h2, h3, h4 { font-family: var(--fuente-titulos); font-weight: 700; line-height: 1.15; color: var(--tinta); margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1rem; }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 22px; }
.seccion { padding: clamp(52px, 7vw, 92px) 0; }
.seccion--rosa { background: var(--rosa-palido); }
.centrado { text-align: center; }
.centrado p { max-width: 660px; margin-left: auto; margin-right: auto; }

.antetitulo { display: inline-block; font-family: var(--fuente-titulos); font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rosa); background: var(--rosa-claro); padding: 7px 18px; border-radius: var(--radio-pill); margin-bottom: 18px; }
.antetitulo--claro { background: rgba(255,255,255,.25); color: #fff; }

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

.boton { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: 14px 30px; border-radius: var(--radio-pill); font-family: var(--fuente-titulos); font-weight: 700; font-size: 1.02rem; border: 0; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease; }
.boton:hover { transform: translateY(-3px); }
.boton svg { width: 20px; height: 20px; fill: currentColor; flex: none; }

.boton--primario { background: var(--rosa); color: #fff; box-shadow: 0 10px 22px rgba(236, 46, 125, .32); }
.boton--primario:hover { background: var(--rosa-oscuro); color: #fff; }

.boton--lima { background: var(--lima); color: #2f3a05; box-shadow: 0 10px 22px rgba(168, 204, 47, .35); }
.boton--lima:hover { background: var(--lima-oscuro); color: #2f3a05; }

.boton--whatsapp { background: var(--whatsapp); color: #fff; box-shadow: 0 10px 22px rgba(37, 211, 102, .35); }
.boton--whatsapp:hover { background: var(--whatsapp-oscuro); color: #fff; }

.boton--blanco { background: #fff; color: var(--rosa); box-shadow: var(--sombra); }
.boton--blanco:hover { color: var(--rosa-oscuro); }

.boton--borde { background: transparent; color: var(--rosa); border: 2px solid var(--rosa-claro); }
.boton--borde:hover { background: var(--rosa-palido); color: var(--rosa-oscuro); }

.boton--chico { padding: 10px 20px; font-size: .92rem; }
.boton--ancho { width: 100%; }

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

.cabecera { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .93); backdrop-filter: blur(12px); border-bottom: 1px solid var(--borde); transition: box-shadow .2s ease; }
.cabecera--scroll { box-shadow: 0 6px 24px rgba(236, 46, 125, .10); }
.cabecera__interior { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 82px; }

.marca { display: flex; align-items: center; gap: 12px; }
.marca img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 3px solid var(--rosa-claro); transition: transform .2s ease; }
.marca:hover img { transform: rotate(-6deg) scale(1.05); }
.marca__texto { display: flex; flex-direction: column; line-height: 1.05; }
.marca__nombre { font-family: var(--fuente-titulos); font-weight: 700; font-size: 1.14rem; color: var(--rosa); }
.marca__sub { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--texto-suave); }

.nav { display: flex; align-items: center; gap: 2px; }
.nav > a, .nav__item > a { padding: 10px 16px; border-radius: var(--radio-pill); color: var(--tinta); font-weight: 600; font-size: .97rem; display: inline-flex; align-items: center; gap: 5px; }
.nav > a:hover, .nav__item > a:hover { background: var(--rosa-palido); color: var(--rosa); }
.nav a.is-active { color: var(--rosa); background: var(--rosa-claro); }

.nav__item { position: relative; }
.nav__flecha { font-size: .7rem; transition: transform .2s ease; }
.nav__item:hover .nav__flecha { transform: rotate(180deg); }
.nav__sub { position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; background: #fff; border: 1px solid var(--borde); border-radius: var(--radio-sm); box-shadow: var(--sombra); padding: 8px; display: none; flex-direction: column; }
.nav__item:hover .nav__sub, .nav__item:focus-within .nav__sub { display: flex; }
.nav__sub a { padding: 10px 14px; border-radius: 10px; color: var(--tinta); font-size: .94rem; font-weight: 600; }
.nav__sub a:hover { background: var(--rosa-palido); color: var(--rosa); }
.nav__sub a:first-child { border-bottom: 1px solid var(--borde); border-radius: 10px 10px 0 0; padding-bottom: 12px; margin-bottom: 4px; }

.menu-toggle { display: none; background: var(--rosa-palido); border: 0; border-radius: var(--radio-sm); padding: 11px 13px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2.5px; background: var(--rosa); margin: 4.5px 0; border-radius: 2px; }

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

.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--rosa) 0%, #ff5ba0 55%, #ff7ab5 100%); color: #fff; padding: clamp(56px, 8vw, 104px) 0; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 460px; height: 460px; right: -140px; top: -170px; background: radial-gradient(circle, rgba(201, 238, 74, .55), transparent 62%); }
.hero::after { width: 380px; height: 380px; left: -150px; bottom: -190px; background: radial-gradient(circle, rgba(255, 255, 255, .28), transparent 65%); }

.hero__interior { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero--pagina .hero__interior { display: block; }
.hero h1 { color: #fff; text-shadow: 0 3px 16px rgba(160, 10, 80, .28); }
.hero p { font-size: 1.14rem; color: #ffe6f2; max-width: 560px; }
.hero__acciones { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero__imagen { position: relative; }
.hero__imagen img { width: 100%; border-radius: 28px; box-shadow: 0 26px 60px rgba(120, 0, 60, .35); border: 6px solid rgba(255, 255, 255, .9); }
.hero__insignia { position: absolute; bottom: -18px; left: -18px; background: var(--lima); color: #2f3a05; font-family: var(--fuente-titulos); font-weight: 700; padding: 14px 22px; border-radius: var(--radio); box-shadow: 0 14px 30px rgba(90, 120, 0, .3); line-height: 1.15; text-align: center; }
.hero__insignia strong { display: block; font-size: 1.5rem; }

.hero__datos { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 44px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .3); }
.hero__dato strong { display: block; font-family: var(--fuente-titulos); font-size: 1.8rem; color: #fff; }
.hero__dato span { font-size: .9rem; color: #ffd9ea; }

/* ------------------------------ Categorías ------------------------------ */

.categorias { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.categoria { position: relative; border-radius: var(--radio); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--sombra); transition: transform .2s ease, box-shadow .2s ease; display: block; }
.categoria:hover { transform: translateY(-6px); box-shadow: var(--sombra-hover); }
.categoria img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.categoria:hover img { transform: scale(1.07); }
.categoria__velo { position: absolute; inset: 0; background: linear-gradient(to top, rgba(58, 35, 51, .85) 0%, rgba(58, 35, 51, .2) 55%, transparent 100%); }
.categoria__texto { position: absolute; left: 20px; right: 20px; bottom: 18px; color: #fff; }
.categoria__texto h3 { color: #fff; margin: 0; font-size: 1.4rem; }
.categoria__texto span { font-size: .85rem; color: #ffd9ea; }
.categoria__cuenta { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,.95); color: var(--rosa); font-weight: 800; font-size: .78rem; padding: 5px 12px; border-radius: var(--radio-pill); }

/* ------------------------------ Productos ------------------------------ */

.grid-productos { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 24px; }

.producto { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.producto:hover { transform: translateY(-6px); box-shadow: var(--sombra-hover); border-color: var(--rosa-claro); }

.producto__imagen { position: relative; aspect-ratio: 1 / 1; background: var(--rosa-palido); padding: 16px; cursor: zoom-in; }
.producto__imagen img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
.producto:hover .producto__imagen img { transform: scale(1.05); }

.producto__etiqueta { position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, .95); color: var(--rosa); font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 5px 12px; border-radius: var(--radio-pill); box-shadow: 0 3px 10px rgba(236, 46, 125, .15); }
.producto__zoom { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--rosa); display: grid; place-items: center; opacity: 0; transition: opacity .2s ease; }
.producto:hover .producto__zoom { opacity: 1; }
.producto__zoom svg { width: 17px; height: 17px; fill: currentColor; }

.producto__cuerpo { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.producto__nombre { font-size: 1.05rem; margin-bottom: .35em; }
.producto__desc { color: var(--texto-suave); font-size: .92rem; flex: 1; margin-bottom: .7em; }
.producto__unidad { display: inline-block; font-size: .8rem; color: var(--rosa); background: var(--rosa-palido); padding: 4px 12px; border-radius: var(--radio-pill); margin-bottom: 14px; }

.producto__acciones { display: flex; gap: 8px; margin-top: auto; }
.btn-agregar { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 14px; border-radius: var(--radio-pill); border: 2px solid var(--rosa-claro); background: #fff; color: var(--rosa); font-family: var(--fuente-titulos); font-weight: 700; font-size: .93rem; cursor: pointer; transition: all .15s ease; }
.btn-agregar:hover { background: var(--rosa-palido); border-color: var(--rosa); }
.btn-agregar.is-agregado { background: var(--lima); border-color: var(--lima); color: #2f3a05; }
.btn-agregar svg { width: 17px; height: 17px; fill: currentColor; }

.btn-wa { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--whatsapp); color: #fff; display: grid; place-items: center; transition: transform .15s ease, background .15s ease; }
.btn-wa:hover { background: var(--whatsapp-oscuro); color: #fff; transform: scale(1.08); }
.btn-wa svg { width: 22px; height: 22px; fill: currentColor; }

/* ------------------------------ Filtros ------------------------------ */

.catalogo__controles { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.filtros { display: flex; flex-wrap: wrap; gap: 9px; }
.filtro { border: 2px solid var(--borde); background: #fff; color: var(--tinta); padding: 9px 19px; border-radius: var(--radio-pill); font-family: var(--fuente-titulos); font-size: .95rem; font-weight: 700; cursor: pointer; transition: all .15s ease; }
.filtro:hover { border-color: var(--rosa); color: var(--rosa); }
.filtro.is-active { background: var(--rosa); border-color: var(--rosa); color: #fff; }
.filtro__n { opacity: .65; font-size: .85em; margin-left: 4px; }

.buscador-caja { position: relative; flex: 1 1 250px; max-width: 330px; }
.buscador-caja svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: var(--texto-suave); pointer-events: none; }
.buscador { width: 100%; padding: 13px 44px 13px 46px; border: 2px solid var(--borde); border-radius: var(--radio-pill); font-family: inherit; font-size: .97rem; background: #fff; color: var(--tinta); }
.buscador:focus { outline: none; border-color: var(--rosa); }
.buscador-limpiar { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--rosa-palido); color: var(--rosa); cursor: pointer; font-size: 1rem; line-height: 1; display: none; }
.buscador-limpiar.is-visible { display: block; }

.catalogo__pie { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--texto-suave); font-size: .9rem; margin: 20px 0 22px; }
.catalogo__pie strong { color: var(--tinta); }

.aviso-vacio { text-align: center; padding: 60px 20px; color: var(--texto-suave); background: var(--rosa-palido); border: 2px dashed var(--rosa-claro); border-radius: var(--radio); }
.aviso-vacio h3 { margin-bottom: .3em; }

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

.pasos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.paso { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 32px 26px; position: relative; }
.paso__num { width: 50px; height: 50px; border-radius: 50%; background: var(--rosa); color: #fff; font-family: var(--fuente-titulos); font-weight: 700; font-size: 1.35rem; display: grid; place-items: center; margin-bottom: 16px; }
.paso h3 { margin-bottom: .35em; }
.paso p { color: var(--texto-suave); margin: 0; font-size: .96rem; }

/* ------------------------------ Dos columnas ------------------------------ */

.dos-columnas { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.dos-columnas--invertida .dos-columnas__media { order: 2; }
.dos-columnas__media img { border-radius: var(--radio); box-shadow: var(--sombra); width: 100%; }

.lista-check { list-style: none; padding: 0; margin: 0 0 8px; }
.lista-check li { position: relative; padding-left: 36px; margin-bottom: 14px; color: var(--texto-suave); }
.lista-check li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--lima); color: #2f3a05; font-size: .8rem; font-weight: 800; display: grid; place-items: center; }

/* ------------------------------ Tarjetas ------------------------------ */

.tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.tarjeta { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 30px 26px; transition: transform .18s ease, box-shadow .18s ease; }
.tarjeta:hover { transform: translateY(-5px); box-shadow: var(--sombra); }
.tarjeta__icono { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--rosa-claro); font-size: 1.6rem; margin-bottom: 18px; }
.tarjeta h3 { margin-bottom: .4em; }
.tarjeta p { color: var(--texto-suave); margin: 0; font-size: .96rem; }

.tarjeta-info { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 30px; box-shadow: var(--sombra); }
.tarjeta-info dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; }
.tarjeta-info dt { font-weight: 700; color: var(--rosa); }
.tarjeta-info dd { margin: 0; color: var(--texto-suave); }

/* ------------------------------ CTA ------------------------------ */

.cta { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--rosa) 0%, #ff6aa8 100%); color: #fff; border-radius: 28px; padding: clamp(38px, 5vw, 60px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; }
.cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 238, 74, .5), transparent 65%); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { color: #ffe6f2; margin: 0; max-width: 560px; }
.cta__acciones { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------ Contacto ------------------------------ */

.opciones-contacto { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.opcion-contacto { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 24px; transition: transform .18s ease, box-shadow .18s ease; }
.opcion-contacto:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.opcion-contacto__icono { flex: none; width: 48px; height: 48px; border-radius: 16px; background: var(--rosa-palido); color: var(--rosa); display: grid; place-items: center; }
.opcion-contacto__icono svg { width: 24px; height: 24px; fill: currentColor; }
.opcion-contacto h3 { font-size: 1.05rem; margin-bottom: .2em; }
.opcion-contacto p { color: var(--texto-suave); font-size: .93rem; margin: 0; word-break: break-word; }

.nota { font-size: .87rem; color: var(--texto-suave); background: var(--rosa-palido); border-left: 4px solid var(--lima); padding: 12px 16px; border-radius: 0 var(--radio-sm) var(--radio-sm) 0; }

/* ------------------------------ Mapa ------------------------------ */

.mapa {
  position: relative;
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  border: 6px solid #fff;
  background: var(--rosa-palido);
  height: clamp(300px, 45vw, 470px);
}
.mapa iframe { width: 100%; height: 100%; border: 0; display: block; }

.ubicacion { display: grid; grid-template-columns: 1.45fr 1fr; gap: 34px; align-items: start; }
.ubicacion .tarjeta-info { height: 100%; }
@media (max-width: 900px) { .ubicacion { grid-template-columns: 1fr; } }

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

.pie { background: #3a1b2c; color: #e6c9d8; padding: 60px 0 26px; margin-top: 10px; }
.pie a { color: #ffc9e2; }
.pie a:hover { color: #fff; }
.pie__rejilla { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr; gap: 40px; padding-bottom: 34px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.pie h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1em; }
.pie ul { list-style: none; padding: 0; margin: 0; }
.pie li { margin-bottom: 10px; font-size: .95rem; }
.pie__marca { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pie__marca img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 3px solid var(--rosa-claro); }
.pie__marca span { font-family: var(--fuente-titulos); font-weight: 700; color: #fff; font-size: 1.15rem; line-height: 1.1; }
.pie__social { display: flex; gap: 12px; margin-top: 18px; }
.pie__social a { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; }
.pie__social a svg { width: 21px; height: 21px; fill: currentColor; }
.pie__social a:hover { background: var(--rosa); color: #fff; }
.pie__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 24px; font-size: .86rem; color: #b995a9; }

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

.fab { position: fixed; right: 22px; z-index: 70; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 12px 28px rgba(0, 0, 0, .22); transition: transform .18s ease, opacity .2s ease; border: 0; cursor: pointer; }
.fab:hover { transform: scale(1.08); }
.fab svg { width: 30px; height: 30px; fill: currentColor; }
.fab-wa { bottom: 22px; background: var(--whatsapp); color: #fff; }
.fab-wa:hover { color: #fff; }
.fab-pedido { bottom: 94px; background: var(--rosa); color: #fff; opacity: 0; pointer-events: none; transform: translateY(14px); }
.fab-pedido.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.fab-pedido:hover { color: #fff; }
.fab__badge { position: absolute; top: -4px; right: -4px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: var(--radio-pill); background: var(--lima); color: #2f3a05; font-family: var(--fuente-titulos); font-weight: 800; font-size: .85rem; display: grid; place-items: center; border: 2px solid #fff; }

/* ------------------------------ Panel del pedido ------------------------------ */

.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer[hidden] { display: none; }
.drawer__fondo { position: absolute; inset: 0; background: rgba(58, 35, 51, .55); backdrop-filter: blur(3px); animation: aparecer .2s ease; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(430px, 100%); background: #fff; display: flex; flex-direction: column; box-shadow: -20px 0 50px rgba(58, 35, 51, .25); animation: deslizar .25s ease; }
.drawer__cabecera { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px; border-bottom: 1px solid var(--borde); }
.drawer__cabecera h3 { margin: 0; font-size: 1.35rem; }
.drawer__cerrar { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--rosa-palido); color: var(--rosa); font-size: 1.1rem; cursor: pointer; display: grid; place-items: center; }
.drawer__cerrar:hover { background: var(--rosa-claro); }
.drawer__lista { flex: 1; overflow-y: auto; padding: 18px 24px; }
.drawer__vacio { text-align: center; color: var(--texto-suave); padding: 50px 10px; }
.drawer__vacio span { font-size: 2.4rem; display: block; margin-bottom: 10px; }

.pedido-item { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--borde); }
.pedido-item__img { flex: none; width: 62px; height: 62px; border-radius: 14px; background: var(--rosa-palido); padding: 6px; }
.pedido-item__img img { width: 100%; height: 100%; object-fit: contain; }
.pedido-item__info { flex: 1; min-width: 0; }
.pedido-item__nombre { font-family: var(--fuente-titulos); font-weight: 700; font-size: .97rem; line-height: 1.25; margin: 0 0 2px; }
.pedido-item__unidad { font-size: .8rem; color: var(--texto-suave); }
.pedido-item__cant { display: flex; align-items: center; gap: 4px; }
.pedido-item__cant button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--borde); background: #fff; color: var(--rosa); font-size: 1rem; font-weight: 700; cursor: pointer; line-height: 1; }
.pedido-item__cant button:hover { border-color: var(--rosa); background: var(--rosa-palido); }
.pedido-item__cant span { min-width: 26px; text-align: center; font-family: var(--fuente-titulos); font-weight: 700; }

.drawer__pie { padding: 20px 24px 26px; border-top: 1px solid var(--borde); background: var(--rosa-palido); }
.drawer__nota { font-size: .87rem; color: var(--texto-suave); margin: 0 0 14px; }
.drawer__pie .boton { margin-bottom: 10px; }

/* ------------------------------ Visor de imagen ------------------------------ */

.lightbox { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox__fondo { position: absolute; inset: 0; background: rgba(58, 35, 51, .72); backdrop-filter: blur(4px); }
.lightbox__caja { position: relative; background: #fff; border-radius: var(--radio); max-width: 860px; width: 100%; max-height: 92vh; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0; animation: aparecer .22s ease; }
.lightbox__imagen { background: var(--rosa-palido); padding: 28px; display: grid; place-items: center; }
.lightbox__imagen img { max-height: 420px; object-fit: contain; width: 100%; }
.lightbox__datos { padding: 34px 32px; display: flex; flex-direction: column; }
.lightbox__datos h3 { font-size: 1.6rem; margin-bottom: .3em; }
.lightbox__datos p { color: var(--texto-suave); }
.lightbox__cerrar { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--rosa); font-size: 1.15rem; cursor: pointer; box-shadow: var(--sombra); z-index: 2; }

/* ------------------------------ Aviso flotante ------------------------------ */

.toasts { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast { background: var(--tinta); color: #fff; font-family: var(--fuente-titulos); font-weight: 600; font-size: .95rem; padding: 13px 24px; border-radius: var(--radio-pill); box-shadow: 0 14px 34px rgba(0, 0, 0, .28); animation: subir .25s ease; display: flex; align-items: center; gap: 10px; max-width: 92vw; }
.toast--ok { background: var(--whatsapp-oscuro); }
.toast svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

@keyframes aparecer { from { opacity: 0 } to { opacity: 1 } }
@keyframes deslizar { from { transform: translateX(100%) } to { transform: translateX(0) } }
@keyframes subir { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: translateY(0) } }

/* ------------------------------ Responsive ------------------------------ */

@media (max-width: 900px) {
  .hero__interior { grid-template-columns: 1fr; gap: 36px; }
  .hero__imagen { max-width: 520px; }
  .dos-columnas { grid-template-columns: 1fr; gap: 34px; }
  .dos-columnas--invertida .dos-columnas__media { order: 0; }
  .pie__rejilla { grid-template-columns: 1fr 1fr; }
  .lightbox__caja { grid-template-columns: 1fr; }
  .lightbox__imagen img { max-height: 300px; }

  .menu-toggle { display: block; }
  .nav { position: absolute; top: 82px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; background: #fff; border-bottom: 1px solid var(--borde); padding: 14px 18px 22px; box-shadow: var(--sombra); display: none; max-height: calc(100vh - 82px); overflow-y: auto; }
  .nav.is-open { display: flex; }
  .nav > a, .nav__item > a { padding: 14px 16px; border-radius: var(--radio-sm); justify-content: space-between; }
  .nav__item { position: static; }
  .nav__sub { position: static; display: flex; border: 0; box-shadow: none; padding: 0 0 0 12px; min-width: 0; }
  .nav__sub a { padding: 11px 14px; }
  .nav .boton { margin-top: 12px; }
}

@media (max-width: 560px) {
  .pie__rejilla { grid-template-columns: 1fr; }
  .catalogo__controles { flex-direction: column; align-items: stretch; }
  .buscador-caja { max-width: none; }
  .cta { text-align: center; justify-content: center; }
  .cta__acciones { justify-content: center; width: 100%; }
  .hero__insignia { left: 50%; transform: translateX(-50%); bottom: -24px; }
  .marca img { width: 44px; height: 44px; }
  .marca__nombre { font-size: 1rem; }
  .drawer__panel { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
