/* ==========================================================================
   Prodonto — sitio estático. CSS plano, mobile first, sin dependencias.
   Para cambiar la identidad (cuando llegue el logo) basta con editar las variables de :root.
   ========================================================================== */

@font-face { font-family: 'DM Sans'; font-weight: 400; font-display: swap; src: url('assets/fonts/dm-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-display: swap; src: url('assets/fonts/dm-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 600; font-display: swap; src: url('assets/fonts/dm-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 700; font-display: swap; src: url('assets/fonts/dm-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-weight: 600; font-display: swap; src: url('assets/fonts/fraunces-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-weight: 700; font-display: swap; src: url('assets/fonts/fraunces-latin-700-normal.woff2') format('woff2'); }

:root {
    /* Identidad (provisional: se ajusta al logo) */
    --acento: #0558a1;
    --acento-osc: #032053;
    --acento-claro: #e6eff9;
    --tinta: #0b1f3a;
    --suave: #4a5d77;
    --papel: #f7f9fc;
    --blanco: #ffffff;
    --linea: #d9e2ee;
    --wa: #1faa59;
    --wa-osc: #168a47;

    --radio: 1.25rem;
    --radio-s: 0.85rem;
    --sombra: 0 1px 2px rgba(3, 32, 83, 0.06), 0 14px 30px -18px rgba(3, 32, 83, 0.28);
    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --ancho: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--tinta);
    background: var(--papel);
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--acento); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.2rem, 7.5vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 5vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--acento); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.contenedor { width: min(100% - 2.5rem, var(--ancho)); margin-inline: auto; }
.seccion { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.seccion--clara { background: var(--blanco); border-block: 1px solid var(--linea); }
.etiqueta { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--acento); margin-bottom: 0.9rem; }
.lead { font-size: 1.15rem; color: var(--suave); max-width: 38rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
    min-height: 3rem; padding: 0.7rem 1.4rem;
    border: 1.5px solid transparent; border-radius: 999px;
    font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--acento { background: var(--acento); color: #fff; }
.btn--acento:hover { background: var(--acento-osc); }
.btn--borde { background: transparent; color: var(--tinta); border-color: var(--tinta); }
.btn--borde:hover { background: var(--tinta); color: #fff; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-osc); }
.btn--chico { min-height: 2.5rem; padding: 0.4rem 1rem; font-size: 0.95rem; }
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }

/* ---------- Cabecera ---------- */
.cabecera { position: sticky; top: 0; z-index: 30; background: rgba(247, 249, 252, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linea); }
.cabecera__fila { display: flex; align-items: center; justify-content: space-between; min-height: 4.25rem; gap: 1rem; }
.marca { font-family: var(--serif); font-weight: 700; font-size: 1.6rem; letter-spacing: -0.02em; color: var(--tinta); text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; }
.marca svg { width: 1.6rem; height: 1.9rem; color: var(--acento); }
.marca img { height: 2.6rem; width: auto; }

.nav { display: none; }
.nav a { text-decoration: none; color: var(--suave); font-weight: 600; padding: 0.5rem 0.9rem; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--acento-osc); background: var(--acento-claro); }
.cabecera__cta { display: none; }

.menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 3rem; height: 3rem; padding: 0 0.8rem; background: none; border: 1.5px solid var(--linea); border-radius: 999px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: var(--tinta); border-radius: 2px; }
.nav--abierto { display: flex; flex-direction: column; padding: 0.5rem 1.25rem 1rem; border-top: 1px solid var(--linea); }
.nav--abierto a { padding: 0.8rem 0.9rem; }

@media (min-width: 820px) {
    .menu-btn { display: none; }
    .nav { display: flex; gap: 0.25rem; }
    .cabecera__cta { display: inline-flex; }
}

/* ---------- Portada ---------- */
.portada { padding-block: clamp(2.5rem, 8vw, 5.5rem) clamp(3rem, 8vw, 5rem); overflow: hidden; }
.portada__grid { display: grid; gap: 2.5rem; align-items: center; }
.portada h1 em { font-style: normal; color: var(--acento); }
.portada__botones { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.portada__arte { justify-self: center; width: min(78%, 22rem); aspect-ratio: 1; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, #fff, var(--acento-claro) 62%); border-radius: 50%; border: 1px solid var(--linea); box-shadow: var(--sombra); }
.portada__arte svg { width: 52%; color: var(--acento); filter: drop-shadow(0 18px 18px rgba(5, 88, 161, 0.25)); }
@media (min-width: 820px) { .portada__grid { grid-template-columns: 1.15fr 0.85fr; } .portada__arte { width: 100%; max-width: 26rem; } }

.cifras { display: grid; gap: 0.9rem; margin-top: 3rem; }
.cifra { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); padding: 1.1rem 1.3rem; display: flex; gap: 0.9rem; align-items: center; box-shadow: var(--sombra); }
.cifra svg { width: 2.2rem; height: 2.2rem; color: var(--acento); flex: none; }
.cifra strong { display: block; font-family: var(--serif); font-size: 1.1rem; }
.cifra span { color: var(--suave); font-size: 0.95rem; line-height: 1.35; display: block; }
@media (min-width: 700px) { .cifras { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Tarjetas de categorías ---------- */
.dos { display: grid; gap: 1.2rem; margin-top: 2.2rem; }
.categoria { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.8rem; background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); box-shadow: var(--sombra); text-decoration: none; color: inherit; transition: transform 0.15s ease, border-color 0.15s ease; }
.categoria:hover { transform: translateY(-3px); border-color: var(--acento); }
.categoria__icono { width: 3.4rem; height: 3.4rem; border-radius: 1rem; background: var(--acento-claro); color: var(--acento); display: grid; place-items: center; }
.categoria__icono svg { width: 1.9rem; height: 1.9rem; }
.categoria h3 { margin: 0.4rem 0 0; font-size: 1.5rem; }
.categoria p { color: var(--suave); margin: 0; }
.categoria .enlace { margin-top: auto; padding-top: 0.8rem; font-weight: 700; color: var(--acento); }
@media (min-width: 700px) { .dos { grid-template-columns: 1fr 1fr; } }

/* ---------- Pasos ---------- */
.pasos { display: grid; gap: 1.2rem; margin: 2.2rem 0 0; padding: 0; list-style: none; counter-reset: paso; }
.paso { counter-increment: paso; position: relative; padding: 1.5rem 1.5rem 1.5rem 4.6rem; background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio); }
.paso::before { content: counter(paso); position: absolute; left: 1.3rem; top: 1.35rem; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 50%; background: var(--acento); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; }
.paso h3 { margin-bottom: 0.3rem; }
.paso p { margin: 0; color: var(--suave); }
@media (min-width: 820px) { .pasos { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Nosotros / contacto ---------- */
.dividido { display: grid; gap: 2.2rem; }
@media (min-width: 820px) { .dividido { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }
.valores { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.valores li { display: flex; gap: 0.7rem; align-items: flex-start; }
.valores svg { width: 1.4rem; height: 1.4rem; color: var(--acento); flex: none; margin-top: 0.15rem; }

.contacto { background: var(--acento-osc); color: #e4eefa; border-radius: calc(var(--radio) + 0.4rem); padding: clamp(1.8rem, 5vw, 3.2rem); display: grid; gap: 2rem; }
.contacto h2, .contacto a { color: #fff; }
.contacto__logo { height: 3.4rem; width: auto; margin-bottom: 1.4rem; }
.contacto .etiqueta { color: #9cc3ea; }
.datos { display: grid; gap: 1.1rem; font-style: normal; }
.datos div { display: flex; gap: 0.9rem; align-items: flex-start; }
.datos svg { width: 1.5rem; height: 1.5rem; flex: none; margin-top: 0.2rem; color: #9cc3ea; }
.datos strong { display: block; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: #9cc3ea; }
@media (min-width: 820px) { .contacto { grid-template-columns: 1.1fr 0.9fr; align-items: center; } }

/* ---------- Pie ---------- */
.pie { padding-block: 2.2rem 6rem; color: var(--suave); font-size: 0.92rem; }
.pie__fila { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; justify-content: space-between; align-items: center; }
.pie a { color: var(--suave); }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-flotante {
    position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 40;
    width: 3.7rem; height: 3.7rem; border-radius: 50%;
    background: var(--wa); color: #fff; display: grid; place-items: center;
    box-shadow: 0 10px 24px -6px rgba(22, 138, 71, 0.65);
    transition: transform 0.15s ease, bottom 0.2s ease;
}
.wa-flotante:hover { transform: scale(1.06); background: var(--wa-osc); }
.wa-flotante svg { width: 1.9rem; height: 1.9rem; }
body.con-barra .wa-flotante { bottom: 5.6rem; }

/* ---------- Catálogo ---------- */
.catalogo-cab { padding-block: clamp(2.2rem, 6vw, 4rem) 1.2rem; }
.filtros { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.4rem 0 0; }
.chip { min-height: 2.6rem; padding: 0.4rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--linea); background: var(--blanco); font: inherit; font-weight: 600; color: var(--suave); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--acento); border-color: var(--acento); color: #fff; }
.aviso { margin: 1.2rem 0 0; padding: 0.8rem 1.1rem; border-radius: var(--radio-s); background: var(--acento-claro); color: var(--acento-osc); font-size: 0.95rem; }

.productos { display: grid; gap: 1.1rem; grid-template-columns: 1fr; padding-bottom: 3rem; }
@media (min-width: 560px) { .productos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .productos { grid-template-columns: repeat(3, 1fr); } }

.producto { display: flex; flex-direction: column; background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); }
.producto__img { aspect-ratio: 4 / 3; display: grid; place-items: center; background: linear-gradient(145deg, var(--acento-claro), #f4f8fd); color: var(--acento); }
.producto__img svg { width: 28%; opacity: 0.85; }
.producto__img img { width: 100%; height: 100%; object-fit: cover; }
.producto__cuerpo { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.25rem 1.3rem; }
.producto__cat { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--acento); }
.producto h3 { font-size: 1.2rem; margin: 0.2rem 0 0.4rem; }
.producto p { color: var(--suave); font-size: 0.95rem; margin: 0 0 1rem; }
.producto__acciones { margin-top: auto; }
.btn-agregar { width: 100%; }

.contador { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; border: 1.5px solid var(--acento); border-radius: 999px; padding: 0.2rem; background: var(--acento-claro); }
.contador button { width: 2.6rem; height: 2.6rem; border: 0; border-radius: 50%; background: var(--acento); color: #fff; font: inherit; font-size: 1.3rem; font-weight: 700; line-height: 1; cursor: pointer; }
.contador button:hover { background: var(--acento-osc); }
.contador output { min-width: 2rem; text-align: center; font-weight: 700; }
.contador--chico button { width: 2.2rem; height: 2.2rem; font-size: 1.1rem; }

/* Barra fija del pedido */
.barra-pedido { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; padding: 0.8rem 1.1rem calc(0.8rem + env(safe-area-inset-bottom)); background: var(--tinta); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 1rem; box-shadow: 0 -10px 30px -12px rgba(0, 0, 0, 0.4); }
.barra-pedido strong { font-family: var(--serif); font-size: 1.1rem; }
.barra-pedido span { display: block; font-size: 0.85rem; opacity: 0.8; }
.barra-pedido .btn { background: #fff; color: var(--tinta); }

/* Ventana del pedido */
.dialogo { width: min(100% - 1.5rem, 34rem); max-height: 92dvh; padding: 0; border: 0; border-radius: 1.5rem; background: var(--papel); color: var(--tinta); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5); }
.dialogo::backdrop { background: rgba(3, 20, 50, 0.6); }
.dialogo__cab { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.4rem 0.4rem; }
.dialogo__cab h2 { margin: 0; font-size: 1.5rem; }
.dialogo__cerrar { width: 2.6rem; height: 2.6rem; border: 1.5px solid var(--linea); border-radius: 50%; background: var(--blanco); font-size: 1.3rem; cursor: pointer; }
.dialogo__cuerpo { padding: 0.4rem 1.4rem 1.4rem; overflow-y: auto; max-height: calc(92dvh - 5rem); }
.lista-pedido { list-style: none; margin: 0.6rem 0 1rem; padding: 0; display: grid; gap: 0.6rem; }
.lista-pedido li { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.7rem 0.9rem; background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio-s); }
.lista-pedido .nombre { font-weight: 600; line-height: 1.3; }
.campo { display: grid; gap: 0.3rem; margin-bottom: 0.9rem; font-weight: 600; font-size: 0.92rem; }
.campo input, .campo textarea { font: inherit; font-weight: 400; padding: 0.75rem 0.9rem; border: 1.5px solid var(--linea); border-radius: var(--radio-s); background: var(--blanco); color: inherit; width: 100%; }
.campo input:focus, .campo textarea:focus { outline: 3px solid var(--acento-claro); border-color: var(--acento); }
.dialogo__pie { display: grid; gap: 0.7rem; }
.dialogo__pie .btn { width: 100%; }
.enlace-chico { background: none; border: 0; padding: 0.4rem; font: inherit; font-size: 0.9rem; color: var(--suave); text-decoration: underline; cursor: pointer; justify-self: center; }
.nota { font-size: 0.85rem; color: var(--suave); text-align: center; margin: 0; }
.vacio { text-align: center; color: var(--suave); padding: 1.5rem 0; }

/* ---------- Aparición suave (el contenido ya es visible sin JS) ---------- */
.js .aparece { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .aparece.visto { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .aparece { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Precio y estado de los productos ---------- */
.producto__precio { font-weight: 700; color: var(--tinta); font-size: 1.05rem; margin: 0 0 1rem; }
.btn-agregar:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.producto[data-agotado] .producto__img { filter: grayscale(0.7); opacity: 0.8; }
