/*
 * "¿Cómo preparar tu equipo?" page (child theme nexus).
 * Enqueued only on page slug como-preparar-tu-equipo. Everything scoped under .nx-prep.
 * Source design: design/nexus.pen (desktop 1440) + design/exports (768 tablet, 390 mobile).
 * Font: site Sansation (no Lato). Buttons: theme style (radius 0, 12px 24px, 18px, uppercase).
 */
/* Site Sansation files (same uploads Elementor Pro custom fonts uses; that inline
   CSS is only printed on Elementor pages, so declare them here for this template). */
@font-face { font-family: 'Sansation'; font-style: normal; font-weight: 400; font-display: swap; src: url('/wp-content/uploads/2022/08/SansationRegular.woff2') format('woff2'); }
@font-face { font-family: 'Sansation'; font-style: normal; font-weight: 700; font-display: swap; src: url('/wp-content/uploads/2022/08/SansationBold.woff2') format('woff2'); }

.nx-prep-page .wd-page-content > .wd-content-layout,
.nx-prep-page #main-content { padding: 0; max-width: none; }
.nx-prep-area { width: 100%; padding: 0; }

.nx-prep {
	--nx-primary: #00264F;
	--nx-primary-deep: #001A37;
	--nx-secondary: #56ACDE;
	--nx-secondary-soft: #E7F2FA;
	--nx-text: #454545;
	--nx-text-soft: #6B7785;
	--nx-bg: #FBFBFD;
	--nx-white: #FFFFFF;
	--nx-line: #E3E8EF;
	--nx-on-dark: #C2D6E8;
	--nx-tint: #F2F7FB;
	--nx-pad: 150px;
	font-family: 'Sansation', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--nx-text);
	background: var(--nx-bg);
	overflow-x: clip;
}
.nx-prep *, .nx-prep *::before, .nx-prep *::after { box-sizing: border-box; }
.nx-prep h1, .nx-prep h2, .nx-prep h3 {
	font-family: 'Sansation', sans-serif;
	font-weight: 700;
	color: var(--nx-primary);
	margin: 0;
	text-transform: none;
	letter-spacing: 0;
}
.nx-prep p { margin: 0; }
.nx-prep ul, .nx-prep ol { list-style: none; margin: 0; padding: 0; }
.nx-prep li { margin: 0; }
.nx-prep img { display: block; max-width: 100%; height: auto; }
.nx-prep .nx-icon { flex: none; display: block; }
.nx-prep a { color: inherit; }

.nx-wrap { width: 100%; max-width: calc(1140px + 2 * var(--nx-pad)); margin: 0 auto; padding: 0 var(--nx-pad); }

/* Buttons: match theme (Elementor kit) buttons */
.nx-prep .nx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 24px;
	border: 1px solid var(--nx-primary);
	border-radius: 0;
	font-family: 'Sansation', sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: none;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.nx-prep .nx-btn--primary { background: var(--nx-primary); color: var(--nx-white); }
.nx-prep .nx-btn--outline { background: transparent; color: var(--nx-primary); }
/* Theme hover: background switches to global secondary #56ACDE */
.nx-prep .nx-btn:hover, .nx-prep .nx-btn:focus-visible {
	background: var(--nx-secondary);
	border-color: var(--nx-secondary);
	color: var(--nx-white);
}
.nx-prep .nx-btn:focus-visible, .nx-prep a:focus-visible { outline: 2px solid var(--nx-secondary); outline-offset: 3px; }
.nx-actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 12px; }

.nx-kicker {
	color: var(--nx-secondary);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	line-height: 1.3;
}
.nx-prep .nx-title { font-size: 40px; line-height: 1.15; }

/* Hero */
.nx-hero {
	background: var(--nx-white) url(../img/como-preparar/hero-bg.webp) center / cover no-repeat;
	padding: 84px 0 96px;
	min-height: 572px;
}
.nx-hero__row { display: flex; gap: 72px; align-items: flex-start; }
.nx-hero__copy { flex: 1 1 auto; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.nx-eyebrow {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px;
	background: var(--nx-secondary-soft);
	border: 1px solid var(--nx-secondary);
	border-radius: 100px;
	color: var(--nx-primary);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
}
.nx-prep h1 { font-size: 62px; line-height: 1.1; }
.nx-lead { font-size: 19px; line-height: 1.6; }

.nx-safety {
	flex: 0 0 400px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 32px;
	background: var(--nx-white);
	border: 1px solid var(--nx-line);
	border-radius: 12px;
	box-shadow: 0 20px 40px -20px rgba(0, 38, 79, .18);
}
.nx-safety__head { display: flex; align-items: center; gap: 12px; }
.nx-safety__icon {
	width: 44px; height: 44px; flex: none;
	display: flex; align-items: center; justify-content: center;
	background: var(--nx-secondary-soft); border-radius: 10px; color: var(--nx-primary);
}
.nx-prep .nx-safety h2 { font-size: 20px; line-height: 1.3; }
.nx-safety p { font-size: 15px; line-height: 1.7; }
.nx-safety hr { border: 0; border-top: 1px solid var(--nx-line); margin: 0; }
.nx-prep .nx-safety__note { display: flex; gap: 10px; font-size: 14px; color: var(--nx-text-soft); line-height: 1.5; }
.nx-safety__note .nx-icon { color: var(--nx-secondary); margin-top: 1px; }

/* Choose device */
.nx-choose { background: var(--nx-tint); padding: 88px 0; }
.nx-choose__head { display: flex; align-items: flex-end; gap: 40px; margin-bottom: 36px; }
.nx-choose__head > div { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.nx-choose__note { flex: 0 0 360px; color: var(--nx-text-soft); font-size: 16px; }
.nx-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.nx-prep .nx-card {
	display: flex; flex-direction: column;
	border: 1px solid var(--nx-line); border-radius: 14px; overflow: hidden;
	text-decoration: none; background: var(--nx-bg);
	transition: box-shadow .2s ease, transform .2s ease;
}
.nx-prep .nx-card:hover { box-shadow: 0 16px 32px -18px rgba(0, 38, 79, .3); transform: translateY(-2px); }
.nx-card__media { height: 200px; background: var(--nx-white); display: flex; align-items: center; justify-content: center; }
.nx-card__media img, .nx-device__media img { width: 100%; height: 100%; object-fit: contain; }
.nx-card__body { display: flex; flex-direction: column; gap: 8px; padding: 24px 26px 28px; }
.nx-card__name { color: var(--nx-primary); font-size: 24px; font-weight: 700; line-height: 1.2; }
.nx-card__sub { color: var(--nx-text-soft); font-size: 14px; line-height: 1.5; }
.nx-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; color: var(--nx-secondary); }
.nx-pill {
	display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
	background: var(--nx-secondary-soft); border-radius: 100px;
	color: var(--nx-primary); font-size: 13px; font-weight: 700; line-height: 1.2;
}

/* Device sections */
.nx-device { padding: 80px 0; background: var(--nx-white); scroll-margin-top: 90px; }
.nx-device--tint { background: var(--nx-tint); }
.nx-device__row { display: flex; align-items: center; gap: 72px; }
.nx-device__aside { flex: 0 0 360px; display: flex; flex-direction: column; gap: 20px; }
.nx-device__media {
	display: block; height: 190px; padding: 10px;
	background: var(--nx-white); border: 1px solid var(--nx-line); border-radius: 14px;
}
.nx-prep .nx-device h2 { font-size: 38px; line-height: 1.15; }
.nx-prep .nx-source {
	display: inline-flex; align-items: center; gap: 8px; padding-top: 12px;
	color: var(--nx-secondary); font-size: 15px; font-weight: 700; text-decoration: none;
}
.nx-prep .nx-source:hover { color: var(--nx-primary); }
.nx-steps { flex: 1; min-width: 0; }
.nx-step { display: flex; gap: 22px; padding: 22px 0 24px; }
.nx-step + .nx-step { border-top: 1px solid var(--nx-line); }
.nx-step__num {
	width: 40px; height: 40px; flex: none; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--nx-primary); color: var(--nx-white); font-size: 17px; font-weight: 700;
}
.nx-step__text { display: flex; flex-direction: column; gap: 7px; padding-top: 4px; }
.nx-prep .nx-step h3 { font-size: 19px; line-height: 1.3; }
.nx-step p { font-size: 16px; line-height: 1.65; }

/* What to bring */
.nx-bring { background: var(--nx-primary); padding: 80px 0 84px; }
.nx-bring .nx-kicker { margin-bottom: 10px; }
.nx-prep .nx-bring .nx-title { color: var(--nx-white); margin-bottom: 40px; }
.nx-bring__items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.nx-bring__item {
	display: flex; flex-direction: column; gap: 14px; padding: 26px 24px 28px;
	background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); border-radius: 12px;
}
.nx-bring__item .nx-icon { color: var(--nx-secondary); }
.nx-prep .nx-bring__item h3 { color: var(--nx-white); font-size: 18px; line-height: 1.3; }
.nx-bring__item p { color: var(--nx-on-dark); font-size: 14px; line-height: 1.6; }

/* CTA */
.nx-cta { background: var(--nx-tint); padding: 80px 0; }
.nx-cta__row { display: flex; align-items: center; gap: 72px; }
.nx-cta__copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.nx-cta__copy > p { font-size: 17px; line-height: 1.7; }
.nx-cta__copy > p a { color: var(--nx-primary); font-weight: 700; text-decoration: underline; }
.nx-cta .nx-actions { padding-top: 10px; }
.nx-prep .nx-data {
	flex: 0 0 400px; display: flex; flex-direction: column; gap: 20px; padding: 32px;
	background: var(--nx-white); border: 1px solid var(--nx-line); border-radius: 14px;
}
.nx-data li { display: flex; gap: 14px; }
.nx-data li + li { border-top: 1px solid var(--nx-line); padding-top: 20px; }
.nx-data .nx-icon { color: var(--nx-secondary); margin-top: 2px; }
.nx-data div { display: flex; flex-direction: column; gap: 4px; }
.nx-data strong { color: var(--nx-primary); font-size: 16px; font-weight: 700; line-height: 1.3; }
.nx-data span { font-size: 14px; line-height: 1.6; color: var(--nx-text); }
.nx-data a { text-decoration: none; }
.nx-data a:hover { color: var(--nx-secondary); }

/* Note */
.nx-note { background: var(--nx-white); padding: 28px 0 36px; }
.nx-prep .nx-note p { font-size: 13px; color: var(--nx-text-soft); text-align: center; line-height: 1.7; }

/* Tablet (design exports at 768px) */
@media (max-width: 1199px) {
	.nx-prep { --nx-pad: 48px; }
	.nx-hero { background-image: url(../img/como-preparar/hero-bg-tablet.webp); background-position: right top; padding: 56px 0 64px; min-height: 0; }
	.nx-hero__row { flex-direction: column; gap: 36px; }
	.nx-safety { flex: none; width: 100%; }
	.nx-prep h1 { font-size: 48px; }
	.nx-lead { font-size: 18px; }
	.nx-choose { padding: 64px 0; }
	.nx-choose__head { gap: 32px; margin-bottom: 28px; }
	.nx-choose__note { flex-basis: 280px; }
	.nx-cards { gap: 18px; }
	.nx-card__media { height: 150px; }
	.nx-card__body { padding: 20px 24px 24px; }
	.nx-prep .nx-title { font-size: 34px; }
	.nx-device { padding: 64px 0; }
	.nx-device__row { gap: 44px; }
	.nx-device__aside { flex-basis: 240px; }
	.nx-device__media { height: 150px; }
	.nx-prep .nx-device h2 { font-size: 32px; }
	.nx-step { gap: 18px; }
	.nx-step p { font-size: 15px; }
	.nx-bring { padding: 64px 0; }
	.nx-bring__items { grid-template-columns: repeat(2, 1fr); gap: 18px; }
	.nx-cta { padding: 64px 0; }
	.nx-cta__row { flex-direction: column; align-items: stretch; gap: 36px; }
	.nx-prep .nx-data { flex: none; width: 100%; }
}

/* Mobile (design exports at 390px) */
@media (max-width: 767px) {
	.nx-prep { --nx-pad: 24px; }
	.nx-hero { background-image: url(../img/como-preparar/hero-bg-mobile.webp); background-position: center bottom; padding: 44px 0 52px; }
	.nx-hero__copy { gap: 20px; }
	.nx-prep h1 { font-size: 34px; line-height: 1.15; }
	.nx-lead { font-size: 17px; }
	.nx-actions { flex-direction: column; gap: 12px; }
	.nx-prep .nx-btn { width: 100%; padding: 16px 24px; }
	.nx-safety { padding: 28px 24px; }
	.nx-safety__head { flex-direction: column; align-items: flex-start; gap: 16px; }
	.nx-prep .nx-title { font-size: 28px; }
	.nx-choose { padding: 56px 0; }
	.nx-choose__head { flex-direction: column; align-items: stretch; gap: 12px; }
	.nx-choose__note { flex: none; }
	.nx-cards { grid-template-columns: 1fr; gap: 16px; }
	.nx-card__media { height: 170px; }
	.nx-card__body { padding: 22px 26px 24px; }
	.nx-device { padding: 56px 0; }
	.nx-device__row { flex-direction: column; align-items: stretch; gap: 28px; }
	.nx-device__aside { flex: none; gap: 16px; }
	.nx-device__media { height: 170px; }
	.nx-prep .nx-device h2 { font-size: 28px; }
	.nx-prep .nx-source { padding-top: 4px; }
	.nx-step p { font-size: 15px; }
	.nx-bring { padding: 56px 0; }
	.nx-prep .nx-bring .nx-title { margin-bottom: 28px; }
	.nx-bring__items { grid-template-columns: 1fr; gap: 16px; }
	.nx-cta { padding: 56px 0; }
	.nx-cta__row { gap: 28px; }
	.nx-prep .nx-data { padding: 28px 24px; }
	.nx-note { padding: 28px 0 36px; }
}

@media (prefers-reduced-motion: reduce) {
	.nx-prep .nx-card, .nx-prep .nx-btn { transition: none; }
	.nx-prep .nx-card:hover { transform: none; }
}
