/*
 * Página "Contacto" — TECSA (Figma PAGINA-TECSA-DESIGN, artboard 165:4582,
 * frame Desktop).
 *
 * Entry de la página: reutiliza tokens (:root), reset .lp, botones .lp-btn,
 * navbar y footer importando landing.css. Debajo van sólo las secciones propias
 * de esta página, con prefijo nuevo `.lp-cpag*` para no chocar con las otras
 * páginas (`.lp-eco*`, `.lp-ecopag*`, `.lp-abhero`, `.lp-qtecsa`, `.lp-pres`,
 * `.lp-ncta`).
 * Base de diseño: 1899px. Breakpoints del tema: tablet ≤1024, móvil ≤600.
 */

@import url('landing.css');

/* ====================================================================
   HERO CONTACTO (navy + foto de oficina a la derecha)
   ==================================================================== */
.lp-cpag-hero {
	background-color: var(--st-navy);
	background-image:
		linear-gradient(90deg, var(--st-navy) 0%, var(--st-navy) 24%, rgba(10, 22, 40, 0.55) 50%, rgba(10, 22, 40, 0.10) 100%),
		url('../img/contacto-hero.webp');
	background-size: cover;
	background-position: right center;
	background-repeat: no-repeat;
}
.lp-cpag-hero__inner {
	max-width: var(--st-maxw);
	margin: 0 auto;
	padding: clamp(56px, 7vw, 104px) var(--st-pad-x);
	min-height: clamp(360px, 34vw, 480px);
	display: flex;
	align-items: center;
}
.lp-cpag-hero__content { max-width: 600px; }
.lp-cpag-hero__eyebrow {
	margin: 0 0 6px;
	color: var(--st-accent);
	font-weight: 700;
	font-size: clamp(15px, 1.4vw, 20px);
	line-height: 1.2;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}
.lp-cpag-hero__title {
	margin: 0 0 20px;
	color: #fff;
	font-weight: 800;
	font-size: clamp(38px, 5vw, 64px);
	line-height: 1.02;
	letter-spacing: -0.5px;
	text-transform: uppercase;
}
.lp-cpag-hero__text {
	margin: 0 0 30px;
	color: rgba(255, 255, 255, 0.82);
	font-weight: 400;
	font-size: clamp(14px, 1vw, 16px);
	line-height: 1.7;
}
.lp-cpag-hero__btn { padding: 13px 24px; }
.lp-cpag-hero__btn svg { width: 16px; height: 16px; }

/* ====================================================================
   CANALES DE CONTACTO (blanco, contenedor con 4 celdas)
   ==================================================================== */
.lp-cpag-chan {
	background: var(--st-bg);
	padding: clamp(52px, 6vw, 92px) var(--st-pad-x);
}
.lp-cpag-chan__inner {
	max-width: 1320px;
	margin: 0 auto;
}
.lp-cpag-chan__head { text-align: center; margin-bottom: clamp(32px, 4vw, 52px); }
.lp-cpag-chan__eyebrow {
	margin: 0 0 8px;
	color: var(--st-accent);
	font-weight: 700;
	font-size: clamp(12px, 0.95vw, 14px);
	letter-spacing: 1.5px;
	text-transform: uppercase;
}
.lp-cpag-chan__title {
	margin: 0;
	color: var(--st-navy);
	font-weight: 700;
	font-size: clamp(26px, 3vw, 40px);
	line-height: 1.2;
}
.lp-cpag-chan__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border: 1px solid #e6ebf2;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(10, 22, 40, 0.05);
	overflow: hidden;
	margin: 0;
	padding: 0;
	list-style: none;
}
.lp-cpag-chan__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 12px;
	padding: clamp(28px, 3vw, 40px) clamp(16px, 1.6vw, 24px);
	border-left: 1px solid #eef2f7;
}
.lp-cpag-chan__item:first-child { border-left: 0; }
.lp-cpag-chan__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	color: var(--st-accent-2);
}
.lp-cpag-chan__icon svg { width: 28px; height: 28px; }
.lp-cpag-chan__label {
	margin: 0;
	color: var(--st-muted);
	font-weight: 600;
	font-size: clamp(10.5px, 0.85vw, 12px);
	letter-spacing: 1px;
	text-transform: uppercase;
}
.lp-cpag-chan__data {
	display: flex;
	flex-direction: column;
	gap: 3px;
	color: var(--st-navy);
	font-weight: 600;
	font-size: clamp(13px, 1vw, 15px);
	line-height: 1.5;
}
.lp-cpag-chan__data a { color: var(--st-navy); }
.lp-cpag-chan__data a:hover { color: var(--st-accent-2); }

/* ====================================================================
   FORMULARIO (banda gris, 2 columnas: form + ayuda)
   ==================================================================== */
.lp-cpag-form {
	background: #f4f7fb;
	padding: clamp(20px, 3vw, 40px) var(--st-pad-x) clamp(52px, 6vw, 92px);
}
.lp-cpag-form__inner {
	max-width: 1320px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(24px, 3vw, 40px);
	align-items: start;
}
.lp-cpag-form__col { min-width: 0; }
.lp-cpag-form__card {
	background: #fff;
	border: 1px solid #e6ebf2;
	border-radius: 16px;
	box-shadow: 0 12px 32px rgba(10, 22, 40, 0.06);
	padding: clamp(24px, 2.6vw, 40px);
}
.lp-cpag-form__title {
	margin: 0 0 24px;
	color: var(--st-navy);
	font-weight: 700;
	font-size: clamp(18px, 1.5vw, 22px);
}

/* Campos */
.lp-cpag-form__form { display: flex; flex-direction: column; gap: 16px; }
.lp-cpag-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.lp-cpag-form__field { display: flex; flex-direction: column; gap: 7px; }
.lp-cpag-form__field label {
	color: var(--st-navy);
	font-weight: 600;
	font-size: 13px;
}
.lp-cpag-form__field input,
.lp-cpag-form__field textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #d9e1ec;
	border-radius: 8px;
	padding: 12px 14px;
	font-family: var(--st-font);
	font-size: 14px;
	color: var(--st-navy);
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.lp-cpag-form__field textarea { resize: vertical; min-height: 110px; }
.lp-cpag-form__field input::placeholder,
.lp-cpag-form__field textarea::placeholder { color: #9aa6b6; }
.lp-cpag-form__field input:focus,
.lp-cpag-form__field textarea:focus {
	outline: none;
	border-color: var(--st-accent-2);
	box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.15);
}
.lp-cpag-form__submit {
	margin-top: 4px;
	width: 100%;
	padding: 14px 24px;
	font-size: 14px;
}

/* Temas rápidos (chips) */
.lp-cpag-form__temas { margin-top: 26px; }
.lp-cpag-form__temas-title {
	margin: 0 0 14px;
	color: var(--st-muted);
	font-weight: 600;
	font-size: 11px;
	letter-spacing: 1px;
	text-transform: uppercase;
}
.lp-cpag-form__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.lp-cpag-form__chip {
	appearance: none;
	-webkit-appearance: none;
	padding: 8px 16px;
	border: 1px solid #d9e1ec;
	border-radius: 999px;
	color: var(--st-navy);
	font: 500 12.5px/1.2 inherit;
	background: #fff;
	cursor: pointer;
	transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.lp-cpag-form__chip:hover { border-color: var(--st-accent-2); color: var(--st-accent-2); }
.lp-cpag-form__chip.is-active {
	border-color: var(--st-accent-2);
	color: #fff;
	background: var(--st-accent-2);
}

/* Honeypot anti-spam (oculto para humanos). */
.lp-cpag-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Aviso de envío del formulario. */
.lp-cpag-form__notice {
	margin: 0 0 18px;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.4;
}
.lp-cpag-form__notice--ok {
	background: rgba( 22, 163, 74, 0.10 );
	border: 1px solid rgba( 22, 163, 74, 0.35 );
	color: #15803d;
}
.lp-cpag-form__notice--err {
	background: rgba( 220, 38, 38, 0.08 );
	border: 1px solid rgba( 220, 38, 38, 0.35 );
	color: #b91c1c;
}

/* Ayuda (card blanca) */
.lp-cpag-form__help {
	background: #fff;
	border: 1px solid #e6ebf2;
	border-radius: 16px;
	box-shadow: 0 12px 32px rgba(10, 22, 40, 0.06);
	padding: clamp(24px, 2.6vw, 40px);
}
.lp-cpag-form__help-title {
	margin: 0 0 6px;
	color: var(--st-navy);
	font-weight: 700;
	font-size: clamp(18px, 1.5vw, 22px);
}
.lp-cpag-form__help-sub {
	margin: 0 0 22px;
	color: var(--st-muted);
	font-size: 14px;
	line-height: 1.6;
}
.lp-cpag-form__areas {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}
.lp-cpag-form__area {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 0;
	border-top: 1px solid #eef2f7;
	cursor: pointer;
	text-decoration: none;
	color: inherit;
}
.lp-cpag-form__area:first-child { border-top: 0; }
.lp-cpag-form__area-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background: rgba(0, 174, 239, 0.10);
	color: var(--st-accent-2);
}
.lp-cpag-form__area-icon svg { width: 22px; height: 22px; }
.lp-cpag-form__area-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lp-cpag-form__area-title {
	color: var(--st-navy);
	font-weight: 700;
	font-size: clamp(14px, 1.05vw, 16px);
}
.lp-cpag-form__area-text {
	color: var(--st-muted);
	font-size: clamp(12.5px, 0.9vw, 13.5px);
	line-height: 1.5;
}
.lp-cpag-form__area-arrow {
	margin-left: auto;
	flex: 0 0 auto;
	color: #c2cdda;
	display: inline-flex;
	transition: transform .15s ease, color .15s ease;
}
.lp-cpag-form__area-arrow svg { width: 18px; height: 18px; }
.lp-cpag-form__area:hover .lp-cpag-form__area-arrow { color: var(--st-accent-2); transform: translateX(3px); }

/* Card WhatsApp (navy) */
.lp-cpag-form__direct {
	margin-top: clamp(16px, 2vw, 24px);
	background: var(--st-navy);
	border-radius: 16px;
	padding: clamp(22px, 2.4vw, 32px);
	box-shadow: 0 16px 36px rgba(10, 22, 40, 0.18);
}
.lp-cpag-form__direct-title {
	margin: 0 0 8px;
	color: #fff;
	font-weight: 700;
	font-size: clamp(15px, 1.2vw, 18px);
}
.lp-cpag-form__direct-text {
	margin: 0 0 18px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 13.5px;
	line-height: 1.6;
}
.lp-cpag-form__direct-btn { padding: 11px 20px; }
.lp-cpag-form__direct-btn svg { width: 16px; height: 16px; }

/* ====================================================================
   UBICACIÓN / MAPA (blanco, placeholder estilizado)
   ==================================================================== */
.lp-cpag-map {
	background: var(--st-bg);
	padding: clamp(52px, 6vw, 92px) var(--st-pad-x);
}
.lp-cpag-map__inner {
	max-width: 1320px;
	margin: 0 auto;
}
.lp-cpag-map__head { margin-bottom: clamp(24px, 3vw, 36px); }
.lp-cpag-map__eyebrow {
	margin: 0 0 8px;
	color: var(--st-accent);
	font-weight: 700;
	font-size: clamp(12px, 0.95vw, 14px);
	letter-spacing: 1.5px;
	text-transform: uppercase;
}
.lp-cpag-map__title {
	margin: 0;
	color: var(--st-navy);
	font-weight: 700;
	font-size: clamp(26px, 3vw, 40px);
	line-height: 1.2;
}
.lp-cpag-map__frame {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid #e6ebf2;
	min-height: clamp(320px, 34vw, 440px);
}
/* Placeholder: rejilla gris sutil imitando un mapa. */
.lp-cpag-map__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #e9edf3;
	background-image:
		linear-gradient(rgba(10, 22, 40, 0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(10, 22, 40, 0.06) 1px, transparent 1px);
	background-size: 25% 33.33%, 25% 33.33%;
}
.lp-cpag-map__pin {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	background: var(--st-accent);
	color: #fff;
	box-shadow: 0 10px 22px rgba(0, 174, 239, 0.4);
}
.lp-cpag-map__pin svg { width: 24px; height: 24px; transform: rotate(45deg); }
.lp-cpag-map__note {
	position: absolute;
	right: 14px;
	bottom: 10px;
	color: #93a0b2;
	font-size: 11px;
}
/* Iframe en vivo (cuando se active): ocupa todo el frame. */
.lp-cpag-map__embed {
	display: block;
	width: 100%;
	height: 100%;
	min-height: clamp(320px, 34vw, 440px);
	border: 0;
}
.lp-cpag-map__card {
	position: absolute;
	left: clamp(16px, 2vw, 28px);
	bottom: clamp(16px, 2vw, 28px);
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 12px 30px rgba(10, 22, 40, 0.16);
	padding: 16px 18px;
	max-width: 280px;
}
.lp-cpag-map__addr {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	color: var(--st-navy);
	font-weight: 600;
	font-size: 14px;
}
.lp-cpag-map__addr-ico { display: inline-flex; color: var(--st-accent-2); }
.lp-cpag-map__addr-ico svg { width: 18px; height: 18px; }
.lp-cpag-map__btn { padding: 10px 16px; font-size: 12.5px; }
.lp-cpag-map__btn svg { width: 15px; height: 15px; }

/* ====================================================================
   BANDA CTA "CONECTA CON EL ECOSISTEMA TECSA" (navy)
   ==================================================================== */
.lp-cpag-cta {
	background: var(--st-navy);
	padding: clamp(36px, 4vw, 56px) var(--st-pad-x);
}
.lp-cpag-cta__inner {
	max-width: var(--st-maxw);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(24px, 4vw, 56px);
	flex-wrap: wrap;
}
.lp-cpag-cta__lead {
	display: flex;
	align-items: center;
	gap: 18px;
	min-width: 0;
}
.lp-cpag-cta__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: rgba(0, 215, 243, 0.12);
	color: var(--st-accent);
}
.lp-cpag-cta__icon svg { width: 24px; height: 24px; }
.lp-cpag-cta__title {
	margin: 0 0 6px;
	color: #fff;
	font-weight: 700;
	font-size: clamp(18px, 1.7vw, 26px);
	line-height: 1.2;
}
.lp-cpag-cta__text {
	margin: 0;
	max-width: 620px;
	color: rgba(255, 255, 255, 0.72);
	font-size: clamp(13px, 0.95vw, 15px);
	line-height: 1.6;
}
.lp-cpag-cta__actions {
	display: flex;
	gap: 12px;
	flex: 0 0 auto;
}
.lp-cpag-cta__actions .lp-btn { padding: 13px 24px; }

/* ====================================================================
   RESPONSIVE
   ==================================================================== */
/* Tablet (≤1024): form a 1 columna, canales 4→2. */
@media (max-width: 1024px) {
	.lp-cpag-hero__content { max-width: 62%; }
	.lp-cpag-chan__grid { grid-template-columns: repeat(2, 1fr); }
	.lp-cpag-chan__item:nth-child(-n+2) { border-top: 0; }
	.lp-cpag-chan__item:nth-child(2) { border-left: 1px solid #eef2f7; }
	.lp-cpag-chan__item:nth-child(odd) { border-left: 0; }
	.lp-cpag-chan__item:nth-child(n+3) { border-top: 1px solid #eef2f7; }
	.lp-cpag-form__inner { grid-template-columns: 1fr; }
}

/* ≤820: la banda CTA apila los botones bajo el texto. */
@media (max-width: 820px) {
	.lp-cpag-cta__inner { flex-direction: column; align-items: flex-start; }
	.lp-cpag-cta__actions { width: 100%; }
	.lp-cpag-cta__actions .lp-btn { flex: 1 1 0; justify-content: center; }
}

/* Móvil (≤600): hero a ancho completo (gradiente más opaco), canales 1 col,
   fila empresa/teléfono apila. */
@media (max-width: 600px) {
	.lp-cpag-hero {
		background-image:
			linear-gradient(180deg, rgba(10, 22, 40, 0.72) 0%, rgba(10, 22, 40, 0.90) 100%),
			url('../img/contacto-hero.webp');
		background-position: center;
	}
	.lp-cpag-hero__content { max-width: 100%; }
	.lp-cpag-chan__grid { grid-template-columns: 1fr; }
	.lp-cpag-chan__item { border-left: 0 !important; border-top: 1px solid #eef2f7; }
	.lp-cpag-chan__item:first-child { border-top: 0; }
	.lp-cpag-form__row { grid-template-columns: 1fr; }
	.lp-cpag-map__card { left: 14px; right: 14px; bottom: 14px; max-width: none; }
}

/* ≤380: chips y botones del hero a ancho completo. */
@media (max-width: 380px) {
	.lp-cpag-hero__btn { width: 100%; }
	.lp-cpag-cta__actions { flex-direction: column; }
}
