/*
Theme Name: Durastill Mexico
Theme URI: https://durastillmexico.com
Author: WaterDistillers.com
Author URI: https://waterdistillers.com
Description: Página de entrada en español para destiladores de agua Durastill en México (110 V y 220 V). Todos los enlaces llevan a WaterDistillers.com.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: durastill-mexico
*/

:root {
	--verde: #006847;
	--verde-osc: #00402c;
	--verde-claro: #e7f2ec;
	--rojo: #ce1126;
	--rojo-osc: #a30d1e;
	--rojo-claro: #fbe9eb;
	--tinta: #1c2421;
	--gris: #5c6863;
	--linea: #e2e8e5;
	--radio: 12px;
	--head: "Montserrat", system-ui, sans-serif;
	--body: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--tinta); background: #fff; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--verde); }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; color: var(--tinta); }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.5rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
section { padding: clamp(56px, 8vw, 96px) 0; }
.center { text-align: center; }
.etiqueta { display: inline-block; font-family: var(--head); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rojo); margin-bottom: .8em; }
.intro { font-size: 1.1rem; color: var(--gris); max-width: 660px; }
.center .intro { margin-inline: auto; }

/* Franja tricolor */
.tricolor { height: 6px; background: linear-gradient(90deg, var(--verde) 0 33.33%, #fff 33.33% 66.66%, var(--rojo) 66.66% 100%); }

.btn { display: inline-flex; align-items: center; gap: .5em; padding: .9em 1.6em; border-radius: 999px; font-family: var(--head); font-weight: 700; font-size: .98rem; text-decoration: none; transition: background .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-rojo { background: var(--rojo); color: #fff; box-shadow: 0 4px 14px rgba(206, 17, 38, .3); }
.btn-rojo:hover { background: var(--rojo-osc); }
.btn-blanco { background: #fff; color: var(--verde); }
.btn-borde { border: 2px solid rgba(255, 255, 255, .7); color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--linea); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand { font-family: var(--head); font-weight: 800; font-size: 1.35rem; color: var(--verde); text-decoration: none; letter-spacing: -.01em; }
.brand span { color: var(--rojo); }
.brand img { max-height: 44px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 24px; }
.header-nav a { color: var(--tinta); text-decoration: none; font-weight: 600; font-size: .94rem; }
.header-nav a:hover { color: var(--verde); }
.header-nav .btn { color: #fff; padding: .6em 1.25em; font-size: .9rem; }
@media (max-width: 880px) { .header-nav .nav-link { display: none; } }

/* Hero */
.hero { background: var(--verde); color: #fff; position: relative; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--verde) 0 33.33%, #fff 33.33% 66.66%, var(--rojo) 66.66% 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero .wrap > * { min-width: 0; }
.hero h1 { color: #fff; }
.hero .etiqueta { color: #fff; background: var(--rojo); padding: 4px 10px; border-radius: 4px; }
.hero .intro { color: #d4eadf; }
.hero-acciones { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-puntos { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; font-weight: 600; font-size: .93rem; color: #e6f3ec; }
.hero-puntos li::before { content: "✓ "; color: #fff; }
.hero-img { background: #fff; border-radius: 24px; padding: 28px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.hero-img img { width: 100%; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero-img { max-width: 400px; margin-inline: auto; } }

/* Beneficios */
.beneficios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; text-align: left; }
.beneficio { padding: 26px; border-radius: var(--radio); background: var(--verde-claro); }
.beneficio:nth-child(2) { background: #f6f7f6; }
.beneficio:nth-child(3) { background: var(--rojo-claro); }
.beneficio .num { font-family: var(--head); font-weight: 800; font-size: 2rem; color: var(--verde); line-height: 1; margin-bottom: 10px; }
.beneficio:nth-child(3) .num { color: var(--rojo); }
.beneficio p { color: var(--gris); margin: 0; font-size: .96rem; }
@media (max-width: 820px) { .beneficios { grid-template-columns: 1fr; } }

/* Voltaje */
.voltaje { background: #f7f9f8; }
.volt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; text-align: left; }
.volt { background: #fff; border-radius: var(--radio); padding: 32px; border: 1px solid var(--linea); position: relative; overflow: hidden; }
.volt::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--verde); }
.volt.v220::before { background: var(--rojo); }
.volt-cifra { font-family: var(--head); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--verde); }
.volt.v220 .volt-cifra { color: var(--rojo); }
.volt-sub { display: block; color: var(--gris); font-size: .95rem; margin: 8px 0 18px; }
.volt ul { list-style: none; padding: 0; margin: 0 0 20px; }
.volt li { padding: 10px 0; border-top: 1px solid var(--linea); display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.volt li a { font-weight: 700; text-decoration: none; color: var(--tinta); }
.volt li a:hover { color: var(--verde); }
.volt li span { color: var(--gris); white-space: nowrap; }
.volt .mas { font-weight: 700; text-decoration: none; }
.volt.v220 .mas { color: var(--rojo); }
@media (max-width: 780px) { .volt-grid { grid-template-columns: 1fr; } .volt li { flex-direction: column; gap: 0; } }

/* Productos */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; text-align: left; }
.prod { border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; background: #fff; transition: box-shadow .15s, transform .15s; }
.prod:hover { box-shadow: 0 10px 30px rgba(0, 64, 44, .12); transform: translateY(-2px); }
.prod-img { aspect-ratio: 1; padding: 16px; display: grid; place-items: center; position: relative; }
.prod-img img { max-height: 100%; object-fit: contain; }
.badge { position: absolute; top: 12px; left: 12px; font-family: var(--head); font-size: .72rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; color: #fff; background: var(--verde); }
.badge.v220 { background: var(--rojo); }
.badge.com { background: var(--tinta); }
.prod-body { padding: 16px 18px 20px; border-top: 1px solid var(--linea); display: flex; flex-direction: column; flex: 1; }
.prod-tag { font-size: .78rem; font-weight: 700; color: var(--verde); text-transform: uppercase; letter-spacing: .05em; }
.prod h3 { margin: 4px 0 6px; font-size: 1.02rem; }
.prod p { color: var(--gris); font-size: .88rem; margin: 0 0 12px; flex: 1; }
.prod-precio { font-family: var(--head); font-weight: 800; color: var(--tinta); }
.prod-precio small { font-weight: 600; color: var(--gris); font-size: .75rem; }
.prod-cta { margin-top: 8px; font-weight: 700; color: var(--rojo); font-size: .9rem; }
.nota { color: var(--gris); font-size: .9rem; margin-top: 20px; }
.ver-todo { margin-top: 28px; }
@media (max-width: 1000px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .prod-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .prod-grid { grid-template-columns: 1fr; } }

/* Pasos */
.pasos-sec { background: var(--verde-osc); color: #fff; }
.pasos-sec h2 { color: #fff; }
.pasos-sec .intro { color: #b9d6c8; }
.pasos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 44px; text-align: left; counter-reset: paso; }
.paso::before { counter-increment: paso; content: counter(paso); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; font-family: var(--head); font-weight: 800; font-size: 1.2rem; margin-bottom: 16px; background: var(--verde); color: #fff; border: 2px solid #fff; }
.paso:nth-child(2)::before { background: #fff; color: var(--verde); }
.paso:nth-child(3)::before { background: var(--rojo); border-color: var(--rojo); }
.paso:nth-child(4)::before { background: #fff; color: var(--rojo); }
.paso h3 { color: #fff; }
.paso p { color: #b9d6c8; font-size: .95rem; margin: 0; }
@media (max-width: 900px) { .pasos { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .pasos { grid-template-columns: 1fr; } }

/* FAQ */
.faq-list { max-width: 840px; margin: 36px auto 0; text-align: left; }
.faq details { border: 1px solid var(--linea); border-radius: 10px; margin-bottom: 10px; padding: 0 20px; background: #fff; }
.faq details[open] { border-color: var(--verde); box-shadow: inset 4px 0 0 var(--verde); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--rojo); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary h3 { margin: 0; font-size: 1.02rem; }
.faq details p { color: var(--gris); margin: 0 0 18px; }

/* Cotización */
.cotizar .caja { background: var(--rojo); color: #fff; border-radius: 24px; padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center; position: relative; overflow: hidden; }
.cotizar .caja::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--verde); }
.cotizar h2 { color: #fff; }
.cotizar p { color: #ffe3e6; margin: 0; }
.datos { background: rgba(0, 0, 0, .14); border-radius: 14px; padding: 24px; }
.datos dl { margin: 0 0 18px; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; }
.datos dt { color: #ffd0d5; font-size: .88rem; }
.datos dd { margin: 0; font-weight: 700; }
.datos a { color: #fff; }
.datos .btn { color: var(--rojo); background: #fff; }
@media (max-width: 820px) { .cotizar .caja { grid-template-columns: 1fr; } }

.site-footer { background: var(--verde-osc); color: #a9c7b9; padding: 30px 0; font-size: .86rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: #fff; }
