/* Granos & Almíbar — colores tomados del logo */
:root {
  --crema: #faf3e6;
  --crema-oscuro: #efe3cf;
  --burdeos: #6b1f2a;
  --burdeos-oscuro: #531820;
  --dorado: #b98a3e;
  --oliva: #6b7a3a;
  --texto: #3a2a22;
  --texto-suave: #6e5d52;
  --blanco: #fffdf8;
  --error: #a3202f;
  --radio: 14px;
  --sombra: 0 4px 18px rgba(58, 42, 34, 0.1);
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--crema); color: var(--texto);
  font-family: var(--sans); line-height: 1.55; font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--burdeos); }
h1, h2, h3 { font-family: var(--serif); color: var(--burdeos); line-height: 1.2; margin: 0 0 .5em; }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--dorado); outline-offset: 2px; }

/* Botones */
.btn {
  display: inline-block; border: 2px solid var(--burdeos); background: var(--burdeos); color: #fff;
  padding: .65em 1.3em; border-radius: 999px; font: 600 1rem var(--sans); cursor: pointer;
  text-decoration: none; text-align: center; transition: background .15s, transform .1s;
}
.btn:hover { background: var(--burdeos-oscuro); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--burdeos); }
.btn-ghost:hover { background: var(--crema-oscuro); }
.btn-small { padding: .45em 1em; font-size: .92rem; }

/* Menú */
/* Barra de avisos sobre el encabezado */
.announce-bar { position: relative; height: 38px; background: var(--burdeos); color: #fff; overflow: hidden; font-size: .9rem; font-weight: 600; }
.announce-item { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; text-align: center; opacity: 0; transform: translateY(100%); }
.announce-item.active, .announce-item.leaving { transition: transform .6s ease, opacity .6s ease; }
.announce-item.active { opacity: 1; transform: translateY(0); }
.announce-item.leaving { opacity: 0; transform: translateY(-100%); }
.announce-icon { display: inline-grid; color: var(--dorado); }
/* Sin animación (menos movimiento) o con un solo aviso: se muestran quietos, centrados */
.announce-bar.static, .announce-bar.single { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 28px; height: auto; min-height: 38px; padding: 4px 12px; }
.announce-bar.static .announce-item, .announce-bar.single .announce-item { position: static; opacity: 1; transform: none; padding: 0; }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--blanco); border-bottom: 1px solid var(--crema-oscuro); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; padding: 8px 0; max-width: 1360px; }
.brand { flex: 0 0 auto; white-space: nowrap; display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.15rem var(--serif); color: var(--burdeos); }
.brand img { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--blanco); box-shadow: 0 3px 10px rgba(58, 42, 34, .25); }
.main-nav { flex: 1 1 auto; display: flex; gap: 4px 22px; justify-content: center; flex-wrap: nowrap; align-items: center; }
.main-nav a { white-space: nowrap; text-decoration: none; font-weight: 600; color: var(--texto); padding: 6px 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--dorado); }
#nav-cats { display: contents; }
.header-actions { flex: 0 0 auto; margin-left: auto; display: flex; align-items: center; gap: 6px; }
.cart-btn, .menu-toggle {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--burdeos); cursor: pointer;
}
.cart-btn:hover, .menu-toggle:hover { background: var(--crema-oscuro); }
.cart-count {
  position: absolute; top: 0; right: 0; display: grid; place-items: center; min-width: 1.35em; height: 1.35em; padding: 0 .3em;
  border-radius: 999px; background: var(--dorado); color: #fff; font: 700 .75rem var(--sans, inherit);
}
.search-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--burdeos); cursor: pointer; }
.search-btn:hover { background: var(--crema-oscuro); }
.menu-toggle { display: none; }

@media (max-width: 1240px) {
  .site-header .wrap { display: grid; grid-template-columns: 1fr auto; }
  .menu-toggle { display: grid; }
  .main-nav { display: none; grid-column: 1 / -1; grid-row: 2; flex-direction: column; flex-wrap: wrap; align-items: stretch; gap: 0; padding-bottom: 8px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--crema-oscuro); }
}

/* Banner con foto (o clip) de fondo */
.banner {
  position: relative; overflow: hidden; text-align: center; color: #fff; min-height: 420px; display: grid; place-items: center;
  background: #3a2a22 url("../img/banner.jpg") center 55% / cover no-repeat;
}
.banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40, 20, 15, .5), rgba(40, 20, 15, .62)); }
.banner-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-content { position: relative; padding: 36px 0; }
.banner h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.banner p { max-width: 36em; margin: 0 auto; font-size: 1.1rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.chip-a-pedido {
  display: inline-block; margin-bottom: 14px; padding: .3em 1em; border: 1px solid var(--dorado);
  border-radius: 999px; color: var(--burdeos); font-weight: 600; background: var(--blanco);
}

/* Botones de categorías bajo el banner */
.cat-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; padding: 26px 0 36px; }
.cat-buttons .tab-card { min-width: 130px; font-size: 1.05rem; padding: 14px 20px; }
.cat-buttons .tab-card img.tab-icon { width: 56px; height: 56px; }
.cat-buttons .tab-card .tab-icon-line { height: 56px; }
@media (max-width: 899px) {
  /* En pantallas angostas las categorías se desplazan de lado, igual que las subcategorías */
  .cat-buttons { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; gap: 10px; padding: 22px 4px 30px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .cat-buttons .tab-card { flex: 0 0 auto; scroll-snap-align: start; min-width: 104px; padding: 10px 14px; white-space: nowrap; }
}
.cat-section { padding-bottom: 28px; scroll-margin-top: 80px; }

/* Secciones */
section { padding: 28px 0; }
.page-title { padding: 32px 0 8px; }
.page-title h2 { display: inline-block; position: relative; padding-bottom: 10px; }
.page-title h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; border-radius: 3px; background: var(--dorado); }
.page-title p { color: var(--texto-suave); max-width: 40em; margin: 0; }
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 0; list-style: none; counter-reset: paso; }
.steps li {
  display: flex; align-items: center; gap: 12px; background: var(--blanco); border-radius: var(--radio); padding: 16px 18px;
  box-shadow: var(--sombra); counter-increment: paso;
}
.steps li::before {
  content: counter(paso); flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  background: var(--dorado); color: #fff; display: grid; place-items: center; font-weight: 700;
}
.steps .step-icon { flex: 0 0 auto; display: grid; color: var(--burdeos); }
.steps li div { display: grid; gap: 2px; line-height: 1.4; }
.steps li div span { color: var(--texto-suave); font-size: .92rem; }
.pedido-nota {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 16px; text-align: left; padding: 22px 24px;
  background: #f7eddb; border: 1px solid var(--crema-oscuro); border-radius: var(--radio);
}
/* Ramitas decorativas a los lados (imágenes de Patty) */
.pedido-nota::before, .pedido-nota::after {
  content: ""; position: absolute; top: 50%; width: 170px; height: 80px; transform: translateY(-50%); pointer-events: none;
  background: center / contain no-repeat;
}
.pedido-nota::before { left: 14px; background-image: url("../img/ramas-izq.webp"); }
.pedido-nota::after { right: 14px; background-image: url("../img/ramas-der.webp"); }
.pedido-nota > * { position: relative; z-index: 1; }
.nota-icon { color: var(--dorado); display: grid; }
.pedido-nota p { margin: 0; display: grid; gap: 2px; }
.pedido-nota strong { font: 700 1.3rem var(--serif); color: var(--burdeos); }
.pedido-nota p span { color: var(--texto-suave); }
@media (max-width: 560px) {
  /* En móvil las ramitas van en las esquinas (arriba a la izquierda y abajo a la derecha) */
  .pedido-nota { flex-direction: column; text-align: center; padding: 56px 28px; }
  .pedido-nota::before, .pedido-nota::after { top: auto; transform: none; width: 92px; }
  .pedido-nota::before { left: 0; top: 0; height: 66px; background-image: url("../img/ramas-movil-sup.webp"); background-position: left top; }
  .pedido-nota::after { right: 0; bottom: 0; height: 68px; background-image: url("../img/ramas-movil-inf.webp"); background-position: right bottom; }
}

/* Pestañas de subcategoría */
.filters { display: flex; gap: 10px; margin: 16px 0 10px; overflow-x: auto; padding: 6px 4px 10px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.tab-card {
  flex: 0 0 auto; min-width: 96px; display: grid; justify-items: center; align-content: center; gap: 6px; padding: 12px 16px;
  border: 1px solid var(--crema-oscuro); border-radius: 16px; background: var(--blanco); color: var(--texto);
  font: 600 .95rem var(--sans); cursor: pointer; scroll-snap-align: start; transition: background .2s, color .2s, box-shadow .2s, transform .2s;
}
.tab-card .tab-icon { display: grid; color: var(--dorado); transition: color .2s; }
.tab-card img.tab-icon { width: 44px; height: 44px; object-fit: contain; }
.tab-card .tab-icon-line { height: 44px; align-content: center; }
.tab-card:hover { box-shadow: var(--sombra); transform: translateY(-1px); }
.tab-card[aria-pressed="true"] { background: var(--burdeos); border-color: var(--burdeos); color: #fff; box-shadow: 0 6px 16px rgba(110, 30, 45, .28); }
.tab-card[aria-pressed="true"] .tab-icon-line { color: #fff; }
.tab-card:focus-visible { outline: 3px solid var(--dorado); outline-offset: 2px; }
@media (min-width: 900px) { .filters { flex-wrap: wrap; overflow: visible; } }
@media (prefers-reduced-motion: reduce) { .tab-card { transition: none; } .tab-card:hover { transform: none; } }

/* Tarjetas */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); padding-bottom: 40px; }
.card { background: var(--blanco); border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--crema-oscuro); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 1.15rem; margin: 0; }
.card .tipo, .detail .tipo { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--oliva); font-weight: 700; }
.card p { margin: 0; color: var(--texto-suave); font-size: .95rem; flex: 1; }
.card .precio, .detail .precio { font-weight: 700; color: var(--burdeos); }
.card .precio.cotizar { color: var(--oliva); }
.card-foot > .btn:only-child { width: 100%; }
.card-foot .precio[hidden] + .btn { width: 100%; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }

/* Avisos */
.notice { background: var(--blanco); border-radius: var(--radio); padding: 20px; text-align: center; box-shadow: var(--sombra); margin: 24px 0; }
.notice-instant { padding: 28px 20px; }
.notice-instant h3 { margin: 0 0 10px; color: var(--burdeos); font-size: 1.3rem; }
.notice-instant p { max-width: 36em; margin: 0 auto 10px; }
.notice-error { border: 1px solid var(--error); }
.notice-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Carrito */
.overlay { position: fixed; inset: 0; background: rgba(40, 20, 15, .45); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--crema); z-index: 41;
  display: flex; flex-direction: column; box-shadow: -6px 0 24px rgba(0, 0, 0, .2);
}
[hidden] { display: none !important; }
.drawer[hidden], .overlay[hidden] { display: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--crema-oscuro); background: var(--blanco); }
.drawer-head h2 { margin: 0; font-size: 1.3rem; }
.drawer-body { overflow-y: auto; padding: 16px 18px 28px; flex: 1; }
.close-btn { border: 0; background: transparent; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--texto); padding: 4px 10px; }
.cart-empty { text-align: center; color: var(--texto-suave); padding: 12px 0 20px; }
.cart-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.cart-item { background: var(--blanco); border-radius: 12px; padding: 10px; display: grid; grid-template-columns: 74px 1fr auto auto; align-items: center; gap: 10px; }
.cart-item .thumb { width: 74px; height: 74px; border-radius: 10px; object-fit: cover; background: var(--crema-oscuro); }
.cart-item .info { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.cart-item .nombre { font-weight: 600; }
.cart-item .line-price { font: 700 1rem var(--serif); color: var(--burdeos); white-space: nowrap; }
.trash-btn { background: none; border: 0; color: var(--burdeos); cursor: pointer; padding: 6px; border-radius: 8px; display: inline-flex; line-height: 0; }
.trash-btn:hover { background: var(--crema-oscuro); }
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qty button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--dorado); background: var(--crema); font-size: 1.1rem; cursor: pointer; }
.qty input { width: 52px; text-align: center; padding: 6px 2px; border: 1px solid var(--dorado); border-radius: 8px; font: inherit; }
@media (max-width: 400px) {
  .cart-item { grid-template-columns: 60px 1fr auto; }
  .cart-item .thumb { width: 60px; height: 60px; }
  .cart-item .line-price { grid-column: 2; justify-self: start; }
  .cart-item .trash-btn { grid-column: 3; grid-row: 1; align-self: start; }
}
.link-btn { background: none; border: 0; color: var(--error); text-decoration: underline; cursor: pointer; font: inherit; padding: 4px; }
.subtotal { border-top: 1px solid var(--crema-oscuro); padding: 14px 4px; margin-bottom: 8px; }
.subtotal .total-row { display: flex; justify-content: space-between; align-items: baseline; font: 700 1.1rem var(--serif); }
.subtotal strong { color: var(--burdeos); font-size: 1.4rem; }
.aviso-pedido { font-size: .9rem; color: var(--texto-suave); margin: 0 0 14px; }

form .field { display: grid; gap: 4px; margin-bottom: 12px; }
form label, form legend { font-weight: 600; font-size: .95rem; }
form input[type="text"], form input[type="tel"], form input[type="email"], form input[type="date"], form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #cdb994; border-radius: 10px; font: inherit; background: var(--blanco); color: var(--texto);
}
form textarea { min-height: 80px; resize: vertical; }
form select { width: 100%; padding: 10px 12px; border: 1px solid #cdb994; border-radius: 10px; font: inherit; background: var(--blanco); color: var(--texto); }
form fieldset { border: 0; padding: 0; margin: 0 0 12px; }
.radio-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.radio-row label { font-weight: 400; display: flex; gap: 6px; align-items: center; }
.field-error { color: var(--error); font-size: .88rem; min-height: 1.2em; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }
.help { font-size: .85rem; color: var(--texto-suave); }
.submit-wrap { display: grid; gap: 8px; margin-top: 8px; }
.submit-wrap .btn { width: 100%; background: #1f7a4d; border-color: #1f7a4d; }
.submit-wrap .btn:hover { background: #17603c; }
.submit-wrap .btn:disabled { background: #1f7a4d; }

/* Pie */
.site-footer { background: var(--burdeos); color: #f6e9d5; padding: 32px 0 28px; margin-top: 24px; font-size: .95rem; }
.site-footer a { color: #f6e9d5; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1.2fr .8fr 1.3fr 1fr; align-items: start; }
.footer-col { padding-left: 24px; border-left: 1px solid rgba(246, 233, 213, .25); }
.footer-col:first-child { padding-left: 0; border-left: 0; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-links a, .contact-list a { text-decoration: none; }
.footer-links a:hover, .contact-list a:hover { text-decoration: underline; }
.contact-list li { display: flex; align-items: center; gap: 10px; }
.contact-list svg, .social-link svg { flex: 0 0 auto; color: #f6e9d5; }
.social-link { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(246, 233, 213, .5); border-radius: 50%; }
.social-link:hover { background: rgba(255, 255, 255, .12); }
.made-by { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid rgba(246, 233, 213, .25); }
.footer-brand img { width: 80px; height: 80px; border-radius: 50%; margin-bottom: 10px; }
.footer-brand p { margin: 0 0 8px; max-width: 32em; }
.slogan { font: italic 1.2rem var(--serif); color: #fff; }
@media (min-width: 561px) and (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-col:nth-child(3) { padding-left: 0; border-left: 0; } }
.site-footer h2 { color: #fff; font-size: 1.1rem; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 30; display: block; width: 64px; height: 64px; border-radius: 50%;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .3)); transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float img { display: block; width: 100%; height: 100%; }

@media (max-width: 560px) {
  .main-nav { gap: 2px 12px; }
  .banner { min-height: 420px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col { padding-left: 0; border-left: 0; }
  .wa-float { width: 56px; height: 56px; }
}

/* Carrusel de productos en el inicio: 4 columnas en escritorio, se desliza de lado */
.carousel { position: relative; }
.carousel .grid { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 28px; overscroll-behavior-x: contain; }
.carousel .grid::-webkit-scrollbar { display: none; }
.carousel .grid > .card { scroll-snap-align: start; }
.carousel .grid > .notice { grid-column: 1 / -1; width: 100%; }
.carousel-btn { position: absolute; top: 36%; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--burdeos); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); display: grid; place-items: center; padding: 0 0 4px; }
.carousel-btn:hover { background: var(--burdeos-oscuro); }
.carousel-prev { left: -12px; }
.carousel-next { right: -12px; }
@media (max-width: 960px) { .carousel .grid { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 560px) { .carousel .grid { grid-auto-columns: 78%; } .carousel-prev { left: -6px; } .carousel-next { right: -6px; } }

/* Detalle de producto */
.card-photo { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; overflow: hidden; }
.card-title { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.card-title:hover { text-decoration: underline; }
.card-size { font-size: .85rem; color: var(--texto-suave); }
dialog.detail { border: 0; border-radius: var(--radio); padding: 0; width: min(880px, calc(100% - 24px)); max-height: calc(100% - 24px); background: var(--crema); color: var(--texto); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); overflow: auto; }
dialog.detail::backdrop { background: rgba(40, 20, 20, .55); }
dialog.detail .close-btn { position: absolute; top: 8px; right: 10px; z-index: 2; background: var(--blanco); border-radius: 50%; width: 36px; height: 36px; }
.detail-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; padding: 22px; }
.detail-photos > img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--crema-oscuro); }
.detail-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.detail-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; background: none; cursor: pointer; overflow: hidden; }
.detail-thumbs button[aria-current="true"] { border-color: var(--dorado); }
.detail-thumbs img { width: 72px; height: 54px; object-fit: cover; }
.detail-info h2 { margin: .2em 0 .3em; }
.detail-meta { color: var(--texto-suave); margin: 0 0 8px; }
.detail-desc {  }
@media (max-width: 700px) { .detail-grid { grid-template-columns: 1fr; padding: 16px; } }

/* Contacto */
.banner-small { min-height: 220px; }
.contact-grid { display: grid; gap: 24px; grid-template-columns: 1fr 1.3fr; align-items: start; padding-top: 32px; padding-bottom: 40px; }
.contact-side { display: grid; gap: 16px; }
.contact-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-link { display: flex; align-items: center; gap: 16px; background: var(--blanco); border-radius: var(--radio); box-shadow: var(--sombra); padding: 16px 18px; color: var(--texto); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
a.contact-link:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(58, 42, 34, .16); }
.cc-body { display: grid; }
.cc-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--oliva); font-weight: 700; }
.cc-text { font-size: 1.1rem; font-weight: 600; color: var(--burdeos); overflow-wrap: anywhere; }
.ic { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.ic svg, .ic img { display: block; }
.ic-burdeos { background: var(--burdeos); }
.ic-gold { background: var(--dorado); }
.ic-insta { background: linear-gradient(135deg, #f9a03c, #e4405f 55%, #8a3ab9); }
.ic-wa { background: none; }
.ic-wa img { width: 52px; height: 52px; }
.contact-note { display: flex; gap: 14px; align-items: center; background: var(--crema-oscuro); border: 1px dashed var(--dorado); border-radius: var(--radio); padding: 14px 16px; }
.contact-note p { margin: 0; font-size: .95rem; }
.contact-card { background: var(--blanco); border-radius: var(--radio); box-shadow: var(--sombra); padding: 24px 26px; }
.contact-card h2 { margin-bottom: .15em; }
.contact-card .help { margin: 0 0 14px; }
#contact-form .field { margin-bottom: 10px; gap: 5px; }
#contact-form .field-error { min-height: 0; margin: 0; }
#contact-form .field-error:empty { display: none; }
.contact-logo { display: grid; place-items: center; padding: 8px 0 0; }
.contact-logo img { width: min(220px, 60%); height: auto; border-radius: 50%; box-shadow: var(--sombra); }
#contact-form .btn { margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* Animaciones suaves (se apagan si la persona prefiere menos movimiento) */
@keyframes subir { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pulso { 0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .45); } 70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); } }
.banner-content > * { animation: subir .8s ease both; }
.banner-content > :nth-child(2) { animation-delay: .12s; }
.banner-content > :nth-child(3) { animation-delay: .24s; }
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.done { transition: transform .25s ease, box-shadow .25s ease; }
.js .card.reveal.in:hover { transform: translateY(-4px); }
.card { transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(58, 42, 34, .18); }
.card img { transition: transform .5s ease; }
.card:hover img { transform: scale(1.04); }
.btn:hover { transform: translateY(-1px); }
.wa-float { animation: pulso 2.6s ease-out infinite; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Detalle del producto: descripción completa, ingredientes y alérgenos */
.detail-more { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--crema-oscuro); }
.rich p { margin: 0 0 .7em; }
.rich ul { margin: 0 0 .7em; padding-left: 1.3em; }
.rich a { color: var(--burdeos); text-decoration: underline; }
.detail-extra { margin: 0 0 .6em; font-size: .95rem; color: var(--texto-suave); }
.detail-extra strong { color: var(--texto); }

.btn-add { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-add svg { flex: 0 0 auto; }

/* Buscador */
dialog.search-dlg { width: min(560px, 94vw); max-height: 80vh; margin: 8vh auto auto; padding: 0; border: 0; border-radius: 16px; background: var(--blanco); color: var(--texto); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); overflow: hidden; }
dialog.search-dlg::backdrop { background: rgba(40, 20, 15, .55); }
dialog.search-dlg[open] { display: flex; flex-direction: column; }
.search-head { display: flex; gap: 8px; align-items: center; padding: 14px; border-bottom: 1px solid var(--crema-oscuro); }
.search-input { flex: 1; padding: 11px 14px; border: 1px solid #cdb994; border-radius: 999px; font: inherit; background: #fff; }
.search-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--crema-oscuro); color: var(--texto); font-size: 1.4rem; cursor: pointer; line-height: 1; }
.search-list { overflow-y: auto; padding: 8px; }
.search-hint { margin: 14px; text-align: center; color: var(--texto-suave); }
.search-result { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; text-decoration: none; color: var(--texto); }
.search-result:hover, .search-result:focus-visible { background: var(--crema-oscuro); }
.search-result img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; background: var(--crema-oscuro); }
.search-info { flex: 1; display: grid; line-height: 1.3; }
.search-info strong { font-family: var(--serif); color: var(--burdeos); }
.search-info span { font-size: .85rem; color: var(--texto-suave); }
.search-price { font-weight: 700; color: var(--burdeos); white-space: nowrap; }

/* Derechos del sitio */
.footer-bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(246, 233, 213, .25); text-align: center; font-size: .88rem; color: #e7d6bd; }
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: #fff; }

/* Opciones (variaciones) en el detalle del producto */
.var-options { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.var-option { position: relative; cursor: pointer; }
.var-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.var-option > span { display: grid; gap: 1px; padding: 8px 14px; border: 1px solid var(--crema-oscuro); border-radius: 12px; background: var(--blanco); text-align: center; line-height: 1.25; }
.var-option small { color: var(--texto-suave); }
.var-option input:checked + span { border-color: var(--burdeos); background: #f6e7e7; box-shadow: 0 0 0 1px var(--burdeos); }
.var-option input:focus-visible + span { outline: 3px solid var(--dorado); outline-offset: 2px; }
