/* ============================================================
   Flex Living · Hoja de estilos principal
   Alquiler de pisos amueblados de media estancia · España y Andorra
   Paleta: verde bosque + terracota cálida sobre blanco cálido
   ============================================================ */

:root {
  --brand: #0f5646;
  --brand-dark: #0a3b30;
  --brand-700: #0c493c;
  --brand-soft: #e7f0eb;
  --brand-tint: #f2f7f4;
  --accent: #c56a3b;
  --accent-ink: #9c4f27;
  --accent-soft: #f7ece2;
  --ink: #1d231e;
  --muted: #59615a;
  --muted-2: #7a827b;
  --bg: #ffffff;
  --cream: #f7f5ef;
  --cream-2: #f1eee5;
  --line: #e6e2d6;
  --line-2: #efece3;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(20,40,32,.05), 0 2px 8px rgba(20,40,32,.04);
  --shadow-md: 0 6px 24px rgba(16,54,44,.09), 0 2px 6px rgba(16,54,44,.05);
  --shadow-lg: 0 18px 50px rgba(16,54,44,.16), 0 6px 16px rgba(16,54,44,.07);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --header-h: 76px;
  --maxw: 1200px;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
p { text-wrap: pretty; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.2rem); }
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.15em; }
.section { padding-block: clamp(3.4rem, 7vw, 6rem); }
.section--cream { background: var(--cream); }
.section--tint { background: var(--brand-tint); }
.below-fold { content-visibility: auto; contain-intrinsic-size: auto 700px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 700; font-size: .74rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-head { max-width: 760px; margin-bottom: 2.6rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-top: .7rem; }
.section-head p { margin-top: 1rem; color: var(--muted); font-size: 1.06rem; }
.lead { font-size: 1.18rem; color: var(--muted); }
.center { text-align: center; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .92rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 1.5px solid transparent; transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
  line-height: 1; white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-accent:hover { background: var(--accent-ink); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.btn-wa { background: #25D366; color: #063; color: #073d27; }
.btn-wa { color: #fff; background: #1fab54; }
.btn-wa:hover { background: #178f45; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-sm { padding: .66rem 1.15rem; font-size: .92rem; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.08rem; }
/* variantes sobre fondo oscuro */
.on-dark .btn-ghost, .cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.on-dark .btn-ghost:hover, .cta-band .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color:#fff; }
.btn-link { color: var(--brand); font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.btn-link svg { width: 1.05em; height: 1.05em; transition: transform .2s var(--ease); }
.btn-link:hover { color: var(--accent-ink); }
.btn-link:hover svg { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(20,40,32,.05); background: rgba(255,255,255,.94); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.32rem; color: var(--brand); letter-spacing: -.01em; flex-shrink: 0; }
.brand .mark { width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .95rem; font-weight: 700; box-shadow: var(--shadow-sm); }
.brand .mark span { transform: translateY(-.5px); letter-spacing: -.03em; }
.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a.nav-item { display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .82rem; border-radius: 10px; font-weight: 500; font-size: .97rem; color: var(--ink); white-space: nowrap; transition: background .18s, color .18s; }
.nav-links a.nav-item:hover, .nav-links a.nav-item[aria-current="page"] { background: var(--brand-soft); color: var(--brand-dark); }
.nav-actions { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.nav-tel { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--brand); font-size: .97rem; white-space: nowrap; }
.nav-tel svg { width: 1.05em; height: 1.05em; }
/* dropdown */
.nav-dropdown > .nav-item svg.caret { width: .9em; height: .9em; transition: transform .2s; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 236px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: .5rem; list-style: none; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav-dropdown:hover .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown:hover .caret { transform: rotate(180deg); }
.dropdown-menu a { display: block; padding: .62rem .8rem; border-radius: 9px; font-size: .95rem; color: var(--ink); transition: background .15s; }
.dropdown-menu a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.dropdown-menu a small { display: block; color: var(--muted-2); font-size: .8rem; font-weight: 400; margin-top: .1rem; }
/* hamburger */
.hamburger { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; position: relative; }
.hamburger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--brand-dark); border-radius: 2px; transition: transform .28s var(--ease), opacity .2s; }
.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { top: 22px; }
.hamburger span:nth-child(3) { top: 29px; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  .hamburger { display: block; }
  .nav-links, .nav > .nav-actions .nav-tel { display: none; }
  .nav-panel {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .28s var(--ease), opacity .28s var(--ease), visibility .28s;
    padding: 1rem clamp(1.1rem, 4vw, 2.2rem) 2rem;
  }
  .nav-panel.is-open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-panel .nav-links { display: flex; flex-direction: column; align-items: stretch; gap: .15rem; }
  .nav-panel .nav-item { padding: .95rem .6rem; font-size: 1.08rem; border-radius: 12px; justify-content: space-between; }
  .nav-panel .nav-dropdown .caret { transition: transform .25s; }
  .nav-panel .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none;
    max-height: 0; overflow: hidden; padding: 0 0 0 .8rem; border-left: 2px solid var(--brand-soft);
    margin-left: .6rem; transition: max-height .3s var(--ease);
  }
  .nav-panel .nav-dropdown.is-open .dropdown-menu { max-height: 460px; }
  .nav-panel .nav-dropdown.is-open .caret { transform: rotate(180deg); }
  .nav-panel .m-actions { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
  .nav-panel .m-actions .btn { width: 100%; }
}
@media (min-width: 1025px) { .nav-panel { display: contents; } .nav-panel .m-actions { display: none; } }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding-block: 1.1rem .2rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; font-size: .86rem; color: var(--muted-2); }
.breadcrumb li { display: flex; align-items: center; gap: .5rem; }
.breadcrumb li + li::before { content: "›"; color: var(--line); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(2.2rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem); overflow: clip; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 55% at 88% 8%, var(--accent-soft) 0%, transparent 55%),
  radial-gradient(50% 60% at 6% 92%, var(--brand-tint) 0%, transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); letter-spacing: -.025em; }
.hero h1 em { font-style: italic; color: var(--brand); }
.hero .lead { margin-top: 1.3rem; max-width: 34ch; }
.hero-entity { margin-top: 1.3rem; font-size: .98rem; color: var(--muted); max-width: 46ch; }
.hero-entity strong { color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem; }
.hero-media { position: relative; }
.hero-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; }
.hero-badge {
  position: absolute; left: -18px; bottom: 26px; background: #fff; border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: .9rem 1.15rem; display: flex; align-items: center; gap: .75rem;
  border: 1px solid var(--line-2);
}
.hero-badge .stars { color: var(--accent); font-size: 1rem; letter-spacing: .05em; }
.hero-badge strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--brand); }
.hero-badge small { color: var(--muted-2); font-size: .82rem; }

/* ---------- Trust bar ---------- */
.trust { border-block: 1px solid var(--line); background: var(--cream); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: 1.7rem; }
.trust-item { display: flex; align-items: center; gap: .85rem; }
.trust-item .ic { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.trust-item .ic svg { width: 22px; height: 22px; }
.trust-item b { display: block; font-family: var(--font-display); font-size: 1.28rem; color: var(--ink); line-height: 1; }
.trust-item span { font-size: .86rem; color: var(--muted); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.card .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 1.1rem; }
.card .ic svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.28rem; }
.card p { margin-top: .55rem; color: var(--muted); font-size: .98rem; }
.card .btn-link { margin-top: 1rem; }
.card--star { background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; border-color: transparent; }
.card--star h3, .card--star p { color: #fff; }
.card--star p { color: rgba(255,255,255,.85); }
.card--star .ic { background: rgba(255,255,255,.14); color: #fff; }
.card--star .btn-link { color: #fff; }
.card--star .tag { position: absolute; }
.card-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft); padding: .3rem .6rem; border-radius: 999px; margin-bottom: .9rem; }
.card--star .card-tag { background: rgba(255,255,255,.16); color: #fff; }

/* Feature list */
.feature-list { list-style: none; display: grid; gap: 1.1rem; }
.feature-list li { display: flex; gap: .9rem; align-items: flex-start; }
.feature-list .tick { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-top: .15rem; }
.feature-list .tick svg { width: 15px; height: 15px; }
.feature-list b { display: block; }
.feature-list span { color: var(--muted); font-size: .96rem; }

/* Internal page cards (image overlay) */
.pagecard { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 320px; display: flex; align-items: flex-end; box-shadow: var(--shadow-md); }
.pagecard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .5s var(--ease); }
.pagecard::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,59,48,0) 30%, rgba(10,59,48,.82) 100%); }
.pagecard:hover img { transform: scale(1.06); }
.pagecard .pc-body { position: relative; z-index: 2; padding: 1.7rem; color: #fff; }
.pagecard .pc-body h3 { color: #fff; font-size: 1.5rem; }
.pagecard .pc-body p { color: rgba(255,255,255,.88); margin-top: .4rem; font-size: .96rem; }
.pagecard .pc-body .btn-link { color: #fff; margin-top: .9rem; }

/* Split media section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 5/4; object-fit: cover; }

/* VS comparison */
.vs-comparison { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.6rem); }
.vs-table { width: 100%; border-collapse: collapse; margin-top: 1.4rem; font-size: .98rem; }
.vs-table th, .vs-table td { padding: .95rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.vs-table thead th { font-family: var(--font-body); font-weight: 700; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: transparent; }
.vs-table thead th:nth-child(2) { color: var(--brand); }
.vs-table thead th:nth-child(3) { color: var(--accent-ink); }
.vs-table td:first-child { font-weight: 600; color: var(--ink); }
.vs-table tbody tr:last-child td { border-bottom: none; }
.vs-wrap { overflow-x: auto; }

/* TL;DR */
.tldr { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); padding: 1.1rem 1.35rem; margin-block: 1.4rem; border-radius: 12px; }
.tldr-label { font-weight: 700; letter-spacing: .08em; font-size: .74rem; text-transform: uppercase; color: var(--brand); margin-bottom: .5rem; }
.tldr ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.tldr li { color: var(--muted); }
.tldr li strong { color: var(--ink); }

/* About / team */
.team-card { display: grid; grid-template-columns: 300px 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: center; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.6rem); }
.team-card img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/5; object-fit: cover; box-shadow: var(--shadow-md); }
.team-card .role { color: var(--accent-ink); font-weight: 600; font-size: .95rem; }
.team-card .sign { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--brand); margin-top: 1rem; }

/* Testimonials */
.testi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.testi .stars { color: var(--accent); letter-spacing: .08em; margin-bottom: .8rem; }
.testi blockquote { font-size: 1.02rem; color: var(--ink); line-height: 1.6; }
.testi .who { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line-2); display: flex; align-items: center; gap: .8rem; }
.testi .who .av { width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); flex-shrink: 0; }
.testi .who b { display: block; font-size: .95rem; }
.testi .who span { font-size: .82rem; color: var(--muted-2); }

/* FAQ */
.faq { display: grid; gap: .8rem; max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--brand-soft); }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 1.35rem; font-weight: 600; font-size: 1.06rem; color: var(--ink); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); font-weight: 400; font-size: 1.5rem; color: var(--brand); transition: transform .25s; flex-shrink: 0; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 1.35rem 1.25rem; color: var(--muted); }
.faq .faq-a p + p { margin-top: .7rem; }

/* Zones */
.zone-pills { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .95rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .92rem; color: var(--ink); font-weight: 500; transition: background .18s, border-color .18s, color .18s; }
.chip:hover { background: var(--brand-soft); border-color: var(--brand-soft); color: var(--brand-dark); }
.chip svg { width: .95em; height: .95em; color: var(--accent); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(155deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.4rem, 6vw, 4rem); text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 100% 0%, rgba(197,106,59,.35) 0%, transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); }
.cta-band p { color: rgba(255,255,255,.85); max-width: 54ch; margin: 1rem auto 0; font-size: 1.08rem; }
.cta-band .hero-cta { justify-content: center; margin-top: 2rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); }
.contact-methods { display: grid; gap: 1rem; }
.contact-method { display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .2s, transform .2s; }
.contact-method:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.contact-method .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.contact-method .ic svg { width: 24px; height: 24px; }
.contact-method b { font-size: 1.08rem; }
.contact-method a, .contact-method p { color: var(--muted); font-size: .98rem; margin-top: .2rem; display: block; }
.contact-method a:hover { color: var(--brand); }
.info-panel { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.4rem); }
.info-panel dl { display: grid; gap: .8rem; margin-top: 1.2rem; }
.info-panel dt { font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.info-panel dd { color: var(--ink); }
.hours-row { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px dashed var(--line); font-size: .96rem; }
.hours-row:last-child { border-bottom: none; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; }
.blog-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card a { display: block; height: 100%; }
.blog-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.blog-card__body { padding: 1.35rem 1.4rem 1.5rem; }
.blog-card__category { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft); padding: .28rem .6rem; border-radius: 999px; }
.blog-card__title { font-size: 1.25rem; margin-top: .8rem; line-height: 1.25; }
.blog-card__excerpt { color: var(--muted); font-size: .96rem; margin-top: .55rem; }
.blog-card__meta { margin-top: 1.1rem; display: flex; gap: 1rem; align-items: center; font-size: .82rem; color: var(--muted-2); }
.blog-card__meta span::before { content: "·"; margin-right: 1rem; color: var(--line); }
.skeleton { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.skeleton .sk-img { aspect-ratio: 16/9; background: var(--cream-2); }
.skeleton .sk-body { padding: 1.35rem 1.4rem 1.6rem; }
.sk-line { height: 13px; border-radius: 6px; background: var(--cream-2); margin-bottom: .7rem; }
.sk-line.w40 { width: 40%; } .sk-line.w80 { width: 80%; } .sk-line.w60 { width: 60%; }
.skeleton .sk-img, .sk-line { animation: skPulse 1.4s ease-in-out infinite; }
@keyframes skPulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.blog-empty { grid-column: 1/-1; text-align: center; padding: 3rem 1rem; color: var(--muted); }

/* Article body */
.article { max-width: 720px; margin-inline: auto; }
.article-hero img { width: 100%; aspect-ratio: 16/8; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); margin-bottom: 2rem; }
.article-meta { display: flex; gap: 1rem; align-items: center; font-size: .88rem; color: var(--muted-2); margin-bottom: 1.2rem; }
.article-body { font-size: 1.08rem; }
.article-body > * + * { margin-top: 1.2em; }
.article-body h2 { font-size: 1.7rem; margin-top: 1.8em; }
.article-body h3 { font-size: 1.3rem; margin-top: 1.4em; }
.article-body ul, .article-body ol { padding-left: 1.4rem; display: grid; gap: .5rem; color: var(--muted); }
.article-body blockquote { border-left: 4px solid var(--brand); padding: .3rem 0 .3rem 1.3rem; font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--brand-dark); }
.article-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* Legal pages */
.legal { max-width: 760px; margin-inline: auto; }
.legal h2 { font-size: 1.5rem; margin-top: 2em; }
.legal h3 { font-size: 1.15rem; margin-top: 1.4em; }
.legal p, .legal li { color: var(--muted); }
.legal ul, .legal ol { padding-left: 1.4rem; display: grid; gap: .4rem; margin-top: .6rem; }
.legal a { color: var(--brand); text-decoration: underline; }
.legal .updated { color: var(--muted-2); font-size: .9rem; margin-bottom: 1.5rem; }

/* Updated stamp */
.updated-stamp { text-align: center; color: var(--muted-2); font-size: .88rem; padding-block: 2rem 0; }

/* ---------- Footer (claro) ---------- */
.site-footer { background: var(--cream); border-top: 1px solid var(--line); position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--brand) 0%, var(--brand) 40%, var(--accent) 40%, var(--accent) 100%); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1.1fr 1fr; gap: 2.2rem; padding-block: clamp(2.8rem, 5vw, 4rem) 2.6rem; }
.footer-brand .brand { font-size: 1.3rem; margin-bottom: 1rem; }
.footer-brand p { color: var(--muted); font-size: .96rem; max-width: 34ch; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.3rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--brand); transition: background .18s, color .18s, transform .18s; }
.footer-social a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 19px; height: 19px; }
.footer-col h3 { font-family: var(--font-body); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; display: grid; gap: .6rem; }
.footer-col a { color: var(--muted); font-size: .95rem; transition: color .15s; }
.footer-col a:hover { color: var(--brand); }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; color: var(--muted); font-size: .95rem; }
.footer-contact svg { width: 17px; height: 17px; color: var(--brand); flex-shrink: 0; margin-top: .25rem; }
.footer-contact a { color: var(--muted); }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; font-size: .86rem; color: var(--muted-2); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.footer-bottom nav a:hover { color: var(--brand); }

/* ---------- WhatsApp float ---------- */
@keyframes tmPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 50% { box-shadow: 0 0 0 14px rgba(37,211,102,0); } }
.tm-whatsapp-float { position: fixed; bottom: 24px; right: 24px; z-index: 999999; width: 60px; height: 60px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,.4); animation: tmPulse 2s infinite; transition: transform .2s ease; }
.tm-whatsapp-float:hover { transform: scale(1.1); }
.tm-whatsapp-float:focus-visible { outline: 3px solid #25D366; outline-offset: 3px; }
.tm-whatsapp-float svg { width: 32px; height: 32px; fill: #fff; }
@media (prefers-reduced-motion: reduce) { .tm-whatsapp-float { animation: none; } }

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
/* El contenido SIEMPRE es visible (opacity 1). La entrada solo desliza en Y,
   de modo que si el motor de animación se pausa, el contenido sigue legible. */
.reveal { opacity: 1; transform: none; }
html.js .reveal { transition: transform .7s var(--ease); }
html.js .reveal:not(.in) { transform: translateY(22px); }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js .reveal:not(.in) { transform: none !important; transition: none !important; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- Focus ---------- */
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 10px 0; z-index: 1000; font-weight: 600; }
.skip-link:focus { left: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 460px; }
  .hero .lead, .hero-entity { max-width: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .team-card { grid-template-columns: 1fr; }
  .team-card img { max-width: 300px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 1.4rem 1rem; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .hero-badge { left: 10px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 460px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}
