/* =========================================================================
   PÁGINA DE CONTACTO
   Hereda los tokens del tema. Prefijo cx- para no chocar con nada existente.
   ========================================================================= */

.cx-hero {
	padding: 58px 40px 62px;
	background: linear-gradient(135deg, #002d38 0%, #004050 55%, #051c24 100%);
	color: #fff;
}

.cx-hero__inner { max-width: 1180px; margin: 0 auto; }

.cx-migas {
	font-family: 'Roboto', sans-serif;
	font-size: 13px;
	color: #9abac0;
	margin-bottom: 14px;
}
.cx-migas a { color: #9abac0; text-decoration: none; }
.cx-migas a:hover { color: var(--accent, #e07f0e); }
.cx-migas span[aria-current] { color: var(--accent, #e07f0e); font-weight: 500; }

.cx-eyebrow {
	margin: 0 0 10px;
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--accent, #e07f0e);
}

.cx-hero__titulo {
	margin: 0 0 14px;
	font-family: 'Archivo', sans-serif;
	font-size: clamp(30px, 4.4vw, 44px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -.02em;
	color: #fff;
}

.cx-hero__bajada {
	margin: 0;
	max-width: 620px;
	font-family: 'Roboto', sans-serif;
	font-weight: 300;
	font-size: 18px;
	line-height: 1.55;
	color: #c2d8dc;
}

/* --- Contenedor ---------------------------------------------------------- */

.cx-wrap { max-width: 1180px; margin: 0 auto; padding: 46px 40px 70px; }

.cx-grid {
	display: grid;
	grid-template-columns: 330px 1fr;
	gap: 46px;
	align-items: start;
}

/* --- Avisos de resultado -------------------------------------------------- */

.cx-aviso {
	display: flex;
	gap: 13px;
	align-items: flex-start;
	margin-bottom: 30px;
	padding: 18px 22px;
	border-radius: 10px;
	font-family: 'Roboto', sans-serif;
	font-size: 15px;
	line-height: 1.55;
}
.cx-aviso strong { font-family: 'Archivo', sans-serif; font-weight: 700; }
.cx-aviso a { color: inherit; font-weight: 500; }

.cx-aviso--ok {
	background: #eef7f0;
	border: 1.5px solid #b9dcc4;
	color: #1d5b31;
}
.cx-aviso--error {
	background: #fdf4f3;
	border: 1.5px solid #f0c8c3;
	color: #96271a;
}
.cx-aviso svg { flex-shrink: 0; margin-top: 1px; }

/* --- Columna de contacto directo ----------------------------------------- */

.cx-lado { display: flex; flex-direction: column; gap: 22px; }

.cx-via { display: flex; gap: 14px; align-items: flex-start; }

.cx-via__icono {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 9px;
	background: #eef4f5;
	color: var(--primary, #004050);
}
.cx-via__icono--wa { background: #eaf7ee; color: #1c7c3f; }

.cx-via h2 {
	margin: 0 0 3px;
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #7d9096;
}

.cx-via__dato {
	display: block;
	font-family: 'Archivo', sans-serif;
	font-size: 17px;
	font-weight: 700;
	color: var(--primary-dark, #08252d);
	text-decoration: none;
	transition: color .16s ease;
}
.cx-via__dato:hover { color: var(--accent, #e07f0e); }

.cx-via p {
	margin: 3px 0 0;
	font-family: 'Roboto', sans-serif;
	font-size: 13px;
	font-weight: 300;
	color: #6b7c80;
}

.cx-domicilio {
	margin: 2px 0 0;
	font-family: 'Roboto', sans-serif;
	font-size: 14.5px;
	font-style: normal;
	line-height: 1.55;
	color: #43585c;
}

.cx-mapa {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	margin-top: 7px;
	font-family: 'Archivo', sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: var(--primary, #004050);
	text-decoration: none;
}
.cx-mapa:hover { color: var(--accent, #e07f0e); }

/* --- Redes sociales ------------------------------------------------------- */

.cx-redes { padding-top: 4px; }

.cx-redes h2 {
	margin: 0 0 10px;
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #7d9096;
}

.cx-redes__fila { display: flex; gap: 9px; }

.cx-redes__fila a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1.5px solid #dde3e4;
	border-radius: 9px;
	color: #55686c;
	transition: border-color .16s ease, color .16s ease, background .16s ease, transform .16s ease;
}
.cx-redes__fila a:hover {
	border-color: var(--primary, #004050);
	background: var(--primary, #004050);
	color: #fff;
	transform: translateY(-2px);
}
.cx-redes__fila a:focus-visible {
	outline: 2px solid var(--accent, #e07f0e);
	outline-offset: 2px;
}

.cx-sello {
	margin-top: 6px;
	padding: 20px 22px;
	border-radius: 11px;
	background: var(--primary-dark, #08252d);
	color: #9db6bc;
}
.cx-sello strong {
	display: block;
	margin-bottom: 5px;
	font-family: 'Archivo', sans-serif;
	font-size: 22px;
	font-weight: 800;
	color: var(--accent, #e07f0e);
}
.cx-sello span {
	font-family: 'Roboto', sans-serif;
	font-size: 13.5px;
	font-weight: 300;
	line-height: 1.5;
}

/* --- Formulario ----------------------------------------------------------- */

.cx-panel {
	padding: 34px 36px 30px;
	border: 1.5px solid #e2e8e9;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(3, 29, 36, .05);
}

.cx-panel__titulo {
	margin: 0 0 7px;
	font-family: 'Archivo', sans-serif;
	font-size: 25px;
	font-weight: 800;
	letter-spacing: -.015em;
	color: var(--primary-dark, #08252d);
}

.cx-panel__bajada {
	margin: 0 0 26px;
	font-family: 'Roboto', sans-serif;
	font-size: 14.5px;
	font-weight: 300;
	line-height: 1.55;
	color: #6b7c80;
}

.cx-form { display: flex; flex-direction: column; gap: 16px; }

.cx-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.cx-campo { display: block; min-width: 0; }

.cx-label {
	display: block;
	margin-bottom: 5px;
	font-family: 'Archivo', sans-serif;
	font-size: 12.5px;
	font-weight: 600;
	color: #34484c;
}

.cx-opcional {
	font-family: 'Roboto', sans-serif;
	font-size: 11.5px;
	font-weight: 300;
	font-style: normal;
	color: #8a9a9e;
}

.cx-campo input,
.cx-campo select,
.cx-campo textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid #dde3e4;
	border-radius: 7px;
	background: #f6f8f8;
	font-family: 'Roboto', sans-serif;
	font-size: 15px;
	color: var(--primary-dark, #08252d);
	transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.cx-campo textarea { resize: vertical; min-height: 76px; }
.cx-campo input::placeholder,
.cx-campo textarea::placeholder { color: #9fadb1; }

.cx-campo input:hover,
.cx-campo select:hover,
.cx-campo textarea:hover { border-color: #c3cfd1; }

.cx-campo input:focus,
.cx-campo select:focus,
.cx-campo textarea:focus {
	outline: none;
	background: #fff;
	border-color: var(--primary, #004050);
	box-shadow: 0 0 0 3px rgba(0, 64, 80, .1);
}

/* El asunto es la primera decisión: se distingue del resto. */
.cx-campo--ancho select[name="asunto"] {
	font-family: 'Archivo', sans-serif;
	font-weight: 600;
	font-size: 15.5px;
	background: #fff;
	border-color: #c3cfd1;
}

.cx-equipo {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	padding: 11px 14px;
	border-radius: 7px;
	background: #eef4f5;
	font-family: 'Roboto', sans-serif;
	font-size: 14px;
	color: #34484c;
}
.cx-equipo strong { font-family: 'Archivo', sans-serif; font-weight: 700; }

/* Campo trampa: fuera de la vista pero accesible para quien rellena a ciegas */
.cx-trampa {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.cx-reto input { max-width: 220px; }

.cx-enviar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 6px;
	padding: 15px 28px;
	border: none;
	border-radius: 7px;
	background: var(--accent, #e07f0e);
	font-family: 'Archivo', sans-serif;
	font-size: 15.5px;
	font-weight: 700;
	color: #fff;
	cursor: pointer;
	transition: background .16s ease, transform .12s ease;
}
.cx-enviar:hover { background: var(--accent-hover, #c86e06); }
.cx-enviar:active { transform: translateY(1px); }
.cx-enviar:focus-visible {
	outline: 2px solid var(--primary, #004050);
	outline-offset: 2px;
}

.cx-privacidad {
	margin: 2px 0 0;
	font-family: 'Roboto', sans-serif;
	font-size: 12.5px;
	font-weight: 300;
	line-height: 1.55;
	color: #7d9096;
}
.cx-privacidad a { color: var(--primary, #004050); font-weight: 500; }

/* --- Móvil ---------------------------------------------------------------- */

@media (max-width: 900px) {
	.cx-hero { padding: 40px 22px 44px; }
	.cx-wrap { padding: 32px 22px 50px; }
	.cx-grid { grid-template-columns: 1fr; gap: 34px; }
	.cx-panel { padding: 26px 22px 24px; }
	.cx-fila { grid-template-columns: 1fr; }
	.cx-enviar { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.cx-enviar,
	.cx-via__dato,
	.cx-redes__fila a,
	.cx-campo input,
	.cx-campo select,
	.cx-campo textarea { transition: none; }
	.cx-redes__fila a:hover { transform: none; }
}
