/*
Theme Name:   Cerámicas Child
Description:  Tema hijo de Flatsome para Cerámicas & Revestimientos. Implementa el mockup v105 (tokens, tipografías, componentes). La lógica de negocio vive en el plugin "Cerámicas Core".
Template:     flatsome
Version:      1.0.10
Text Domain:  ceramicas-child
*/

/* ---------- Design tokens (mockup v105) ---------- */
:root {
	--ink: #1f1f1d;
	--ink2: #34322f;
	--paper: #f8f6f1;
	--warm: #eee8de;
	--stone: #d8cec1;
	--taupe: #8b7f73;
	--line: #ded8cf;
	--white: #fff;
	--muted: #6d675f;
	--shadow: 0 18px 50px rgba(31, 31, 29, .09);
	--serif: "Cormorant Garamond", Georgia, serif;
	--sans: "Manrope", Arial, sans-serif;
}

/* ---------- Base ---------- */
body {
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	-webkit-font-smoothing: antialiased;
}
#wrapper, #main { background: var(--paper); }
h1, h2, h3, .product-title, .entry-title, .section-title {
	font-family: var(--serif);
	font-weight: 500;
	letter-spacing: -.02em;
	color: var(--ink);
}
a { color: var(--ink); }

.eyebrow { font-size: .7rem; letter-spacing: .23em; text-transform: uppercase; font-weight: 700; color: var(--taupe); }
.section-title { font-size: clamp(2.45rem, 5vw, 4.2rem); line-height: .96; letter-spacing: -.03em; margin: .35rem 0 0; }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700; }
.text-link::after { content: "→"; transition: transform .2s; }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- Buttons (mockup .btn family, used by Cerámicas Core) ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	min-height: 46px; margin: 0; padding: 13px 20px;
	border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink);
	font-family: var(--sans); font-size: .78rem; font-weight: 700; line-height: 1.2;
	letter-spacing: 0; text-transform: none; cursor: pointer; transition: transform .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); color: inherit; }
.btn-dark, .btn-dark:hover { background: var(--ink); color: #fff; }
.btn-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.65); }
.btn-soft { background: var(--warm); border-color: transparent; }

/* ---------- Header ---------- */
/* Markup: template-parts/header/header-wrapper.php (replaces the Flatsome header builder). Values = mockup v105 .site-header. */
#header.header { position: sticky; top: 0; z-index: 1000; background: transparent; min-height: 0; box-shadow: none; }
.admin-bar #header.header { top: 32px; }
@media (max-width: 782px) { .admin-bar #header.header { top: 46px; } }
@media (max-width: 600px) { .admin-bar #header.header { top: 0; } }
#header .header-wrapper, #header .header-wrapper.stuck { position: static !important; background: transparent; box-shadow: none; height: auto; }
.cer-container { width: min(1200px, 100% - 48px); margin: auto; }
.cer-header { background: rgba(248, 246, 241, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(31, 31, 29, .08); font-family: var(--sans); color: var(--ink); }
.cer-header a { text-decoration: none; }
.cer-header__inner { position: relative; height: 86px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
.cer-nav { display: flex; gap: 24px; align-items: center; }
.cer-nav > a, .cer-drop__toggle { position: relative; padding: 34px 0 30px; font-family: var(--sans); font-size: .8rem; font-weight: 600; line-height: normal; letter-spacing: 0; text-transform: none; color: var(--ink); }
.cer-nav > a::after, .cer-drop__toggle::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 22px; height: 1px; background: var(--ink); transition: .25s; }
.cer-nav > a:hover::after, .cer-drop:hover .cer-drop__toggle::after, .cer-drop:focus-within .cer-drop__toggle::after { right: 0; }
.cer-nav > a:hover, .cer-drop__toggle:hover { color: var(--ink); }
.cer-drop { position: relative; }
.cer-drop__menu { display: none; position: absolute; top: 66px; left: -20px; z-index: 20; min-width: 245px; padding: 12px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.cer-drop:hover .cer-drop__menu, .cer-drop:focus-within .cer-drop__menu { display: block; }
.cer-drop__menu a { display: flex; justify-content: space-between; padding: 11px 12px; font-size: .78rem; line-height: normal; color: var(--ink); }
.cer-drop__menu a:hover { background: var(--paper); color: var(--ink); }
.cer-drop__menu small, .cer-mobile-nav small { color: var(--taupe); font-size: 80%; }
.cer-brand { width: 190px; display: flex; justify-content: center; }
.cer-brand img { width: 175px; max-height: 44px; max-width: 100%; height: auto; object-fit: contain; display: block; }
.cer-brand__text { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); white-space: nowrap; }
.cer-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.cer-actions__social { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.cer-header .btn { min-height: 0; line-height: normal; width: auto; }
.cer-header .btn:hover { color: #fff; }
.cer-social-btn { width: 46px; height: 46px; min-width: 46px; flex: 0 0 46px; padding: 0; border-radius: 999px; }
.cer-social-btn svg { width: 18px; height: 18px; display: block; }
.cer-actions__contact { white-space: nowrap; }
.cer-menu-trigger, .cer-mobile-nav { display: none; }
@media (max-width: 980px) {
	.cer-nav { display: none !important; }
	.cer-header__inner { display: flex; height: 74px; min-height: 74px; align-items: center; justify-content: space-between; gap: 12px; }
	.cer-brand { order: 1; margin-right: auto; justify-content: flex-start; width: auto; }
	.cer-brand img { width: 165px; }
	.cer-actions { order: 2; gap: 4px; }
	.cer-menu-trigger { order: 3; display: flex; width: 46px; height: 46px; min-height: 46px; margin: 0; padding: 0; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: transparent; box-shadow: none; color: var(--ink); font-family: var(--sans); font-weight: 400; font-size: 1.55rem; line-height: 1; text-transform: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
	.cer-mobile-nav { position: absolute; z-index: 400; top: 74px; left: 0; right: 0; width: 100%; max-height: calc(100vh - 74px); overflow: auto; padding: 18px 22px 22px; background: #f8f6f1; border-top: 1px solid rgba(31, 31, 29, .06); border-bottom: 1px solid rgba(31, 31, 29, .12); box-shadow: 0 18px 34px rgba(31, 31, 29, .1); }
	.cer-header.is-open .cer-mobile-nav { display: block; }
	.cer-mobile-nav__main, .cer-mobile-nav__catalog > summary { min-height: 52px; display: flex; align-items: center; width: 100%; padding: 12px 4px; color: var(--ink); font-weight: 700; font-size: .95rem; border-bottom: 1px solid rgba(31, 31, 29, .1); cursor: pointer; }
	.cer-mobile-nav__catalog > summary { list-style: none; justify-content: space-between; }
	.cer-mobile-nav__catalog > summary::-webkit-details-marker { display: none; }
	.cer-mobile-nav__catalog > summary::after { content: "+"; font-size: 1.2rem; font-weight: 400; }
	.cer-mobile-nav__catalog[open] > summary::after { content: "–"; }
	.cer-mobile-nav__sub { padding: 7px 0 9px 16px; }
	.cer-mobile-nav__sub a { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 4px; color: var(--ink); font-size: .9rem; }
	.cer-mobile-nav__sub a:first-child { font-weight: 700; border-bottom: 1px solid rgba(31, 31, 29, .08); margin-bottom: 3px; }
	.cer-mobile-nav__sub small { color: var(--muted); font-size: .7rem; }
}
@media (max-width: 760px) {
	.cer-header { background: rgba(248, 246, 241, .97); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
	.cer-header__inner { height: 65px !important; min-height: 65px; max-height: 65px; gap: 9px; }
	.cer-brand { flex: 0 1 auto; max-width: calc(100% - 80px); min-width: 0; justify-content: flex-start; }
	.cer-brand img { width: auto; max-height: 36px; max-width: min(145px, 100%); }
	.cer-mobile-nav { top: 65px; max-height: calc(100dvh - 65px); padding: 12px 19px 20px; overscroll-behavior: contain; }
	.cer-mobile-nav__main, .cer-mobile-nav__catalog > summary { min-height: 48px; }
	.cer-mobile-nav__sub { padding-left: 10px; }
	.cer-mobile-nav__sub a { min-height: 44px; }
}
@media (max-width: 720px) {
	.cer-container { width: min(100% - 28px, 1200px); }
	.cer-actions__social { display: none; }
}
@media (max-width: 379px) { .cer-container { width: calc(100% - 26px); } }

/* Catalog mode: never show cart / account icons even if left in the header builder. */
.header-cart-link, .cart-item, .account-item, .header-wishlist-icon, .mini-cart { display: none !important; }

/* ---------- Catalog (archive) ---------- */
.woocommerce-products-header, .shop-page-title { background: var(--warm); }
.products .product-small .box { background: #fff; border: 1px solid var(--line); }
.products .product-small .box-text { padding: 18px 20px 20px; text-align: left; }
.products .product-small .name, .products .product-small .product-title {
	font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1.1;
}
.products .product-small .category { font-size: .64rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--taupe); opacity: 1; }
.products .product-small .price, .products .product-small .add-to-cart-button, .products .product-small .quick-view { display: none !important; }
.cer-card__meta { margin: 4px 0 0; font-size: .74rem; color: var(--muted); }
#shop-sidebar .widget { margin-bottom: 0; }

/* ---------- Product page ---------- */
.product-main { background: #fff; }
.product-info .product-title { font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1; margin-bottom: 8px; }
.product-info .product_meta, .product-info .price-wrapper, .product-info .is-divider { display: none; }
.woocommerce-product-gallery img { object-fit: contain; }

/* ---------- Blog ---------- */
.blog-archive .post-item .box, .blog-single .article-inner { background: #fff; }
.entry-content { font-size: 1rem; line-height: 1.8; }

.blog-single .entry-content h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 2.2rem 0 .8rem; }
.entry-content .wp-block-gallery { margin: 2rem 0; }
.cer-post-cta { margin: 3rem 0 1rem; padding: clamp(24px, 4vw, 44px); background: var(--warm); border-radius: 4px; }
.cer-post-cta h2 { margin-top: 0 !important; }
.cer-post-cta .button, .cer-post-cta .btn { margin: 6px 10px 6px 0; }

/* ---------- Home (Inicio, built in UX Builder) ---------- */
.lead { font-size: 1.05rem; line-height: 1.7; color: var(--muted); max-width: 46ch; }
.cer-home-cta .eyebrow { color: rgba(255,255,255,.8); }
.cer-home-cta .lead { color: rgba(255,255,255,.88); }
.cer-home-cta .button, .cer-home-cta .cer-wa-launch { margin: 8px 10px 0 0; }

/* Hero — [cer_hero] (Cerámicas Core). Values = mockup v105 section.hero. */
.cer-hero { position: relative; min-height: 670px; display: flex; align-items: flex-end; overflow: hidden; background: #222; color: #fff; font-family: var(--sans); }
.cer-hero__bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100% !important; max-width: none; object-fit: cover; object-position: center; }
.cer-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(22, 21, 19, .68) 0%, rgba(22, 21, 19, .34) 28%, rgba(22, 21, 19, .1) 54%, rgba(22, 21, 19, 0) 76%); }
.cer-hero > .cer-container { position: relative; z-index: 2; }
.cer-hero__content { position: relative; z-index: 4; width: min(680px, 100%); padding: 90px 0 82px; color: #fff; }
.cer-hero__content > .cer-hero__kicker, .cer-hero__content > h2, .cer-hero__content > p, .cer-hero__content > .cer-hero__actions { padding-left: 3px; }
.cer-hero__kicker { margin-bottom: 15px; font-size: .72rem; line-height: normal; letter-spacing: .32em; text-transform: uppercase; color: #fff; }
body .cer-hero h1.cer-hero__title { margin: 0 0 18px; padding: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(4rem, 8vw, 7.4rem); line-height: .76; letter-spacing: -.04em; color: #fff; text-transform: none; }
body .cer-hero h2.cer-hero__subtitle { margin: 0 0 9px; padding-left: 3px; font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.2; letter-spacing: normal; color: #fff; font-style: normal; }
.cer-hero__text { max-width: 575px; margin: 1em 0; color: rgba(255, 255, 255, .84); font-size: .96rem; line-height: 1.7; }
.cer-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; position: relative; z-index: 5; }
.cer-hero .cer-hero__btn { box-sizing: border-box; width: auto; min-height: 50px; margin: 0; padding: 13px 22px; border: 1px solid rgba(255, 255, 255, .65); border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font-family: var(--sans); font-size: .78rem; font-weight: 700; line-height: 1.3; letter-spacing: normal; text-transform: none; text-align: center; white-space: normal; box-shadow: none; display: inline-flex; align-items: center; justify-content: center; }
.cer-hero .cer-hero__btn:hover { color: #fff; background: rgba(255, 255, 255, .16); }
.cer-hero .cer-hero__btn .cer-wa-icon { display: none; }
.cer-hero .cer-hero__btn.cer-wa-launch { padding-left: 20px; padding-right: 20px; } /* mockup: WhatsApp summary uses base .btn padding */
.cer-hero__side { position: absolute; right: 40px; bottom: 45px; z-index: 3; pointer-events: none; color: rgba(255, 255, 255, .82); font-size: .64rem; line-height: 1.8; letter-spacing: .18em; text-transform: uppercase; text-align: right; }
@media (max-width: 760px) {
	.cer-hero { min-height: min(675px, 100svh - 65px); align-items: center; }
	.cer-hero__content { padding: 48px 0 34px; max-width: 100%; }
	body .cer-hero h1.cer-hero__title { font-size: clamp(3.15rem, 13.4vw, 5.2rem); line-height: .93; overflow-wrap: break-word; }
	body .cer-hero h2.cer-hero__subtitle { font-size: clamp(1.45rem, 6vw, 2.25rem); }
	.cer-hero__text { font-size: .82rem; line-height: 1.58; max-width: 510px; }
	.cer-hero__actions { display: grid; grid-template-columns: minmax(0, 1fr); width: min(100%, 365px); gap: 10px; }
	.cer-hero .cer-hero__btn { width: 100%; min-height: 50px; }
	.cer-hero__side { display: none; }
}
.cer-home-cta h2 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.cer-home-cat-cards h3 { font-size: 1.7rem; margin: 14px 0 2px; }
.cer-home-cat-cards p { margin-bottom: 6px; color: var(--muted); }
.cer-brand-logos img { filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.cer-brand-logos img:hover { filter: none; opacity: 1; }
.cer-home-locations .cer-branches { margin-top: 28px; }

/* ---------- Footer ---------- */
.absolute-footer { background: var(--paper); color: var(--muted); }

/* ---------- Forms ---------- */
input[type=text], input[type=search], input[type=email], input[type=tel], input[type=url], select, textarea {
	border: 1px solid var(--line); background: #fff; box-shadow: none; font-family: var(--sans); font-size: .9rem;
}
input:focus, select:focus, textarea:focus { border-color: var(--ink); box-shadow: none; }

/* ---------- Small screens (manual §12: 320px without horizontal scroll) ---------- */
html, body { overflow-x: hidden; }
@media (max-width: 549px) {
	.btn { width: 100%; }
	.cer-active-bar .cer-facets__clear { width: 100%; }
}

/* ---------- 1.0.3: fixes from staging review ---------- */
/* Flatsome prints its own heading font inline after this file; win by specificity so every
   heading (hero, banners, widgets) uses the mockup serif. */
body h1, body h2, body h3, body h4, body .widget-title, body .banner h1, body .banner h2 {
	font-family: var(--serif);
}
.cer-home-cta h2 { font-family: var(--serif) !important; font-weight: 500; letter-spacing: -.02em; }
/* Flatsome demo top bar ("Add anything here…") is not part of the design. */
#top-bar { display: none !important; }
/* Blog sidebar / footer widget titles */
.widget-title, .widget .wp-block-heading { font-size: 1.35rem; font-weight: 600; letter-spacing: 0; text-transform: none; }

/* Anchor targets (menu "Ubicaciones" → /#ubicaciones) clear the sticky header. */
.cer-anchor { display: block; height: 0; scroll-margin-top: 100px; }
