:root {
	--navy: #10233d;
	--ink: #112945;
	--blue: #074e79;
	--sky: #eaf3f9;
	--paper: #fff;
	--muted: #40556b;
	--line: #cad8e3;
	--measure: 1280px;
	--gutter: clamp(18px, 4vw, 64px);
	--section-space: clamp(56px, 8vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 1rem/1.65 "Aptos", "Segoe UI", system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
}
img { max-inline-size: 100%; block-size: auto; vertical-align: middle; }
a { color: var(--blue); text-underline-offset: .19em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #0075ac; outline-offset: 4px; }
main:focus { outline: none; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.04em; margin: 0 0 .55em; }
h1 { font-size: clamp(2.5rem, 6.4vw, 5.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.65rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); }
p { margin: 0 0 1rem; }
.shell { width: min(var(--measure), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.lead { font-size: clamp(1.07rem, 1.65vw, 1.3rem); color: var(--muted); max-width: 53ch; line-height: 1.55; }
.skip-link {
	position: absolute;
	z-index: 10;
	top: .6rem;
	left: .6rem;
	padding: .75rem 1rem;
	background: var(--navy);
	color: white;
	transform: translateY(-180%);
}
.skip-link:focus { transform: none; }
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	max-width: 100%;
	padding: .65rem 1.23rem;
	border: 1px solid transparent;
	border-radius: 5px;
	background: var(--navy);
	color: #fff;
	font-weight: 650;
	line-height: 1.28;
	text-align: center;
	text-decoration: none;
	transition: background-color 140ms ease;
}
.button:hover { background: var(--blue); color: #fff; }
.button-light { background: white; color: var(--navy); }
.text-link { display: inline-block; min-height: 44px; padding-block: .51rem; font-weight: 650; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	grid-template-rows: auto auto;
	align-items: center;
	column-gap: clamp(18px, 2.3vw, 36px);
	padding-block: 8px;
	min-height: 104px;
}
.header-brand { grid-area: 1 / 1 / 3 / 2; }
.brand-link, .custom-logo-link { display: inline-block; }
.brand-mark, .custom-logo { width: 152px; height: auto; }
.header-contact { grid-area: 1 / 2; display: flex; justify-content: flex-end; align-items: center; gap: clamp(8px, 1.6vw, 22px); }
.header-contact a {
	display: inline-flex;
	align-items: center;
	gap: .38rem;
	min-height: 44px;
	color: var(--ink);
	font-size: .94rem;
	font-weight: 650;
	white-space: nowrap;
	text-decoration: none;
}
.header-contact a:hover { text-decoration: underline; }
.header-contact svg { inline-size: 19px; block-size: 19px; flex: none; color: var(--blue); }
.header-contact .header-whatsapp svg { color: #125840; }
.desktop-nav { grid-area: 2 / 2; }
.desktop-nav .nav-list { justify-content: flex-end; }
.header-quote { grid-area: 1 / 3 / 3 / 4; justify-self: end; }
.nav-list, .footer-links, .contact-links { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; align-items: center; gap: clamp(12px, 2.25vw, 34px); }
.nav-list a { padding-block: .7rem; display: block; color: var(--ink); font-weight: 600; text-decoration: none; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--blue); text-decoration: underline; }
.mobile-nav { display: none; }
.mobile-nav summary {
	min-height: 44px;
	padding: .48rem .65rem;
	color: var(--navy);
	font-weight: 650;
	cursor: pointer;
}
.mobile-nav nav {
	position: absolute;
	inset-inline: 0;
	top: 100%;
	padding: .45rem var(--gutter) .9rem;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
	z-index: 2;
}
.mobile-nav .nav-list { display: block; }
.mobile-nav .nav-list li + li { border-top: 1px solid var(--line); }

.hero { padding-block: clamp(28px, 4.6vw, 70px) clamp(36px, 5.8vw, 88px); }
.hero-grid {
	display: grid;
	grid-template-columns: .92fr 1.08fr;
	gap: clamp(25px, 4.4vw, 68px);
	align-items: center;
}
.hero-grid > *, .editorial-grid > *, .process-grid > *, .about-page > * { min-width: 0; }
.hero-copy h1 { max-inline-size: 13ch; font-size: clamp(2.5rem, 5.4vw, 5.25rem); letter-spacing: -.057em; margin-bottom: .28em; }
.hero-copy .lead { max-width: 34ch; }
.hero-category { margin-bottom: .85rem; color: var(--blue); font-weight: 680; font-size: .95rem; }
.hero-actions, .page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1.3rem; }
.hero-actions { margin-top: 1.5rem; }
.hero-media { background: #c2d8e8; border-radius: 6px; overflow: hidden; }
.editorial-image { display: block; width: 100%; height: auto; object-fit: cover; }
.hero-media .editorial-image { aspect-ratio: 4 / 3; }
.editorial-section { background: #f5f8fb; border-top: 1px solid #e4edf3; }
.section-intro { margin-bottom: clamp(25px, 4vw, 49px); }
.section-intro h2 { margin-bottom: .28em; }
.section-intro .lead { margin-bottom: 0; }
.editorial-grid {
	display: grid;
	grid-template-columns: 1.13fr 1fr 1fr;
	gap: clamp(20px, 3vw, 40px);
	align-items: start;
	margin-bottom: 1.5rem;
}
.editorial-tile .editorial-image { aspect-ratio: 1.55; border-radius: 5px; background: #d2e1eb; margin-bottom: 1rem; }
.editorial-tile h3 { margin-bottom: .28em; }
.editorial-tile p { max-width: 36ch; color: var(--muted); margin-bottom: .15rem; }
.catalog-band { background: var(--sky); padding-block: clamp(30px, 5vw, 66px); }
.band-inner, .about-inner { display: flex; gap: 1.5rem 3.5rem; align-items: center; justify-content: space-between; }
.band-inner .button { flex: 0 0 auto; }
.band-copy { max-width: 63ch; }
.band-copy h2 { font-size: clamp(1.85rem, 4vw, 3.12rem); margin-bottom: .28em; }
.band-copy p, .about-inner p { margin-bottom: 0; }
.process-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(24px, 6vw, 94px); }
.process-list { margin: 0; list-style: decimal; padding: 0 0 0 1.8rem; }
.process-list li { padding: 0 0 1rem .55rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.process-list li + li { margin-top: 1.08rem; }
.process-list strong { display: block; color: var(--navy); }
.process-list li::marker { color: var(--blue); font-weight: 700; }
.about-strip { border-top: 1px solid var(--line); padding-block: clamp(28px, 4vw, 46px); }
.about-strip h2 { font-size: clamp(1.45rem, 2.5vw, 2.2rem); margin-bottom: .35em; }
.about-inner .about-copy { max-width: 65ch; }
.about-inner .text-link { flex: 0 0 auto; }
.contact-band { padding-block: clamp(38px, 6.4vw, 88px); background: var(--navy); color: white; }
.contact-band p { color: #dfebf5; }
.contact-links a { display: inline-block; min-height: 44px; padding-block: .34rem; font-weight: 650; overflow-wrap: anywhere; }
.contact-band .contact-links a { color: white; }
.contact-band a:focus-visible, .whatsapp-float:focus-visible { outline-color: #63d0ff; }
.site-footer { padding-block: 1.8rem; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1fr 1.4fr 1fr; align-items: center; gap: 1rem; }
.footer-inner .brand-mark { width: 79px; }
.footer-inner p { color: var(--muted); font-size: .88rem; margin: .32rem 0 0; }
.footer-inner address { color: var(--muted); font-style: normal; font-size: .88rem; margin-top: .25rem; }
.footer-phone {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	margin-top: .85rem;
	padding: .38rem .85rem .38rem .38rem;
	min-height: 48px;
	max-width: 100%;
	border: 1px solid var(--line);
	border-radius: .65rem;
	background: var(--sky);
	color: var(--navy);
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
}
.footer-phone svg { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--navy); color: var(--paper); }
.footer-phone small { display: block; color: var(--blue); font-size: .72rem; font-weight: 650; }
.footer-phone:hover { border-color: var(--blue); text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 1rem; }
.footer-links a { display: inline-block; padding-block: .68rem; }
.copyright { text-align: right; }
.whatsapp-float {
	position: fixed;
	inset: auto max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) auto;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	min-height: 44px;
	padding: .48rem .96rem;
	border-radius: 30px;
	background: #125840;
	color: #fff;
	border: 1px solid #fff;
	font-weight: 660;
	text-decoration: none;
}
.whatsapp-float:hover { text-decoration: underline; }
body:has(.whatsapp-float) .site-footer { padding-bottom: 4.5rem; }

.page-mast { background: var(--sky); border-bottom: 1px solid var(--line); padding-block: clamp(32px, 5.5vw, 78px); }
.page-mast h1 { font-size: clamp(2.4rem, 6vw, 5.1rem); margin: 0; overflow-wrap: anywhere; }
.page-mast .lead { margin: .65rem 0 0; }
.page-actions { margin-top: 1.15rem; }
.content-body { padding-block: clamp(32px, 5.8vw, 78px); }
.content-body > p, .content-body > ul:not(.catalog-list), .content-section { max-width: 70ch; }
.content-section { margin-top: clamp(35px, 5vw, 68px); }
.content-section h2, .content-body > h2 { font-size: clamp(1.65rem, 3.4vw, 2.55rem); }
.catalog-list { list-style: none; padding: 0; margin: 1.7rem 0 0; border-top: 1px solid var(--line); }
.catalog-spotlight { margin-top: 1.7rem; padding: clamp(1.1rem, 4vw, 2.4rem); background: var(--sky); border-radius: .35rem; }
.catalog-spotlight h2 { font-size: clamp(1.55rem, 3.4vw, 2.4rem); }
.catalog-spotlight p { max-width: 68ch; }
.catalog-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .6rem 1.6rem;
	padding: clamp(.9rem, 2.7vw, 1.6rem) 0;
	border-bottom: 1px solid var(--line);
}
.catalog-list h2, .feature h2, .contact-page h2 { font-size: clamp(1.4rem, 2.7vw, 2.05rem); margin-bottom: .32em; }
.catalog-list p { color: var(--muted); margin: 0; }
.catalog-list .text-link { flex: none; }
.catalog-entry { display: flex; align-items: center; gap: 1rem; }
.catalog-cover { width: clamp(56px, 8vw, 94px); height: auto; border-radius: 4px; }
.catalog-list .catalog-edition { font-size: .9rem; font-weight: 650; margin-bottom: .28rem; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem 2.5rem; }
.feature { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.feature p { margin-bottom: 0; max-width: 50ch; }
.about-page, .contact-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(20px, 5vw, 65px); }
.contact-page { grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); }
.about-page .editorial-image { border-radius: 5px; }
.about-image .image-credit { margin-top: .7rem; color: var(--muted); font-size: .9rem; }
.contact-card { background: var(--sky); padding: clamp(16px, 3vw, 30px); border-radius: 5px; }
.contact-card > p, .contact-form-panel > p { color: var(--muted); }
.contact-card .contact-links { display: flex; flex-wrap: wrap; gap: 0 .9rem; margin-bottom: .35rem; }
.contact-card .contact-links a { min-height: 44px; }
.contact-form { margin-top: 1.25rem; }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.contact-field-wide { grid-column: 1 / -1; }
.contact-optional { color: var(--muted); font-weight: 400; }
.contact-form label { display: block; margin-bottom: .32rem; font-weight: 650; }
.contact-form :is(input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea) {
	display: block;
	width: 100%;
	min-height: 46px;
	padding: .6rem .8rem;
	border: 1px solid #879fb4;
	border-radius: 5px;
	background: #fff;
	color: var(--ink);
	font: inherit;
}
.contact-form textarea { resize: vertical; }
.contact-form [aria-invalid="true"] { border-color: #992a22; }
.contact-field-error { color: #992a22; margin: .28rem 0 0; font-size: .9rem; }
.contact-field-error:empty { display: none; }
.contact-trap { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
.contact-privacy { margin: .7rem 0 1rem; color: var(--muted); font-size: .92rem; max-width: 65ch; }
.contact-acknowledgment { display: flex; align-items: start; gap: .55rem; font-size: .92rem; cursor: pointer; }
.contact-form .contact-acknowledgment input { width: 1.1rem; height: 1.1rem; min-height: 0; margin: .2rem 0 0; padding: 0; flex: none; accent-color: var(--navy); }
.contact-general { margin-top: 1.5rem; padding: 1rem; }
.contact-general summary { cursor: pointer; font-weight: 700; }
.contact-general .contact-fields { grid-template-columns: 1fr; }
button.button, button.text-link { cursor: pointer; font-family: inherit; font-size: 1rem; }
.contact-form button:disabled { opacity: .7; cursor: progress; }
.contact-submit { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.contact-status, .map-status { margin: 0; font-weight: 640; }
.contact-status[data-feedback="error"] { color: #992a22; }
.map-panel { margin-top: clamp(40px, 7vw, 78px); padding: clamp(18px, 4vw, 36px); background: var(--sky); border-radius: 5px; }
.map-panel h2 { font-size: clamp(1.55rem, 3.1vw, 2.55rem); margin-bottom: .22em; }
.map-intro { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .3rem 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.map-intro address { font-style: normal; }
.map-consent { padding-top: 1rem; }
.map-consent p { max-width: 68ch; }
.map-controls { display: flex; flex-wrap: wrap; gap: .55rem; }
.button-outline { border-color: #839cb1; background: white; color: var(--navy); }
.map-status { margin-top: .7rem; }
.map-unload { background: none; border: 0; padding-inline: 0; color: var(--blue); text-align: left; text-decoration: underline; }
.map-frame { margin-top: .55rem; }
.map-frame iframe { display: block; width: 100%; height: clamp(250px, 42vw, 340px); border: 0; border-radius: 5px; }
.map-panel [hidden] { display: none; }
.plain-list { padding-left: 1.25rem; }
.plain-list li + li { margin-top: .5rem; }
.editorial-copy { max-width: 73ch; }
.editorial-copy :is(h2, h3) { margin-top: 1.15em; }
.editorial-copy h2:first-child { margin-top: 0; }
.content-body .editorial-copy h2 { font-size: clamp(1.65rem, 3.5vw, 2.7rem); }
.decision-grid, .faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem clamp(1.1rem, 3vw, 2.6rem); }
.decision-card, .faq-item { border-top: 1px solid var(--line); padding-top: 1rem; }
.decision-card h3, .faq-item h3 { font-size: clamp(1.2rem, 2.2vw, 1.65rem); margin-bottom: .36em; }
.decision-card p, .faq-item p { max-width: 58ch; color: var(--muted); }
.decision-card p:last-child, .faq-item p:last-child { margin-bottom: 0; }
.editorial-panel { margin-block: clamp(32px, 6vw, 72px); }
.section .editorial-panel { margin-block: 0; }
.editorial-panel h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
.editorial-copy + .editorial-copy { margin-top: 2.5rem; }
.context-note { padding: 1rem 1.2rem; background: var(--sky); border-inline-start: 3px solid var(--blue); }
.contact-guide { margin-top: clamp(32px, 5vw, 60px); }

@media (max-width: 1120px) {
	.header-inner { min-height: 104px; column-gap: 12px; }
	.header-brand :is(.brand-mark, .custom-logo) { width: 132px; }
	.header-contact { grid-area: 1 / 2 / 2 / 4; }
	.header-quote { grid-area: 2 / 2; }
	.desktop-nav { display: none; }
	.mobile-nav { display: block; grid-area: 2 / 3; }
	.mobile-nav summary { white-space: nowrap; }
}

@media (max-width: 760px) {
	.header-inner { width: calc(100% - 28px); column-gap: 8px; }
	.header-contact { gap: .55rem; }
	.header-contact a { gap: .27rem; font-size: .85rem; }
	.header-contact svg { inline-size: 17px; block-size: 17px; }
	.header-quote { min-height: 44px; padding: .42rem .58rem; font-size: .83rem; }
	.mobile-nav summary { display: flex; align-items: center; padding-inline: .32rem; font-size: .9rem; }
	.mobile-nav summary::-webkit-details-marker { display: none; }
	.mobile-nav[open] summary { text-decoration: underline; }
	.hero-grid, .editorial-grid, .process-grid, .feature-grid, .about-page, .contact-page, .footer-inner,
	.decision-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
	.hero { padding-top: 30px; }
	.hero-copy h1 { font-size: clamp(2.38rem, 9.3vw, 4.1rem); }
	.hero-media .editorial-image { aspect-ratio: 4 / 3; }
	.hero-actions { margin-top: .9rem; }
	.editorial-grid { gap: 1.7rem; }
	.editorial-tile p { max-width: 48ch; }
	.band-inner, .about-inner, .catalog-list li { flex-direction: column; align-items: flex-start; gap: .36rem; }
	.band-inner .button { margin-top: .5rem; }
	.footer-links { justify-content: flex-start; }
	.copyright { text-align: left; }
	.contact-fields { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
	.whatsapp-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.whatsapp-float { width: 48px; padding-inline: 0; justify-content: center; }
}

@media (max-width: 370px) {
	.header-inner { width: calc(100% - 24px); column-gap: 5px; }
	.header-brand :is(.brand-mark, .custom-logo) { width: 100px; }
	.header-quote { padding-inline: .5rem; font-size: .79rem; }
	.header-whatsapp { min-width: 44px; justify-content: center; }
	.header-whatsapp span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.header-whatsapp svg { inline-size: 22px; block-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
	.button { transition: none; }
}

/* AFAN 1.4.1: contacto y llamadas a la acción. */
.header-contact .header-whatsapp { background: #128044; color: #fff; border-radius: .35rem; padding: .35rem .65rem; }
.header-contact .header-whatsapp svg { color: #fff; }
.header-contact .header-whatsapp:hover { background: #096b36; }
.footer-email { display: flex; width: fit-content; }
.footer-email span { min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 1121px) {
 .header-quote { grid-area: 1 / 3; }
 .desktop-nav { grid-area: 2 / 2 / 3 / 4; }
}
@media (max-width: 760px) {
 .header-contact .header-whatsapp { padding-inline: .45rem; }
}
