/*
Theme Name: Luthje Landing
Theme URI: https://constructoraluthje.com/
Author: Constructora Luthje
Author URI: https://constructoraluthje.com/
Description: Tema a medida para las landings de campaña de Constructora Luthje (proyectos ADONAI). Compatible con Elementor y Elementor Pro Theme Builder, con bloques de embudo, formulario de leads y tracking de Meta Pixel + Conversions API a través del plugin «Luthje Leads & Meta CAPI».
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: luthje-landing
Tags: custom-menu, featured-images, translation-ready, full-width-template, block-styles, wide-blocks
*/

/* -------------------------------------------------------------------------
 * Tokens de marca
 *
 * Los valores replican el kit global de Elementor del sitio corporativo
 * (constructoraluthje.com) para que landing y web se vean como una sola marca.
 * ---------------------------------------------------------------------- */

:root {
	--luthje-primary: #006376;
	--luthje-primary-dark: #00475a;
	--luthje-primary-light: #00849e;
	--luthje-accent: #b5651d;

	--luthje-ink: #1c1c1c;
	--luthje-heading: #333333;
	--luthje-text: #505050;
	--luthje-muted: #7b8288;

	--luthje-surface: #ffffff;
	--luthje-bg: #f6f6f4;
	--luthje-border: #e3e3df;
	--luthje-overlay: rgba(0, 40, 48, 0.62);

	--luthje-whatsapp: #25d366;
	--luthje-whatsapp-dark: #1da851;
	--luthje-error: #b3261e;
	--luthje-success: #1a7f37;

	--luthje-font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

	--luthje-radius: 10px;
	--luthje-radius-sm: 6px;
	--luthje-shadow: 0 18px 45px rgba(0, 40, 48, 0.16);
	--luthje-shadow-sm: 0 6px 18px rgba(0, 40, 48, 0.1);

	--luthje-container: 1140px;
	--luthje-gutter: 24px;
}

/* -------------------------------------------------------------------------
 * Base
 * ---------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

/* El `display` de una clase gana al `[hidden]{display:none}` del navegador por
 * especificidad. Sin esto, los campos del formulario siguen visibles después de
 * enviarlo. */
[hidden] {
	display: none !important;
}

body {
	margin: 0;
	font-family: var(--luthje-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.75;
	color: var(--luthje-text);
	background-color: var(--luthje-surface);
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.6em;
	font-family: var(--luthje-font);
	font-weight: 600;
	line-height: 1.18;
	color: var(--luthje-heading);
}

h1 {
	font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
}

h2 {
	font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.25rem);
}

h3 {
	font-size: 1.25rem;
}

p {
	margin: 0 0 1.2em;
}

a {
	color: var(--luthje-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

a:hover,
a:focus {
	color: var(--luthje-primary-dark);
}

img {
	max-width: 100%;
	height: auto;
}

ul,
ol {
	padding-left: 1.2em;
}

:focus-visible {
	outline: 3px solid var(--luthje-primary-light);
	outline-offset: 2px;
}

/* Accesibilidad: enlace de salto y texto solo para lectores de pantalla. */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: -60px;
	left: 12px;
	z-index: 1000;
	padding: 10px 18px;
	background: var(--luthje-primary);
	color: #fff;
	border-radius: 0 0 var(--luthje-radius-sm) var(--luthje-radius-sm);
	transition: top 0.2s ease;
}

.skip-link:focus {
	top: 0;
	color: #fff;
}

/* -------------------------------------------------------------------------
 * Contenedores
 * ---------------------------------------------------------------------- */

.luthje-container {
	width: 100%;
	max-width: var(--luthje-container);
	margin: 0 auto;
	padding: 0 var(--luthje-gutter);
}

.luthje-section {
	padding: clamp(48px, 7vw, 96px) 0;
}

.luthje-section--tight {
	padding: clamp(32px, 4vw, 56px) 0;
}

.luthje-section--muted {
	background: var(--luthje-bg);
}

.luthje-section__intro {
	max-width: 660px;
	margin: 0 auto clamp(32px, 4vw, 56px);
	text-align: center;
}

.luthje-eyebrow {
	display: inline-block;
	margin-bottom: 12px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--luthje-primary);
}

/* -------------------------------------------------------------------------
 * Botones
 * ---------------------------------------------------------------------- */

.luthje-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 28px;
	border: 2px solid transparent;
	border-radius: var(--luthje-radius-sm);
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.luthje-btn:hover,
.luthje-btn:focus {
	transform: translateY(-1px);
}

.luthje-btn:disabled {
	opacity: 0.65;
	cursor: progress;
	transform: none;
}

.luthje-btn--primary {
	background: var(--luthje-primary);
	border-color: var(--luthje-primary);
	color: #fff;
}

.luthje-btn--primary:hover,
.luthje-btn--primary:focus {
	background: var(--luthje-primary-dark);
	border-color: var(--luthje-primary-dark);
	color: #fff;
}

.luthje-btn--ghost {
	background: transparent;
	border-color: currentColor;
	color: var(--luthje-primary);
}

.luthje-btn--ghost-light {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.7);
	color: #fff;
}

.luthje-btn--ghost-light:hover,
.luthje-btn--ghost-light:focus {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

.luthje-btn--whatsapp {
	background: var(--luthje-whatsapp);
	border-color: var(--luthje-whatsapp);
	color: #06301a;
}

.luthje-btn--whatsapp:hover,
.luthje-btn--whatsapp:focus {
	background: var(--luthje-whatsapp-dark);
	border-color: var(--luthje-whatsapp-dark);
	color: #fff;
}

.luthje-btn--block {
	width: 100%;
}

.luthje-btn--lg {
	padding: 18px 36px;
	font-size: 1.05rem;
}

/* -------------------------------------------------------------------------
 * Formulario de leads
 * ---------------------------------------------------------------------- */

.luthje-form {
	display: grid;
	gap: 14px;
	padding: 26px;
	background: var(--luthje-surface);
	border-radius: var(--luthje-radius);
	box-shadow: var(--luthje-shadow);
}

.luthje-form--compact {
	padding: 20px;
	gap: 10px;
	box-shadow: var(--luthje-shadow-sm);
}

.luthje-form__title {
	margin: 0;
	font-size: 1.15rem;
}

.luthje-field {
	display: grid;
	gap: 5px;
}

.luthje-field label {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--luthje-heading);
}

.luthje-field input[type="text"],
.luthje-field input[type="tel"],
.luthje-field input[type="email"],
.luthje-field textarea {
	width: 100%;
	padding: 13px 14px;
	font-family: inherit;
	font-size: 1rem;
	color: var(--luthje-ink);
	background: var(--luthje-surface);
	border: 1px solid var(--luthje-border);
	border-radius: var(--luthje-radius-sm);
	transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.luthje-field input:focus,
.luthje-field textarea:focus {
	border-color: var(--luthje-primary);
	box-shadow: 0 0 0 3px rgba(0, 99, 118, 0.14);
	outline: none;
}

.luthje-field [aria-invalid="true"] {
	border-color: var(--luthje-error);
}

.luthje-field__error {
	font-size: 0.78rem;
	color: var(--luthje-error);
}

.luthje-field__error:empty {
	display: none;
}

.luthje-field--check label {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-size: 0.82rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--luthje-text);
}

/* Honeypot: se mantiene en el DOM pero fuera de la vista. */
.luthje-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.luthje-form__actions {
	display: grid;
	gap: 8px;
	margin-top: 4px;
}

.luthje-form__micro {
	margin: 0;
	font-size: 0.75rem;
	text-align: center;
	color: var(--luthje-muted);
}

.luthje-form__status {
	margin: 0;
	font-size: 0.85rem;
}

.luthje-form__status:empty {
	display: none;
}

.luthje-form__status.is-error {
	color: var(--luthje-error);
}

.luthje-form__status.is-success {
	color: var(--luthje-success);
}

.luthje-form__success {
	display: grid;
	justify-items: center;
	gap: 8px;
	padding: 16px 0;
	text-align: center;
}

.luthje-form__success[hidden] {
	display: none;
}

.luthje-form__success .luthje-icon {
	color: var(--luthje-success);
}

.luthje-form__success h3 {
	margin: 0;
}

.luthje-form__success p {
	margin: 0 0 8px;
	font-size: 0.9rem;
}

/* -------------------------------------------------------------------------
 * Listas y utilidades compartidas
 * ---------------------------------------------------------------------- */

.luthje-checklist {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.luthje-checklist li {
	display: grid;
	grid-template-columns: 20px 1fr;
	gap: 10px;
	align-items: start;
	font-size: 0.95rem;
}

.luthje-checklist .luthje-icon {
	margin-top: 4px;
	color: var(--luthje-primary);
}

.luthje-icon {
	flex: none;
	vertical-align: middle;
}

/* -------------------------------------------------------------------------
 * Cabecera y pie de las páginas que no son landing
 * ---------------------------------------------------------------------- */

.site-header {
	border-bottom: 1px solid var(--luthje-border);
	background: var(--luthje-surface);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 16px 0;
}

.site-branding img {
	max-height: 56px;
	width: auto;
}

.site-title {
	margin: 0;
	font-size: 1.15rem;
}

.site-title a {
	text-decoration: none;
}

.site-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: none;
	color: var(--luthje-heading);
}

.site-nav a:hover {
	color: var(--luthje-primary);
}

.site-main {
	padding: clamp(32px, 5vw, 64px) 0;
}

.site-footer {
	padding: 40px 0;
	background: var(--luthje-bg);
	border-top: 1px solid var(--luthje-border);
	font-size: 0.9rem;
}

.site-footer a {
	color: var(--luthje-primary);
}

.entry-content > * + * {
	margin-top: 1.2em;
}

.entry-title {
	margin-bottom: 0.4em;
}

/* -------------------------------------------------------------------------
 * Convivencia con Elementor
 *
 * El tema no impone estilos sobre los widgets: solo asegura que el contenedor
 * de Elementor pueda ocupar todo el ancho cuando la plantilla es full width.
 * ---------------------------------------------------------------------- */

.elementor-page .site-main {
	padding: 0;
}

.elementor-page .luthje-container {
	max-width: none;
	padding: 0;
}
