/* =============================================================
   RentalMe · Media estancia (subweb) — coherente con gestor.rentalme.es
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f4f1ea;
  --bg-2:      #ece6db;
  --paper:     #ffffff;
  --ink:       #18222c;
  --ink-soft:  #3c4a55;
  --ink-mute:  #6a7682;
  --accent:        #0d7d6f;
  --accent-strong: #0a5f54;
  --accent-2:      #e0795f;
  --glass:    rgba(255, 255, 255, 0.55);
  --glass-bd: rgba(255, 255, 255, 0.65);
  --line:     rgba(24, 34, 44, 0.10);
  --line-2:   rgba(24, 34, 44, 0.16);
  --mesh-1: #ffd9a8;
  --mesh-2: #f6b3a0;
  --mesh-3: #a9d8cb;
  --mesh-4: #bcd0f0;
  --display: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif:   "Fraunces", Georgia, "Times New Roman", serif;
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 28px;
  --r-xl: 36px;
  --shadow-sm: 0 6px 20px rgba(24, 34, 44, 0.07);
  --shadow:    0 22px 50px -24px rgba(24, 34, 44, 0.32);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --container: 1140px;
  --gutter: clamp(1.2rem, 4vw, 3rem);
}

/* 2. Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.62; color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: clip; overscroll-behavior-y: none;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.06; letter-spacing: -0.02em; font-family: var(--display); font-weight: 600; }
em { font-style: italic; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.4rem, 8vw, 6rem); position: relative; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--ink); color: #fff; z-index: 9999; border-radius: 8px; font-weight: 600; transition: top .2s var(--ease-out); }
.skip-link:focus { top: 1rem; }

.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-strong); display: inline-flex; align-items: center; gap: .55rem; }
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--accent); display: inline-block; }

.glass { background: rgba(255,255,255,0.72); border: 1px solid var(--glass-bd); box-shadow: var(--shadow-sm); }
@supports ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
  .glass { background: var(--glass); backdrop-filter: blur(20px) saturate(165%); -webkit-backdrop-filter: blur(20px) saturate(165%); }
}

/* 3. Mesh background */
.mesh-bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: var(--bg); pointer-events: none; }
.mesh { position: absolute; border-radius: 50%; filter: blur(90px) saturate(135%); opacity: .72; will-change: transform; }
.mesh-a { width: 46vw; height: 46vw; left: -8vw;  top: -10vw;  background: var(--mesh-1); animation: drift1 24s ease-in-out infinite; }
.mesh-b { width: 40vw; height: 40vw; right: -6vw; top: 6vw;    background: var(--mesh-2); animation: drift2 30s ease-in-out infinite; }
.mesh-c { width: 44vw; height: 44vw; left: 12vw;  bottom: -14vw; background: var(--mesh-3); animation: drift3 27s ease-in-out infinite; }
.mesh-d { width: 34vw; height: 34vw; right: 10vw; bottom: 2vw;  background: var(--mesh-4); animation: drift1 33s ease-in-out infinite reverse; }
@keyframes drift1 { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(4vw,3vw,0) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-5vw,4vw,0) scale(1.08); } }
@keyframes drift3 { 0%,100% { transform: translate3d(0,0,0) scale(1.05); } 50% { transform: translate3d(3vw,-4vw,0) scale(1); } }

/* 4. Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: 999px; font-family: var(--sans); font-weight: 600; font-size: .95rem; letter-spacing: -0.01em; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .25s var(--ease-out), color .25s var(--ease-out); will-change: transform; }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 14px 30px -12px rgba(13, 125, 111, .65); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-2px); box-shadow: 0 20px 38px -14px rgba(13, 125, 111, .7); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: rgba(255,255,255,.5); border: 1px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.ico-wa { width: 19px; height: 19px; flex-shrink: 0; }
.ico-back { width: 16px; height: 16px; flex-shrink: 0; }

/* 5. Header */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 1rem var(--gutter); transition: padding .35s var(--ease-out); }
.nav-inner { max-width: var(--container); margin-inline: auto; display: flex; align-items: center; gap: .8rem; padding: .5rem .6rem .5rem 1.1rem; border-radius: 999px; background: rgba(255,255,255,.55); border: 1px solid var(--glass-bd); transition: box-shadow .35s var(--ease-out), background .35s var(--ease-out); }
@supports (backdrop-filter: blur(18px)) { .nav-inner { background: rgba(255,255,255,.42); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); } }
.nav.is-scrolled .nav-inner { box-shadow: var(--shadow); background: rgba(255,255,255,.7); }
@supports (backdrop-filter: blur(18px)) { .nav.is-scrolled .nav-inner { background: rgba(255,255,255,.62); } }
.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand-logo { height: 30px; width: auto; display: block; }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.nav-back { padding: .55rem .9rem; font-size: .85rem; }
.nav-wa { padding: .6rem 1rem; font-size: .85rem; }
.nav-wa .ico-wa { width: 16px; height: 16px; }

/* 6. Hero */
.hero { padding: clamp(7rem, 13vw, 8.5rem) var(--gutter) clamp(2.5rem, 6vw, 4rem); }
.hero-inner { max-width: var(--container); margin-inline: auto; }
.hero-copy { max-width: 46rem; }
.hero-title { font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.03; margin: 1rem 0 1.1rem; letter-spacing: -0.035em; }
.hero-title em { font-family: var(--serif); font-weight: 500; font-style: italic; color: var(--accent); }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--ink-soft); max-width: 40rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }
.hero-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 500; color: var(--ink-soft); }
.hero-chip strong { color: var(--accent-strong); font-weight: 700; }

/* 7. Section heads */
.section-head { max-width: 50rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-title { font-size: clamp(1.7rem, 3.8vw, 2.6rem); margin: .9rem 0 .8rem; letter-spacing: -0.03em; }
.section-title em { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--accent); }
.section-lead { font-size: 1.05rem; color: var(--ink-soft); max-width: 44rem; }
.section-head.center .section-lead { margin-inline: auto; }

/* 8. Positioning band */
.pos-band { display: grid; gap: 1.4rem; padding: clamp(1.8rem, 4vw, 2.8rem); border-radius: var(--r-xl); }
.pos-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.pos-band h2 em { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--accent); }
.pos-band p { color: var(--ink-soft); font-size: 1.05rem; max-width: 60ch; }
.pos-mid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: .4rem; }
.pos-mid div { background: rgba(255,255,255,.55); padding: 1.1rem 1.2rem; }
.pos-mid strong { display: block; font-family: var(--display); font-weight: 600; color: var(--ink); margin-bottom: .15rem; }
.pos-mid span { font-size: .9rem; color: var(--ink-mute); }

/* 9. Card grids */
.cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.card { padding: 1.5rem; border-radius: var(--r-lg); min-width: 0; }
.card-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(140deg, rgba(13,125,111,.16), rgba(224,121,95,.16)); color: var(--accent-strong); }
.card-ico svg { width: 23px; height: 23px; }
.card h3 { font-size: 1.1rem; margin: .9rem 0 .45rem; }
.card p { color: var(--ink-soft); font-size: .94rem; }

/* lists (para quién / viviendas) */
.list-grid { display: grid; gap: 1.4rem; }
.list-panel { padding: clamp(1.6rem, 3.5vw, 2.2rem); border-radius: var(--r-lg); }
.list-panel h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.check-list { display: grid; gap: .7rem; }
.check-list li { position: relative; padding-left: 1.8rem; color: var(--ink-soft); font-size: .96rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .3em; width: 17px; height: 17px; background: var(--accent); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%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'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }

/* activos completos (secundario) */
.assets-band { padding: clamp(1.6rem, 3.5vw, 2.4rem); border-radius: var(--r-xl); border: 1px solid rgba(13,125,111,.22); }
.assets-band .eyebrow { margin-bottom: .6rem; }
.assets-band h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); }
.assets-band p { color: var(--ink-soft); font-size: 1rem; max-width: 64ch; margin-top: .6rem; }

/* 10. Process steps */
.steps { display: grid; gap: 1rem; grid-template-columns: 1fr; counter-reset: step; }
.step { position: relative; padding: 1.5rem; border-radius: var(--r-lg); background: rgba(255,255,255,.4); border: 1px solid var(--line); }
.step-n { font-family: var(--display); font-weight: 700; font-size: 2.1rem; color: transparent; -webkit-text-stroke: 1.4px var(--accent); letter-spacing: -0.04em; display: block; margin-bottom: .3rem; line-height: 1; }
.step h3 { font-size: 1.05rem; }

/* 11. FAQ */
.faq-wrap { max-width: 760px; margin-inline: auto; }
.faq-list { display: grid; gap: .8rem; }
.faq-item { border-radius: var(--r); padding: 0 1.4rem; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; font-family: var(--display); font-weight: 600; font-size: 1.02rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--sans); font-weight: 400; font-size: 1.5rem; color: var(--accent); transition: transform .3s var(--ease-out); flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--ink-soft); padding-bottom: 1.2rem; margin-top: -.2rem; font-size: .96rem; }

/* 12. CTA final */
.cta-wrap { display: grid; gap: 1.4rem; padding: clamp(1.8rem, 5vw, 3.2rem); border-radius: var(--r-xl); text-align: center; justify-items: center; }
.cta-title { font-size: clamp(1.7rem, 3.8vw, 2.5rem); letter-spacing: -0.03em; max-width: 24ch; }
.cta-title em { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--accent); }
.cta-lead { color: var(--ink-soft); font-size: 1.05rem; max-width: 48ch; }

/* 13. Footer */
.footer { padding: clamp(2.6rem, 5vw, 4rem) 0 2rem; margin-top: clamp(2.5rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 2rem; }
.footer-logo { height: 34px; width: auto; display: block; margin-bottom: .7rem; }
.footer-brand p { color: var(--ink-mute); max-width: 30rem; font-size: .95rem; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.footer-cols h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-mute); margin-bottom: .9rem; font-family: var(--sans); }
.footer-cols a { display: block; color: var(--ink-soft); padding: .28rem 0; font-size: .95rem; transition: color .2s; }
.footer-cols a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; align-items: center; margin-top: 2.2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-mute); }
.footer-top:hover { color: var(--accent); }

/* 14. Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

/* 15. Responsive */
@media (min-width: 540px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .pos-mid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 760px) {
  .list-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 960px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

/* 16. Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mesh { animation: none; }
  .reveal { transition-duration: .35s; }
}
