/*
Theme Name: Ecolujo
Theme URI: https://ecolujolifestyle.com
Author: Ecolujo Lifestyle México
Description: Tema propio de Ecolujo Lifestyle México. Identidad "A contraluz". Tema de bloques, sin dependencias.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ecolujo
*/

:root{--eco-blanco:#fff;--eco-bruma:#EEF2F1;--eco-miel:#F8EEDC;--eco-agua:#BFE3DD;--eco-linea:#C9D3D2;--eco-petroleo:#0E2F36;--eco-grafito:#4A5B5F;--eco-ambar:#D98B1F;--eco-ambar-oscuro:#9A5408;--eco-suave:#D7E4E2;--eco-display:"Bricolage Grotesque","Schibsted Grotesk",Arial,sans-serif;--eco-sans:"Schibsted Grotesk","Helvetica Neue",Arial,sans-serif;--eco-mono:"Geist Mono","Courier New",monospace}
html{scroll-behavior:smooth}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
:where(a,button,input,select,textarea,summary):focus-visible{outline:2px solid var(--eco-petroleo);outline-offset:3px}
.eco-oscuro :where(a,button,summary):focus-visible{outline-color:#fff}
.wp-site-blocks{padding:0}
.wp-site-blocks>*{margin-block-start:0}
main.eco-main,.eco-main>.entry-content,.eco-main>.wp-block-post-content{margin:0;padding:0;max-width:none}
.eco-main>.wp-block-post-content>*{margin-block-start:0;max-width:none}
.eco-skip{position:absolute;left:-9999px}
.eco-skip:focus{left:16px;top:16px;z-index:100;background:#fff;padding:12px 16px;border-radius:8px}

/* Contenedor y secciones */
.eco-wrap{max-width:1240px;margin-inline:auto;width:100%;box-sizing:border-box}
.eco-seccion{padding:clamp(56px,8vw,96px) 24px}
.eco-seccion.is-compacta{padding-block:clamp(40px,5vw,64px)}
.eco-bruma{background:var(--eco-bruma)}
.eco-miel{background:var(--eco-miel)}
.eco-oscuro{background:var(--eco-petroleo);color:#fff}
.eco-oscuro :where(h1,h2,h3,h4){color:#fff}
.eco-oscuro p{color:var(--eco-suave)}
.eco-oscuro .eco-rotulo{color:var(--eco-agua)}
.eco-seccion :where(h1,h2,h3,p,ul,ol,figure){margin-block:0}
.eco-pila{display:flex;flex-direction:column;gap:20px}
.eco-pila.is-amplia{gap:44px}
.eco-cabeza{display:flex;flex-direction:column;gap:16px;max-width:820px}
.eco-estrecho{max-width:780px}

/* Tipografía */
.eco-rotulo{font-family:var(--eco-mono);font-size:12px;line-height:16px;font-weight:500;letter-spacing:1.4px;text-transform:uppercase;color:var(--eco-grafito)}
.eco-display{font-size:clamp(44px,6vw,84px);line-height:1;letter-spacing:-.035em}
.eco-titulo{font-size:clamp(34px,4.2vw,56px);line-height:1.04;letter-spacing:-.03em}
.eco-subtitulo{font-size:clamp(24px,2.4vw,30px);line-height:1.15;letter-spacing:-.02em}
.eco-entradilla{font-size:clamp(18px,1.5vw,20px);line-height:1.55;color:var(--eco-grafito);max-width:640px}
.eco-gris{color:var(--eco-grafito)}
.eco-prosa{display:flex;flex-direction:column;gap:18px;max-width:780px}
.eco-prosa p,.eco-prosa li{font-size:18px;line-height:1.6}
.eco-prosa strong{font-weight:600}

/* Cabecera */
.eco-cabecera{padding:16px 24px;border-bottom:1px solid var(--eco-linea);background:#fff}
.eco-cabecera .eco-wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 28px}
.eco-cabecera :where(p,figure){margin:0}
.eco-logo img{display:block;height:38px;width:auto}
.eco-cabecera .wp-block-navigation{font-size:16px;font-weight:500;gap:26px}
.eco-cabecera .wp-block-navigation a{padding-block:12px}
.eco-cabecera .wp-block-navigation a:hover{color:var(--eco-ambar-oscuro)}

/* Héroe */
.eco-heroe{padding:clamp(40px,6vw,72px) 24px clamp(40px,5vw,56px)}
.eco-heroe .eco-wrap,.eco-dos{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:clamp(32px,5vw,56px);align-items:center}
.eco-dos.is-arriba{align-items:start}
.eco-heroe-texto{display:flex;flex-direction:column;gap:26px}
.eco-ilustracion img{display:block;width:100%;height:auto;border-radius:32px}
.eco-heroe-pagina{padding:clamp(48px,6vw,80px) 24px clamp(32px,4vw,48px)}

/* Franja de datos */
.eco-datos{padding:0 24px clamp(48px,6vw,72px)}
.eco-datos .eco-wrap{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));border-block:1px solid var(--eco-petroleo)}
.eco-dato{padding:22px 20px 22px 0;display:flex;flex-direction:column;gap:6px}
.eco-dato p{margin:0}
.eco-dato-valor{font-size:18px;line-height:25px;font-weight:600}

/* Tarjetas */
.eco-rejilla{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:20px}
.eco-rejilla.is-tres{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}
.eco-tarjeta{background:#fff;border:1px solid var(--eco-linea);border-radius:24px;padding:28px;display:flex;flex-direction:column;gap:14px}
.eco-tarjeta.is-bruma{background:var(--eco-bruma);border-color:transparent}
.eco-tarjeta :where(h3,p,figure){margin:0}
.eco-tarjeta h3{font-size:24px;line-height:28px;letter-spacing:-.4px}
.eco-tarjeta p{font-size:16px;line-height:24px;color:var(--eco-grafito)}
.eco-tarjeta .eco-mini img{display:block;width:100%;height:auto;border-radius:16px}
.eco-tarjeta p.eco-obtienes,.eco-obtienes{position:relative;margin-top:auto;padding:14px 0 0 22px;border-top:1px solid var(--eco-linea);font-size:15px;line-height:22px;font-weight:500;color:var(--eco-petroleo)}
.eco-obtienes::before{content:"";position:absolute;left:0;top:20px;width:9px;height:9px;border-radius:999px;border:1.5px solid var(--eco-petroleo);box-sizing:border-box}
.eco-cifra{font-family:var(--eco-display);font-size:clamp(52px,5vw,72px);line-height:1;font-weight:600;letter-spacing:-2px;color:var(--eco-petroleo)}
.eco-tarjeta p.eco-cifra{color:var(--eco-petroleo);font-size:clamp(52px,5vw,72px);line-height:1}
.eco-tarjeta p.eco-rotulo{font-size:12px;line-height:16px}

/* Servicio en detalle */
.eco-servicio{display:grid;grid-template-columns:minmax(0,300px) minmax(0,1fr);gap:clamp(24px,4vw,56px);align-items:start;padding-block:clamp(32px,4vw,48px);border-top:1px solid var(--eco-linea)}
.eco-servicio figure{margin:0}
.eco-servicio img{display:block;width:100%;height:auto;border-radius:24px}
.eco-servicio-texto{display:flex;flex-direction:column;gap:14px}
.eco-servicio-texto :where(h2,h3,p){margin:0}
.eco-servicio-texto p{font-size:18px;line-height:1.6}
.eco-desde{background:var(--eco-bruma);border-radius:16px;padding:16px 20px;font-size:16px!important;line-height:24px!important}
@media (max-width:700px){.eco-servicio{grid-template-columns:1fr}.eco-servicio figure{max-width:260px}}

/* Pasos */
.eco-pasos{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:28px 22px}
.eco-paso{display:flex;flex-direction:column;gap:10px;padding-top:18px;border-top:1px solid rgba(255,255,255,.35)}
.eco-paso :where(h3,p){margin:0}
.eco-paso h3{font-family:var(--eco-sans);font-size:20px;line-height:26px;letter-spacing:0}
.eco-paso p{font-size:15px;line-height:22px}
.eco-paso .eco-rotulo{position:relative;padding-left:21px}
.eco-paso .eco-rotulo::before{content:"";position:absolute;left:0;top:2px;width:11px;height:11px;border-radius:999px;background:var(--eco-ambar)}
.eco-sello img{display:block;width:140px;height:140px}
.eco-entre{display:flex;flex-wrap:wrap;gap:32px;justify-content:space-between;align-items:flex-end}

/* Lista con puntos */
.eco-puntos{display:flex;flex-direction:column;border-bottom:1px solid var(--eco-petroleo)}
.eco-punto{position:relative;padding:22px 0 22px 27px;border-top:1px solid var(--eco-petroleo);display:flex;flex-direction:column;gap:4px}
.eco-punto::before{content:"";position:absolute;left:0;top:31px;width:11px;height:11px;border-radius:999px;border:1.5px solid var(--eco-petroleo);background:#fff;box-sizing:border-box}
.eco-punto :where(h3,p){margin:0}
.eco-punto h3{font-family:var(--eco-sans);font-size:21px;line-height:28px;letter-spacing:0}
.eco-punto p{font-size:17px;line-height:26px;color:var(--eco-grafito)}

/* Tabla */
.eco-tabla{margin:0;overflow-x:auto}
.eco-tabla table{width:100%;border-collapse:collapse;min-width:560px;font-size:16px;line-height:24px}
.wp-block-table.eco-tabla :is(th,td){border:0;border-bottom:1px solid var(--eco-linea);padding:16px 16px 16px 0;text-align:left;vertical-align:top}
.wp-block-table.eco-tabla thead{border:0}
.wp-block-table.eco-tabla thead th{font-family:var(--eco-mono);font-size:12px;line-height:16px;font-weight:500;letter-spacing:1.4px;text-transform:uppercase;color:var(--eco-grafito);border-bottom:1px solid var(--eco-petroleo)}
.eco-tabla tbody td:first-child{font-weight:600}

/* Preguntas */
.eco-preguntas{display:flex;flex-direction:column;border-bottom:1px solid var(--eco-petroleo);max-width:900px}
.eco-preguntas .wp-block-details{border-top:1px solid var(--eco-petroleo);padding:0;margin:0}
.eco-preguntas summary{cursor:pointer;padding:22px 40px 22px 0;font-size:20px;line-height:28px;font-weight:600;list-style:none;position:relative}
.eco-preguntas summary::-webkit-details-marker{display:none}
.eco-preguntas summary::after{content:"+";position:absolute;right:4px;top:18px;font-family:var(--eco-mono);font-size:24px;font-weight:400}
.eco-preguntas details[open] summary::after{content:"–"}
.eco-preguntas details p{margin:0 0 24px;font-size:17px;line-height:1.6;color:var(--eco-grafito);max-width:760px}

/* Cierre */
.eco-cierre-seccion{padding:0 24px clamp(56px,8vw,96px)}
.eco-cierre{background:var(--eco-agua);border-radius:32px;padding:clamp(32px,6vw,72px);display:flex;flex-wrap:wrap;gap:32px;align-items:center;justify-content:space-between}
.eco-cierre :where(h2,p){margin:0}
.eco-cierre p{font-size:19px;line-height:29px}
.eco-cierre .eco-pila{max-width:700px;gap:14px}

/* Botones */
.wp-block-button__link{min-height:50px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;transition:background-color .15s,color .15s}
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover{background:#17434c}
.wp-block-button.is-style-outline .wp-block-button__link{border:1.5px solid var(--eco-petroleo);color:var(--eco-petroleo);background:transparent;padding:13px 26px}
.wp-block-button.is-style-outline .wp-block-button__link:hover{background:var(--eco-petroleo);color:#fff}
.eco-oscuro .wp-block-button:not(.is-style-outline) .wp-block-button__link{background:#fff;color:var(--eco-petroleo)}
.wp-block-buttons{gap:12px}

/* Formulario */
.eco-formulario{background:var(--eco-bruma);border-radius:24px;padding:clamp(24px,4vw,40px)}
.eco-formulario form{display:flex;flex-direction:column;gap:18px}
.eco-formulario p{margin:0}
.eco-formulario label{display:flex;flex-direction:column;gap:6px;font-size:15px;font-weight:600}
.eco-formulario :where(input[type=text],input[type=email],input[type=tel],select,textarea){font:inherit;font-weight:400;color:var(--eco-petroleo);background:#fff;border:1.5px solid var(--eco-petroleo);border-radius:12px;padding:12px 14px;min-height:50px;box-sizing:border-box;width:100%}
.eco-formulario textarea{min-height:140px}
.eco-formulario .wpcf7-list-item{margin:0 18px 0 0}
.eco-formulario .wpcf7-list-item label{flex-direction:row;align-items:center;gap:8px;font-weight:400}
.eco-formulario input[type=submit]{font:inherit;font-weight:600;background:var(--eco-petroleo);color:#fff;border:0;border-radius:999px;padding:14px 28px;min-height:50px;cursor:pointer}
.eco-formulario input[type=submit]:hover{background:#17434c}
.eco-contacto-datos{display:flex;flex-direction:column;gap:22px}
.eco-contacto-datos p{margin:0;font-size:18px;line-height:27px}

/* Pie */
.eco-pie{background:var(--eco-petroleo);color:#fff;padding:64px 24px 40px}
.eco-pie :where(p,figure){margin:0}
.eco-pie a{color:#fff;text-decoration:none}
.eco-pie a:hover{text-decoration:underline}
.eco-pie-rejilla{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:36px}
.eco-pie-col{display:flex;flex-direction:column;gap:8px}
.eco-pie-col p{font-size:16px;line-height:24px}
.eco-pie .eco-rotulo{color:var(--eco-agua)}
.eco-pie .eco-pie-legal{margin-top:40px;border-top:1px solid rgba(255,255,255,.3);padding-top:20px;display:flex;flex-wrap:wrap;gap:12px 28px}
.eco-pie-legal p{font-size:14px;color:var(--eco-suave)}

/* Páginas genéricas y entradas */
.eco-generica{padding:clamp(48px,6vw,80px) 24px}
.eco-generica .eco-wrap{max-width:780px}
.eco-generica :where(p,li){font-size:18px;line-height:1.65}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* Los contenedores propios gestionan su separación con gap, no con márgenes de bloque */
:where(.eco-cabecera,.eco-heroe,.eco-heroe-pagina,.eco-datos,.eco-seccion,.eco-cierre-seccion,.eco-pie) .wp-block-group>*{margin-block-start:0;margin-block-end:0}

@media (max-width:700px){.eco-cabecera .wp-block-buttons{display:none}}
