/*
Theme Name: Life Clínica Recuperativa
Theme URI: https://lifeclinica.cl
Author: Mono Media
Description: Tema a medida para Life Clínica Recuperativa – medicina hiperbárica en Puerto Montt. Slider, imágenes y todos los textos editables desde Apariencia → Personalizar → "Life · Contenido del sitio".
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: life-clinica
*/

/* =========================================================
   1. Tokens
   ========================================================= */
:root {
	--c-navy: #0A2540;
	--c-navy-2: #0F3460;
	--c-accent: #1FA2D6;
	--c-aqua: #6AD5EA;
	--c-ice: #EEF5FA;
	--c-warm: #FAF9F6;
	--c-white: #FFFFFF;
	--c-text: #16263A;
	--c-muted: #5A6B7D;
	--c-line: #DDE7EF;
	--c-ok: #1E9E78;
	--c-warn: #D9822B;

	--f-head: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

	--r-sm: 10px;
	--r: 18px;
	--r-lg: 28px;
	--shadow: 0 1px 2px rgba(10, 37, 64, .04), 0 12px 32px -12px rgba(10, 37, 64, .14);
	--shadow-lg: 0 30px 60px -20px rgba(10, 37, 64, .35);
	--container: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 84px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* =========================================================
   2. Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--f-body);
	font-size: 16px;
	line-height: 1.65;
	color: var(--c-text);
	background: var(--c-warm);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--c-accent); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--c-navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 4px; }

.sr-only, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--c-navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 780px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* =========================================================
   3. Botones y etiquetas
   ========================================================= */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	padding: .95em 1.6em; border-radius: 999px; border: 1.5px solid transparent;
	font-family: var(--f-head); font-weight: 500; font-size: .95rem; line-height: 1;
	transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s, border-color .25s;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn--primary { background: var(--c-navy); color: #fff; }
.btn--primary:hover { background: var(--c-navy-2); box-shadow: 0 10px 24px -10px rgba(10,37,64,.6); }
.btn--accent { background: var(--c-accent); color: #fff; }
.btn--accent:hover { background: #1890c0; box-shadow: 0 12px 28px -10px rgba(31,162,214,.7); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.btn--outline { color: var(--c-navy); border-color: var(--c-line); background: #fff; }
.btn--outline:hover { border-color: var(--c-accent); color: var(--c-accent); }
.btn--light { background: #fff; color: var(--c-navy); }
.btn--sm { padding: .75em 1.25em; font-size: .88rem; }
.btn--block { width: 100%; }


/* =========================================================
   4. Cabecera
   ========================================================= */
.site-header {
	position: sticky; top: 0; z-index: 100; height: var(--header-h);
	border-bottom: 1px solid transparent;
	transition: border-color .3s, height .3s;
}
/* El fondo va en un pseudo-elemento: backdrop-filter en la cabecera encerraría el menú móvil (position: fixed). */
.site-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgba(250,249,246,.9); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
	transition: background .3s, opacity .3s;
}
.site-header.is-overlay { position: fixed; left: 0; right: 0; }
.site-header.is-overlay::before, body:not(.home) .site-header::before { opacity: 0; }
.site-header.is-scrolled { border-color: var(--c-line); --header-h: 72px; }
.site-header.is-scrolled::before { opacity: 1; background: rgba(255,255,255,.92); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand .custom-logo { max-height: 52px; width: auto; }

/* Logo horizontal (isotipo O₂ + nombre). Trazo = currentColor; corazón y burbujas = acento. */
.logo { --logo-accent: var(--c-accent); --logo-heart: var(--c-accent); gap: 10px; text-decoration: none; }
.logo-mark { width: 60px; height: auto; flex: none; overflow: visible; }
.logo-words { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo-name { font-family: var(--f-head); font-size: 1.5rem; font-weight: 500; letter-spacing: .34em; margin-right: -.34em; text-transform: uppercase; }
.logo-rule { position: relative; display: block; width: 100%; height: 1px; margin: 6px 0 5px; background: currentColor; opacity: .55; }
.logo-rule::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: currentColor; }
.logo-tag { font-size: .58rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; margin-right: -.2em; }
.brand-text--light, .is-overlay:not(.is-scrolled) .logo, body:not(.home) .site-header:not(.is-scrolled) .logo, .nav-open .logo { --logo-accent: var(--c-aqua); --logo-heart: var(--c-aqua); }
@media (max-width: 420px) { .logo-mark { width: 50px; } .logo-name { font-size: 1.35rem; } .logo-tag { font-size: .52rem; } }
.brand-text { display: inline-flex; align-items: center; gap: 12px; color: var(--c-navy); }
.brand-mark {
	width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
	background: linear-gradient(135deg, var(--c-accent), var(--c-navy-2)); color: #fff;
	box-shadow: 0 8px 20px -8px rgba(31,162,214,.8);
}
.brand-mark .icon { width: 26px; height: 26px; }
.brand-words { display: flex; flex-direction: column; line-height: 1.05; }
.brand-words strong { font-family: var(--f-head); font-size: 1.45rem; font-weight: 600; letter-spacing: -.03em; }
.brand-words small { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--c-muted); margin-top: 3px; }

.is-overlay:not(.is-scrolled) .brand-text,
.is-overlay:not(.is-scrolled) .main-nav .menu a,
.is-overlay:not(.is-scrolled) .nav-toggle { color: #fff; }
.is-overlay:not(.is-scrolled) .brand-words small { color: rgba(255,255,255,.7); }

.main-nav { display: flex; align-items: center; gap: 20px; }
.main-nav .menu a { padding: 8px 10px; }
.main-nav .menu { display: flex; gap: 4px; }
.main-nav .menu > li { position: relative; }
.main-nav .menu a {
	display: block; padding: 8px 12px; border-radius: 999px;
	color: var(--c-text); font-size: .92rem; font-weight: 500; white-space: nowrap; transition: color .2s, background .2s;
}
.main-nav .menu a:hover { color: var(--c-accent); }
.is-overlay:not(.is-scrolled) .main-nav .menu a:hover { background: rgba(255,255,255,.12); color: #fff; }
.is-overlay:not(.is-scrolled) .nav-cta,
body:not(.home) .site-header:not(.is-scrolled) .nav-cta { background: var(--c-accent); }
.main-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px; padding: 8px; background: #fff; border-radius: var(--r-sm);
	box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { color: var(--c-text) !important; }

.nav-toggle { display: none; background: none; border: 0; color: var(--c-navy); padding: 8px; }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .i-close { display: none; }

@media (max-width: 1180px) {
	.nav-toggle { display: block; z-index: 2; }
	.main-nav {
		position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 32px;
		background: var(--c-navy); padding: 100px var(--gutter) 40px;
		opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
	}
	.main-nav .menu { flex-direction: column; align-items: center; gap: 6px; }
	.main-nav .menu a { color: #fff !important; font-family: var(--f-head); font-size: 1.4rem; }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: none; box-shadow: none; text-align: center; }
	.main-nav .sub-menu a { font-size: 1rem !important; color: var(--c-aqua) !important; }
	.nav-open .main-nav { opacity: 1; visibility: visible; }
	.nav-open .site-header::before { opacity: 0; }
	.nav-open .nav-cta { background: var(--c-accent); font-size: 1rem; }
	.nav-open .nav-toggle { color: #fff; }
	.nav-open .nav-toggle .i-open { display: none; }
	.nav-open .nav-toggle .i-close { display: block; }
	.nav-open .brand-text { color: #fff; position: relative; z-index: 2; }
	.nav-open { overflow: hidden; }
}

/* =========================================================
   5. Slider (hero)
   ========================================================= */
.hero { position: relative; min-height: 100vh; min-height: 100svh; background: var(--c-navy); color: #fff; overflow: hidden; }
.hero-slides { position: relative; min-height: inherit; }
.hero-slide {
	position: absolute; inset: 0; display: flex; align-items: center;
	opacity: 0; visibility: hidden; transition: opacity 1s var(--ease), visibility 1s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; position: relative; min-height: 100vh; min-height: 100svh; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg picture { display: block; width: 100%; height: 100%; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s linear; }
.hero-slide.is-active .hero-bg picture { display: block; width: 100%; height: 100%; }
.hero-bg img { transform: scale(1); }
.hero-bg::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(100deg, rgba(10,37,64,.92) 0%, rgba(10,37,64,.72) 42%, rgba(10,37,64,.15) 100%);
}

/* Fondo ilustrado (cuando aún no hay foto) */
.hero-slide.overlay-strong .hero-bg::after { background: linear-gradient(100deg, rgba(10,37,64,.95) 0%, rgba(10,37,64,.85) 50%, rgba(10,37,64,.45) 100%); }
.hero-slide.overlay-soft .hero-bg::after { background: linear-gradient(100deg, rgba(10,37,64,.6) 0%, rgba(10,37,64,.3) 50%, transparent 100%); }
.hero-slide.overlay-none .hero-bg::after,
.hero-slide--image .hero-bg::after { background: linear-gradient(180deg, rgba(10,37,64,.45) 0%, transparent 22%, transparent 78%, rgba(10,37,64,.4) 100%); }
.hero-link { position: absolute; inset: 0; z-index: 1; }
.hero-bg--art {
	background:
		radial-gradient(900px 600px at 78% 40%, rgba(31,162,214,.45), transparent 60%),
		radial-gradient(600px 500px at 95% 90%, rgba(106,213,234,.25), transparent 60%),
		linear-gradient(135deg, #07192e 0%, var(--c-navy) 45%, var(--c-navy-2) 100%);
}
.hero-bg--art::after { background: linear-gradient(100deg, rgba(7,25,46,.55), transparent 60%); }
.o2-ring {
	position: absolute; right: -6vw; top: 50%; width: min(62vw, 820px); aspect-ratio: 1; transform: translateY(-50%);
	border-radius: 50%;
	background:
		repeating-radial-gradient(circle, transparent 0 58px, rgba(106,213,234,.12) 59px 60px);
	-webkit-mask: radial-gradient(circle, #000 30%, transparent 70%);
	        mask: radial-gradient(circle, #000 30%, transparent 70%);
	animation: breathe 9s ease-in-out infinite;
}
.bubble {
	position: absolute; border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), rgba(106,213,234,.15) 45%, rgba(31,162,214,.05) 70%);
	border: 1px solid rgba(255,255,255,.18);
	animation: rise 16s linear infinite;
	bottom: -120px;
}
.b1 { width: 110px; height: 110px; left: 64%; animation-duration: 18s; }
.b2 { width: 46px;  height: 46px;  left: 74%; animation-duration: 12s; animation-delay: -4s; }
.b3 { width: 70px;  height: 70px;  left: 86%; animation-duration: 15s; animation-delay: -8s; }
.b4 { width: 28px;  height: 28px;  left: 58%; animation-duration: 10s; animation-delay: -2s; }
.b5 { width: 160px; height: 160px; left: 80%; animation-duration: 22s; animation-delay: -11s; }
@keyframes rise { from { transform: translateY(0) translateX(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { transform: translateY(-120vh) translateX(-40px); opacity: 0; } }
@keyframes breathe { 50% { transform: translateY(-50%) scale(1.06); } }

.hero-content { position: relative; z-index: 1; padding-top: calc(var(--header-h) + 40px); padding-bottom: 150px; }
.hero-title {
	color: #fff; font-size: clamp(2.3rem, 5.4vw, 4.4rem); font-weight: 600; line-height: 1.05; letter-spacing: -.035em;
	max-width: 14ch; margin-bottom: 24px;
}
.hero-title em {
	font-style: normal; background: linear-gradient(90deg, var(--c-aqua), var(--c-accent));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-text { font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: rgba(255,255,255,.82); max-width: 52ch; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-slide .hero-title, .hero-slide .hero-text, .hero-slide .hero-actions {
	opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.hero-slide.is-active .hero-title { opacity: 1; transform: none; transition-delay: .28s; }
.hero-slide.is-active .hero-text { opacity: 1; transform: none; transition-delay: .42s; }
.hero-slide.is-active .hero-actions { opacity: 1; transform: none; transition-delay: .56s; }

.hero-controls {
	position: absolute; left: 0; right: 0; bottom: 110px; z-index: 2;
	display: flex; align-items: center; justify-content: space-between;
}
.hero-dots { display: flex; gap: 10px; }
.hero-dot { width: 44px; height: 4px; border: 0; padding: 0; border-radius: 4px; background: rgba(255,255,255,.25); overflow: hidden; position: relative; }
.hero-dot span { position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero-dot.is-active span { animation: fill var(--dur, 6s) linear forwards; }
.hero-dot.is-active.no-auto span { animation: none; transform: scaleX(1); }
@keyframes fill { to { transform: scaleX(1); } }
.hero-arrows { display: flex; gap: 10px; }
.hero-arrows button {
	width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06);
	color: #fff; display: grid; place-items: center; transition: background .2s, border-color .2s;
}
.hero-arrows button:hover { background: #fff; color: var(--c-navy); border-color: #fff; }

/* =========================================================
   6. Cifras
   ========================================================= */
.stats { position: relative; z-index: 3; margin-top: -72px; }
.stats-grid {
	display: grid; grid-template-columns: repeat(4, 1fr);
	background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
	padding: 0; overflow: hidden;
}
.stat { display: flex; align-items: center; gap: 16px; padding: 30px 28px; border-right: 1px solid var(--c-line); }
.stat:last-child { border-right: 0; }
.stat-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--c-ice); color: var(--c-accent); display: grid; place-items: center; flex: none; }
.stat strong { display: block; font-family: var(--f-head); font-size: 1.55rem; font-weight: 600; color: var(--c-navy); letter-spacing: -.02em; line-height: 1.1; }
.stat span { font-size: .86rem; color: var(--c-muted); }
@media (max-width: 960px) {
	.stats-grid { grid-template-columns: repeat(2, 1fr); }
	.stat:nth-child(2) { border-right: 0; }
	.stat:nth-child(-n+2) { border-bottom: 1px solid var(--c-line); }
}
@media (max-width: 520px) {
	.stat { flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 18px; }
	.stat strong { font-size: 1.3rem; }
}

/* =========================================================
   7. Secciones
   ========================================================= */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--tint { background: var(--c-ice); }
.section--dark { background: var(--c-navy); color: rgba(255,255,255,.8); position: relative; overflow: hidden; }
.section--dark::before {
	content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -200px; border-radius: 50%;
	background: radial-gradient(circle, rgba(31,162,214,.35), transparent 65%);
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .section-lead { color: rgba(255,255,255,.75); }

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head--left { text-align: left; margin: 0; }
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; text-align: left; }
.section-head--row .section-lead { max-width: 420px; margin: 0; }
@media (max-width: 760px) { .section-head--row { flex-direction: column; align-items: flex-start; gap: 12px; } }

.section-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.section-lead { font-size: 1.08rem; color: var(--c-muted); }
.prose p { color: var(--c-muted); font-size: 1.05rem; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 7vw, 100px); align-items: center; position: relative; }
.split--reverse { grid-template-columns: 1.05fr 1fr; }
.split-media { position: relative; }
@media (max-width: 900px) {
	.split, .split--reverse { grid-template-columns: 1fr; }
	.split--reverse .split-media { order: -1; }
}

.check-list { display: grid; gap: 12px; margin: 26px 0 34px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--c-navy); }
.check-list .icon { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: rgba(30,158,120,.12); color: var(--c-ok); }

/* Media / imágenes */
.media { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--c-ice); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--tall { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 5 / 4; }
.media--portrait { aspect-ratio: 4 / 4.6; border-radius: var(--r) var(--r) 0 0; }
.media--video { aspect-ratio: 16 / 9; background: #000; }
.media--video iframe, .media--video video { width: 100%; height: 100%; }
.media--placeholder {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--c-accent);
	background:
		radial-gradient(circle at 70% 30%, rgba(31,162,214,.18), transparent 55%),
		linear-gradient(160deg, #e7f1f8, #d6e8f3);
}
.media--placeholder small { font-size: .78rem; color: var(--c-muted); text-align: center; padding: 0 20px; position: relative; }
.ph-icon { width: 64px; height: 64px; position: relative; opacity: .8; }
.ph-rings { position: absolute; inset: 0; background: repeating-radial-gradient(circle at 50% 50%, transparent 0 34px, rgba(31,162,214,.1) 35px 36px); }
.section--dark .media--placeholder { background: radial-gradient(circle at 60% 40%, rgba(31,162,214,.4), transparent 60%), #0d2d52; color: var(--c-aqua); }
.section--dark .media--placeholder small { color: rgba(255,255,255,.6); }

.float-card {
	position: absolute; right: -24px; bottom: 40px; display: flex; align-items: center; gap: 14px;
	background: #fff; padding: 16px 22px 16px 16px; border-radius: var(--r); box-shadow: var(--shadow-lg);
	animation: floaty 6s ease-in-out infinite;
}
.float-card strong { display: block; font-family: var(--f-head); color: var(--c-navy); font-size: 1.05rem; }
.float-card small { color: var(--c-muted); font-size: .82rem; }
.float-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--c-accent), var(--c-navy-2)); }
@keyframes floaty { 50% { transform: translateY(-10px); } }
@media (max-width: 600px) { .float-card { right: 12px; bottom: 16px; } }

/* Cards */
.card-grid { display: grid; gap: 24px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .card-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid--3 { grid-template-columns: 1fr; } }

.card {
	background: #fff; border-radius: var(--r); padding: 34px 30px; border: 1px solid transparent;
	transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--c-line); }
.card h3 { font-size: 1.2rem; margin-top: 22px; }
.card p { color: var(--c-muted); margin: 0; font-size: .96rem; }
.card-icon {
	width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
	background: linear-gradient(135deg, rgba(31,162,214,.14), rgba(106,213,234,.08)); color: var(--c-accent);
	transition: background .35s, color .35s;
}
.card-icon .icon { width: 28px; height: 28px; }
.card:hover .card-icon { background: linear-gradient(135deg, var(--c-accent), var(--c-navy-2)); color: #fff; }

/* Audiencias */
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--c-line); border-left: 1px solid var(--c-line); }
.aud {
	position: relative; padding: 40px 34px; border-right: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line);
	transition: background .35s;
}
.aud:hover { background: #fff; }
.aud-num { position: absolute; top: 30px; right: 30px; font-family: var(--f-head); font-size: .82rem; color: var(--c-muted); }
.aud-icon { display: inline-grid; place-items: center; color: var(--c-accent); margin-bottom: 26px; }
.aud-icon .icon { width: 38px; height: 38px; stroke-width: 1.3; }
.aud h3 { font-size: 1.2rem; }
.aud p { color: var(--c-muted); margin: 0; font-size: .95rem; }
@media (max-width: 960px) { .aud-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .aud-grid { grid-template-columns: 1fr; } .aud { padding: 30px 24px; } }

/* Specs */
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.spec-list li {
	display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-sm);
	background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: #fff; font-size: .93rem; font-weight: 500;
}
.spec-list li span { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(106,213,234,.14); color: var(--c-aqua); }
@media (max-width: 560px) { .spec-list { grid-template-columns: 1fr; } }

/* Pasos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: 8%; right: 8%; height: 1px; background: repeating-linear-gradient(90deg, var(--c-line) 0 8px, transparent 8px 14px); }
.step { position: relative; text-align: center; padding: 0 8px; }
.step-icon {
	position: relative; z-index: 1; width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center;
	background: #fff; color: var(--c-accent); border: 1px solid var(--c-line); box-shadow: 0 0 0 8px var(--c-warm);
}
.step-icon .icon { width: 28px; height: 28px; }
.step-num { display: block; font-family: var(--f-head); font-size: .78rem; letter-spacing: .14em; color: var(--c-accent); margin-bottom: 6px; }
.step h3 { font-size: 1.18rem; }
.step p { color: var(--c-muted); font-size: .95rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; } .steps::before { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Indicaciones */
.ind-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ind-card { background: #fff; border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); }
.ind-card h3 { display: flex; align-items: center; gap: 14px; font-size: 1.45rem; margin-bottom: 26px; }
.ind-badge { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; }
.ind-badge--ok { background: rgba(30,158,120,.12); color: var(--c-ok); }
.ind-badge--warn { background: rgba(217,130,43,.12); color: var(--c-warn); }
.ind-card ul { display: grid; gap: 14px; }
.ind-card li { display: flex; gap: 12px; align-items: flex-start; color: var(--c-text); }
.ind-card li .icon { margin-top: 3px; color: var(--c-ok); }
.ind-card--warn li .icon { color: var(--c-warn); }
.ind-note { margin: 26px 0 0; padding-top: 20px; border-top: 1px solid var(--c-line); font-size: .9rem; color: var(--c-muted); }
@media (max-width: 800px) { .ind-grid { grid-template-columns: 1fr; } }

/* Equipo */
.member { background: #fff; border-radius: var(--r); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.member .media img { transition: transform .6s var(--ease); }
.member:hover .media img { transform: scale(1.04); }
.member-body { padding: 26px 26px 30px; }
.member-body h3 { font-size: 1.2rem; margin-bottom: 4px; }
.member-role { display: block; color: var(--c-accent); font-size: .88rem; font-weight: 500; margin-bottom: 12px; }
.member-body p { color: var(--c-muted); margin: 0; font-size: .94rem; }

/* Testimonios */
.testi { margin: 0; background: #fff; border-radius: var(--r); padding: 34px 30px; display: flex; flex-direction: column; }
.testi-quote { width: 38px; height: 38px; color: var(--c-accent); margin-bottom: 18px; }
.testi blockquote { margin: 0 0 26px; font-size: 1.04rem; color: var(--c-text); flex: 1; }
.testi figcaption { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--c-line); }
.testi-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-head); font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--c-accent), var(--c-navy-2)); }
.testi figcaption strong { display: block; color: var(--c-navy); font-size: .95rem; }
.testi figcaption small { color: var(--c-muted); font-size: .84rem; }

.evidence {
	margin-top: 40px; display: flex; align-items: center; gap: 28px; padding: 32px 36px; border-radius: var(--r-lg);
	background: #fff; border: 1px solid var(--c-line);
}
.evidence > div { flex: 1; }
.evidence h3 { font-size: 1.2rem; margin-bottom: 6px; }
.evidence p { color: var(--c-muted); margin-bottom: 8px; }
.evidence cite { font-style: italic; font-size: .9rem; color: var(--c-navy); }
.evidence-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--c-navy); color: var(--c-aqua); display: grid; place-items: center; flex: none; }
.evidence-icon .icon { width: 30px; height: 30px; }
@media (max-width: 760px) { .evidence { flex-direction: column; align-items: flex-start; padding: 28px 24px; } }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.faq-wrap .section-head { position: sticky; top: calc(var(--header-h) + 30px); }
.faq-wrap .section-lead { margin-bottom: 28px; }
.faq { border-bottom: 1px solid var(--c-line); }
.faq summary {
	list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
	padding: 26px 0; font-family: var(--f-head); font-size: 1.12rem; font-weight: 500; color: var(--c-navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq-plus { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1px solid var(--c-line); display: grid; place-items: center; transition: transform .3s var(--ease), background .3s, color .3s; }
.faq[open] .faq-plus { transform: rotate(45deg); background: var(--c-navy); color: #fff; border-color: var(--c-navy); }
.faq-a p { color: var(--c-muted); padding-bottom: 26px; margin: 0; max-width: 60ch; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } .faq-wrap .section-head { position: static; } }

/* Reserva */
.booking { position: relative; padding: clamp(72px, 10vw, 128px) 0; background: var(--c-navy); color: #fff; overflow: hidden; }
.booking-bg { position: absolute; inset: 0; background: radial-gradient(800px 500px at 10% 100%, rgba(31,162,214,.35), transparent 60%), linear-gradient(135deg, #07192e, var(--c-navy-2)); }
.booking-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.booking-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.booking h2 { color: #fff; }
.booking .section-lead { color: rgba(255,255,255,.78); margin-bottom: 32px; }
.booking-card { background: #fff; color: var(--c-text); border-radius: var(--r-lg); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow-lg); }
@media (max-width: 900px) { .booking-grid { grid-template-columns: 1fr; } }

.life-form h3 { font-size: 1.45rem; margin-bottom: 22px; }
.life-form label, .booking-card label { display: block; font-size: .84rem; font-weight: 500; color: var(--c-navy); margin-bottom: 16px; }
.life-form input, .life-form select, .life-form textarea,
.booking-card input:not([type=submit]):not([type=checkbox]):not([type=radio]), .booking-card select, .booking-card textarea {
	display: block; width: 100%; margin-top: 6px; padding: 13px 16px; font: inherit; font-size: .95rem; color: var(--c-text);
	background: var(--c-warm); border: 1px solid var(--c-line); border-radius: 12px; transition: border-color .2s, box-shadow .2s;
}
.life-form input:focus, .life-form select:focus, .life-form textarea:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 4px rgba(31,162,214,.15); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.form-note { display: block; text-align: center; margin-top: 12px; color: var(--c-muted); font-size: .8rem; }

.contact-list { display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: flex-start; gap: 12px; }
.contact-list .icon { margin-top: 3px; color: var(--c-accent); }
.contact-list--light li { color: rgba(255,255,255,.88); }
.contact-list--light .icon { color: var(--c-aqua); }

/* Blog */
.post-card { background: #fff; border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-card-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-media .media { height: 100%; border-radius: 0; }
.post-card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: .8rem; color: var(--c-muted); letter-spacing: .04em; margin-bottom: 8px; }
.post-card h3 { font-size: 1.15rem; }
.post-card h3 a { color: var(--c-navy); }
.post-card p { color: var(--c-muted); font-size: .94rem; flex: 1; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: .92rem; }
.link-arrow .icon { transition: transform .25s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* Páginas internas */
.page-hero { position: relative; padding: calc(var(--header-h) + 80px) 0 80px; color: #fff; overflow: hidden; margin-top: calc(-1 * var(--header-h)); }
.page-hero .container { position: relative; }
.page-hero-meta { margin: 14px 0 0; color: rgba(255,255,255,.7); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.4rem); max-width: 22ch; margin: 0; }
.page-hero .o2-ring { width: 520px; right: -120px; }
body:not(.home) .site-header:not(.is-scrolled) .brand-text,
body:not(.home) .site-header:not(.is-scrolled) .main-nav .menu a,
body:not(.home) .site-header:not(.is-scrolled) .nav-toggle { color: #fff; }
body:not(.home) .site-header:not(.is-scrolled) .brand-words small { color: rgba(255,255,255,.7); }

.entry-content { font-size: 1.07rem; }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2 { font-size: 1.8rem; margin-top: 1.6em; }
.entry-content h3 { font-size: 1.35rem; margin-top: 1.4em; }
.entry-content ul { list-style: disc; padding-left: 1.3em; }
.entry-content ol { padding-left: 1.3em; }
.entry-content img { border-radius: var(--r); height: auto; }
.entry-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--c-accent); font-family: var(--f-head); font-size: 1.2rem; color: var(--c-navy); }
.entry-thumb { margin-bottom: 32px; }
.entry-cta { margin-top: 48px; padding: 32px; border-radius: var(--r-lg); background: var(--c-ice); text-align: center; }
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.pagination { margin-top: 48px; text-align: center; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; margin: 0 3px; border-radius: 50%; color: var(--c-navy); }
.pagination .page-numbers.current { background: var(--c-navy); color: #fff; }

/* =========================================================
   8. Pie
   ========================================================= */
.site-footer { background: #061A2E; color: rgba(255,255,255,.66); padding-top: 80px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1.1fr; gap: 48px; padding-bottom: 60px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 22px; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: var(--c-aqua); }
.footer-brand p { margin: 22px 0 24px; max-width: 34ch; }
.brand-text--light { color: #fff; }
.brand-text--light .brand-words small { color: rgba(255,255,255,.6); }
.site-footer .menu { display: grid; gap: 10px; }
.social { display: flex; gap: 10px; }
.social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.social a:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.footer-cta { padding: 28px; border-radius: var(--r); background: linear-gradient(135deg, rgba(31,162,214,.22), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.08); }
.footer-cta h4 { margin-bottom: 8px; }
.footer-cta p { margin-bottom: 20px; }
.site-footer .btn--light { color: var(--c-navy); }
.site-footer .btn--light:hover { color: var(--c-accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }

.wa-float {
	position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
	display: grid; place-items: center; background: #25D366; color: #fff;
	box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); transition: transform .25s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float .icon { width: 30px; height: 30px; }

/* =========================================================
   9. Animación de aparición
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .reveal { opacity: 1; transform: none; }
	html { scroll-behavior: auto; }
}
