/*
Theme Name: Flatsome Child – MOLÁH
Description: Tema hijo de Flatsome para MOLÁH Inoxidables. Diseño y desarrollo: DIGINOVA.
Author: DIGINOVA
Template: flatsome
Version: 1.3.1
Text Domain: flatsome-child
*/

/* ---------- Sistema visual: acero, carbón y rojo MOLÁH ---------- */
:root {
	--molah-red: #CE0E2D;
	--molah-red-dark: #A60B24;
	--molah-ink: #131415;
	--molah-text: #2A2C2E;
	--molah-muted: #6B6F73;
	--molah-steel: #F3F3F1;
	--molah-steel-2: #E6E7E5;
	--molah-line: #D9DAD8;
	--molah-wide: .22em;
}

body { color: var(--molah-text); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { color: var(--molah-ink); letter-spacing: -.02em; }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }

.button, button, input[type="submit"] { border-radius: 0 !important; letter-spacing: .08em; font-weight: 700; }
.button.is-outline { border-width: 2px; }

/* Barra superior */
#top-bar { font-size: 12.5px; letter-spacing: .06em; }
#top-bar .html_topbar_left, #top-bar .html { text-transform: uppercase; }
.molah-sep { color: var(--molah-red); margin: 0 .5em; }

/* Encabezado */
.header-main { border-bottom: 1px solid var(--molah-line); }
.header-nav-main > li > a { font-size: 13px; letter-spacing: .12em; color: var(--molah-ink); }
.header-nav-main > li.active > a, .header-nav-main > li > a:hover { color: var(--molah-red); }
.nav-line-bottom > li > a:before { background-color: var(--molah-red); height: 2px; }

/* Etiquetas y títulos */
.molah-eyebrow {
	font-family: "Archivo", sans-serif;
	font-size: 12px; font-weight: 600; text-transform: uppercase;
	letter-spacing: var(--molah-wide); color: var(--molah-red); margin-bottom: 14px;
}
.dark .molah-eyebrow { color: #fff; opacity: .7; }
.molah-h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.04; margin-bottom: 12px; }
.molah-sub { font-size: 18px; color: var(--molah-muted); max-width: 52ch; margin: 0; }
.dark .molah-sub { color: rgba(255,255,255,.72); }
.molah-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.molah-head .molah-link { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--molah-ink); border-bottom: 2px solid var(--molah-red); padding-bottom: 4px; }

/* Portada */
.molah-hero .bg { background-color: var(--molah-steel); }
.molah-hero:after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(90deg, rgba(243,243,241,.97) 0%, rgba(243,243,241,.88) 34%, rgba(243,243,241,0) 62%);
}
.molah-hero .text-box { z-index: 2; }
.molah-hero__title { font-size: clamp(40px, 6vw, 76px); line-height: .98; letter-spacing: -.035em; margin-bottom: 18px; }
.molah-hero__title em { font-style: normal; color: var(--molah-red); }
.molah-hero__lead { font-size: 19px; line-height: 1.5; color: var(--molah-text); max-width: 34ch; margin-bottom: 28px; }
.molah-hero__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--molah-line); font-size: 13px; color: var(--molah-muted); }
.molah-hero__facts b { display: block; font-family: "Archivo", sans-serif; font-size: 22px; color: var(--molah-ink); letter-spacing: -.02em; }

/* Galería «de cerca» */
.molah-bento { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 250px; }
.molah-bento figure { position: relative; margin: 0; overflow: hidden; background: var(--molah-steel); }
.molah-bento figure.is-big { grid-column: span 2; grid-row: span 2; }
.molah-bento img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.molah-bento figure:hover img { transform: scale(1.05); }
.molah-bento figcaption {
	position: absolute; left: 0; bottom: 0; right: 0; padding: 40px 18px 16px;
	background: linear-gradient(0deg, rgba(19,20,21,.78), rgba(19,20,21,0));
	color: #fff; font-family: "Archivo", sans-serif; font-weight: 600; font-size: 15px; letter-spacing: -.005em;
}
.molah-bento figure.is-big figcaption { font-size: 20px; padding: 60px 26px 22px; }

/* Sellos de confianza */
.molah-sellos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; }
.molah-sello { display: grid; gap: 10px; justify-items: start; padding: 6px 20px; border-left: 1px solid rgba(255,255,255,.14); color: #fff; font-size: 14px; line-height: 1.35; }
.molah-sello:first-child { border-left: 0; padding-left: 0; }
.molah-sello svg { width: 28px; height: 28px; stroke: var(--molah-red); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Productos */
.molah-products .box-image { background: #fff; }
.molah-products .product-small .box { background: #fff; }
.molah-products .box-text { padding: 16px 16px 20px; }
.product-small .product-title a { font-family: "Archivo", sans-serif; font-weight: 600; color: var(--molah-ink); font-size: 15px; line-height: 1.3; }
.product-small .price { font-family: "Archivo", sans-serif; font-weight: 700; color: var(--molah-ink); font-size: 17px; }
.product-small .category { letter-spacing: .14em; font-size: 11px; color: var(--molah-muted); }

/* Grosor */
.molah-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--molah-line); border: 1px solid var(--molah-line); margin: 28px 0; }
.molah-stat { background: #fff; padding: 22px 20px; }
.molah-stat b { display: block; white-space: nowrap; font-family: "Archivo", sans-serif; font-size: clamp(26px, 2.6vw, 38px); line-height: 1; color: var(--molah-ink); letter-spacing: -.03em; }
.molah-stat span { display: block; margin-top: 8px; font-size: 13px; color: var(--molah-muted); }
.molah-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.molah-checks li { position: relative; padding-left: 30px; margin: 0; }
.molah-checks li:before { content: ""; position: absolute; left: 0; top: .5em; width: 16px; height: 2px; background: var(--molah-red); }
.molah-figure { position: relative; margin: 0; background: #fff; }
.molah-figure img { width: 100%; display: block; }
.molah-figure figcaption { font-size: 13px; color: var(--molah-muted); padding: 12px 0 0; }

/* Categorías */
.molah-cats .box-text { padding: 16px 0 0; text-align: left; }
.molah-cats .box-text h5 { font-family: "Archivo", sans-serif; font-size: 20px; text-transform: none; letter-spacing: -.01em; color: var(--molah-ink); }
.molah-cats .box-text p.is-xsmall { text-transform: uppercase; letter-spacing: .14em; color: var(--molah-muted); }
.molah-cats .box-image { background: #fff; }

/* Sectores */
.molah-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.molah-chips span { border: 1px solid rgba(255,255,255,.28); color: #fff; padding: 10px 18px; font-size: 15px; }

/* Mayoreo */
.molah-cta { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.molah-cta h2 { color: #fff; font-size: clamp(30px, 4vw, 46px); margin: 0 0 8px; }
.molah-cta p { color: rgba(255,255,255,.88); font-size: 18px; max-width: 56ch; margin: 0; }
.molah-cta .button.white { color: var(--molah-red) !important; }

/* Preguntas frecuentes */
.molah-faq .accordion-title { font-family: "Archivo", sans-serif; font-weight: 600; font-size: 18px; color: var(--molah-ink); border-top: 1px solid var(--molah-line); padding: 20px 40px 20px 0; }
.molah-faq .accordion-title.active { color: var(--molah-red); border-color: var(--molah-line); }
.molah-faq .accordion-inner { padding: 0 0 22px; color: var(--molah-text); font-size: 16px; }
.molah-faq .accordion .toggle { left: auto; right: 0; }

/* Pie */
.molah-footer { background: var(--molah-ink); color: rgba(255,255,255,.7); padding: 64px 0 40px; }
.molah-footer__inner { max-width: 1110px; margin: 0 auto; padding: 0 15px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.molah-footer__brand img { width: 168px; height: auto; margin-bottom: 18px; }
.molah-footer__brand p { font-size: 14px; max-width: 34ch; margin: 0; }
.molah-footer h3 { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: var(--molah-wide); margin-bottom: 16px; }
.molah-footer ul { list-style: none; margin: 0; padding: 0; }
.molah-footer li { margin: 0 0 10px; }
.molah-footer a { color: rgba(255,255,255,.78); font-size: 14px; }
.molah-footer a:hover { color: #fff; }
.absolute-footer { background: #0B0C0D !important; color: rgba(255,255,255,.55); font-size: 12.5px; border-top: 1px solid rgba(255,255,255,.08); }

/* Ficha de producto */
.product-info .product-title { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; }
.product-info .price { font-family: "Archivo", sans-serif; font-weight: 800; color: var(--molah-ink); }
.product-short-description ul { margin-left: 0; list-style: none; }
.product-short-description li { position: relative; padding-left: 22px; margin-bottom: 6px; }
.product-short-description li:before { content: ""; position: absolute; left: 0; top: .7em; width: 12px; height: 2px; background: var(--molah-red); }
.molah-trust { list-style: none; margin: 20px 0 0; padding: 16px 18px; background: var(--molah-steel); display: grid; gap: 8px; font-size: 14px; }
.molah-trust li { margin: 0; padding-left: 24px; position: relative; }
.molah-trust li:before { content: "✓"; position: absolute; left: 0; color: var(--molah-red); font-weight: 700; }
.molah-trust a { color: var(--molah-red); font-weight: 600; text-decoration: underline; }
.molah-compare { max-width: 1110px; margin: 30px auto 50px; padding: 0 15px; }
.molah-compare h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 20px; }
.molah-compare__scroll { overflow-x: auto; }
.molah-compare table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.molah-compare th, .molah-compare td { padding: 14px 12px; border-bottom: 1px solid var(--molah-line); text-align: left; }
.molah-compare thead th { font-family: "Archivo", sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--molah-muted); border-bottom: 2px solid var(--molah-ink); }
.molah-compare tbody th { font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 15px; }
.molah-compare tbody th a { color: var(--molah-ink); }
.molah-compare tr.is-current { background: var(--molah-steel); }
.molah-compare tr.is-current th a { color: var(--molah-red); }
.molah-compare td .amount { font-weight: 700; color: var(--molah-ink); }

/* Páginas interiores */
.molah-h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.02; letter-spacing: -.03em; margin-bottom: 14px; }
.molah-h3 { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 18px; }
.molah-chips.is-light span { border-color: var(--molah-line); color: var(--molah-ink); background: var(--molah-steel); }
.molah-steps { list-style: none; counter-reset: paso; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.molah-steps li { counter-increment: paso; margin: 0; padding-top: 20px; border-top: 2px solid var(--molah-ink); display: grid; gap: 6px; align-content: start; }
.molah-steps li:before { content: "0" counter(paso); font-family: "Archivo", sans-serif; font-weight: 800; font-size: 14px; color: var(--molah-red); letter-spacing: .1em; }
.molah-steps b { font-family: "Archivo", sans-serif; font-size: 19px; color: var(--molah-ink); }
.molah-steps span { color: var(--molah-muted); font-size: 15px; }
.molah-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.molah-values div { background: #fff; padding: 28px 24px; display: grid; gap: 10px; border-top: 3px solid var(--molah-red); }
.molah-values b { font-family: "Archivo", sans-serif; font-size: 20px; color: var(--molah-ink); }
.molah-values span { color: var(--molah-muted); font-size: 15px; }
.molah-legal h2 { font-size: 22px; margin: 34px 0 10px; }
.molah-legal h2:first-child { margin-top: 0; }
.molah-legal p, .molah-legal li { font-size: 16px; line-height: 1.7; }
.molah-legal a, .molah-faq .accordion-inner a { color: var(--molah-red); text-decoration: underline; }
.molah-contact { display: grid; gap: 26px; padding: 32px; background: var(--molah-steel); }
.molah-contact span { display: block; font-family: "Archivo", sans-serif; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: var(--molah-wide); color: var(--molah-muted); margin-bottom: 6px; }
.molah-contact a, .molah-contact p { font-family: "Archivo", sans-serif; font-size: 20px; font-weight: 600; color: var(--molah-ink); margin: 0; }
.molah-contact a:hover { color: var(--molah-red); }

/* Formularios */
.molah-anchor { display: block; position: relative; top: -120px; visibility: hidden; }
.molah-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
.molah-form .molah-field { margin: 0 0 14px; }
.molah-form .molah-field.is-full { grid-column: 1 / -1; }
.molah-form label { display: block; font-size: 13px; font-weight: 600; color: var(--molah-ink); }
.molah-form input:not([type=checkbox]):not([type=submit]), .molah-form select, .molah-form textarea { margin: 6px 0 0; border: 1px solid var(--molah-line); box-shadow: none; border-radius: 0; background: #fff; font-size: 16px; min-height: 48px; }
.molah-form textarea { min-height: 140px; padding-top: 12px; }
.molah-form input:focus, .molah-form select:focus, .molah-form textarea:focus { border-color: var(--molah-ink); outline: 2px solid var(--molah-ink); outline-offset: 0; }
.molah-accept { font-size: 14px; }
.molah-accept a { color: var(--molah-red); text-decoration: underline; }
.molah-form .wpcf7-submit { margin: 4px 0 0; min-height: 52px; padding: 0 32px; }
.wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 14px 16px; border-width: 1px; }

/* Las secciones del Inicio ya traen su propio aire; se quita el margen extra de las columnas */
@media (min-width: 850px) {
	.page-template-page-blank .section-content > .row > .col { padding-bottom: 0; }
}
.page-template-page-blank .section-content > .row > .col > .col-inner > :last-child { margin-bottom: 0; }

/* Tablet */
@media (max-width: 849px) {
	.molah-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; }
	.molah-sellos { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 26px; }
	.molah-sello:nth-child(4) { border-left: 0; padding-left: 0; }
	.molah-footer__inner { grid-template-columns: 1fr 1fr; }
	.molah-footer__brand { grid-column: 1 / -1; }
	.molah-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.molah-values { grid-template-columns: minmax(0, 1fr); }
	.molah-hero:after { background: linear-gradient(180deg, rgba(243,243,241,.98) 0%, rgba(243,243,241,.94) 48%, rgba(243,243,241,0) 70%); }
	.molah-hero .bg { background-size: 150% auto !important; background-position: 55% 100% !important; }
}

/* Celular */
@media (max-width: 549px) {
	.molah-hero__lead { font-size: 17px; }
	.molah-bento { grid-auto-rows: 150px; gap: 8px; }
	.molah-bento figcaption, .molah-bento figure.is-big figcaption { font-size: 13px; padding: 30px 12px 10px; }
	.molah-sellos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.molah-sello, .molah-sello:first-child, .molah-sello:nth-child(4) { border-left: 0; padding-left: 0; }
	.molah-stats { grid-template-columns: minmax(0, 1fr); }
	.molah-form { grid-template-columns: minmax(0, 1fr); }
	.molah-contact { padding: 24px 20px; }
	.molah-footer__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
