/*
 * Additions to the OPW Sales landing.
 *
 * Separate from cotizaya-compat.css on purpose: that file only removes what
 * WordPress and Elementor add, while this one holds the styles for pieces the
 * original design did not have (a contact section, legal pages, the active
 * menu state). Everything here reuses the design's own tokens and copies the
 * spacing and radii of the sections it sits next to.
 */

/* ------------------------------------------------------------- contacto -- */

.contact-section {
	padding: 96px 0;
	background-color: var(--bg-light);
}

.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.35fr;
	gap: 32px;
	align-items: start;
	max-width: 1000px;
	margin: 0 auto;
}

.contact-lead {
	font-size: 16px;
	line-height: 1.65;
	color: var(--text-muted);
	margin-bottom: 28px;
}

.contact-channels {
	display: flex;
	flex-direction: column;
	gap: 18px;
	list-style: none;
}

.contact-channel {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.contact-channel-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border-radius: var(--radius-sm);
	background-color: rgba(16, 185, 129, 0.1);
	color: var(--primary-dark);
}

.contact-channel-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-light);
	margin-bottom: 2px;
}

.contact-channel-value {
	font-size: 15px;
	font-weight: 600;
	color: var(--text-main);
}

a.contact-channel-value:hover {
	color: var(--primary-dark);
}

.contact-card {
	background-color: var(--bg-white);
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	padding: 32px;
	box-shadow: var(--shadow-sm);
}

.contact-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.contact-field-wide {
	grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 13px 15px;
	font-family: inherit;
	font-size: 14px;
	color: var(--text-main);
	background-color: var(--bg-light);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form textarea {
	min-height: 130px;
	resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
	color: var(--text-light);
}

.contact-form input:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.contact-form .btn {
	width: 100%;
}

.contact-note {
	font-size: 12.5px;
	color: var(--text-light);
	text-align: center;
}

@media (max-width: 900px) {
	.contact-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.contact-form {
		grid-template-columns: 1fr;
	}
}

/* --------------------------------------------------------- menú activo -- */

/* The entry for the section currently on screen. Same colour the hover state
   already uses, plus weight, so it reads as position and not as a hover. */
.nav-link.is-active {
	color: var(--primary-dark);
	font-weight: 700;
}

.mobile-nav-link.is-active {
	color: var(--primary-dark);
}

/* ---------------------------------------------------------------- legal -- */

.legal-page {
	padding: 72px 0 96px;
	background-color: var(--bg-white);
}

.legal-body {
	max-width: 780px;
	margin: 0 auto;
}

.legal-body h1 {
	font-size: clamp(28px, 3.5vw, 42px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -1px;
	color: var(--text-main);
	margin-bottom: 12px;
}

.legal-updated {
	display: block;
	font-size: 13px;
	color: var(--text-light);
	margin-bottom: 40px;
}

.legal-body h2 {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--text-main);
	margin-top: 36px;
	margin-bottom: 12px;
}

.legal-body p,
.legal-body li {
	font-size: 15.5px;
	line-height: 1.75;
	color: var(--text-muted);
}

.legal-body p {
	margin-bottom: 16px;
}

.legal-body ul {
	margin: 0 0 16px 20px;
}

.legal-body li {
	margin-bottom: 8px;
}

.legal-body strong {
	color: var(--text-main);
	font-weight: 700;
}

/* A paragraph flagged as still needing legal review. Built like the design's
   own panels: a full 1px border and a tinted ground, no side rule. */
.legal-body .legal-pending {
	border: 1px solid #FED7AA;
	background-color: #FFF7ED;
	padding: 14px 18px;
	border-radius: var(--radius-md);
	color: #9A3412;
}

/* ------------------------------------------------------- aterrizaje de anclas -- */

/* The design offsets anchors by 90px, which under a 77px header leaves the
   section wedged 13px below it: it reads as stopping short of the content.
   This gives it room to breathe without moving anything else on the page. */
section[id] {
	scroll-margin-top: 112px;
}

/* -------------------------------------------------- estado del formulario -- */

.contact-notice {
	margin-bottom: 20px;
	padding: 13px 16px;
	border-radius: var(--radius-sm);
	border: 1px solid transparent;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
}

.contact-notice-ok {
	border-color: rgba(16, 185, 129, 0.35);
	background-color: rgba(16, 185, 129, 0.08);
	color: var(--primary-deep);
}

.contact-notice-error {
	border-color: #FED7AA;
	background-color: #FFF7ED;
	color: #9A3412;
}

/* The Turnstile widget sits above the button, aligned with the fields. */
.contact-turnstile {
	min-height: 65px;
}

/* A bait field for bots: out of sight, out of the tab order, never read aloud. */
.contact-honeypot {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
