/* DAVEMCI 3 — complementa theme.json. Colores y fuentes salen de los presets del tema. */
:root {
	--dv-cacao: var(--wp--preset--color--cacao, #2C3A1C);
	--dv-suave: var(--wp--preset--color--cacao-suave, #5A6148);
	--dv-caramelo: var(--wp--preset--color--caramelo, #D24328);
	--dv-dorado: var(--wp--preset--color--dorado, #E9B34A);
	--dv-frambuesa: var(--wp--preset--color--frambuesa, #A3262D);
	--dv-quinua: var(--wp--preset--color--quinua, #3F5228);
	--dv-crema: var(--wp--preset--color--crema, #F5E8D9);
	--dv-harina: var(--wp--preset--color--harina, #EEDDC7);
	--dv-trigo: var(--wp--preset--color--trigo, #E3CDB0);
	--dv-borde: #E6D3BC;
	--dv-serif: var(--wp--preset--font-family--display, "Playfair Display", Georgia, serif);
	--dv-shadow: 0 30px 60px -30px rgba(44, 58, 28, .55);
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.wp-site-blocks > * + * { margin-block-start: 0; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--dv-caramelo); outline-offset: 2px; }
.dv-skip { position: absolute; left: -9999px; }
.dv-skip:focus { left: 16px; top: 16px; z-index: 1000; background: #fff; padding: 10px 16px; border-radius: 8px; }
.dv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dv-serif { font-family: var(--dv-serif); }
.dv-kicker { margin: 0; font-weight: 700; color: var(--dv-caramelo); }
.has-cacao-background-color .dv-kicker, .dv-dark .dv-kicker { color: var(--dv-dorado); }

/* ---------- Cabecera ---------- */
.dv-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 245, 236, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--dv-trigo); }
.dv-header .wp-block-site-logo img { width: auto; max-height: 58px; }
.dv-header .wp-block-navigation a { text-decoration: none; }
.dv-header .wp-block-button__link { padding: 11px 22px; font-size: 15px; }
.dv-account a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; text-decoration: none; }
@media (max-width: 781px) {
	.dv-header .wp-block-site-logo img { max-height: 46px; }
	.dv-header .wp-block-buttons { display: none; }
}

/* ---------- Botones propios (formularios) ---------- */
.dv-btn, .dv-btn-line { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font: 700 16px/1.2 var(--wp--preset--font-family--sans); padding: 15px 28px; text-decoration: none; cursor: pointer; border: 0; }
.dv-btn { background: var(--dv-caramelo); color: #fff; }
.dv-btn--red { background: var(--dv-frambuesa); }
.dv-btn--dark { background: var(--dv-cacao); }
.dv-btn-line { background: #fff; color: var(--dv-cacao); border: 2px solid var(--dv-cacao); padding: 11px 20px; font-size: 15px; }
.dv-btn-line--danger { color: var(--dv-frambuesa); border-color: var(--dv-frambuesa); }
.dv-btn-sm { padding: 8px 14px; font-size: 14px; }
.dv-btn[disabled], .dv-btn-line[disabled] { opacity: .5; cursor: not-allowed; }
.dv-link { font-weight: 700; font-size: 14px; }
.dv-link-btn { background: none; border: 0; padding: 6px 0; font: 700 13px var(--wp--preset--font-family--sans); color: var(--dv-cacao); text-decoration: underline; cursor: pointer; }

/* ---------- Rejillas responsive: 4 → 2 → 1 ---------- */
.dv-grid { display: grid; gap: 20px; }
.dv-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dv-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dv-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dv-grid > * { margin: 0 !important; }
@media (max-width: 1024px) { .dv-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .dv-grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .dv-grid-2, .dv-grid-4 { grid-template-columns: minmax(0, 1fr); } .dv-grid-4.dv-visits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Portada ---------- */
.dv-pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--dv-trigo); border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 600; margin: 0; }
.dv-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dv-caramelo); }
.dv-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; margin: 8px 0 0; font-size: 14px; font-weight: 600; color: var(--dv-suave); }
.dv-trust li { display: inline-flex; align-items: center; gap: 8px; }
.dv-trust li::before { content: ""; width: 16px; height: 9px; border-left: 2.5px solid var(--dv-quinua); border-bottom: 2.5px solid var(--dv-quinua); transform: rotate(-45deg) translateY(-3px); }
.has-cacao-background-color .dv-trust { color: #E8D9C4; }
.has-cacao-background-color .dv-trust li::before { border-color: var(--dv-dorado); }
.dv-hero-media { position: relative; }
.dv-hero-media .wp-block-image img { aspect-ratio: 1; object-fit: cover; box-shadow: var(--dv-shadow); width: 100%; }
.dv-float { position: absolute; left: -32px; bottom: 32px; display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 20px; padding: 12px 18px 12px 12px; box-shadow: 0 16px 40px -20px rgba(44, 58, 28, .5); margin: 0 !important; }
.dv-float img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.dv-float p { margin: 0; line-height: 1.3; font-size: 13px; color: var(--dv-suave); }
.dv-float strong { display: block; color: var(--dv-cacao); font-size: 15px; }
@media (max-width: 781px) { .dv-float { left: 12px; bottom: 12px; } }

/* Tipos de cliente */
.dv-type { background: #fff; border-radius: 24px; padding: 32px !important; display: flex; flex-direction: column; gap: 14px; height: 100%; position: relative; }
.dv-type > * { margin: 0 !important; }
.dv-type .wp-block-buttons { margin-top: auto !important; padding-top: 8px; }
.dv-type ul { padding-left: 1.1em; font-size: 15px; }
.dv-type--dark { background: var(--dv-cacao); color: #F5E8D9; }
.dv-type--dark h3 { color: #F5E8D9; }
.dv-type--dark p { color: #E8D9C4; }
.dv-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--dv-crema); display: grid; place-items: center; }
.dv-type--dark .dv-icon { background: rgba(255, 255, 255, .1); }
.dv-ribbon { position: absolute; top: 24px; right: 24px; background: var(--dv-dorado); color: var(--dv-cacao); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.wp-block-columns.dv-types { gap: 24px; }
.wp-block-columns.dv-types > .wp-block-column { display: flex; }

/* Pasos */
.dv-step { border-radius: 20px; padding: 24px !important; display: flex; flex-direction: column; gap: 8px; }
.dv-step > * { margin: 0 !important; }
.dv-step .dv-num { width: 40px; height: 40px; border-radius: 50%; background: var(--dv-caramelo); color: #fff; display: grid; place-items: center; font-weight: 800; }
.dv-step--dark { background: rgba(255, 255, 255, .07); }
.dv-step--dark p { color: #D9C7AE; }
.dv-step--dark .dv-step-title { color: #F5E8D9; }
.dv-step--light { background: #fff; }
.dv-step-title { font-weight: 700; font-size: 17px; }
.dv-step--red .dv-num { background: var(--dv-frambuesa); }

/* Productos */
.dv-products .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 24px !important; }
@media (max-width: 900px) { .dv-products .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px !important; } }
@media (max-width: 359px) { .dv-products .wp-block-post-template.is-layout-grid { grid-template-columns: minmax(0, 1fr) !important; } }
.dv-card-prod { background: #fff; border: 1px solid var(--dv-borde); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.dv-card-prod > * { margin: 0 !important; }
.dv-card-prod .wp-block-post-featured-image img { aspect-ratio: 1; object-fit: cover; width: 100%; background: var(--dv-harina); }
.dv-noimg a { display: grid; place-items: center; aspect-ratio: 1; background: var(--dv-harina); padding: 14px; text-decoration: none; }
.dv-noimg span { width: 100%; height: 100%; display: grid; place-items: center; border: 2px dashed #DCC6A3; border-radius: 14px; color: var(--dv-suave); font-size: 13px; font-weight: 600; text-align: center; padding: 8px; }
.dv-card-body { padding: 16px 18px 20px !important; display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.dv-card-body > * { margin: 0 !important; }
.dv-card-body .wp-block-post-terms { font-size: 12px; font-weight: 700; color: var(--dv-quinua); }
.dv-card-body .wp-block-post-terms a { color: inherit; text-decoration: none; }
.dv-card-body .wp-block-post-title { font-family: var(--dv-serif); font-size: 20px; line-height: 1.2; }
.dv-card-body .wp-block-post-title a { text-decoration: none; }
.dv-pack { margin: 0; font-size: 13px; color: var(--dv-suave); }
.dv-card-foot { margin-top: auto !important; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.dv-card-foot p { margin: 0; }
.dv-price-tag { display: inline-block; background: var(--dv-caramelo); color: #fff; font-weight: 800; font-size: 15px; padding: 7px 14px; border-radius: 999px; }
.dv-price-ask { color: var(--dv-suave); font-weight: 600; }
.dv-order { font-weight: 700; font-size: 14px; color: var(--dv-cacao); text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--dv-caramelo); }
.dv-order--btn { display: inline-flex; padding: 15px 28px; border-radius: 999px; background: var(--dv-caramelo); color: #fff; text-decoration: none; font-size: 16px; }
.dv-variants { list-style: none; margin: 0 0 14px; padding: 0; }
.dv-variants li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--dv-borde); }
.dv-variants li:last-child { border-bottom: 1px solid var(--dv-borde); }
.dv-variants strong { font-weight: 800; font-variant-numeric: tabular-nums; }
.dv-price-note { font-size: 13px; color: var(--dv-quinua); font-weight: 700; margin: -6px 0 14px; }
@media (max-width: 820px) {
	.dv-card-body { padding: 12px 12px 14px !important; }
	.dv-card-body .wp-block-post-title { font-size: 16px; }
	.dv-price-tag { font-size: 13px; padding: 5px 10px; }
	.dv-card-foot { flex-direction: column; align-items: flex-start; }
}
.dv-lines { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.dv-lines a { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1.5px solid #DCC6A3; text-decoration: none; font-weight: 600; font-size: 14px; }
.dv-lines a[aria-current] { background: var(--dv-cacao); color: #fff; border-color: var(--dv-cacao); }
@media (max-width: 600px) { .dv-lines { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; } .dv-lines a { white-space: nowrap; } }

/* Bloques varios */
.dv-andino { border-radius: 28px; overflow: hidden; }
.dv-andino .wp-block-image, .dv-andino .wp-block-image img { height: 100%; margin: 0; border-radius: 0; object-fit: cover; min-height: 320px; width: 100%; }
.dv-andino .wp-block-column:first-child { padding: clamp(28px, 5vw, 56px); }
.dv-stats-mini .wp-block-group { background: var(--dv-harina); border-radius: 18px; padding: 18px; }
.dv-stats-mini p { margin: 0; }
.dv-stats-mini .dv-big { font-family: var(--dv-serif); font-size: 28px; font-weight: 700; line-height: 1.1; }
.dv-season { background: #fff; border: 1px solid var(--dv-borde); border-radius: 28px; }
.dv-round img { border-radius: 50% !important; aspect-ratio: 1; object-fit: contain; background: var(--dv-harina); }
.dv-map-embed iframe { width: 100%; height: 100%; min-height: 340px; border: 0; border-radius: 28px; display: block; }
.dv-contact-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0; }
.dv-contact-list dt { font-weight: 700; }
.dv-contact-list dd { margin: 0; }

/* Pie */
.dv-footer { background: var(--dv-cacao); color: #E8D9C4; }
.dv-footer h2, .dv-footer h3, .dv-footer strong { color: #F5E8D9; }
.dv-footer a { color: #E8D9C4; text-decoration: none; }
.dv-footer .dv-foot-bottom { border-top: 1px solid rgba(255, 255, 255, .12); }

/* Barra WhatsApp móvil */
.dv-mobile-bar { display: none; }
@media (max-width: 781px) {
	.dv-mobile-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 20px; border-radius: 999px; background: #1F7A44; color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 8px 20px rgba(44, 58, 28, .3); }
	body { padding-bottom: 76px; }
}

/* ---------- Formularios ---------- */
.dv-form, .dv-pt, .dv-panel { font-size: 15px; }
.dv-form { background: #fff; border: 1px solid var(--dv-borde); border-radius: 28px; padding: clamp(20px, 4vw, 36px); display: flex; flex-direction: column; gap: 24px; }
.dv-fields label, .dv-block, .dv-pt-sum > label, .dv-interior label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.dv-span { grid-column: 1 / -1; }
.dv-form input[type=text], .dv-form input[type=email], .dv-form input[type=tel], .dv-form input[type=password], .dv-form input[type=number], .dv-form select,
.dv-pt input[type=text], .dv-pt input[type=tel], .dv-pt select, .dv-panel select, .dv-panel input[type=text], .dv-login input[type=text], .dv-login input[type=password] {
	font: 400 15px var(--wp--preset--font-family--sans); color: var(--dv-cacao); padding: 12px 14px; border: 1.5px solid #DCC6A3; border-radius: 12px; background: #fff; width: 100%; box-sizing: border-box;
}
.dv-choice { border: 0; margin: 0; padding: 0; min-width: 0; }
.dv-choice legend, .dv-label { font-weight: 700; font-size: 16px; margin: 0 0 12px; padding: 0; }
.dv-help { margin: 0; font-size: 13px; color: var(--dv-suave); }
.dv-help.is-error { color: var(--dv-frambuesa); font-weight: 700; }
.dv-option { position: relative; display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--dv-borde); background: #fff; border-radius: 18px; padding: 16px; cursor: pointer; }
.dv-option:has(input:checked) { border-color: var(--dv-caramelo); background: #FFF6EA; }
.dv-option input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--dv-caramelo); flex: none; }
.dv-option span { display: flex; flex-direction: column; gap: 2px; }
.dv-option small { color: var(--dv-suave); font-size: 13px; }
.dv-option--size span { align-items: center; text-align: center; width: 100%; }
.dv-option--size, .dv-option--tall { flex-direction: column; align-items: center; }
.dv-option--tall { align-items: flex-start; }
.dv-big { font-size: 30px; line-height: 1; }
.dv-size-price { margin-top: 6px; font-weight: 800; }
.dv-option--sm { padding: 10px 12px; align-items: center; }
.dv-option--sm input { margin: 0; }
.dv-pt .dv-option:has(input:checked) { border-color: var(--dv-frambuesa); background: #FDF0F0; }
.dv-pt .dv-option input { accent-color: var(--dv-frambuesa); }
.dv-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--dv-suave); }
.dv-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--dv-caramelo); }
.dv-hp { position: absolute; left: -9999px; }
.dv-reg[data-tipo="tienda"] .dv-only-distribuidor, .dv-reg[data-tipo="distribuidor"] .dv-only-tienda { display: none; }
.dv-only-tienda, .dv-only-distribuidor { display: flex; flex-direction: column; gap: 14px; }
.dv-map-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.dv-map-head p { margin: 0; }
.dv-map { height: 320px; border-radius: 18px; border: 1.5px solid #DCC6A3; z-index: 0; }
@media (max-width: 600px) { .dv-map { height: 260px; } }
.dv-notice { background: #EEF0E2; color: #3F4A1C; border-radius: 14px; padding: 14px 18px; font-weight: 600; margin: 0 0 20px; }
.dv-notice--error { background: #FBE9EA; color: var(--dv-frambuesa); }
.dv-chips, .dv-days { display: flex; flex-wrap: wrap; gap: 8px; }
.dv-chip { position: relative; cursor: pointer; }
.dv-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.dv-chip span { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; border: 2px solid var(--dv-borde); background: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 14px; line-height: 1.15; }
.dv-chip--day span { border-radius: 14px; min-width: 56px; }
.dv-chip--day small { font-weight: 500; font-size: 12px; color: var(--dv-suave); }
.dv-chip--day b { font-size: 18px; }
.dv-chip input:checked + span { border-color: var(--dv-frambuesa); background: #FDF0F0; }
.dv-chip input:focus-visible + span { outline: 3px solid var(--dv-caramelo); outline-offset: 2px; }
.dv-chip.is-taken span { opacity: .4; text-decoration: line-through; }

/* Panetón: selector + resumen */
.dv-pt { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: start; }
.dv-pt-pick { display: flex; flex-direction: column; gap: 28px; }
.dv-pt-sum { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 14px; }
.dv-pt-name { font-size: 24px; font-weight: 700; line-height: 1.2; margin: 0; }
.dv-pt-qty { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; }
.dv-pt-lines { border-top: 1px solid var(--dv-borde); padding-top: 12px; }
.dv-pt-lines p { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 6px; }
@media (max-width: 900px) { .dv-pt { grid-template-columns: minmax(0, 1fr); } .dv-pt-sum { position: static; } }

/* ---------- Mi cuenta ---------- */
.dv-panel { display: flex; flex-direction: column; gap: 24px; }
.dv-panel-title { font-size: clamp(30px, 4vw, 40px); margin: 0; }
.dv-card { background: #fff; border: 1px solid var(--dv-borde); border-radius: 24px; padding: clamp(18px, 3vw, 26px); display: flex; flex-direction: column; gap: 14px; }
.dv-card > * { margin: 0; }
.dv-card h2 { font: 800 20px/1.25 var(--wp--preset--font-family--sans); }
.dv-card p { margin: 0; color: var(--dv-suave); font-size: 14px; }
.dv-card--dark { background: var(--dv-cacao); border-color: var(--dv-cacao); color: #F5E8D9; }
.dv-card--dark p { color: #E8D9C4; }
.dv-card-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.dv-stat { background: #fff; border: 1px solid var(--dv-borde); border-radius: 22px; padding: 20px 22px; }
.dv-stat p { margin: 0; }
.dv-stat-label { font-size: 13px; font-weight: 700; color: var(--dv-suave); }
.dv-stat-value { font-family: var(--dv-serif); font-size: 26px; font-weight: 700; line-height: 1.2; margin-top: 4px !important; }
.dv-stat-note { font-size: 13px; color: var(--dv-suave); }
.dv-stat--dark { background: var(--dv-cacao); border-color: var(--dv-cacao); color: #F5E8D9; }
.dv-stat--dark .dv-stat-label { color: var(--dv-dorado); }
.dv-stat--dark .dv-stat-note { color: #E8D9C4; }
.dv-visit { border: 1.5px solid var(--dv-borde); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; background: #fff; }
.dv-visit.is-next { border-color: var(--dv-caramelo); background: #FFF6EA; }
.dv-visit.is-off { background: var(--dv-crema); }
.dv-visit-dow { font-size: 13px; font-weight: 700; color: var(--dv-suave); }
.dv-visit-date { font-family: var(--dv-serif); font-size: 24px; font-weight: 700; }
.dv-visit-state { font-size: 13px; font-weight: 600; color: var(--dv-quinua); }
.dv-visit.is-off .dv-visit-state { color: var(--dv-frambuesa); }
.dv-table-wrap { overflow-x: auto; margin: 0 calc(-1 * clamp(18px, 3vw, 26px)); }
.dv-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.dv-table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--dv-suave); padding: 10px 12px; }
.dv-table td { padding: 10px 12px; border-top: 1px solid #EDDFCC; vertical-align: middle; }
.dv-table th:first-child, .dv-table td:first-child { padding-left: clamp(18px, 3vw, 26px); }
.dv-table tr.is-zero td { color: var(--dv-suave); }
.dv-prod { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.dv-prod img, .dv-prod-ph { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--dv-harina); flex: none; }
.dv-qty { display: inline-flex; align-items: center; border: 1.5px solid #DCC6A3; border-radius: 999px; background: #fff; }
.dv-qty-btn { width: 40px; height: 40px; border: 0; background: transparent; font-size: 20px; color: var(--dv-cacao); cursor: pointer; border-radius: 50%; }
.dv-qty input { width: 44px; text-align: center; border: 0; font: 800 16px var(--wp--preset--font-family--sans); color: var(--dv-cacao); background: transparent; -moz-appearance: textfield; padding: 0; }
.dv-qty input::-webkit-outer-spin-button, .dv-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.dv-extra-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dv-extra-row select { flex: 1 1 200px; width: auto; }
.dv-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--dv-harina); color: var(--dv-suave); }
.dv-badge--enviado, .dv-badge--entregado { background: #EEF0E2; color: #3F4A1C; }
.dv-badge--anulado { background: #FBE9EA; color: var(--dv-frambuesa); }
.dv-dist { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.dv-dist-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 100px; }
.dv-choice-list { display: flex; flex-direction: column; gap: 8px; }
.dv-interior { gap: 12px; }
.dv-interior[hidden] { display: none; }
.dv-summary p { display: flex; justify-content: space-between; gap: 12px; color: #E8D9C4; }
.dv-summary b { color: #F5E8D9; }
.dv-summary .dv-sum-min { display: block; color: var(--dv-dorado); font-weight: 600; }
.dv-summary .dv-sum-min[hidden] { display: none; }
.dv-summary .dv-help { color: #D9C7AE; text-align: center; }
@media (max-width: 960px) { .dv-dist { grid-template-columns: minmax(0, 1fr); } .dv-dist-side { position: static; } }
@media (max-width: 680px) {
	.dv-table thead { display: none; }
	.dv-table, .dv-table tbody, .dv-table tr, .dv-table td { display: block; width: 100%; box-sizing: border-box; }
	.dv-table tr { border-top: 1px solid #EDDFCC; padding: 12px clamp(18px, 3vw, 26px); display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
	.dv-table td { border: 0; padding: 0 !important; }
	.dv-table td[data-label="Producto"] { grid-column: 1 / -1; }
	.dv-table td[data-label="Paquete"], .dv-table td[data-label="Precio"] { font-size: 13px; color: var(--dv-suave); }
	.dv-table td[data-label="Cantidad"] { grid-row: 2 / span 2; grid-column: 2; }
	.dv-table td[data-label="Estado"], .dv-table td:last-child { grid-column: 1 / -1; }
}
.dv-login, .dv-wait { max-width: 460px; margin: 0 auto; background: #fff; border: 1px solid var(--dv-borde); border-radius: 24px; padding: 28px; }
.dv-login h2 { margin-top: 0; font-size: 28px; }
.dv-login form p { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.dv-login .login-remember { flex-direction: row; align-items: center; font-weight: 400; }
.dv-login .button-primary, .dv-login input[type=submit] { background: var(--dv-caramelo); color: #fff; border: 0; border-radius: 999px; padding: 14px 28px; font: 700 16px var(--wp--preset--font-family--sans); cursor: pointer; width: 100%; }
.dv-login-alt { border-top: 1px solid var(--dv-borde); padding-top: 16px; }
.dv-logout { text-align: center; font-size: 14px; }

/* Preguntas */
.wp-block-details summary { font-weight: 700; font-size: 17px; cursor: pointer; }
.wp-block-details > p { color: var(--dv-suave); margin-top: 10px; }

/* Botón contorno (estilo "Contorno" del editor) */
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; border: 2px solid currentColor; color: var(--dv-cacao); padding: 13px 26px; }
.has-cacao-background-color .wp-block-button.is-style-outline > .wp-block-button__link, .dv-type--dark .wp-block-button.is-style-outline > .wp-block-button__link { color: var(--dv-dorado); }

/* Panetones */
.dv-round--glow img { max-width: 440px; width: 100%; background: var(--dv-crema); padding: 11%; box-sizing: border-box; box-shadow: 0 0 0 14px rgba(233, 179, 74, .25); }
.dv-logo-demo { position: relative; }
.dv-logo-tag { position: absolute; top: 24px; right: 24px; margin: 0 !important; background: #fff; border: 2px dashed var(--dv-frambuesa); color: var(--dv-frambuesa); font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 12px; }
.dv-checks { list-style: none; padding: 0; margin: 0; }
.dv-checks li { position: relative; padding-left: 30px; font-size: 14px; color: var(--dv-suave); }
.dv-checks li strong { color: var(--dv-cacao); font-size: 15px; }
.dv-checks li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 13px; height: 7px; border-left: 2.5px solid var(--dv-quinua); border-bottom: 2.5px solid var(--dv-quinua); transform: rotate(-45deg); }
.dv-tipo-aviso { margin: 8px 0 20px; color: var(--dv-suave); }
.dv-tipo-aviso.is-on { background: #EEF0E2; color: #3F4A1C; padding: 10px 16px; border-radius: 12px; font-weight: 600; display: inline-block; }
.dv-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 12px; font-size: 14px; color: var(--dv-suave); }
.dv-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.dv-crumbs a { color: inherit; text-decoration: none; }

/* Ajustes tras revisión */
.dv-noimg a { box-sizing: border-box; }
.dv-noimg span { box-sizing: border-box; }
.dv-card-body p:empty { display: none; }
.dv-card-body p { margin: 0; }
.dv-pack { display: block; }
.wp-block-columns.dv-andino { padding: 0 !important; }
.dv-andino > .wp-block-column:last-child { align-self: stretch; }
.dv-andino > .wp-block-column:last-child .wp-block-image { height: 100%; }
@media (max-width: 781px) { .dv-andino > .wp-block-column:last-child .wp-block-image img { min-height: 240px; max-height: 320px; } }
nav[aria-label="Líneas de productos"] { min-width: 0; max-width: 100%; }
.dv-lines { max-width: 100%; }
.dv-ruc[hidden], [hidden].dv-interior { display: none !important; }
.dv-panel, .dv-card, .dv-grid > *, .dv-extra-row, .dv-extra-row select { min-width: 0; }
.dv-extra-row select { max-width: 100%; }
.dv-visit .dv-link-btn { align-self: flex-start; }
.dv-card .dv-btn-line { align-self: flex-start; }
@media (max-width: 680px) {
	.dv-table td { width: auto; }
	.dv-table td[data-label="Paquete"] { grid-column: 1; grid-row: 2; }
	.dv-table td[data-label="Precio"] { grid-column: 1; grid-row: 3; }
	.dv-table td[data-label="Cantidad"] { grid-column: 2; grid-row: 2 / span 2; }
}

/* Mensaje de tarjeta (Día de la Madre) */
.dv-pt textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1.5px solid var(--wp--preset--color--trigo); border-radius: 12px; background: #fff; color: inherit; resize: vertical; min-height: 84px; }
.dv-pt textarea:focus { outline: 2px solid var(--wp--preset--color--caramelo); outline-offset: 1px; }

.dv-dir-ofi[hidden] { display: none !important; }
.dv-reu .dv-dir-ofi input { font: inherit; padding: 12px 14px; border: 1.5px solid var(--wp--preset--color--trigo); border-radius: 12px; background: #fff; }

/* Pedido por presentación en la ficha de producto */
.dv-pp { display: grid; gap: 14px; margin-top: 4px; }
.dv-pp-title { font-weight: 700; font-size: 14px; margin: 0; }
.dv-pp-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--wp--preset--color--trigo); }
.dv-pp-rows li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--wp--preset--color--trigo); }
.dv-pp-rows li.is-zero .dv-pp-name { opacity: .6; }
.dv-pp-name { display: flex; flex-direction: column; gap: 2px; font-weight: 600; min-width: 0; }
.dv-pp-name small { font-weight: 700; color: var(--wp--preset--color--cacao-suave); font-size: 14px; }
.dv-pp-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; font-size: 18px; }
.dv-pp-total b { font-size: 22px; }
.dv-pp-btn.is-disabled { opacity: .45; pointer-events: none; }
.dv-pp .dv-help { margin: 0; }


/* Hover solo con mouse: en celular el hover se queda pegado tras tocar */
@media (hover: hover) and (pointer: fine) {
	.dv-header .wp-block-navigation a:hover { color: var(--dv-frambuesa); }
	.dv-btn:hover { background: var(--dv-cacao); color: #fff; }
	.dv-btn--dark:hover, .dv-btn--red:hover { background: var(--dv-caramelo); }
	.dv-btn-line:hover { background: var(--dv-cacao); color: #fff; }
	.dv-btn-line--danger:hover { background: var(--dv-frambuesa); }
	.dv-order--btn:hover { background: var(--dv-cacao); color: #fff; }
	.dv-lines a:hover { background: var(--dv-cacao); color: #fff; border-color: var(--dv-cacao); }
	.dv-footer a:hover { color: var(--dv-dorado); }
	.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--dv-cacao); color: #fff; border-color: var(--dv-cacao); }
	.has-cacao-background-color .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--dv-dorado); color: var(--dv-cacao); border-color: var(--dv-dorado); }
	.dv-crumbs a:hover { text-decoration: underline; }
	.dv-card-foot .dv-order:hover { background: var(--dv-caramelo); color: #fff; }
}

/* =====================================================================
   3.4 · Refinamiento: jerarquía, lista de pedido y celular
   Escala de espacio (base 4): 4 · 8 · 12 · 16 · 24 · 32 · 48 · 64
   ===================================================================== */
:root {
	--dv-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--dv-linea: #EDDFCC;
	--dv-texto-2: #5A6148;
}

/* ---------- Base táctil ---------- */
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
body { font-size: 16px; line-height: 1.6; }
::selection { background: var(--dv-dorado); color: var(--dv-cacao); }
input, textarea { caret-color: var(--dv-caramelo); }
a, button, summary, label, .dv-qty-btn { touch-action: manipulation; }
button, .dv-btn, .dv-btn-line, .wp-block-button__link, .dv-order, .dv-chip span, .dv-qty-btn, .dv-lines a, .dv-mobile-bar, .dv-link-btn {
	-webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
a { text-underline-offset: 3px; }

/* Respuesta al presionar: confirma el toque (100–160 ms, ease-out) */
.dv-btn, .dv-btn-line, .wp-block-button__link, .dv-order, .dv-qty-btn, .dv-mobile-bar, .dv-chip span, .dv-option {
	transition: transform 140ms var(--dv-ease-out), background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}
.dv-btn:active, .dv-btn-line:active, .wp-block-button__link:active, .dv-order:active, .dv-mobile-bar:active { transform: scale(0.97); }
.dv-qty-btn:active { transform: scale(0.9); background: var(--dv-harina); }
.dv-chip:active span, .dv-option:active { transform: scale(0.98); }

/* Campos a 16 px: el iPhone no hace zoom al tocarlos */
.dv-form input[type=text], .dv-form input[type=email], .dv-form input[type=tel], .dv-form input[type=password], .dv-form input[type=number], .dv-form select, .dv-form textarea,
.dv-pt input[type=text], .dv-pt input[type=tel], .dv-pt select, .dv-pt textarea, .dv-panel select, .dv-panel input[type=text],
.dv-login input[type=text], .dv-login input[type=password], .dv-reu input, .dv-qty input { font-size: 16px; }
.dv-form, .dv-pt, .dv-panel { font-size: 16px; }
.dv-help { font-size: 14px; }
.dv-fields label, .dv-block, .dv-pt-sum > label, .dv-interior label { font-size: 15px; }

/* ---------- Jerarquía ---------- */
/* Las etiquetas encima de títulos se conservan, pero ya no compiten con el título */
.dv-kicker { color: var(--dv-texto-2); font-weight: 600; font-size: 15px; letter-spacing: 0; }
.has-cacao-background-color .dv-kicker, .dv-dark .dv-kicker { color: #D9C7AE; }
.dv-pill { background: transparent; border: 0; padding: 0; font-size: 14px; color: var(--dv-texto-2); }
h1.wp-block-heading, h2.wp-block-heading { letter-spacing: -0.01em; }
.dv-card h2 { font: 700 22px/1.25 var(--dv-serif); letter-spacing: -0.005em; }
.dv-card p, .dv-card-head p { font-size: 15px; }
.dv-panel-title { line-height: 1.1; }

/* Tipos de cliente: tiendas manda; las otras dos se vuelven discretas */
.dv-type { background: transparent; border: 1.5px solid var(--dv-trigo); box-shadow: none; }
.dv-type--dark { background: var(--dv-cacao); border-color: var(--dv-cacao); box-shadow: 0 24px 48px -28px rgba(44, 58, 28, .6); }
@media (min-width: 782px) {
	.wp-block-columns.dv-types > .wp-block-column:has(.dv-type--dark) { flex-grow: 1.25; }
	.dv-type--dark { padding: 40px 36px !important; margin-block: -12px !important; }
}
@media (max-width: 781px) {
	.wp-block-columns.dv-types > .wp-block-column:has(.dv-type--dark) { order: -1; }
	.dv-type { padding: 24px !important; }
}

/* ---------- Tarjetas de producto ---------- */
.dv-card-prod { border-radius: 18px; }
.dv-card-prod .wp-block-post-featured-image img, .dv-noimg a { aspect-ratio: 4 / 3; }
.dv-noimg a { padding: 10px; }
.dv-noimg span { font-size: 12px; border-width: 1.5px; }
.dv-card-body .wp-block-post-title { font-size: 19px; }
.dv-pack { font-size: 14px; }
.dv-price-tag { background: none; color: var(--dv-cacao); padding: 0; border-radius: 0; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dv-card-foot { padding-top: 12px; border-top: 1px solid var(--dv-linea); gap: 10px; }
.dv-card-foot .dv-order { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; border-radius: 999px; background: var(--dv-cacao); color: #fff; text-decoration: none; font-size: 14px; }
@media (max-width: 820px) {
	.dv-card-body .wp-block-post-title { font-size: 16px; }
	.dv-card-body .wp-block-post-title a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.dv-pack { font-size: 13px; }
	.dv-price-tag { font-size: 15px; }
	.dv-card-foot { flex-direction: column; align-items: stretch; }
	.dv-card-foot .dv-order { min-height: 44px; }
}
.dv-hero-media .wp-block-image img { aspect-ratio: 1; }
@media (max-width: 781px) { .dv-hero-media .wp-block-image img { aspect-ratio: 4 / 3; } }

/* ---------- Lista de pedido (tienda y distribuidor) ---------- */
.dv-ol { container-type: inline-size; display: flex; flex-direction: column; }
.dv-ol-cols { display: none; }
.dv-ol-line { margin: 20px 0 0; padding-bottom: 8px; font: 700 13px/1.2 var(--wp--preset--font-family--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--dv-quinua); border-bottom: 2px solid var(--dv-trigo); }
.dv-ol-group:first-of-type .dv-ol-line { margin-top: 4px; }
.dv-ol-prod { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--dv-linea); }
.dv-ol-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dv-ol-head img, .dv-ol-head .dv-prod-ph { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; background: var(--dv-harina); }
.dv-ol-name { font-weight: 700; font-size: 16px; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.dv-ol-vars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dv-ol-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "pack qty" "price sub"; align-items: center; gap: 0 12px; padding: 8px 0; }
.dv-ol-row + .dv-ol-row { border-top: 1px dashed var(--dv-linea); }
.dv-ol-pack { grid-area: pack; font-weight: 600; font-size: 15px; min-width: 0; overflow-wrap: anywhere; }
.dv-ol-price { grid-area: price; font-size: 14px; color: var(--dv-texto-2); }
.dv-ol-row .dv-qty { grid-area: qty; }
.dv-ol-sub { grid-area: sub; justify-self: end; font-size: 14px; font-weight: 800; min-height: 1.2em; }
.dv-ol-price, .dv-ol-sub, .dv-num, .dv-stat-value, .dv-summary b, .dv-sticky-sum b, .dv-variants strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.dv-ol-row.is-zero .dv-ol-pack { color: var(--dv-texto-2); font-weight: 500; }
.dv-ol-row:not(.is-zero) { background: linear-gradient(90deg, #FFF6EA, #FFF6EA00 70%); }
.dv-ol-row:not(.is-zero) .dv-qty { border-color: var(--dv-caramelo); }
.dv-ol-empty { padding: 16px 0; }
@container (min-width: 700px) {
	.dv-ol-cols { display: grid; grid-template-columns: minmax(0, 1fr) 140px 104px 128px 112px; gap: 12px; padding: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--dv-texto-2); border-bottom: 1px solid var(--dv-linea); }
	.dv-ol-cols span:nth-child(3), .dv-ol-cols span:nth-child(5) { text-align: right; }
	.dv-ol-prod { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; }
	.dv-ol-head { padding-top: 6px; }
	.dv-ol-row { grid-template-columns: 140px 104px 128px 112px; grid-template-areas: "pack price qty sub"; gap: 12px; padding: 6px 0; }
	.dv-ol-row + .dv-ol-row { border-top: 0; }
	.dv-ol-price { text-align: right; font-size: 15px; color: var(--dv-cacao); }
	.dv-ol-sub { font-size: 15px; }
	.dv-ol-row:not(.is-zero) { background: none; }
}

/* Pedido del distribuidor: más ancho para la lista */
@media (min-width: 961px) { .dv-dist { grid-template-columns: minmax(0, 1fr) 340px; } }

/* Barra fija del pedido en celular */
.dv-sticky-sum { display: none; }
@media (max-width: 960px) {
	.dv-sticky-sum { position: sticky; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: var(--dv-cacao); color: #F5E8D9; box-shadow: 0 -10px 24px -14px rgba(44, 58, 28, .6); }
	.dv-sticky-info { margin: 0; display: grid; gap: 0; min-width: 0; line-height: 1.25; }
	.dv-sticky-info span { font-size: 13px; color: #E8D9C4; }
	.dv-sticky-info b.dv-sb-total { font-size: 20px; }
	.dv-sticky-info small { font-size: 12px; color: var(--dv-dorado); font-weight: 600; }
	.dv-sticky-info small[hidden] { display: none; }
	.dv-sticky-sum .dv-btn { flex: none; padding: 14px 22px; }
	.dv-summary .dv-btn { display: none; }
	body:has(.dv-sticky-sum) .dv-mobile-bar { display: none; }
	body:has(.dv-sticky-sum) { padding-bottom: 0; }
}

/* Historial y estadísticas */
.dv-table td.dv-num { font-weight: 700; }
.dv-stat-value { overflow-wrap: anywhere; white-space: normal; }
.dv-badge { white-space: nowrap; }
.dv-prod { min-width: 0; overflow-wrap: anywhere; }

/* Barra de WhatsApp: libre de la barra del iPhone */
@media (max-width: 781px) {
	.dv-mobile-bar { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); min-height: 52px; }
	body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

/* Textos largos que no deben romper la fila */
.dv-option span, .dv-card-head > div, .dv-panel-title { min-width: 0; overflow-wrap: anywhere; }
.dv-visit { min-width: 0; }
@media (max-width: 360px) { .dv-grid-4.dv-visits { grid-template-columns: minmax(0, 1fr); } }
.dv-card-head > a, .dv-card-head > button { flex: none; }
@media (max-width: 820px) {
	.dv-card-foot > p:has(.dv-order) { width: 100%; }
	.dv-card-foot .dv-order { width: 100%; box-sizing: border-box; }
}


/* =====================================================================
   3.5 · Tienda web y animaciones
   Movimiento: solo donde informa. Curva --dv-ease-out, 140–320 ms.
   ===================================================================== */

/* Barra flotante del carrito (entra desde abajo: estado = "tienes un pedido") */
.dv-cartbar { position: fixed; z-index: 70; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: min(560px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 18px; background: var(--dv-cacao); color: #F5E8D9; text-decoration: none; box-shadow: 0 18px 40px -16px rgba(40, 20, 8, .6); transform: translate(-50%, calc(100% + 32px)); transition: transform 300ms var(--dv-ease-out); }
.dv-cartbar.is-in { transform: translate(-50%, 0); }
.dv-cartbar:active { transform: translate(-50%, 0) scale(0.98); }
.dv-cartbar-count { flex: none; display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 999px; background: var(--dv-dorado); color: var(--dv-cacao); font-weight: 800; font-variant-numeric: tabular-nums; }
.dv-cartbar-txt { display: grid; min-width: 0; line-height: 1.2; }
.dv-cartbar-txt b { font-size: 15px; }
.dv-cartbar-txt small { font-size: 13px; color: #E8D9C4; }
.dv-cartbar-total { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dv-cartbar-go { flex: none; background: var(--dv-caramelo); color: #fff; font-weight: 700; font-size: 14px; padding: 11px 16px; border-radius: 12px; }
@media (max-width: 400px) { .dv-cartbar-txt small { display: none; } .dv-cartbar-go { padding: 11px 12px; } }
body.dv-has-cart .dv-mobile-bar { display: none; }
@media (max-width: 781px) { body.dv-has-cart { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }

/* Ficha de producto: agregar al pedido */
.dv-pp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.dv-pp-add { position: relative; min-width: 220px; overflow: hidden; }
.dv-pp-add-txt, .dv-pp-add-ok { transition: transform 220ms var(--dv-ease-out), opacity 220ms var(--dv-ease-out); }
.dv-pp-add-ok { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: translateY(70%); }
.dv-pp-add-ok::before { content: ""; display: inline-block; width: 12px; height: 7px; margin-right: 8px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg) translateY(-2px); vertical-align: middle; }
.dv-pp-add.is-ok { background: var(--dv-quinua); }
.dv-pp-add.is-ok .dv-pp-add-txt { opacity: 0; transform: translateY(-70%); }
.dv-pp-add.is-ok .dv-pp-add-ok { opacity: 1; transform: none; }
.dv-pp-wa { font-weight: 600; font-size: 15px; color: var(--dv-cacao); }
.dv-pp-status { margin: 0; min-height: 1.4em; font-size: 14px; font-weight: 600; color: var(--dv-quinua); }
@media (max-width: 600px) { .dv-pp-add { width: 100%; } }

/* Página "Tu pedido" */
.dv-shop { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.dv-shop-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 100px; }
.dv-shop-side[hidden] { display: none; }
.dv-shop .dv-fields { gap: 12px; }
.dv-shop .dv-choice-list { gap: 8px; }
.dv-shop textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid #DCC6A3; border-radius: 12px; resize: vertical; }
.dv-shop input[type=tel], .dv-shop input[type=text] { font: 400 16px var(--wp--preset--font-family--sans); color: var(--dv-cacao); padding: 12px 14px; border: 1.5px solid #DCC6A3; border-radius: 12px; background: #fff; width: 100%; box-sizing: border-box; }
.dv-shop-dir[hidden], .dv-shop .dv-ruc[hidden], .dv-shop-sticky[hidden] { display: none !important; }
.dv-cart-list { list-style: none; margin: 0; padding: 0; }
.dv-cart-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; grid-template-areas: "img info qty sub" "img info del sub"; align-items: center; gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--dv-linea); }
.dv-cart-item img, .dv-cart-item .dv-prod-ph { grid-area: img; width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--dv-harina); align-self: start; }
.dv-cart-info { grid-area: info; display: grid; gap: 2px; min-width: 0; }
.dv-cart-info a { font-weight: 700; color: var(--dv-cacao); text-decoration: none; overflow-wrap: anywhere; }
.dv-cart-info small { font-size: 14px; color: var(--dv-texto-2); }
.dv-cart-item .dv-qty { grid-area: qty; justify-self: end; }
.dv-cart-sub { grid-area: sub; min-width: 96px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dv-cart-del { grid-area: del; justify-self: end; background: none; border: 0; padding: 4px 0; font: 600 13px var(--wp--preset--font-family--sans); color: var(--dv-frambuesa); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.dv-cart-empty { display: grid; justify-items: start; gap: 8px; padding: 8px 0; }
.dv-cart-empty[hidden] { display: none; }
.dv-sum-ask { font-size: 13px; }
.dv-summary .dv-sum-ask[hidden] { display: none; }
@media (max-width: 960px) {
	.dv-shop { grid-template-columns: minmax(0, 1fr); }
	.dv-shop-side { position: static; }
}
@media (max-width: 600px) {
	.dv-cart-item { grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-areas: "img info info" "img qty sub" "img del sub"; gap: 8px 12px; }
	.dv-cart-item img, .dv-cart-item .dv-prod-ph { width: 48px; height: 48px; }
	.dv-cart-item .dv-qty { justify-self: start; }
	.dv-cart-del { justify-self: start; }
	.dv-cart-sub { align-self: center; }
}

/* Pedido recibido: el check se dibuja una vez (momento poco frecuente: se permite el detalle) */
.dv-done { max-width: 560px; margin: 0 auto; display: grid; justify-items: center; gap: 14px; text-align: center; background: #fff; border: 1px solid var(--dv-borde); border-radius: 24px; padding: clamp(24px, 5vw, 40px); }
.dv-done h2 { margin: 0; font-size: clamp(26px, 4vw, 32px); }
.dv-done p { margin: 0; color: var(--dv-texto-2); }
.dv-done-check circle { fill: #EEF0E2; stroke: var(--dv-quinua); stroke-width: 3; }
.dv-done-check path { fill: none; stroke: var(--dv-quinua); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: dv-draw 450ms var(--dv-ease-out) 150ms forwards; }
.dv-done-check { animation: dv-pop 300ms var(--dv-ease-out) both; }
@keyframes dv-draw { to { stroke-dashoffset: 0; } }
@keyframes dv-pop { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }
.dv-done-sum { width: 100%; box-sizing: border-box; margin: 0; padding: 14px 16px; text-align: left; white-space: pre-wrap; font: 500 14px/1.6 var(--wp--preset--font-family--sans); font-variant-numeric: tabular-nums; background: var(--dv-crema); border-radius: 14px; overflow-wrap: anywhere; }
.dv-btn--wa { background: #1F7A44; }

/* Portada: entrada suave del primer bloque, una vez al cargar (página de presentación) */
@keyframes dv-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.dv-hero .wp-block-column:first-child > * { animation: dv-rise 420ms var(--dv-ease-out) both; }
.dv-hero .wp-block-column:first-child > *:nth-child(2) { animation-delay: 50ms; }
.dv-hero .wp-block-column:first-child > *:nth-child(3) { animation-delay: 100ms; }
.dv-hero .wp-block-column:first-child > *:nth-child(4) { animation-delay: 150ms; }
.dv-hero .wp-block-column:first-child > *:nth-child(n+5) { animation-delay: 200ms; }
.dv-hero .dv-hero-media { animation: dv-rise 500ms var(--dv-ease-out) 120ms both; }

/* Preguntas frecuentes: abren deslizando donde el navegador lo permite */
@supports (interpolate-size: allow-keywords) {
	:root { interpolate-size: allow-keywords; }
	.wp-block-details::details-content { height: 0; overflow: clip; transition: height 220ms var(--dv-ease-out), content-visibility 220ms allow-discrete; }
	.wp-block-details[open]::details-content { height: auto; }
}
.wp-block-details summary::marker { color: var(--dv-caramelo); }

/* Movimiento reducido: sin desplazamientos, solo cambios de estado */
@media (prefers-reduced-motion: reduce) {
	.dv-cartbar, .dv-cartbar.is-in { transition: none; }
	.dv-hero .wp-block-column:first-child > *, .dv-hero .dv-hero-media, .dv-done-check { animation: none; }
	.dv-done-check path { animation: none; stroke-dashoffset: 0; }
}
.dv-pp-add-ok { display: flex; align-items: center; justify-content: center; gap: 8px; }
.dv-pp-add-ok::before { margin-right: 0; }
.dv-cartbar-txt b { white-space: nowrap; }
/* En "Tu pedido" y en la confirmación ya hay un botón principal: sin la barra de WhatsApp */
body:has(.dv-done) .dv-mobile-bar, body:has(.dv-shop) .dv-mobile-bar { display: none; }
@media (max-width: 781px) { body:has(.dv-done), body:has(.dv-shop) { padding-bottom: 0; } }

/* =====================================================================
   3.6 · Productos especiales (landing y tarjetas)
   ===================================================================== */
.dv-esp { --dv-esp: #2C3A1C; }
.dv-esp-hero { background: var(--dv-esp); color: #F5E8D9; padding-block: clamp(48px, 7vw, 88px); padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
.dv-esp-in { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.dv-esp-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.dv-esp-copy > * { margin: 0; }
.dv-esp-copy h1 { color: #F5E8D9; font-size: clamp(36px, 5.5vw, 64px); line-height: 1.05; letter-spacing: -0.015em; text-wrap: balance; overflow-wrap: anywhere; }
.dv-esp-lead { font-size: clamp(17px, 1.6vw, 20px); color: #E8D9C4; max-width: 52ch; }
.dv-esp-hero .dv-kicker { color: var(--dv-dorado); }
.dv-esp-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.dv-btn-line--light { background: transparent; color: var(--dv-dorado); border-color: var(--dv-dorado); }
.dv-esp-hero .dv-trust { color: #E8D9C4; }
.dv-esp-hero .dv-trust li::before { border-color: var(--dv-dorado); }
.dv-esp-media { margin: 0; }
.dv-esp-media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 28px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); background: var(--dv-harina); }
@media (max-width: 781px) {
	.dv-esp-in { grid-template-columns: minmax(0, 1fr); }
	.dv-esp-media { order: -1; }
	.dv-esp-media img { aspect-ratio: 4 / 3; }
}
.dv-esp-sec { max-width: 1200px; margin: 0 auto; padding-block: clamp(48px, 6vw, 80px) 0; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); box-sizing: content-box; }
.dv-esp-sec h2 { margin: 0 0 8px; font-size: clamp(28px, 3.4vw, 40px); }
.dv-esp-sub { margin: 0 0 32px; color: var(--dv-texto-2); font-size: 18px; max-width: 65ch; }
.dv-esp-extra { max-width: 760px; }
.dv-esp-emp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.dv-esp-emp-txt { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.dv-esp-emp-txt > * { margin: 0; }
.dv-esp-emp-txt p { color: var(--dv-texto-2); font-size: 17px; }
.dv-esp-emp-form h3 { margin: 0 0 12px; font-size: 22px; }
.dv-esp-emp:not(:has(.dv-esp-emp-form)) { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
@media (max-width: 860px) { .dv-esp-emp { grid-template-columns: minmax(0, 1fr); } }
.dv-esp-faq { max-width: 820px; padding-bottom: clamp(48px, 6vw, 80px); }
.dv-esp-faq details { border-top: 1px solid var(--dv-trigo); padding: 16px 0; }
.dv-esp-faq details:last-of-type { border-bottom: 1px solid var(--dv-trigo); }
.dv-esp-faq details p { margin: 10px 0 0; color: var(--dv-texto-2); }
.dv-esp > .dv-esp-sec:last-child { padding-bottom: clamp(48px, 6vw, 80px); }

/* Tarjetas de especiales (portada y /especiales/) */
.dv-esp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.dv-esp-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px; border-radius: 22px; background: var(--dv-esp); color: #F5E8D9; text-decoration: none; transition: transform 160ms var(--dv-ease-out); }
.dv-esp-card:active { transform: scale(0.98); }
.dv-esp-card img { width: 120px; height: 120px; object-fit: cover; border-radius: 16px; background: var(--dv-harina); }
.dv-esp-card-txt { display: grid; gap: 4px; min-width: 0; }
.dv-esp-card-txt small { color: var(--dv-dorado); font-weight: 600; font-size: 13px; }
.dv-esp-card-txt strong { font-family: var(--dv-serif); font-size: 22px; line-height: 1.15; overflow-wrap: anywhere; }
.dv-esp-card-txt span { font-size: 14px; color: #E8D9C4; }
.dv-esp-card-txt em { font-style: normal; font-weight: 700; font-size: 14px; color: #F5E8D9; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--dv-dorado); }
@media (max-width: 420px) { .dv-esp-card { grid-template-columns: 88px minmax(0, 1fr); } .dv-esp-card img { width: 88px; height: 88px; } }
@media (hover: hover) and (pointer: fine) { .dv-esp-card:hover { transform: translateY(-2px); } .dv-btn-line--light:hover { background: var(--dv-dorado); color: var(--dv-cacao); } }
.dv-cartbar[hidden] { display: none; }

/* Separación (especiales): columnas fijas aunque se cuele algún elemento extra */
.dv-pt > .dv-pt-pick { grid-column: 1; grid-row: 1; }
.dv-pt > .dv-pt-sum { grid-column: 2; grid-row: 1; }
.dv-pt > p:empty, .dv-pt > br, .dv-pt-pick > br, .dv-pt .dv-grid > br, .dv-pt .dv-grid > p:empty { display: none; }
@media (max-width: 900px) { .dv-pt > .dv-pt-pick, .dv-pt > .dv-pt-sum { grid-column: 1; grid-row: auto; } }
/* Con movimiento reducido, la portada no se anima por CSS */
@media (prefers-reduced-motion: reduce) { .dv-hero .wp-block-column:first-child > *, .dv-hero .dv-hero-media { animation: none !important; } }

/* 3.9 · Bloques DAVEMCI: sin párrafos automáticos, el pie de tarjeta no hereda márgenes del flujo */
.dv-card-foot > * { margin-block: 0 !important; }
.dv-card-body > .dv-pack { margin-block-start: 4px; }
.dv-ol-caja { display: block; font-size: 13px; font-weight: 500; color: var(--dv-texto-2); }

/* 3.9 · Más movimiento: tarjetas que responden al mouse (solo con mouse), saldo del cliente */
@media (hover: hover) and (pointer: fine) {
	.dv-products .wp-block-post, .dv-esp-card, .dv-type, .dv-card-prod {
		transition: transform 260ms var(--dv-ease-out), box-shadow 260ms var(--dv-ease-out);
	}
	.dv-products .wp-block-post:hover, .dv-esp-card:hover, .dv-type:hover {
		transform: translateY(-6px);
		box-shadow: 0 22px 40px -24px rgba(44, 58, 28, .45);
	}
	.dv-products .wp-block-post img, .dv-esp-card img, .dv-andino img, .dv-season img { transition: transform 600ms var(--dv-ease-out); }
	.dv-products .wp-block-post:hover img, .dv-esp-card:hover img, .dv-andino:hover img, .dv-season:hover img { transform: scale(1.05); }
	.dv-products .wp-block-post figure, .dv-esp-card figure, .dv-andino figure, .dv-season figure { overflow: hidden; }
	.dv-btn, .wp-block-button__link { transition: transform 160ms var(--dv-ease-out), box-shadow 200ms ease, background-color 140ms ease; }
	.dv-btn:hover, .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -12px rgba(44, 58, 28, .5); }
}
.dv-hero-media .wp-block-image { will-change: transform; }
.dv-saldo { margin: 0 0 20px; background: #EEF3E4; border: 1px solid #CFDDB8; border-radius: 16px; padding: 12px 16px; }
.dv-saldo summary { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; cursor: pointer; list-style: none; }
.dv-saldo summary::-webkit-details-marker { display: none; }
.dv-saldo-label { font-weight: 600; color: #3F4A1C; }
.dv-saldo-monto { font-size: 22px; color: #2F5A1A; font-variant-numeric: tabular-nums; }
.dv-saldo-ver { margin-left: auto; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.dv-saldo ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.dv-saldo li { display: flex; justify-content: space-between; gap: 12px; border-top: 1px dashed #CFDDB8; padding-top: 6px; }
.dv-saldo li span { min-width: 0; overflow-wrap: anywhere; }
.dv-saldo li b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.dv-saldo .is-mas { color: #2F5A1A; } .dv-saldo .is-menos { color: #A3262D; }
.dv-saldo .dv-help { margin: 8px 0 0; }
@media (prefers-reduced-motion: reduce) {
	.dv-products .wp-block-post, .dv-esp-card, .dv-type, .dv-btn, .wp-block-button__link, .dv-products .wp-block-post img { transition: none !important; transform: none !important; }
}
.dv-sum-saldo b { color: #B8D99A; }
.dv-sum-pagar { border-top: 1px solid rgba(251, 245, 236, .25); padding-top: 10px; }
.dv-sum-pagar b { font-size: 20px; }
.dv-sb-saldo { display: block; font-size: 12px; color: #B8D99A; font-weight: 600; }
.dv-mis-mas { margin: 12px 0 0; font-weight: 600; }
.dv-pt-rango { margin: 0; padding: 10px 12px; border-radius: 12px; background: #FFF6EA; border: 1px dashed var(--dv-caramelo); font-size: 14px; font-weight: 600; }

/* 3.14 — foto por presentación */
.dv-var-th { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; background: var(--dv-harina); }
.dv-pp-rows li { justify-content: flex-start; }
.dv-pp-rows li .dv-pp-name { flex: 1; }
.dv-pp-rows li .dv-var-th { width: 44px; height: 44px; }
.dv-pp-rows li[data-foto] { cursor: pointer; }
.dv-variants li > span { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.dv-variants li[data-foto] { cursor: pointer; }
.dv-ol-pack .dv-var-th { width: 36px; height: 36px; vertical-align: middle; margin-right: 8px; float: left; }
.dv-ol-pack:has(.dv-var-th) { display: flow-root; }

/* 3.16 — paleta oliva + terracota + crema: texto terracota más oscuro para que se lea en crema */
.dv-kicker { color: #B23A20; }
.dv-option[hidden] { display: none !important; }
.dv-ref small { display: block; margin-top: 4px; color: var(--dv-quinua, #3F5228); font-weight: 600; }
.dv-ref input { text-transform: uppercase; }
.dv-pt-min { margin: 6px 0 0; font-size: .92rem; font-weight: 700; color: var(--wp--preset--color--cacao, #2C3A1C); }
.dv-pt-min.is-bajo { color: #B23A20; }
.dv-pt-min[hidden] { display: none; }
.dv-pt-sum button[disabled] { opacity: .55; cursor: not-allowed; }

/* 3.17.2 — sin modo oscuro: colores fijos aunque el celular esté en modo oscuro */
:root, html, body { color-scheme: only light; forced-color-adjust: none; }
html, body { background-color: var(--wp--preset--color--crema, #F5E8D9); color: var(--wp--preset--color--cacao, #2C3A1C); }
input, select, textarea, button { color-scheme: only light; }
input:not([type="radio"]):not([type="checkbox"]):not([type="range"]), select, textarea { background-color: #FFFFFF; color: var(--wp--preset--color--cacao, #2C3A1C); }
input::placeholder, textarea::placeholder { color: #7A7F6A; opacity: 1; }
img, svg, video { forced-color-adjust: none; }
/* 3.18.1 — foto en cada opción del especial */
.dv-option--tall:has(.dv-opt-th) { flex-direction: row; align-items: center; }
.dv-opt-th { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; background: var(--dv-harina, #EEDDC7); }
/* 3.18.2 — foto horizontal arriba de los sabores */
.dv-pt-foto { position: relative; margin: 0 0 18px; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--dv-harina, #EEDDC7); box-shadow: 0 10px 28px rgba(44, 58, 28, .12); }
.dv-pt-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dv-pt-foto-txt { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 246, 230, .92); color: var(--wp--preset--color--cacao, #2C3A1C); font-weight: 700; font-size: 14px; }
.dv-pt-foto-txt:empty { display: none; }
