/* =========================================================
   Residencia Geriátrica Corteza Amarilla — estilos
   Editorial cálida y sobria: crema, oro, azul profundo, verde.
   Prioridad: legibilidad para personas mayores y claridad.
   ========================================================= */

:root {
  --cream: #FBF5E6;
  --cream-2: #F4EAD0;
  --paper: #FFFDF8;
  --gold: #E4A815;
  --gold-deep: #9A6A05;
  --gold-soft: #F8E3A1;
  --gold-tint: #FCF1D2;
  --navy: #1B3767;
  --navy-deep: #10244A;
  --green: #2F6B2D;
  --green-soft: #E3EFD9;
  --ink: #1D2530;
  --muted: #444C5A;
  --line: rgba(27, 55, 103, .15);
  --wa: #1A9E4F;

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 20px;
  --radius-lg: 30px;
  --shadow-sm: 0 1px 2px rgba(16, 36, 74, .06), 0 4px 14px rgba(16, 36, 74, .06);
  --shadow: 0 2px 6px rgba(16, 36, 74, .05), 0 18px 48px -14px rgba(16, 36, 74, .2);
  --ease: cubic-bezier(.22, .7, .2, 1);
  --gutter: clamp(16px, 5vw, 48px);
  --header-h: 96px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
html.text-lg { font-size: 128%; }
body { margin: 0; font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--navy); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.14; color: var(--navy-deep); margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.1rem); }
h3 { font-size: 1.4rem; }
h1 em, h2 em { font-style: italic; color: var(--gold-deep); font-weight: 400; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
figure { margin: 0; }
::selection { background: var(--gold-soft); color: var(--navy-deep); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

.ic { width: 1.35em; height: 1.35em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-fill { stroke: none; }
.flor { width: 1em; height: 1em; fill: var(--gold); }
.flor-petalos { fill: var(--gold); }
.flor-centro { fill: #B57A06; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font: 700 1rem/1 var(--f-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  padding: 1em 1.5em; min-height: 54px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn .ic { width: 1.2em; height: 1.2em; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy-deep); box-shadow: 0 8px 22px -10px rgba(154, 106, 5, .8); }
.btn-gold:hover { background: #EDB42A; }
.btn-outline-navy { background: transparent; color: var(--navy-deep); border-color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-sm { min-height: 48px; padding: .75em 1.2em; font-size: .95rem; }
.btn-lg { min-height: 60px; padding: 1.1em 1.7em; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 245, 230, .92);
  backdrop-filter: saturate(1.3) blur(12px); -webkit-backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(16, 36, 74, .5); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; margin-right: auto; flex: none; }
.brand-logo { height: 76px; width: auto; }
.nav { display: flex; gap: 2px; }
.nav a { white-space: nowrap; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .95rem; padding: .55em .7em; border-radius: 999px; position: relative; transition: background-color .2s, color .2s; }
.nav a:not(.btn):hover { background: var(--gold-tint); color: var(--navy-deep); }
.nav a.is-current:not(.btn) { background: var(--gold-tint); color: var(--navy-deep); }
.nav-cta-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone { display: none; align-items: center; gap: 8px; font-weight: 700; color: var(--navy-deep); text-decoration: none; white-space: nowrap; padding: .5em .6em; border-radius: 10px; }
.header-phone .ic { width: 1.15em; height: 1.15em; color: var(--green); }
.header-phone:hover { background: var(--gold-tint); }
.text-size {
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px 0 12px;
  border-radius: 999px; cursor: pointer; white-space: nowrap;
  background: var(--paper); border: 1.5px solid var(--line); color: var(--navy-deep);
  font: 700 .9rem/1 var(--f-body);
}
.text-size-icon { font: 700 .95rem/1 var(--f-display); }
.text-size-icon span { font-size: 1.3em; }
.text-size[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.menu-toggle { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; position: relative; flex: none; }
.menu-toggle span:not(.sr) { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-toggle span:nth-child(1) { top: 19px; }
.menu-toggle span:nth-child(2) { top: 27px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 23px; transform: rotate(-45deg); }

/* ---------- Espacios para fotos ---------- */
.ph {
  position: relative; overflow: hidden; min-height: 180px; border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(248, 227, 161, .7), transparent 60%),
    radial-gradient(90% 80% at 90% 100%, rgba(227, 239, 217, .9), transparent 60%),
    var(--cream-2);
}
.ph::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -38px 0 0 -20px;
  background: var(--gold-deep); opacity: .5;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21'/%3E%3C/svg%3E") center/contain no-repeat;
}
.ph::after { content: attr(data-label); position: absolute; left: 50%; top: 50%; transform: translate(-50%, 12px); width: 84%; text-align: center; font-size: .85rem; line-height: 1.35; color: var(--muted); font-weight: 700; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph:has(img)::before, .ph:has(img)::after { display: none; }
.ph-soft { box-shadow: var(--shadow-sm); }

/* ---------- Portada ---------- */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; font-size: .98rem; color: var(--green); margin-bottom: 1.1em; }
.eyebrow .ic { width: 1.1em; height: 1.1em; }
.hero-title { font-size: clamp(2.3rem, 1.1rem + 3.2vw, 3.6rem); line-height: 1.07; letter-spacing: -.02em; margin-bottom: .55em; }
.hero-lead { font-size: clamp(1.1rem, 1rem + .35vw, 1.28rem); color: var(--muted); max-width: 33em; margin-bottom: 1.7em; }
.hero-lead strong { color: var(--navy-deep); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 1.2em; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; font-size: .98rem; color: var(--muted); }
.link-wa { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy-deep); }
.link-wa .ic { color: var(--wa); width: 1.3em; height: 1.3em; }
.hero-img { aspect-ratio: 5 / 4; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.hero-img img { object-position: 38% 40%; }
.hero-img:has(img) { cursor: default; }
.ph.hero-img:has(img):hover img { transform: none; }

.hero-copy { animation: fadeUp .9s var(--ease) both; }
.hero-img { animation: fadeUp 1.1s .15s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.facts {
  list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.facts li { display: flex; gap: 14px; align-items: flex-start; padding: 24px; position: relative; line-height: 1.4; color: var(--muted); }
.facts li + li::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 1px; background: var(--line); }
.facts strong { display: block; color: var(--navy-deep); font-size: 1.05rem; }
.fact-icon { width: 46px; height: 46px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--gold-tint); color: var(--gold-deep); }
.fact-icon .ic { width: 24px; height: 24px; }

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.section-head { max-width: 780px; margin-bottom: clamp(32px, 4.5vw, 56px); }
.section-head-split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; }
.section-head-split > div { max-width: 680px; }
.section-intro { font-size: 1.12rem; color: var(--muted); max-width: 32em; margin-top: .9em; }
.section-head-split .section-intro { margin-top: 0; max-width: 24em; }
.kicker { display: inline-flex; align-items: center; gap: .7em; font-weight: 700; font-size: 1rem; color: var(--green); margin-bottom: .9em; }
.kicker::before { content: ""; width: 28px; height: 3px; background: var(--gold); border-radius: 2px; }
.kicker-light { color: var(--gold-soft); }

.reveal-ready .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal-ready .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Misión y visión ---------- */
.nosotros { background: var(--paper); }
.mv-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mv-card { padding: clamp(28px, 3.5vw, 44px); border-radius: var(--radius-lg); background: var(--cream); border: 1px solid var(--line); }
.mv-card p { font-family: var(--f-display); font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); line-height: 1.5; color: var(--navy-deep); }
.mv-tag { display: block; font-family: var(--f-display); font-size: 1.45rem; font-weight: 600; color: var(--gold-deep); margin-bottom: .5em; }
.mv-card-vision { background: var(--navy); border-color: var(--navy); color: #EEF2F9; }
.mv-card-vision .mv-tag { color: var(--gold); }
.mv-card-vision p { color: #EEF2F9; }

/* ---------- Servicios ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 2.6vw, 32px); display: flex; flex-direction: column; gap: 10px; transition: box-shadow .4s var(--ease), border-color .3s; }
.card { transition: box-shadow .4s var(--ease), border-color .3s, transform .4s var(--ease); }
.card:hover { box-shadow: var(--shadow); border-color: rgba(154, 106, 5, .35); transform: translateY(-4px); }
.card-icon { transition: transform .4s var(--ease), background-color .3s, color .3s; }
.card:hover .card-icon { transform: translateY(-2px) rotate(-4deg); }
.card h3 { font-size: clamp(1.3rem, 1.2rem + .35vw, 1.55rem); }
.card p { color: var(--muted); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.card-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--gold-tint); color: var(--gold-deep); }
.card-icon .ic { width: 27px; height: 27px; }
.chip { font-size: .9rem; font-weight: 700; padding: .4em .9em; border-radius: 999px; background: var(--cream); color: var(--navy-deep); border: 1px solid var(--line); white-space: nowrap; }
.chip-gold { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.b-a { grid-column: span 7; grid-row: span 2; }
.b-b { grid-column: span 5; }
.b-c { grid-column: span 5; }
.b-d, .b-e, .b-f { grid-column: span 4; }
.b-g { grid-column: span 7; }
.b-h { grid-column: span 5; }
.card-feature { background: var(--navy); border-color: var(--navy); color: #E9EEF7; justify-content: flex-end; min-height: 440px; }
.card-feature .card-top { margin-bottom: auto; }
.card-feature h3 { color: #fff; font-size: clamp(1.9rem, 1.5rem + 1.3vw, 2.6rem); }
.card-feature p { color: #D3DCEB; font-size: 1.08rem; max-width: 34em; }
.card-feature .card-icon { background: rgba(228, 168, 21, .16); color: var(--gold); }
.card-feature .card-highlight { color: #fff; border-left: 3px solid var(--gold); padding-left: 16px; font-family: var(--f-display); font-size: 1.28rem; line-height: 1.45; }
.card-feature .card-highlight strong { color: var(--gold); font-weight: 500; }
.card-green { background: var(--green-soft); border-color: rgba(47, 107, 45, .2); }
.card-green .card-icon { background: var(--green); color: #fff; }
.card-cream { background: var(--gold-tint); border-color: rgba(154, 106, 5, .22); }
.card-cream .card-icon { background: var(--gold); color: var(--navy-deep); }

.extras { margin-top: 18px; background: var(--navy-deep); color: #fff; border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 40px); display: grid; grid-template-columns: auto 1fr; gap: 20px 40px; align-items: center; }
.extras-title { color: var(--gold); font-style: italic; font-weight: 400; font-size: 1.7rem; }
.extras-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.extras-list li { display: flex; gap: 14px; align-items: flex-start; }
.extras-list .ic { width: 36px; height: 36px; color: var(--gold); stroke-width: 1.5; }
.extras-list strong { display: block; font-size: 1.08rem; margin-bottom: 2px; }
.extras-list span { color: #C9D3E6; line-height: 1.45; display: block; }

/* ---------- Equipo ---------- */
.equipo { background: var(--paper); }
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.member { display: flex; flex-direction: column; gap: 4px; }
.member-photo { aspect-ratio: 4 / 5; min-height: 0; border-radius: var(--radius-lg); margin-bottom: 12px; }
.member-role { color: var(--green); font-weight: 700; }
.member-name { font-family: var(--f-display); font-weight: 500; font-size: 1.3rem; color: var(--navy-deep); }
.pending-text { color: var(--muted); font-style: italic; }

/* ---------- Un día ---------- */
.un-dia { --day-bg: #FDF3DC; background: var(--day-bg); transition: background-color 1.2s var(--ease); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; --p: 0; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 31px; top: 32px; bottom: 32px; width: 2px; border-radius: 2px; }
.timeline::before { background: var(--line); }
.timeline::after { background: linear-gradient(var(--gold), var(--green)); transform-origin: top; transform: scaleY(var(--p)); }
.tl-item { position: relative; display: grid; grid-template-columns: 64px 1fr 320px; gap: clamp(20px, 3vw, 44px); align-items: center; padding: clamp(18px, 2.6vw, 30px) 0; }
.tl-marker { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold); display: grid; place-items: center; color: var(--gold-deep); box-shadow: 0 0 0 8px var(--day-bg, var(--cream)); transition: background-color .5s, color .5s, box-shadow 1.2s var(--ease), transform .5s var(--ease); }
.tl-item.is-in .tl-marker { background: var(--gold); color: var(--navy-deep); }
.tl-marker .ic { width: 28px; height: 28px; }
.tl-when { display: inline-block; font-weight: 700; font-size: 1rem; color: var(--green); margin-bottom: .3em; }
.tl-body h3 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); margin-bottom: .4em; }
.tl-body p { color: var(--muted); font-size: 1.1rem; max-width: 36em; }
.tl-body strong { color: var(--navy-deep); }
.tl-img { aspect-ratio: 4 / 3; min-height: 0; border-radius: var(--radius-lg); }

/* ---------- Instalaciones ---------- */
.instalaciones { background: var(--paper); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 230px 230px 240px; gap: 16px; grid-template-areas: "a a h1 h2" "a a h1 h2" "c d e e"; }
.gallery .ph { min-height: 0; }
.g-a { grid-area: a; } .g-h1 { grid-area: h1; } .g-h2 { grid-area: h2; } .g-c { grid-area: c; } .g-d { grid-area: d; } .g-e { grid-area: e; }
.g-cap { position: absolute; left: 12px; bottom: 12px; z-index: 1; background: rgba(255, 253, 248, .94); color: var(--navy-deep); font-weight: 700; font-size: .92rem; padding: .35em .85em; border-radius: 999px; box-shadow: var(--shadow-sm); pointer-events: none; }
.g-h1 img, .g-h2 img { object-position: center 45%; }

/* ---------- Ingreso y costos ---------- */
.ingreso { background: var(--cream); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.step-num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff; font: 600 1.3rem/1 var(--f-display); margin-bottom: 18px; }
.step h3 { font-size: 1.35rem; margin-bottom: .45em; }
.step p { color: var(--muted); }
.cost { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; background: var(--gold-tint); border: 1px solid rgba(154, 106, 5, .25); border-radius: var(--radius-lg); padding: clamp(26px, 3.5vw, 40px); }
.cost-copy { max-width: 44em; }
.cost h3 { font-size: 1.6rem; margin-bottom: .4em; }
.cost p { color: var(--muted); font-size: 1.1rem; }
.cost strong { color: var(--navy-deep); }

/* ---------- Preguntas ---------- */
.faq { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-aside { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-aside h2 { margin-bottom: .5em; }
.faq-aside p { color: var(--muted); font-size: 1.1rem; margin-bottom: 1.5em; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); transition: background-color .3s, border-color .3s; }
.faq-item[open] { background: var(--paper); border-color: rgba(154, 106, 5, .4); box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 72px 22px 26px; font-family: var(--f-display); font-size: clamp(1.18rem, 1.1rem + .3vw, 1.35rem); color: var(--navy-deep); position: relative; line-height: 1.3; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%;
  background: var(--gold-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239A6A05' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/18px no-repeat;
  transition: transform .3s var(--ease), background-color .3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); background-color: var(--gold); }
.faq-a { padding: 0 26px 24px; color: var(--muted); font-size: 1.1rem; max-width: 42em; }

/* ---------- Contacto ---------- */
.contacto { background: var(--navy); color: #E7ECF6; }
.contacto h2 { color: #fff; }
.contacto h2 em { color: var(--gold); }
.contacto .section-intro { color: #C9D3E6; }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.visit-form { position: relative; background: var(--paper); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 44px); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .5); }
.visit-form h3 { font-size: 1.75rem; margin-bottom: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 700; font-size: .98rem; color: var(--navy-deep); }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: 1.05rem/1.4 var(--f-body); color: var(--ink); background: var(--cream); border: 1.5px solid rgba(27, 55, 103, .25); border-radius: 14px; padding: 14px 16px; min-height: 56px; width: 100%; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B3767' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center/20px no-repeat; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-deep); background-color: var(--paper); box-shadow: 0 0 0 4px rgba(228, 168, 21, .3); }
.field .is-invalid { border-color: #B3261E; }
.form-error { color: #B3261E; font-weight: 700; margin-bottom: 14px; }
.form-note { font-size: .95rem; color: var(--muted); text-align: center; margin-top: 14px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.visit-form.is-sending button[type="submit"] { opacity: .7; pointer-events: none; }
.form-success { text-align: center; padding: 24px 8px 8px; }
.form-success .flor { width: 60px; height: 60px; margin-bottom: 12px; }
.form-success h3 { margin-bottom: 12px; }
.form-success p { color: var(--muted); font-size: 1.1rem; }
.visit-form.is-sent > :not(.form-success) { display: none; }

.contact-list { list-style: none; margin: 0 0 24px; padding: 0; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid rgba(255, 255, 255, .13); }
.ci-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(228, 168, 21, .15); color: var(--gold); flex: none; }
.ci-wa { background: rgba(26, 158, 79, .2); color: #5AD68B; }
.ci-label { display: block; font-size: .95rem; color: #B4C2DC; font-weight: 700; margin-bottom: 2px; }
.contact-list a, .contact-list span:not(.ci-label):not(.ci-icon) { color: #fff; font-size: 1.12rem; text-decoration: none; word-break: break-word; line-height: 1.45; display: block; }
.contact-list a:hover { color: var(--gold); text-decoration: underline; }
.contact-list .map-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--gold); font-weight: 700; font-size: 1.02rem; }
.map-link .ic { width: 1.1em; height: 1.1em; }
.social-block { margin-bottom: 22px; }
.social-block .ci-label { margin-bottom: 10px; }
.social { display: flex; gap: 12px; }
.social-btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); color: #fff; transition: background-color .25s, color .25s, border-color .25s; }
.social-btn .ic { width: 24px; height: 24px; }
.social-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.map-ph { height: 280px; border-radius: var(--radius); overflow: hidden; background: var(--cream-2); }
.map-ph iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-deep); color: #C0CBE0; padding: 52px 0 32px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-logo { display: inline-flex; background: var(--cream); border-radius: 18px; padding: 12px 18px; }
.footer-logo img { height: 72px; width: auto; }
.footer-motto { font-family: var(--f-display); font-style: italic; font-size: 1.25rem; color: #fff; margin: 0 0 .3em; }
.footer-addr { margin: 0; font-size: .98rem; }
.footer-addr a { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 22px; font-size: .95rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-nav a { color: #C0CBE0; text-decoration: none; }
.footer-nav a:hover { color: var(--gold); text-decoration: underline; }

/* ---------- Contacto rápido ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; align-items: center; gap: 10px; background: var(--wa); color: #fff; text-decoration: none; font-weight: 700; height: 58px; padding: 0 22px 0 18px; border-radius: 999px; box-shadow: 0 12px 30px -10px rgba(26, 158, 79, .7), 0 2px 6px rgba(0, 0, 0, .12); transition: transform .3s var(--ease); }
.wa-float .ic { width: 28px; height: 28px; }
.wa-float:hover { transform: translateY(-2px); }
.mobile-bar { display: none; }


/* =========================================================
   Movimiento con sentido (suave, sin marear)
   ========================================================= */

/* Subrayado dorado que se dibuja bajo la frase destacada de cada título */
h1 em, h2 em {
  background-image: linear-gradient(rgba(228, 168, 21, .32), rgba(228, 168, 21, .32));
  background-repeat: no-repeat; background-position: 0 88%; background-size: 0% .22em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 1.1s .35s var(--ease);
}
.hero-title em { animation: underline 1.2s .7s var(--ease) forwards; }
@keyframes underline { to { background-size: 100% .22em; } }
.reveal.is-in h2 em, .reveal.is-in em, html:not(.reveal-ready) h2 em { background-size: 100% .22em; }
.contacto h2 em { background-image: linear-gradient(rgba(228, 168, 21, .28), rgba(228, 168, 21, .28)); }

/* Iconos de los datos principales que se dibujan al cargar */
.fact-icon .ic, .card-icon .ic { stroke-dasharray: 120; stroke-dashoffset: 0; }
.facts .fact-icon .ic { animation: draw 1.6s var(--ease) both; }
.facts li:nth-child(1) .ic { animation-delay: .5s; }
.facts li:nth-child(2) .ic { animation-delay: .65s; }
.facts li:nth-child(3) .ic { animation-delay: .8s; }
.facts li:nth-child(4) .ic { animation-delay: .95s; }
.reveal-ready .card.reveal .card-icon .ic { stroke-dashoffset: 120; transition: stroke-dashoffset 1.4s .25s var(--ease); }
.reveal-ready .card.reveal.is-in .card-icon .ic { stroke-dashoffset: 0; }
@keyframes draw { from { stroke-dashoffset: 120; } to { stroke-dashoffset: 0; } }
.facts li { transition: background-color .3s; border-radius: var(--radius-lg); }
.facts li:hover .fact-icon { background: var(--gold); color: var(--navy-deep); }
.fact-icon { transition: background-color .3s, color .3s; }

/* Un día: el fondo cambia con la hora del día y el momento activo se destaca */
.tl-item.is-active .tl-marker { transform: scale(1.12); box-shadow: 0 0 0 8px var(--day-bg, var(--cream)), 0 0 0 14px rgba(228, 168, 21, .25); }
.tl-when { transition: color .6s; }
.tl-item.is-active .tl-when { color: var(--gold-deep); }
.tl-img { transition: transform .8s var(--ease), box-shadow .8s var(--ease); }
.tl-item.is-active .tl-img { transform: translateY(-4px); box-shadow: var(--shadow); }

/* Ingreso: barra de progreso que avanza paso a paso */
.steps-track { position: relative; height: 4px; border-radius: 4px; background: var(--line); margin: 0 0 22px; overflow: hidden; display: none; }
.steps-fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--gold), var(--green)); transform-origin: left; transform: scaleX(var(--sp, 0)); transition: transform .25s linear; }
.js .steps-track { display: block; }
.step { transition: border-color .5s, box-shadow .5s, transform .5s var(--ease); }
.step-num { transition: background-color .5s, color .5s, transform .5s var(--ease); }
.step.is-active { border-color: rgba(154, 106, 5, .45); box-shadow: var(--shadow-sm); }
.step.is-active .step-num { background: var(--gold); color: var(--navy-deep); transform: scale(1.08); }

/* Preguntas: apertura suave */
.faq-a { overflow: hidden; }

/* Fotos: acercamiento suave y ampliación al tocar (cuando haya fotos reales) */
.ph img { transition: transform 1.2s var(--ease); }
.ph:has(img) { cursor: zoom-in; }
.ph:has(img):hover img { transform: scale(1.04); }
.hero-img { will-change: transform; }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(16, 36, 74, .88); display: grid; place-items: center; padding: 24px; opacity: 0; transition: opacity .3s; }
.lightbox.is-open { opacity: 1; }
.lightbox img { max-width: min(1100px, 100%); max-height: 84vh; border-radius: var(--radius); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); }
.lightbox button { position: absolute; top: 18px; right: 18px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--paper); color: var(--navy-deep); font: 700 1.6rem/1 var(--f-body); cursor: pointer; }

/* Barra de contacto del celular: aparece al pasar los botones de la portada */
@media (max-width: 760px) {
  .mb-ready .mobile-bar { transform: translateY(110%); transition: transform .45s var(--ease); }
  .mb-ready .mobile-bar.is-visible { transform: none; }
}


/* Pase de fotos del jardín: fundido suave */
.g-slides .slide { opacity: 0; transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.g-slides .slide.is-active { opacity: 1; }
.slides-nav { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: flex; align-items: center; gap: 8px; background: rgba(255, 253, 248, .94); border-radius: 999px; padding: 4px; box-shadow: var(--shadow-sm); }
.slides-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--navy-deep); font: 700 1.5rem/1 var(--f-body); cursor: pointer; display: grid; place-items: center; padding-bottom: 3px; }
.slides-btn:hover { background: var(--gold-tint); }
.slides-dots { display: flex; gap: 6px; }
.slides-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(16, 36, 74, .25); transition: background-color .3s, transform .3s; }
.slides-dots i.is-active { background: var(--gold-deep); transform: scale(1.2); }

/* ---------- Responsive ---------- */
@media (min-width: 1520px) { .header-phone { display: inline-flex; } }
@media (max-width: 1300px) { .header-cta { display: none; } }
@media (max-width: 1180px) {
  :root { --header-h: 86px; }
  .brand-logo { height: 66px; }
  .menu-toggle { display: block; }
  .header-cta { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 2px;
    background: var(--cream); padding: 14px var(--gutter) 26px; border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -30px rgba(16, 36, 74, .35);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
  .nav a { font-size: 1.15rem; padding: .8em .6em; border-radius: 12px; }
  .nav-cta-mobile { display: inline-flex; margin-top: 12px; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-img { order: -1; aspect-ratio: 16 / 10; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3)::before { display: none; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .mv-cards { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento > .card { grid-column: span 1; grid-row: auto; }
  .bento > .b-a { grid-column: span 2; min-height: 0; }
  .extras { grid-template-columns: 1fr; }
  .extras-list { grid-template-columns: 1fr; gap: 18px; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .tl-item { grid-template-columns: 64px 1fr; }
  .tl-img { grid-column: 2; max-width: 420px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-aside { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { padding-bottom: 76px; }
  .header-cta, .text-size-label { display: none; }
  .text-size { width: 48px; padding: 0; justify-content: center; }
  .wa-float { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 253, 248, .97); border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px -18px rgba(16, 36, 74, .45);
  }
  .mobile-bar a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 54px; border-radius: 14px; font-weight: 700; font-size: .98rem; text-decoration: none; white-space: nowrap; }
  .mobile-bar .ic { width: 1.2em; height: 1.2em; }
  .mb-call { background: var(--paper); color: var(--navy-deep); border: 1.5px solid var(--navy); }
  .mb-wa { background: var(--wa); color: #fff; }
  .mb-visit { background: var(--gold); color: var(--navy-deep); }
}
@media (max-width: 640px) {
  :root { --header-h: 76px; }
  body { font-size: 1.03rem; }
  .header-inner { gap: 10px; }
  .brand-logo { height: 56px; }
  .header-actions { gap: 8px; }
  .menu-toggle, .text-size { width: 46px; height: 46px; }
  .menu-toggle span:not(.sr) { left: 13px; right: 13px; }
  .menu-toggle span:nth-child(1) { top: 18px; }
  .menu-toggle span:nth-child(2) { top: 26px; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1), .menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 22px; }
  .hero-actions .btn { width: 100%; }
  .facts { grid-template-columns: 1fr; }
  .facts li::before { display: none; }
  .facts li + li { border-top: 1px solid var(--line); }
  .facts li { padding: 18px 20px; }
  .bento { grid-template-columns: 1fr; }
  .bento > .b-a { grid-column: span 1; }
  .team { gap: 14px; }
  .member-name { font-size: 1.1rem; }
  .timeline::before, .timeline::after { left: 23px; }
  .tl-item { grid-template-columns: 48px 1fr; gap: 18px; }
  .tl-marker { width: 48px; height: 48px; box-shadow: 0 0 0 6px var(--day-bg, var(--cream)); }
  .tl-marker .ic { width: 22px; height: 22px; }
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 280px 160px 160px; grid-template-areas: "a a" "h1 h2" "c d" "e e"; gap: 10px; }
  .g-cap { left: 8px; bottom: 8px; font-size: .82rem; }
  .gallery .ph::after { font-size: .75rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .faq-item summary { padding: 20px 62px 20px 20px; }
  .faq-a { padding: 0 20px 22px; }
  .cost .btn { width: 100%; }
}
@media (max-width: 380px) {
  .mobile-bar a { font-size: .88rem; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy, .hero-img { animation: none; }
  .hero-img { transform: none !important; }
}

@media print {
  .site-header, .wa-float, .mobile-bar { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
