@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/jakarta.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
/* Dulciregia: estilos de la web pública */
:root {
  --vino-noche: #3D050C;
  --vino-hondo: #5E0A14;
  --vino: #8F1420;
  --rojo: #D9182B;
  --rojo-hover: #B8121F;
  --amarillo: #FFD000;
  --amarillo-hover: #FFDC3D;
  --rosa-gris: #F8F2F3;
  --tinta: #1F0C10;
  --gris: #6B5A5D;
  --borde: #ECE0E2;
  --whats: #1FAF54;
  --whats-hover: #178F43;
  --ancho: 1200px;
  --display: "Bricolage Grotesque", "Arial Black", "Segoe UI", system-ui, sans-serif;
  --texto: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--texto); font-size: 16.5px; line-height: 1.6; color: var(--tinta); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--rojo); }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 3px; border-radius: 8px; }
.contenedor { width: min(100% - 40px, var(--ancho)); margin-inline: auto; }
.oculto-accesible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main { overflow-x: clip; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 700 1rem/1 var(--texto); padding: 1.05em 1.6em; border-radius: 14px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: background-color .18s, border-color .18s, color .18s, transform .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn-chico { padding: .8em 1.15em; font-size: .95rem; border-radius: 12px; }
.btn-amarillo { background: var(--amarillo); color: var(--vino-noche); }
.btn-amarillo:hover { background: var(--amarillo-hover); }
.btn-claro { color: #fff; border-color: rgba(255,255,255,.35); }
.btn-claro:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-rojo { background: var(--rojo); color: #fff; }
.btn-rojo:hover { background: var(--rojo-hover); }
.btn-whats { background: var(--whats); color: #fff; }
.btn-whats:hover { background: var(--whats-hover); }
.btn-borde { background: #fff; color: var(--vino-hondo); border-color: var(--borde); }
.btn-borde:hover { border-color: var(--vino-hondo); }

/* Aviso y encabezado */
.aviso { background: var(--vino-noche); color: var(--amarillo); text-align: center; font-weight: 600; font-size: .9rem; padding: .6em 20px; }
.cabecera { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-bottom: 1px solid var(--borde); }
.cabecera .contenedor { display: flex; align-items: center; gap: 24px; min-height: 78px; }
.marca { display: flex; align-items: center; flex: none; }
.marca img { height: 60px; width: auto; }
.menu { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.menu a:not(.btn) { color: var(--tinta); text-decoration: none; font-weight: 600; padding: .55em .9em; border-radius: 10px; }
.menu a:not(.btn):hover { color: var(--rojo); }
.menu .btn { margin-left: 10px; }
.boton-menu { display: none; margin-left: auto; background: none; border: 1.5px solid var(--borde); color: var(--tinta); border-radius: 12px; width: 46px; height: 44px; cursor: pointer; }
.boton-menu svg { width: 22px; height: 22px; }

/* Portada */
.portada {
  position: relative; overflow: hidden; color: #fff; padding: 0;
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(217,24,43,.55), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(143,20,32,.6), transparent 70%),
    var(--vino-hondo);
}
.portada .contenedor { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; min-height: min(680px, calc(100vh - 78px)); }
.portada-texto { padding: 72px 0; }
.portada h1 { font-size: clamp(2.4rem, 4.6vw, 4.3rem); font-weight: 800; text-wrap: balance; }
.portada .bajada { font-size: 1.15rem; color: #F2D3D8; max-width: 33em; margin: 24px 0 34px; }
.portada .acciones { display: flex; flex-wrap: wrap; gap: 12px; }
.cifras { display: flex; flex-wrap: wrap; gap: 0; margin: 48px 0 0; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.16); }
.cifras div { padding-right: 28px; margin-right: 28px; border-right: 1px solid rgba(255,255,255,.16); }
.cifras div:last-child { border: 0; margin: 0; padding: 0; }
.cifras dt { font-family: var(--display); font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--amarillo); }
.cifras dd { margin: 6px 0 0; font-size: .9rem; color: #E9C3C9; max-width: 11em; line-height: 1.35; }

.vitrina {
  align-self: stretch; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  height: 100%; max-height: 760px; min-height: 560px; margin-right: -40px;
  -webkit-mask: linear-gradient(transparent, #000 14%, #000 86%, transparent);
          mask: linear-gradient(transparent, #000 14%, #000 86%, transparent);
}
.columna { overflow: hidden; }
.pista { display: flex; flex-direction: column; gap: 18px; animation: subir 48s linear infinite; }
.c2 .pista { animation-name: bajar; animation-duration: 56s; }
.c3 .pista { animation-duration: 44s; }
.pieza { margin: 0; aspect-ratio: 1; background: #fff; border-radius: 22px; padding: 10%; box-shadow: 0 20px 40px rgba(20,0,4,.35); }
.pieza img { width: 100%; height: 100%; object-fit: contain; }
@keyframes subir { to { transform: translateY(calc(-50% - 9px)); } }
@keyframes bajar { from { transform: translateY(calc(-50% - 9px)); } to { transform: translateY(0); } }
.vitrina:hover .pista { animation-play-state: paused; }

/* Encabezados de sección */
section { padding: 96px 0; }
.encabezado { max-width: 640px; margin-bottom: 40px; }
.encabezado h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; color: var(--vino-hondo); }
.encabezado p { color: var(--gris); font-size: 1.08rem; margin: 14px 0 0; }
.encabezado-fila { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.encabezado-fila > div:first-child { max-width: 640px; }

/* Categorías */
.rejilla-categorias { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.tarjeta-categoria {
  display: flex; flex-direction: column; text-decoration: none; color: var(--tinta);
  background: var(--rosa-gris); border-radius: 20px; padding: 14px 14px 16px; border: 1.5px solid transparent;
  transition: border-color .2s, background-color .2s, transform .2s;
}
.tarjeta-categoria:hover { background: #fff; border-color: var(--rojo); transform: translateY(-3px); }
.tarjeta-categoria img { aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 14px; padding: 10px; margin-bottom: 12px; transition: transform .3s; }
.tarjeta-categoria:hover img { transform: scale(1.04); }
.tarjeta-categoria .nombre { font-weight: 700; line-height: 1.25; }
.tarjeta-categoria .cuenta { font-size: .85rem; color: var(--gris); }

/* Catálogos */
.catalogos-seccion { background: var(--rosa-gris); }
.catalogos { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.tarjeta-catalogo {
  display: flex; flex-direction: column; text-decoration: none; color: var(--tinta);
  background: #fff; border: 1.5px solid var(--borde); border-radius: 24px; padding: 28px;
  min-height: 320px; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.tarjeta-catalogo:hover { border-color: var(--rojo); transform: translateY(-4px); box-shadow: 0 24px 48px rgba(94,10,20,.12); }
.tarjeta-catalogo .icono { width: 60px; height: 60px; border-radius: 16px; background: #FFF4C2; display: grid; place-items: center; font-size: 1.8rem; margin-bottom: 26px; }
.tarjeta-catalogo .titulo { font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1.1; letter-spacing: -.01em; color: var(--vino-hondo); }
.tarjeta-catalogo .texto { color: var(--gris); margin: 12px 0 24px; flex: 1; }
.pie-tarjeta { display: flex; flex-direction: column; gap: 4px; padding-top: 18px; border-top: 1px solid var(--borde); }
.pie-tarjeta .estado { font-size: .85rem; color: var(--gris); }
.pie-tarjeta .accion { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--rojo); }
.pie-tarjeta .accion svg { width: 1.1em; height: 1.1em; transition: transform .2s; }
.tarjeta-catalogo:hover .accion svg { transform: translateX(4px); }
.tarjeta-catalogo:first-child { background: var(--vino-hondo); border-color: var(--vino-hondo); color: #fff; }
.tarjeta-catalogo:first-child .titulo { color: #fff; }
.tarjeta-catalogo:first-child .texto, .tarjeta-catalogo:first-child .estado { color: #E9C3C9; }
.tarjeta-catalogo:first-child .icono { background: rgba(255,255,255,.12); }
.tarjeta-catalogo:first-child .pie-tarjeta { border-color: rgba(255,255,255,.16); }
.tarjeta-catalogo:first-child .accion { color: var(--amarillo); }

/* Cómo pedir */
.como-pedir .contenedor { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.marco-mascota { border-radius: 28px; overflow: hidden; background: var(--rosa-gris); }
.marco-mascota img { width: 100%; aspect-ratio: 1.15; object-fit: cover; object-position: 50% 30%; }
.pasos { list-style: none; padding: 0; margin: 0 0 36px; counter-reset: paso; }
.pasos li { counter-increment: paso; display: grid; grid-template-columns: 64px 1fr; column-gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--borde); }
.pasos li:first-child { padding-top: 0; }
.pasos li::before {
  content: counter(paso, decimal-leading-zero); grid-row: span 2;
  font-family: var(--display); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--rojo);
}
.pasos strong { font-family: var(--display); font-size: 1.3rem; font-weight: 700; color: var(--vino-hondo); line-height: 1.25; }
.pasos span { color: var(--gris); }

/* Productos */
.surtido { background: var(--rosa-gris); }
.buscador-caja { position: relative; width: min(100%, 340px); }
.buscador-caja svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--gris); }
.buscador { width: 100%; font: 500 1rem var(--texto); padding: .95em 1em .95em 2.9em; border: 1.5px solid var(--borde); border-radius: 14px; background: #fff; color: var(--tinta); }
.buscador:focus { border-color: var(--rojo); outline: none; box-shadow: 0 0 0 4px rgba(217,24,43,.12); }
.filtros { display: flex; gap: 8px; margin-bottom: 28px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.chip { flex: none; font: 600 .92rem var(--texto); color: var(--tinta); background: #fff; border: 1.5px solid var(--borde); border-radius: 999px; padding: .6em 1.1em; cursor: pointer; }
.chip:hover { border-color: var(--vino-hondo); }
.chip[aria-pressed="true"] { background: var(--vino-hondo); border-color: var(--vino-hondo); color: #fff; }
.rejilla-productos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.producto { background: #fff; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; border: 1.5px solid transparent; transition: border-color .2s, transform .2s, box-shadow .2s; }
.producto:hover { border-color: var(--borde); transform: translateY(-3px); box-shadow: 0 18px 36px rgba(94,10,20,.1); }
.producto .foto { padding: 18px; }
.producto img { width: 100%; aspect-ratio: 1; object-fit: contain; transition: transform .3s; }
.producto:hover img { transform: scale(1.05); }
.producto .info { padding: 0 18px 18px; display: flex; flex-direction: column; flex: 1; }
.producto .cat { font-size: .8rem; color: var(--gris); margin-bottom: 4px; }
.producto h3 { font-family: var(--texto); font-weight: 700; font-size: .98rem; line-height: 1.35; letter-spacing: 0; color: var(--tinta); margin-bottom: 14px; flex: 1; }
.producto a { font-weight: 700; font-size: .9rem; color: var(--whats-hover); text-decoration: none; display: inline-flex; align-items: center; gap: .4em; }
.producto a:hover { text-decoration: underline; }
.producto a svg { width: 1.15em; height: 1.15em; }
.sin-resultados { text-align: center; color: var(--gris); padding: 30px 0; }
.mas-productos { text-align: center; margin-top: 36px; }

/* Beneficios */
.beneficios { background: var(--vino-hondo); color: #fff; }
.beneficios .encabezado h2 { color: #fff; }
.beneficios .encabezado p { color: #E9C3C9; }
.rejilla-beneficios { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); border-radius: 24px; overflow: hidden; }
.beneficio { background: var(--vino-hondo); padding: 32px 26px; }
.beneficio .cifra { display: block; font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--amarillo); margin-bottom: 22px; letter-spacing: -.02em; }
.beneficio h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -.01em; }
.beneficio p { color: #E9C3C9; font-size: .95rem; margin: 0; white-space: pre-line; }

/* Contacto */
.contacto .contenedor { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.datos-contacto { list-style: none; padding: 0; margin: 0 0 32px; }
.datos-contacto li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--borde); }
.datos-contacto li:first-child { padding-top: 0; }
.datos-contacto .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--rosa-gris); color: var(--rojo); display: grid; place-items: center; }
.datos-contacto .ico svg { width: 22px; height: 22px; }
.datos-contacto strong { display: block; font-weight: 700; }
.datos-contacto span { white-space: pre-line; color: var(--gris); }
.redes { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.redes a { font-weight: 600; text-decoration: none; color: var(--tinta); border: 1.5px solid var(--borde); border-radius: 12px; padding: .5em 1em; }
.redes a:hover { border-color: var(--vino-hondo); }
.mapa { border-radius: 24px; overflow: hidden; border: 1.5px solid var(--borde); }
.mapa iframe { display: block; width: 100%; height: 440px; border: 0; }
.sello-contacto { border-radius: 28px; background: var(--rosa-gris); padding: 56px 40px; display: grid; place-items: center; }
.sello-contacto img { width: min(100%, 440px); }

/* Pie */
.pie { background: var(--vino-noche); color: #E0BCC2; padding: 64px 0 120px; font-size: .95rem; }
.pie .contenedor { display: grid; grid-template-columns: 1fr auto; gap: 32px 48px; align-items: center; }
.pie-marca { display: flex; align-items: center; gap: 22px; }
.placa { background: #fff; border-radius: 20px; padding: 12px 16px; flex: none; }
.placa img { height: 64px; width: auto; }
.pie-marca p { margin: 0; }
.pie-enlaces { display: flex; gap: 22px; flex-wrap: wrap; }
.pie-enlaces a { color: #fff; text-decoration: none; font-weight: 600; }
.pie-enlaces a:hover { color: var(--amarillo); }
.derechos { grid-column: 1 / -1; margin: 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }

/* WhatsApp flotante */
.whats-flotante {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: .55em;
  background: var(--whats); color: #fff; font-weight: 700; text-decoration: none;
  padding: .85em 1.25em .85em 1em; border-radius: 999px; box-shadow: 0 12px 28px rgba(17,112,47,.35);
}
.whats-flotante:hover { background: var(--whats-hover); }
.whats-flotante svg { width: 26px; height: 26px; }

/* Entrada de la portada */
@media (prefers-reduced-motion: no-preference) {
  .portada h1, .portada .bajada, .portada .acciones, .cifras { animation: entrar .8s cubic-bezier(.2,.7,.2,1) both; }
  .portada .bajada { animation-delay: .08s; }
  .portada .acciones { animation-delay: .16s; }
  .cifras { animation-delay: .24s; }
  .vitrina { animation: aparecer 1.2s ease-out .1s both; }
}
@keyframes entrar { from { opacity: 0; transform: translateY(18px); } }
@keyframes aparecer { from { opacity: 0; } }

/* Página de catálogo */
.pagina-catalogo { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; background: var(--rosa-gris); }
.barra-catalogo { background: #fff; border-bottom: 1px solid var(--borde); position: sticky; top: 0; z-index: 10; }
.barra-catalogo .contenedor { display: flex; align-items: center; gap: 16px; min-height: 72px; width: min(100% - 24px, 1500px); }
.barra-catalogo .marca img { height: 50px; }
.barra-catalogo h1 { font-size: 1.35rem; color: var(--vino-hondo); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barra-catalogo .acciones { display: flex; gap: 10px; }
.barra-catalogo .btn { padding: .75em 1.1em; font-size: .95rem; }
.visor { flex: 1; display: flex; padding: 14px; }
.visor iframe { flex: 1; width: 100%; min-height: calc(100vh - 110px); min-height: calc(100dvh - 110px); border: 0; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(94,10,20,.08); }
.vacio { margin: auto; text-align: center; max-width: 520px; padding: 50px 20px; }
.vacio .icono { font-size: 3.5rem; }
.vacio h2 { color: var(--vino-hondo); font-size: 2rem; margin: 10px 0 12px; }
.vacio p { color: var(--gris); }
.pdf-movil { display: none; }

/* Responsivo */
@media (max-width: 980px) {
  .portada .contenedor { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .portada-texto { padding: 56px 0 36px; }
  .vitrina { margin: 0 -20px; height: 420px; min-height: 0; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0 12px; }
  .pista { gap: 12px; }
  .pieza { border-radius: 16px; }
  @keyframes subir { to { transform: translateY(calc(-50% - 6px)); } }
  .como-pedir .contenedor, .contacto .contenedor { grid-template-columns: 1fr; gap: 44px; }
  .marco-mascota { max-width: 520px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 72px 0; }
  .boton-menu { display: grid; place-items: center; }
  .menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 12px 20px 20px; border-bottom: 1px solid var(--borde); box-shadow: 0 20px 30px rgba(31,12,16,.1);
  }
  .menu.abierto { display: flex; }
  .menu a:not(.btn) { padding: .85em .5em; border-bottom: 1px solid var(--borde); border-radius: 0; }
  .menu .btn { margin: 14px 0 0; }
  .marca img { height: 50px; }
  .cifras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
  .cifras div { border: 0; margin: 0; padding: 0; }
  .cifras dt { font-size: 1.8rem; }
  .cifras dd { font-size: .78rem; }
  .portada .acciones .btn { flex: 1 1 100%; }
  .portada-texto { padding: 40px 0 28px; }
  .rejilla-categorias { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .tarjeta-categoria { padding: 10px; border-radius: 16px; }
  .tarjeta-categoria .nombre { font-size: .88rem; }
  .tarjeta-catalogo { min-height: 0; }
  .rejilla-productos { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .producto .foto { padding: 12px; }
  .producto .info { padding: 0 12px 14px; }
  .producto h3 { font-size: .9rem; }
  .buscador-caja { width: 100%; }
  .pie .contenedor { grid-template-columns: 1fr; }
  .pie-marca { flex-direction: column; align-items: flex-start; }
  .whats-flotante span { display: none; }
  .whats-flotante { padding: 15px; }
  .barra-catalogo .marca { display: none; }
  .barra-catalogo .btn .texto-largo { display: none; }
  .mapa iframe { height: 320px; }
  .pdf-movil { display: block; text-align: center; padding: 14px 14px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
