/* =====================================================================
   SANTAMARINA CONSULTORES — estilos
   Colores y tipografías principales: cámbialos aquí en :root
   ===================================================================== */

:root {
	--navy: hsl(213 56% 14%);          /* azul marino: texto y fondos oscuros */
	--white: hsl(0 0% 100%);
	--on-navy: hsl(0 0% 98%);          /* texto sobre azul marino */
	--muted: hsl(214 14% 42%);         /* gris para etiquetas */
	--border: hsl(213 20% 89%);        /* líneas finas */
	--soft: hsl(210 24% 96%);          /* gris muy claro */

	--font-display: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	--font-body: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;

	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; border: 0 solid var(--border); }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-body);
	line-height: 1.5;
	color: var(--navy);
	background: var(--white);
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
h1, h2, h3, p, blockquote { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; cursor: pointer; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .sheet :focus-visible { outline-color: var(--on-navy); }

.shell { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.main { flex: 1; }

.container { width: 100%; max-width: 72rem; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.container.narrow { max-width: 56rem; }
.center { text-align: center; }
.block { display: block; }

/* Espaciados verticales de secciones */
.pad-lg { padding-top: 6rem; padding-bottom: 6rem; }
.pad-xl { padding-top: 6rem; padding-bottom: 6rem; }
.pad-md { padding-top: 5rem; padding-bottom: 5rem; }
.pad-sm { padding-top: 5rem; padding-bottom: 5rem; }
.pad-contact { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 768px) {
	.pad-lg { padding-top: 8rem; padding-bottom: 8rem; }
	.pad-xl { padding-top: 9rem; padding-bottom: 9rem; }
	.pad-md { padding-top: 7rem; padding-bottom: 7rem; }
	.pad-sm { padding-top: 6rem; padding-bottom: 6rem; }
	.pad-contact { padding-top: 6rem; padding-bottom: 6rem; }
}

.bt { border-top-width: 1px; }
.bb { border-bottom-width: 1px; }
.dark { background: var(--navy); color: var(--on-navy); }
.soft { background: hsl(210 24% 96% / 0.6); }

/* ---------- Tipografía ---------- */
.kicker {
	font-family: var(--font-display);
	font-size: 11px; font-weight: 500; letter-spacing: 0.32em;
	color: var(--muted);
}
.dark .kicker { color: hsl(0 0% 98% / 0.6); }

.label {
	font-family: var(--font-display);
	font-size: 11px; font-weight: 500; letter-spacing: 0.18em;
}
.muted { color: var(--muted); }
.small { font-size: 0.875rem; line-height: 1.625; font-weight: 300; }

.h1 {
	margin-top: 2rem; max-width: 48rem;
	font-family: var(--font-display); font-weight: 700;
	font-size: 1.875rem; line-height: 1.25; letter-spacing: -0.025em;
}
.h2 {
	font-family: var(--font-display); font-weight: 700;
	font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.025em;
}
@media (min-width: 768px) {
	.h1 { font-size: 3rem; }
	.h2 { font-size: 1.875rem; }
}

.body { font-size: 1rem; font-weight: 300; line-height: 1.625; color: hsl(213 56% 14% / 0.85); }
.dark .body { color: hsl(0 0% 98% / 0.8); }
.stack { display: flex; flex-direction: column; gap: 1.5rem; }

.rule { margin-top: 1.5rem; height: 1px; width: 4rem; background: var(--navy); }

/* ---------- Encabezado ---------- */
.site-header {
	position: sticky; top: 0; z-index: 40;
	background: var(--navy); color: var(--on-navy);
	border-bottom: 1px solid hsl(213 56% 14% / 0.2);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.brand {
	font-family: var(--font-display);
	font-size: 0.875rem; font-weight: 700; letter-spacing: 0.28em;
	color: var(--on-navy);
}
.header-desktop { display: none; align-items: center; gap: 2.5rem; }
.header-mobile { display: flex; align-items: center; gap: 0.75rem; }
@media (min-width: 768px) {
	.header-inner { height: 5rem; }
	.header-desktop { display: flex; }
	.header-mobile { display: none; }
}

.nav { display: flex; align-items: center; gap: 2.5rem; }
.nav a {
	font-family: var(--font-display);
	font-size: 11px; font-weight: 500; letter-spacing: 0.22em;
	color: hsl(0 0% 98% / 0.75);
	transition: color 200ms;
}
.nav a:hover, .nav a.is-active { color: var(--on-navy); }
.nav-col { flex-direction: column; align-items: flex-start; gap: 1.5rem; }

.lang { display: flex; align-items: center; gap: 0.25rem; }
.lang a {
	font-family: var(--font-display);
	font-size: 11px; font-weight: 500; letter-spacing: 0.18em;
	color: hsl(0 0% 98% / 0.55);
	transition: color 200ms;
}
.lang a:hover, .lang a.is-active { color: var(--on-navy); }
.lang span { color: hsl(0 0% 98% / 0.4); font-size: 11px; }

.menu-btn {
	display: flex; align-items: center; justify-content: center;
	width: 2.75rem; height: 2.75rem; color: var(--on-navy);
}

/* ---------- Ventanas (menú móvil, libro, tarjetas) ---------- */
.overlay {
	position: fixed; inset: 0; z-index: 50;
	opacity: 0; transition: opacity 250ms var(--ease);
}
.overlay.is-open { opacity: 1; }
.overlay-sheet, .overlay-dialog { background: rgb(0 0 0 / 0.8); }

.x-btn {
	position: absolute; right: 1rem; top: 1rem;
	display: flex; align-items: center; justify-content: center;
	opacity: 0.7; transition: opacity 200ms;
}
.x-btn:hover { opacity: 1; }

.sheet {
	position: absolute; top: 0; right: 0; bottom: 0;
	width: 18rem; max-width: 85vw; padding: 1.5rem;
	background: var(--navy); color: var(--on-navy);
	border-left: 1px solid var(--border);
	box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
	transform: translateX(100%);
	transition: transform 400ms var(--ease);
}
.overlay.is-open .sheet { transform: none; }
.sheet-body { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 2rem; }
.sheet-brand {
	font-family: var(--font-display);
	font-size: 0.75rem; font-weight: 700; letter-spacing: 0.28em;
}

.dialog {
	position: absolute; left: 50%; top: 50%;
	width: calc(100% - 2rem); max-width: 32rem;
	max-height: min(92dvh, 720px); overflow-y: auto;
	background: var(--white); color: var(--navy);
	border: 1px solid var(--border);
	box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
	transform: translate(-50%, -50%) scale(0.95);
	transition: transform 200ms var(--ease);
}
.overlay.is-open .dialog { transform: translate(-50%, -50%) scale(1); }
.dialog-body { padding: 2.5rem 1.5rem 2rem; }
@media (min-width: 640px) { .dialog-body { padding: 3rem 2.5rem 2.5rem; } }

/* ---------- Botones y enlaces ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	height: 2.75rem; min-width: 12rem; padding: 0 2rem;
	background: var(--navy); color: var(--on-navy);
	font-family: var(--font-display);
	font-size: 11px; font-weight: 500; letter-spacing: 0.22em;
	transition: opacity 200ms, transform 200ms;
}
.btn:hover { opacity: 0.9; }
.btn:active { transform: scale(0.98); }

.arrow-link {
	display: inline-flex; align-items: center; gap: 0.75rem;
	font-family: var(--font-display);
	font-size: 11px; font-weight: 500; letter-spacing: 0.22em;
}
.arrow-link .arrow { transition: transform 200ms; flex-shrink: 0; }
.arrow-link:hover .arrow { transform: translateX(0.25rem); }

/* ---------- Inicio ---------- */
.hero {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	min-height: 100vh; min-height: 100dvh; padding: 0 1.5rem; text-align: center;
}
.hero-title {
	font-family: var(--font-display); font-weight: 700;
	font-size: 2.25rem; line-height: 2.5rem; letter-spacing: 0.14em;
}
.hero-tagline {
	margin-top: 1.5rem; max-width: 28rem;
	font-family: var(--font-display); font-style: italic; font-weight: 300;
	font-size: 0.875rem; line-height: 1.625; color: var(--muted);
}
.hero-line { margin-top: 4rem; height: 4rem; width: 1px; background: var(--border); }
@media (min-width: 640px) { .hero-title { font-size: 3.75rem; line-height: 1; } }
@media (min-width: 768px) {
	.hero-title { font-size: 4.5rem; }
	.hero-tagline { font-size: 1rem; }
}

.grid-12 { display: grid; gap: 3rem; }
@media (min-width: 768px) {
	.grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; }
	.accompany .col-title { grid-column: 1 / span 5; }
	.accompany .col-text { grid-column: 7 / span 6; }
}

.lead {
	margin-top: 2.5rem; max-width: 48rem;
	font-family: var(--font-display); font-weight: 300;
	font-size: 1.5rem; line-height: 1.375;
}
.two-col { margin-top: 3rem; display: grid; gap: 2.5rem; }
.gens {
	margin-top: 5rem; display: grid; gap: 1px; overflow: hidden;
	border: 1px solid hsl(0 0% 98% / 0.15); background: hsl(0 0% 98% / 0.15);
}
.gen { background: var(--navy); padding: 2.5rem 2rem; }
.gen-era {
	font-family: var(--font-display);
	font-size: 10px; font-weight: 500; letter-spacing: 0.28em;
	color: hsl(0 0% 98% / 0.5);
}
.gen-verb { margin-top: 1rem; font-family: var(--font-display); font-weight: 300; font-size: 1.25rem; line-height: 1.75rem; }
@media (min-width: 640px) { .gens { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) {
	.lead { font-size: 2.25rem; }
	.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; }
}

.quote {
	margin-top: 2.5rem;
	font-family: var(--font-display); font-weight: 300;
	font-size: 1.5rem; line-height: 1.375;
}
@media (min-width: 768px) { .quote { font-size: 2.25rem; } }

.cta { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 2.5rem; }
.cta.pad-sm { gap: 2rem; }
.cta-title { max-width: 36rem; }
.cta-links { display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 640px) { .cta-links { flex-direction: row; gap: 2.5rem; } }
@media (min-width: 768px) { .cta { flex-direction: row; align-items: center; } }

/* ---------- Socio Director ---------- */
.partner { gap: 3.5rem; }
.portrait { overflow: hidden; border: 1px solid var(--border); background: var(--soft); }
.portrait img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.caption {
	margin-top: 1rem; text-align: center;
	font-size: 11px; font-weight: 300; letter-spacing: 0.18em; color: var(--muted);
}
.purpose { margin-top: 1rem; border-left: 2px solid var(--navy); padding-left: 1.5rem; }
.purpose p { font-family: var(--font-display); font-weight: 300; font-size: 1.125rem; line-height: 1.625; }
@media (min-width: 768px) {
	.partner { gap: 3rem; }
	.partner .col-photo { grid-column: 1 / span 5; }
	.partner .col-bio { grid-column: 7 / span 6; }
	.purpose p { font-size: 1.25rem; }
}
@media (min-width: 1024px) { .partner .col-photo { grid-column: 1 / span 4; } }

.process-title { margin-top: 2rem; max-width: 42rem; }
.steps { margin-top: 4rem; border-top-width: 1px; border-bottom-width: 1px; }
.step { display: grid; gap: 1rem; padding: 2.5rem 0; }
.step + .step { border-top-width: 1px; }
.step-num {
	font-family: var(--font-display); font-weight: 300;
	font-size: 0.875rem; line-height: 1.25rem; letter-spacing: 0.2em; color: var(--muted);
}
.step-title {
	margin: 0; font-family: var(--font-display); font-weight: 700;
	font-size: 1.125rem; line-height: 1.75rem; letter-spacing: 0.08em;
}
@media (min-width: 768px) {
	.step { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; padding: 3rem 0; }
	.step-num { grid-column: span 2; }
	.step-title { grid-column: span 3; }
	.step-text { grid-column: 7 / span 6; }
}

/* ---------- Contacto ---------- */
.intro { margin-top: 2rem; max-width: 36rem; }
.rows { border-top-width: 1px; border-bottom-width: 1px; }
.row { display: grid; gap: 1.5rem; padding: 2.5rem 0; }
.row + .row { border-top-width: 1px; }
.row-label { letter-spacing: 0.28em; }
.row-label-icon { display: flex; align-items: center; gap: 1rem; color: var(--muted); }
.row-label-icon .label { letter-spacing: 0.28em; }
.row-link { gap: 0.75rem; transition: background-color 200ms; }
.row-link:hover { background: hsl(210 24% 96% / 0.5); }
.email { font-size: 1.125rem; font-weight: 300; line-height: 1.625; overflow-wrap: anywhere; }
.confidential { margin-top: 3rem; max-width: 36rem; }
@media (min-width: 768px) {
	.row { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; gap: 2rem; padding: 3rem 0; }
	.row-label { grid-column: span 3; }
	.row-value { grid-column: 5 / span 8; }
	.email { font-size: 1.25rem; }
}

/* ---------- Pie de página ---------- */
.site-footer { background: var(--navy); color: var(--on-navy); }
.footer-inner { padding-top: 4rem; padding-bottom: 4rem; }
.footer-cols { display: flex; flex-direction: column; gap: 3rem; }
.footer-brand { max-width: 24rem; }
.footer-tagline {
	margin-top: 1rem;
	font-family: var(--font-display); font-style: italic; font-weight: 300;
	font-size: 0.75rem; line-height: 1.625; color: hsl(0 0% 98% / 0.7);
}
.footer-nav { display: flex; flex-direction: column; gap: 1rem; }
.footer-nav a, .footer-contact .label-link {
	font-family: var(--font-display);
	font-size: 11px; font-weight: 500; letter-spacing: 0.22em;
}
.footer-nav a { color: hsl(0 0% 98% / 0.7); transition: color 200ms; }
.footer-contact { display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; font-weight: 300; color: hsl(0 0% 98% / 0.7); }
.footer-contact a { transition: color 200ms; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--on-navy); }
.footer-bottom { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid hsl(0 0% 98% / 0.15); }
.footer-bottom p { font-size: 0.75rem; font-weight: 300; letter-spacing: 0.025em; color: hsl(0 0% 98% / 0.5); }
@media (min-width: 768px) {
	.footer-inner { padding-top: 5rem; padding-bottom: 5rem; }
	.footer-cols { flex-direction: row; align-items: flex-start; justify-content: space-between; }
}

/* ---------- Pestaña del libro ---------- */
.book-tab {
	position: fixed; right: 0; top: 50%; z-index: 45;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
	min-height: 7rem; width: 2.5rem; padding: 1rem 0.5rem;
	background: var(--navy); color: var(--on-navy);
	border: 1px solid hsl(213 56% 14% / 0.25); border-right: 0;
	box-shadow: 0 8px 28px -12px rgba(15, 35, 60, 0.55);
	transform: translateY(-50%);
	transition: transform 200ms, background-color 200ms;
}
.book-tab:hover { transform: translate(-2px, -50%); background: hsl(213 56% 14% / 0.9); }
.book-tab:active { transform: translateY(-50%) scale(0.98); }
.book-tab span {
	font-family: var(--font-display);
	font-size: 10px; font-weight: 500; letter-spacing: 0.2em;
	writing-mode: vertical-rl; transform: rotate(180deg);
}
@media (min-width: 640px) { .book-tab { min-height: 8rem; width: 2.75rem; } }

.book-cover { margin: 0 auto; width: 9rem; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); background: var(--soft); }
.book-cover img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.book-title {
	margin: 2rem 0 0; text-align: center;
	font-family: var(--font-display); font-weight: 700;
	font-size: 1.25rem; line-height: 1.375; letter-spacing: -0.025em;
}
.book-sub {
	margin-top: 0.75rem; text-align: center;
	font-family: var(--font-display); font-weight: 300;
	font-size: 0.875rem; line-height: 1.625; color: var(--muted);
}
.book-body { margin-top: 1.5rem; text-align: center; font-size: 0.875rem; font-weight: 300; line-height: 1.625; color: hsl(213 56% 14% / 0.85); }
.book-actions { margin-top: 2rem; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; text-align: center; }
.book-actions .btn { min-width: 14rem; }
@media (min-width: 640px) {
	.book-cover { width: 11rem; }
	.book-title { font-size: 1.5rem; }
}

/* ---------- Dado y tarjetas de reflexión ---------- */
.dice-btn {
	position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 40;
	display: flex; align-items: center; justify-content: center;
	width: 2.5rem; height: 2.5rem;
	border: 1px solid var(--border);
	background: hsl(0 0% 100% / 0.9); color: var(--navy);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	box-shadow: 0 6px 20px -8px rgba(15, 35, 60, 0.35);
	transition: background-color 200ms, transform 150ms;
}
.dice-btn:hover { background: var(--soft); }
.dice-btn:active { transform: scale(0.96); }
.dice-glyph { display: inline-flex; }
.dice-glyph.spin { transform: rotate(180deg); transition: transform 320ms var(--ease); }
@media (min-width: 640px) { .dice-btn { left: 2rem; bottom: 2rem; width: 2.75rem; height: 2.75rem; } }

.overlay-card {
	display: flex; align-items: center; justify-content: center;
	padding: 0 1.5rem;
	background: hsl(213 56% 14% / 0.4);
	-webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.card {
	position: relative; width: 100%; max-width: 28rem;
	padding: 3rem 2rem;
	background: var(--white); border: 1px solid var(--border);
	box-shadow: 0 24px 60px -20px rgba(15, 35, 60, 0.45);
	opacity: 0; transform: translateY(14px) rotate(-3deg) scale(0.97);
	transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}
.card.in { opacity: 1; transform: none; }
.card.out { opacity: 0; transform: translateY(-10px) rotate(3deg) scale(0.98); }
.card .x-btn { right: 0.75rem; top: 0.75rem; width: 2rem; height: 2rem; opacity: 1; color: var(--muted); transition: color 200ms; }
.card .x-btn:hover { color: var(--navy); }
.card-text {
	text-align: center;
	font-family: var(--font-display); font-weight: 300;
	font-size: 1.25rem; line-height: 1.375;
}
.card-source {
	margin-top: 1.5rem; text-align: center;
	font-family: var(--font-display); font-weight: 300;
	font-size: 10px; letter-spacing: 0.14em; color: hsl(214 14% 42% / 0.8);
}
.card-actions { margin-top: 2.5rem; display: flex; justify-content: center; }
.card-another {
	font-family: var(--font-display);
	font-size: 10px; font-weight: 500; letter-spacing: 0.22em;
	color: var(--muted); transition: color 200ms;
}
.card-another:hover { color: var(--navy); }
@media (min-width: 640px) {
	.card { padding: 3.5rem 3rem; }
	.card-text { font-size: 1.5rem; }
}

/* ---------- Animaciones de entrada ---------- */
.fade-up { animation: fadeUp 700ms var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.fade-up { animation: none; }
	.js .reveal { transform: none; }
	.card, .card.out { transform: none; }
	.sheet { transition: none; }
}
[role="dialog"]:focus { outline: none; }

/* H1 de inicio: agrupa nombre y frase sin cambiar su apariencia */
.hero-h1 { margin: 0; font-weight: inherit; display: flex; flex-direction: column; align-items: center; align-self: stretch; max-width: 100%; }
.hero-h1 .hero-title, .hero-h1 .hero-tagline { display: block; max-width: 100%; }
.hero-h1 .hero-tagline { max-width: min(28rem, 100%); }
