/* INSAARI Arepas — estilos.
   Concepto: noche azul marino del folleto, guardas rojas del logo como ornamento,
   amarillo #f8bc08 solo para nombres de producto, bordó #691616 para toda acción de compra. */

/* ---------- Fuentes (alojadas en el tema) ---------- */
@font-face { font-family: "Albert Sans"; font-weight: 200; font-style: normal; font-display: swap; src: url("../fonts/albert-sans-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: "Albert Sans"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/albert-sans-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Albert Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/albert-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Albert Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/albert-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Aboreto"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/aboreto-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/cinzel-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/cinzel-latin-700-normal.woff2") format("woff2"); }

:root {
	--navy: #1d2e3e;          /* fondo del folleto */
	--navy-deep: #152230;
	--navy-card: #24394d;
	--navy-line: rgba(255, 255, 255, .14);
	--gold: #f8bc08;          /* títulos de producto */
	--wine: #691616;          /* precio, agregar al carrito, pago */
	--wine-hover: #84201f;
	--guard: #8a2f2a;         /* guardas del logo */
	--cream: #f6ead2;
	--white: #ffffff;
	--muted: rgba(255, 255, 255, .78);
	--ok: #7fd49a;
	--warn: #ffd166;
	--bad: #ff9b8f;

	--f-body: "Albert Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--f-product: "Aboreto", "Cinzel", Georgia, serif;
	--f-display: "Cinzel", "Times New Roman", Georgia, serif;

	--gutter: clamp(16px, 4.5vw, 40px);
	--radius: 14px;
	--radius-sm: 10px;
	--header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
	margin: 0;
	background: var(--navy);
	color: var(--white);
	font-family: var(--f-body);
	font-weight: 300;               /* textos chicos y celular: 300 para que se lea bien */
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--white); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; font-weight: 600; }
strong, b { font-weight: 700; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: var(--navy-deep); padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Textos grandes en peso 200 (pedido de marca) */
.lede, .welcome-quote, .section-intro { font-weight: 200; }

/* ---------- Botones ---------- */
.btn, .button, button.button, a.button, input.button, .wc-block-components-button, #place_order {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	min-height: 48px; padding: .75em 1.4em;
	border: 0; border-radius: 999px;
	background: var(--wine); color: var(--white) !important;
	font: 700 1rem/1.2 var(--f-body); letter-spacing: .02em;
	text-decoration: none; cursor: pointer;
	transition: background-color .15s ease, transform .15s ease;
}
.btn:hover, .button:hover, #place_order:hover { background: var(--wine-hover); color: var(--white); }
.btn:active, .button:active { transform: translateY(1px); }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-ghost { background: transparent; border: 1.5px solid var(--navy-line); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); }

/* ---------- Encabezado ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(21, 34, 48, .94);
	backdrop-filter: saturate(1.2) blur(8px);
	-webkit-backdrop-filter: saturate(1.2) blur(8px);
	border-bottom: 1px solid var(--navy-line);
	padding-top: env(safe-area-inset-top, 0px);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; }
.custom-logo-link { display: block; line-height: 0; border-radius: 50%; box-shadow: 0 3px 12px rgba(0, 0, 0, .35); }
.custom-logo { width: 60px; height: 60px; border-radius: 50%; }
.main-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav a { display: block; padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 400; letter-spacing: .04em; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--gold); background: rgba(255, 255, 255, .05); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.cart-link { position: relative; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; text-decoration: none; }
.cart-link .icon { width: 26px; height: 26px; }
.cart-link:hover { background: rgba(255, 255, 255, .07); color: var(--white); }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 99px; background: var(--gold); color: var(--navy-deep); font: 700 .75rem/21px var(--f-body); text-align: center; }
.cart-count.is-empty { display: none; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: transparent; color: var(--white); cursor: pointer; }
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 860px) {
	:root { --header-h: 64px; }
	.custom-logo { width: 52px; height: 52px; }
	.nav-toggle { display: inline-grid; place-items: center; }
	.main-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		background: var(--navy-deep); border-bottom: 1px solid var(--navy-line);
		padding: 8px var(--gutter) 16px;
		display: none;
	}
	.main-nav.is-open { display: block; }
	.main-nav .menu { flex-direction: column; gap: 2px; }
	.main-nav a { padding: 14px 10px; font-size: 1.1rem; border-bottom: 1px solid var(--navy-line); border-radius: 0; }
	.header-actions { order: 2; }
	.brand { order: 0; margin-right: auto; }
}

/* ---------- Secciones ---------- */
.section { padding-block: clamp(56px, 9vw, 104px); }
.section + .section { border-top: 1px solid var(--navy-line); }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 5vw, 48px); max-width: 720px; }
.eyebrow { margin: 0; font: 700 .78rem/1.3 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.display, .section-title {
	font-family: var(--f-display); font-weight: 700;
	text-transform: uppercase; letter-spacing: .12em;
	color: var(--white);
}
.section-title { font-size: clamp(1.45rem, 3.6vw, 2.25rem); }

/* ---------- Portada ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(36px, 7vw, 88px) clamp(48px, 8vw, 96px); background: radial-gradient(120% 90% at 15% 20%, #263b50 0%, var(--navy) 55%, var(--navy-deep) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-emblem { position: relative; width: min(100%, 420px); aspect-ratio: 1; justify-self: center; display: grid; place-items: center; }
.hero-guardas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .95; animation: girar 120s linear infinite; }
.hero-ec { position: relative; width: 74%; border-radius: 50%; }
.hero-copy { display: grid; gap: 18px; justify-items: start; }
.display { font-size: clamp(1.5rem, 3.4vw, 2.5rem); line-height: 1.2; letter-spacing: .1em; }
.display span { display: block; }
.lede { font-size: clamp(1.15rem, 2.2vw, 1.45rem); color: var(--white); max-width: 34ch; margin: 0; }
@keyframes girar { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
	.hero-grid { grid-template-columns: minmax(0, 1fr); text-align: center; }
	.hero-emblem { width: min(72vw, 300px); }
	.hero-copy { justify-items: center; }
	.lede { margin-inline: auto; }
	.display { letter-spacing: .1em; }
}

/* ---------- Bienvenida ---------- */
.welcome { background: var(--navy-deep); }
.welcome-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.welcome-photo { margin: 0; position: relative; }
.welcome-photo img { display: block; width: 100%; border-radius: var(--radius); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.welcome-photo::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1.5px solid var(--guard); border-radius: var(--radius); z-index: -1; }
.welcome-copy { max-width: 56ch; }
.welcome-title { display: grid; gap: 6px; margin-bottom: 18px; }
.welcome-kicker { font: 600 .9rem/1 var(--f-display); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.wordmark { font: 600 clamp(2rem, 6vw, 3.2rem)/1 var(--f-display); letter-spacing: .42em; margin-right: -.42em; color: var(--white); }
.wordmark-inline { font-family: var(--f-display); font-weight: 600; letter-spacing: .32em; }
.welcome-quote { font-family: var(--f-display); font-size: clamp(1.15rem, 2.4vw, 1.4rem); font-weight: 600; letter-spacing: .04em; color: var(--cream); margin-bottom: 1.1em; padding-left: 16px; border-left: 2px solid var(--guard); }
.welcome-sign { font-style: italic; color: var(--cream); }
@media (max-width: 760px) {
	.welcome-grid { grid-template-columns: minmax(0, 1fr); }
	.welcome-photo { max-width: 520px; }
}


/* ---------- Presentación de la marca ---------- */
.brand-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.brand-copy { display: grid; gap: 14px; }
.section-intro { font-size: clamp(1.1rem, 2vw, 1.3rem); margin: 0; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; padding: 18px; border: 1px solid var(--navy-line); border-radius: var(--radius); background: rgba(255, 255, 255, .03); }
.feature-n { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--guard); font: 700 1.1rem/1 var(--f-display); color: var(--gold); }
.feature h3 { font: 700 1.05rem/1.3 var(--f-body); letter-spacing: .02em; }
.feature p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .brand-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Productos ---------- */
.products { background: var(--navy-deep); }
.product-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.product-card { display: flex; flex-direction: column; min-width: 0; background: var(--navy-card); border: 1px solid var(--navy-line); border-radius: var(--radius); overflow: hidden; }
.product-card-media { display: block; aspect-ratio: 1; overflow: hidden; background: #2a3f53; }
.product-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-card-media img { transform: scale(1.04); }
.product-card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 18px; flex: 1; }
.product-card-head { display: grid; gap: 6px; }
.product-name { font-family: var(--f-product); font-weight: 400; font-size: clamp(1.15rem, 1.6vw, 1.3rem); line-height: 1.2; letter-spacing: .04em; color: var(--gold); }
.product-name a { color: inherit; text-decoration: none; }
.product-name a:hover { text-decoration: underline; }
.product-pres { justify-self: start; font: 700 .72rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--cream); border: 1px solid rgba(246, 234, 210, .4); border-radius: 99px; padding: 5px 9px; }
.product-desc { font-size: .95rem; color: var(--muted); flex: 1; }
.product-desc p { margin: 0 0 .4em; }
.product-desc .sub, .product-desc strong { color: var(--gold); font-weight: 400; }
.buy-bar { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: var(--wine); margin-top: 4px; }
.buy-price { display: flex; align-items: center; justify-content: center; padding: 11px 14px; font: 700 1.3rem/1 var(--f-body); color: #fff; white-space: nowrap; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.buy-price del { opacity: .6; font-size: .8em; margin-right: 6px; }
.buy-price ins { text-decoration: none; }
.buy-bar .button.buy-add { border-radius: 0; min-height: 50px; padding: .6em .8em; font-size: 1rem; background: transparent; white-space: nowrap; }
.buy-bar .button.buy-add:hover { background: var(--wine-hover); }
.buy-bar .button.buy-add .icon { width: 1.2em; height: 1.2em; }
.buy-bar .button.loading { opacity: .7; }
.buy-bar .button.added::after { content: "✓"; margin-left: 4px; }
.buy-out { flex: 1; display: grid; place-items: center; font-weight: 700; color: var(--cream); min-height: 50px; }
.product-card .added_to_cart { display: block; text-align: center; padding: 10px 0 0; font-weight: 700; color: var(--gold); }
.notice-box { padding: 18px; border: 1px dashed var(--navy-line); border-radius: var(--radius); }
@media (max-width: 1100px) { .product-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
	.product-cards { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.product-card { display: grid; grid-template-columns: 38% minmax(0, 1fr); }
	.product-card-media { aspect-ratio: auto; height: 100%; }
	.product-card-body { padding: 14px; gap: 8px; }
	.product-desc { font-size: .9rem; font-weight: 400; }
	.buy-bar .button.buy-add { min-height: 46px; }
}

/* ---------- Preparación ---------- */
.prep-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.prep-figure { margin: 0; }
.prep-figure img { display: block; width: 100%; border-radius: var(--radius); background: #f8ecd9; }
.prep-copy { display: grid; gap: 14px; }
.steps { list-style: none; counter-reset: paso; margin: 6px 0 0; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: paso; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; align-items: center; font-weight: 400; }
.steps li::before { content: counter(paso); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--wine); font: 700 1rem/1 var(--f-body); }
@media (max-width: 860px) { .prep-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Conservación ---------- */
.keep { background: var(--navy-deep); }
.tips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tip { display: grid; align-content: start; gap: 6px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--navy-line); background: rgba(255, 255, 255, .03); }
.tip .icon { width: 34px; height: 34px; color: var(--gold); margin-bottom: 6px; }
.tip strong { font: 700 1.05rem/1.2 var(--f-body); }
.tip span { color: var(--muted); }
@media (max-width: 760px) { .tips { grid-template-columns: minmax(0, 1fr); } .tip { grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; } .tip .icon { grid-row: span 2; margin: 0; } }

/* ---------- Puntos de retiro ---------- */
.pickup-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pickup-card { display: grid; gap: 10px; align-content: start; padding: clamp(20px, 3vw, 28px); border-radius: var(--radius); background: var(--navy-card); border: 1px solid var(--navy-line); position: relative; overflow: hidden; }
.pickup-card::after { content: ""; position: absolute; width: 160px; height: 160px; right: -70px; top: -70px; background: url("../img/guardas.svg") center / contain no-repeat; opacity: .18; pointer-events: none; }
.pickup-zone { margin: 0; font: 700 .75rem/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.pickup-card h3 { font-family: var(--f-display); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 1.3rem; }
.pickup-line { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.pickup-line .icon { margin-top: .2em; color: var(--gold); }
.pickup-card .btn { justify-self: start; margin-top: 6px; }
@media (max-width: 760px) { .pickup-cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Páginas generales ---------- */
.page-wrap { padding-block: clamp(32px, 6vw, 64px); }
.page-title { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: 24px; }
.entry-content > * { max-width: 75ch; }
/* Textos de páginas (privacidad, condiciones): títulos con aire y en dorado */
.entry-content > h2, .entry-content > h3 { font-family: var(--f-display); font-weight: 700; color: var(--gold); letter-spacing: .04em; margin: 1.8em 0 .5em; line-height: 1.25; }
.entry-content > h2 { font-size: clamp(1.15rem, 2.6vw, 1.4rem); }
.entry-content > h3 { font-size: 1.1rem; }
.entry-content > p, .entry-content > ul, .entry-content > ol { margin: 0 0 1em; }
.entry-content > ul, .entry-content > ol { padding-left: 1.3em; display: grid; gap: .4em; }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-deep); border-top: 1px solid var(--navy-line); padding-top: clamp(40px, 7vw, 72px); }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-title { font: 700 .82rem/1.2 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.contact-list, .footer-pickups { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-list a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-weight: 400; }
.contact-list .icon { width: 22px; height: 22px; }
.footer-pickups li { display: grid; gap: 2px; }
.footer-note { font-size: .95rem; }
.footer-ec { width: 84px; height: 84px; border-radius: 50%; margin-block: 6px 8px; }
.footer-bottom { border-top: 1px solid var(--navy-line); margin-top: 40px; padding-block: 18px calc(18px + env(safe-area-inset-bottom, 0px)); font-size: .88rem; color: var(--muted); }
.footer-bottom p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
	position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60;
	width: 58px; height: 58px; border-radius: 50%;
	display: grid; place-items: center;
	background: #25d366; color: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.wa-float .icon { width: 32px; height: 32px; stroke-width: 1.5; }
.wa-float:hover { color: #fff; transform: scale(1.05); }

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