/* Caminos del Atuel · tema hijo de Kiosko */

/* ---------- Fuentes propias ---------- */
@font-face { font-family: "Oswald"; src: url("../fonts/oswald-500.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Dancing Script"; src: url("../fonts/dancing-script-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Rye"; src: url("../fonts/rye-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
	--bg: #f3f1ed;
	--surface: #ffffff;
	--surface-2: #e9e5df;
	--text: #17140f;
	--text-soft: #5b544a;
	--line: #d8d2c8;
	--ink: #13110e;
	--ink-2: #1e1b17;
	--ink-text: #eee9e1;
	--ink-soft: #b3aa9d;
	--ink-line: #36312a;
	--accent: #e0771c;
	--accent-hover: #c9650f;
	--accent-soft: #f7e4cf;
	--on-accent: #17140f;
	--good: #2f7a45;
	--warn: #8a500a;
	--warn-bg: #fbefd9;
	--bad: #b3322a;
	--wa: #25d366;
	--wa-ink: #0b3d20;
	--font-display: "Oswald", "Arial Narrow", sans-serif;
	--font-body: "Barlow", system-ui, sans-serif;
	--radius-sm: 8px;
	--radius: 14px;
	--radius-lg: 24px;
	--radius-pill: 999px;
	--shadow: 0 20px 50px rgb(46 30 14 / .18);
	--shadow-sm: 0 6px 18px rgb(46 30 14 / .12);
	--ease-out: cubic-bezier(.16, 1, .3, 1);
	--gutter: clamp(16px, 4vw, 40px);
	--header-h: 68px;
}

/* ---------- Base ---------- */
html, body { overflow-x: clip; }
body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
}
h1, h2, h3, .wp-block-heading, .wp-block-post-title {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -.01em;
	text-transform: uppercase;
	text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 6.4vw, 4rem); }
h2 { font-size: clamp(1.9rem, 5vw, 3.2rem); }
h3 { font-size: 1.3rem; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cda-lead { font-size: clamp(1.05rem, 2.2vw, 1.22rem); color: var(--text-soft); max-width: 60ch; }
.woocommerce-Price-amount, .wc-block-components-product-price, .price { font-variant-numeric: tabular-nums; }

/* Botones de bloques en píldora */
.wp-element-button, .wp-block-button__link, .wc-block-components-button, .single_add_to_cart_button, .button {
	border-radius: var(--radius-pill) !important;
	font-family: var(--font-body);
	font-weight: 600;
	transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s;
}
@media (hover: hover) {
	.wp-element-button:hover, .wp-block-button__link:hover, .single_add_to_cart_button:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
}
.cda-btn-acento .wp-block-button__link { background: var(--accent); color: var(--on-accent); }
.cda-btn-acento .wp-block-button__link:hover { background: var(--accent-hover); }
.cda-btn-claro .wp-block-button__link { color: #fff; border-color: rgb(255 255 255 / .6); }
.cda-link-flecha a { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.cda-link-flecha a::after { content: " →"; }

/* ---------- Header: logo, menú y carrito en una sola fila ---------- */
.cda-header-part { position: sticky; top: 0; z-index: 50; }
.admin-bar .cda-header-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .cda-header-part { top: 46px; } }
.cda-header {
	position: relative;
	background: transparent;
	border-bottom: 1px solid var(--line);
	padding: 0 var(--gutter) !important;
}
.cda-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(243 241 237 / .94); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.cda-header-part { isolation: isolate; }
.cda-header__fila { min-height: var(--header-h); gap: 16px; }
.cda-marca { gap: 10px; min-width: 0; }
.cda-marca__logo img { width: 44px !important; height: 44px; object-fit: contain; }
.cda-marca__texto { gap: 0 !important; line-height: 1.05; min-width: 0; }
.cda-marca__nombre { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.cda-marca__nombre a { text-decoration: none; color: inherit; }
.cda-marca__lema { margin: 0; font-size: .78rem; color: var(--text-soft); white-space: nowrap; }
.cda-header__acciones { gap: 14px; }
.cda-nav { font-weight: 500; gap: 26px; }
.cda-nav .wp-block-navigation-item__content { text-decoration: none; }
.cda-nav .wp-block-navigation-item__content:hover { text-decoration: underline; text-underline-offset: .3em; }
.cda-header-wa { display: none !important; }
.cda-btn-wa .wp-block-button__link { background: var(--wa); color: var(--wa-ink); min-height: 40px; padding: 8px 18px; font-size: .93rem; }
.cda-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container { flex-wrap: nowrap; white-space: nowrap; }
/* Menú del celular: pantalla completa, con todos los links */
.cda-nav .wp-block-navigation__responsive-container.is-menu-open { position: fixed; inset: 0; z-index: 100000; background: var(--bg) !important; color: var(--text) !important; padding: 20px var(--gutter) 32px; }
.admin-bar .cda-nav .wp-block-navigation__responsive-container.is-menu-open { top: 46px; }
.cda-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 56px; align-items: flex-start; }
.cda-nav .is-menu-open .wp-block-navigation__container { gap: 4px !important; align-items: stretch !important; width: 100%; }
.cda-nav .is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--line); }
.cda-nav .is-menu-open .wp-block-navigation-item__content { display: block; padding: 12px 0 !important; font: 600 1.8rem/1.15 var(--font-display); text-transform: uppercase; }
.cda-nav .is-menu-open .wp-block-navigation__responsive-container-content,
.cda-nav .is-menu-open .wp-block-navigation__container,
.cda-nav .is-menu-open .wp-block-navigation-item { align-items: flex-start !important; justify-content: flex-start !important; text-align: left; }
@media (min-width: 1100px) {
	:root { --header-h: 76px; }
	.cda-marca__logo img { width: 52px !important; height: 52px; }
	.cda-header-wa { display: inline-flex !important; }
}
@media (max-width: 420px) { .cda-marca__lema { display: none; } }

/* ---------- Hero ---------- */
.cda-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--ink); margin: 0 !important; }
.cda-hero__foto, .cda-hero__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cda-hero__foto img { object-position: 60% 20%; }
.cda-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgb(10 8 6 / .1) 0%, rgb(10 8 6 / .25) 40%, rgb(10 8 6 / .82) 100%); }
.cda-hero__texto { position: relative; z-index: 1; min-height: min(76svh, 660px); display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; padding: 120px var(--gutter) 36px !important; }
.cda-hero__titulo { max-width: 12ch; line-height: .95; font-size: clamp(2.4rem, 7.5vw, 4.4rem); color: #fff; margin: 0; }
.cda-hero .cda-lead { color: rgb(255 255 255 / .86); margin: 0; }
.cda-hero__datos { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .93rem; color: rgb(255 255 255 / .82); }
@media (min-width: 860px) {
	.cda-hero::after { background: linear-gradient(90deg, rgb(10 8 6 / .78) 0%, rgb(10 8 6 / .45) 42%, rgb(10 8 6 / 0) 70%); }
	.cda-hero__foto img { object-position: center 55%; }
	.cda-hero__texto { justify-content: center; min-height: min(80svh, 720px); padding-block: 80px !important; }
}

/* ---------- Secciones ---------- */
.cda-portada { margin-top: 0 !important; }
.cda-portada > * { margin-block: 0 !important; }
.cda-seccion { padding: clamp(64px, 10vw, 120px) var(--gutter) !important; }
.cda-seccion--sin-arriba { padding-top: 0 !important; }
.cda-seccion__cabeza { margin-bottom: clamp(28px, 4vw, 48px) !important; gap: 16px 32px; }
.cda-seccion__cabeza h2 { margin: 0 0 14px; }
.cda-oscuro { background: var(--ink); color: var(--ink-text); }
.cda-oscuro h2, .cda-oscuro a { color: var(--ink-text); }
.cda-oscuro .cda-lead, .cda-oscuro figcaption { color: var(--ink-soft); }

/* Productos */
.cda-productos .wc-block-product-template { gap: 24px 14px !important; }
.cda-productos .wc-block-components-product-image img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; background: var(--ink-2); transition: transform .6s var(--ease-out); }
.cda-productos .wc-block-components-product-image { border-radius: var(--radius); overflow: hidden; }
@media (hover: hover) { .cda-productos li:hover .wc-block-components-product-image img { transform: scale(1.04); } }
.cda-productos .wp-block-post-title { font-family: var(--font-body); text-transform: none; font-size: 1.05rem; font-weight: 600; line-height: 1.25; letter-spacing: 0; text-align: left; }
.cda-productos .wp-block-post-title a { text-decoration: none; }
.cda-productos .wc-block-components-product-price { text-align: left; font-weight: 600; }
@media (max-width: 600px) {
	.cda-productos .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* Proceso */
.cda-proceso { gap: clamp(28px, 5vw, 64px) !important; }
.cda-foto img { border-radius: var(--radius-lg); width: 100%; height: auto; object-fit: cover; }
.cda-pasos { list-style: none; padding: 0; margin: 24px 0 0; counter-reset: paso; }
.cda-pasos li { padding: 18px 0; border-top: 1px solid var(--line); color: var(--text-soft); }
.cda-pasos li:last-child { border-bottom: 1px solid var(--line); }
.cda-pasos strong { display: block; color: var(--text); font-family: var(--font-display); text-transform: uppercase; font-weight: 600; font-size: 1.2rem; margin-bottom: 4px; }

/* Galería de grabados */
.cda-reel { display: grid; grid-auto-flow: column; grid-auto-columns: min(72%, 320px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)) !important; padding-inline: var(--gutter); overscroll-behavior-x: contain; }
.cda-reel::-webkit-scrollbar { display: none; }
.cda-reel figure { margin: 0 !important; scroll-snap-align: start; }
.cda-reel img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; background: var(--ink-2); }
.cda-reel figcaption { text-align: left; font-size: .93rem; margin-top: 10px; }
@media (min-width: 1000px) { .cda-reel { grid-auto-flow: initial; grid-template-columns: repeat(4, 1fr); overflow: visible; margin-inline: 0 !important; padding: 0; } }

/* Bandas: empresas y a medida */
.cda-bandas { gap: 16px !important; }
.cda-banda { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px) !important; display: grid; gap: 14px; align-content: start; }
.cda-banda h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0; }
.cda-banda .cda-lead { margin: 0; }

/* ---------- Pie ---------- */
.cda-footer-part { margin-top: 0 !important; }
.cda-pie { background: var(--ink); color: var(--ink-text); padding: 64px var(--gutter) 110px !important; }
.cda-pie a { color: var(--ink-text); text-decoration: none; }
.cda-pie a:hover { text-decoration: underline; }
.cda-pie__columnas { gap: 36px !important; }
.cda-pie__titulo { font-family: var(--font-body) !important; font-size: .9rem !important; letter-spacing: .12em; color: var(--ink-soft); margin: 0 0 12px !important; }
.cda-pie__lista { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.cda-pie__base { margin-top: 48px !important; padding-top: 20px; border-top: 1px solid var(--ink-line); font-size: .9rem; color: var(--ink-soft); }
@media (min-width: 860px) { .cda-pie { padding-bottom: 48px !important; } }

/* ---------- Producto ---------- */
/* En el celular la lupa de la foto hacía "bailar" la página */
@media (hover: none) { .zoomImg { display: none !important; } }
.single-product .wp-block-post-title { font-size: clamp(2rem, 5vw, 3.2rem); }
.single-product .wc-block-components-product-image img, .woocommerce-product-gallery img { border-radius: var(--radius-lg); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
