/* Qualinor Servicios Técnicos — estilo basado en el sistema visual de Casa Practica
   (tarjetas crema, pie oliva, botones pill, titulares grandes y ligeros).
   Tipografía: Geist (OFL), alojada en /fonts/. */

@font-face { font-family: "Geist"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/fonts/geist-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/fonts/geist-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --accent: #444835;
  --ink: #282828;
  --cream: #f8f8f1;
  --cream-2: #f0f0e7;
  --muted: #77796e;
  --line: #e5e5dc;
  --sage: #eceee5;
  --sage-ink: #637147;
  --sage-strong: #e2e7d3;
  --peach: #f5e7dd;
  --peach-ink: #8a4a32;
  --mustard: #e3b04b;
  --mustard-soft: #f8eed6;
  --mustard-ink: #7a5512;
  --font-body: "Geist", Arial, sans-serif;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: progress; opacity: 0.6; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 { font-size: 68px; }
h2 { font-size: 48px; }
h3 { font-size: 28px; }
p { color: var(--muted); text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
abbr[title] { text-decoration: none; }
address { font-style: normal; }
::selection { background: #dce1ce; color: var(--ink); }
:focus-visible { outline: 2px solid #828a64; outline-offset: 5px; }
.icon { flex-shrink: 0; }

.container { width: min(1164px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 100px; }
.skip:focus { top: 12px; }

/* ---------- Etiquetas ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; line-height: 1.2; font-weight: 400; letter-spacing: 0.015em; text-transform: uppercase;
  color: var(--ink); background: var(--cream); padding: 9px 10px; border-radius: 6px;
}
.eyebrow-peach { background: #f5e7dd; color: #64382b; }
.eyebrow-sage { background: var(--sage); color: var(--accent); }

/* ---------- Botones ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid #c9c9bd; border-radius: 100px;
  font-size: 14px; line-height: 1.4; font-weight: 450;
  background: transparent;
  transition: background 0.2s, opacity 0.2s;
}
.button-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.button-dark:hover { background: #444; }
.button-light { background: #fff; }
.button-light:hover { background: var(--cream); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button-row-center { justify-content: center; }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; padding: 8px 0; color: var(--ink); }
.text-link:hover { color: var(--muted); }
.text-link .icon { transition: transform .2s; }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Cabecera ---------- */
.header {
  position: fixed; top: 0; width: 100%; z-index: 40;
  background: #fffffff2; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #2828280b;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.header-inner {
  height: 76px; padding: 12px 40px; max-width: 1800px; margin: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.header-over-hero { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; color: #fff; }
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; color: inherit; }
.brand-lettering { font-size: 29px; font-weight: 550; letter-spacing: -1px; line-height: 1; }
.brand-emblem { width: 28px; height: 28px; flex-shrink: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-benefits, .header-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid #c9c9bd; border-radius: 100px;
  padding: 10px 20px; min-height: 40px; font-size: 14px; line-height: 1.2; white-space: nowrap;
  transition: background .2s, opacity .2s;
}
.header-benefits[aria-current="page"] { background: #28282808; }
.header-cta { background: var(--ink); color: #fff; border-color: var(--ink); }
.header-over-hero .header-benefits { border-color: #fff; }
.header-over-hero .header-cta { background: #fff; color: var(--ink); border-color: #fff; }
.header-benefits:hover { background: #28282808; }
.header-over-hero .header-benefits:hover { background: #ffffff20; }
.header-cta:hover { opacity: 0.85; }
.menu-toggle, .icon-button {
  display: flex; align-items: center; justify-content: center;
  padding: 8px; border: 0; background: transparent; color: inherit;
}
.menu-toggle { margin-right: -8px; }
.menu-toggle .icon { width: 24px; height: 24px; }

/* Menú lateral */
.navigation-dialog {
  position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none;
  background: transparent; border: 0; padding: 0; margin: 0; color: var(--ink);
}
.navigation-dialog::backdrop { background: #14170e65; backdrop-filter: blur(5px); }
.navigation-panel {
  width: min(480px, 90vw); height: 100%; margin-left: auto;
  background: var(--cream); padding: 30px;
  display: flex; flex-direction: column; overflow: auto;
}
.navigation-dialog[open] .navigation-panel { animation: panel-in .3s cubic-bezier(.2,.7,.2,1); }
@keyframes panel-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.navigation-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 40px; }
.navigation-top .brand-lettering { font-size: 25px; }
.navigation-panel nav { display: grid; margin: 10px 0 20px; }
.navigation-panel nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 26px; letter-spacing: -0.02em;
}
.navigation-panel nav a:hover, .navigation-panel nav a[aria-current="page"] { color: var(--muted); }
.navigation-services { display: grid; gap: 10px; margin-top: 12px; font-size: 15px; }
.navigation-services span { font-size: 12px; text-transform: uppercase; letter-spacing: .015em; color: var(--muted); margin-bottom: 4px; }
.navigation-services a:hover { color: var(--muted); }
.navigation-bottom { margin-top: auto; padding-top: 40px; display: grid; gap: 12px; }
.navigation-bottom span { font-size: 14px; color: var(--muted); }

/* ---------- Hero (portada) ---------- */
.casa-hero {
  height: 100svh; min-height: 640px; position: relative;
  display: flex; align-items: center; justify-content: center;
  background: #211b14; color: #fff; overflow: hidden;
}
.casa-hero-poster, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { z-index: 2; background: #0f0c0880; pointer-events: none; }
.casa-hero-copy { position: relative; z-index: 3; text-align: center; padding: 140px 24px; }
.casa-hero-copy h1 { font-size: 68px; line-height: 1.1; letter-spacing: -0.025em; max-width: 920px; margin-inline: auto; }
.casa-hero-copy p { font-size: 24px; line-height: 1.3; max-width: 560px; color: #fff; margin: 24px auto 0; }
.hero-news {
  position: absolute; top: 90px; z-index: 3;
  display: inline-flex; align-items: center; justify-content: center; gap: 20px;
  background: #ffffff26; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 100px; padding: 10px 20px; font-size: 13px; line-height: 20px;
  transition: background .2s;
}
.hero-news:hover { background: #ffffff38; }
.hero-news > span:first-child { font-size: 11px; letter-spacing: 0.04em; }
.hero-news-divider { width: 1px; height: 16px; background: #ffffff40; }
.hero-news em { font-size: 15px; }
.casa-hero-bottom {
  position: absolute; bottom: 44px; left: 20px; right: 20px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.hero-start {
  width: 360px; max-width: 100%; min-height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #ffffff33; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-radius: 100px; padding: 8px 8px 8px 20px; font-size: 16px; transition: background 0.2s;
}
.hero-start:hover { background: #ffffff4d; }
.hero-start > span:first-child { display: flex; align-items: center; gap: 16px; }
.hero-start-icon { width: 40px; height: 40px; background: #e6ead8; border-radius: 50%; color: var(--sage-ink); display: grid; place-items: center; flex-shrink: 0; }
.casa-hero-bottom p { color: #ffffffb3; font-size: 14px; }

/* ---------- Contenido de portada ---------- */
.casa-home-content { padding: 160px 0; display: flex; flex-direction: column; gap: 160px; }
.casa-how { border-radius: 40px; background: var(--cream); padding: 60px 50px; }
.casa-how h2 { text-align: center; font-size: 36px; }
.casa-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; margin-top: 50px; }
.casa-steps article { text-align: center; }
.step-icon { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: var(--sage); color: var(--accent); display: grid; place-items: center; }
.casa-steps h3 { font-size: 16px; letter-spacing: 0; line-height: 1.4; margin-bottom: 4px; }
.casa-steps p { font-size: 14px; line-height: 1.4; }

.casa-section-heading { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.casa-section-heading h2 { font-size: 68px; line-height: 1.1; max-width: 950px; }
.casa-section-heading p { max-width: 650px; font-size: 18px; line-height: 1.4; color: var(--ink); text-wrap: balance; }

.casa-tasks { display: flex; flex-direction: column; gap: 100px; }
.casa-task-photo { height: 646px; position: relative; overflow: hidden; color: #fff; }
.casa-task-photo > img { position: absolute; inset: 0; object-position: center 55%; }
.task-shade { position: absolute; inset: 0; background: #1d201380; }
.task-wheel {
  position: relative; height: 100%;
  display: flex; align-items: center; justify-content: center; gap: 36px;
  font-size: 48px; line-height: 1.2; padding: 40px; letter-spacing: -0.025em;
}
.task-wheel > span { max-width: 340px; text-align: right; }
.task-wheel-window {
  height: 420px; overflow-y: auto; scrollbar-width: none; scroll-snap-type: y proximity;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, #000 65%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, #000 65%, transparent 100%);
}
.task-wheel-window::-webkit-scrollbar { display: none; }
.task-wheel-window:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
.task-wheel-list { padding-block: 168px; }
.task-wheel-list a { display: flex; align-items: center; gap: 14px; padding: 4px 0; scroll-snap-align: center; transition: opacity .2s; }
.task-wheel-list a .icon { width: 22px; height: 22px; opacity: .8; }
.task-wheel-list a:hover { opacity: .75; }

.feature-rows { display: flex; flex-direction: column; gap: 100px; }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature-row-reverse .feature-image { order: -1; }
.feature-copy h2 { font-size: 40px; line-height: 1.12; margin-bottom: 16px; }
.feature-copy p { font-size: 16px; max-width: 440px; margin-bottom: 16px; }
.feature-image { border-radius: 36px; overflow: hidden; aspect-ratio: 5 / 6; }
.feature-image img { transition: transform .6s; }
.feature-row:hover .feature-image img { transform: scale(1.03); }
.feature-row-text { align-items: start; }
.feature-row-text p { font-size: 18px; line-height: 1.6; max-width: none; }

.center-heading { text-align: center; display: flex; flex-direction: column; align-items: center; }
.center-heading h1, .center-heading h2 { margin: 20px 0; }
.center-heading p { max-width: 620px; margin: 0 auto 35px; }

.home-services { display: flex; flex-direction: column; align-items: center; scroll-margin-top: 110px; }
.home-services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; width: 100%; }
.home-service-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: #fafaf6;
  transition: border-color 0.2s;
}
.home-service-card:hover { border-color: var(--accent); }
.home-service-image { aspect-ratio: 4 / 3; overflow: hidden; }
.home-service-image img { transition: transform .6s; }
.home-service-card:hover .home-service-image img { transform: scale(1.04); }
.home-service-copy { display: flex; flex-direction: column; flex: 1; padding: 26px; }
.home-service-copy h3 { font-size: 28px; line-height: 1.15; }
.home-service-copy p { color: var(--muted); font-size: 14px; margin: 12px 0 24px; }
.home-service-copy > span { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; font-size: 14px; }

.home-help { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.home-help article { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding: 48px; border-radius: 28px; border: 1px solid var(--line); }
.home-help article > .icon { width: 24px; height: 24px; color: var(--accent); }
.home-help article.home-help-primary { background: var(--cream); border-color: transparent; }
.home-help h2 { font-size: 40px; line-height: 1.1; }
.home-help p { font-size: 17px; color: var(--muted); }
.home-help .button, .home-help .text-link { margin-top: auto; }
.home-help small { color: var(--muted); font-size: 12px; margin-top: -10px; }

.club-value { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding-block: 48px; border-block: 1px solid var(--line); }
.club-value-intro h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.15; margin: 18px 0; max-width: 450px; }
.club-value-intro > p { color: var(--muted); margin-bottom: 26px; max-width: 380px; }
.club-value-benefits { display: grid; gap: 22px; }
.club-value-benefits article { display: flex; gap: 16px; }
.club-value-benefits article > .icon { color: var(--accent); margin-top: 4px; width: 20px; height: 20px; }
.club-value-benefits h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.club-value-benefits article p { font-size: 13px; line-height: 1.7; color: var(--muted); margin: 0; }

.trust-standard h2 { font-size: 46px; margin: 20px 0 36px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 24px; }
.trust-grid.two-col { grid-template-columns: 1fr 1fr; }
.trust-grid article { padding: 26px; border: 1px solid var(--line); border-radius: 24px; display: flex; flex-direction: column; gap: 12px; }
.trust-grid h3, .trust-grid h2 { font-size: 28px; }
.trust-grid p { color: var(--muted); }
.trust-meta { font-size: 12px; text-transform: uppercase; letter-spacing: .015em; color: var(--muted); }
.trust-grid dl { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; }
.trust-grid dl div { display: grid; grid-template-columns: 80px 1fr; gap: 12px; }
.trust-grid dt { color: var(--muted); }
.trust-grid dd { margin: 0; }

.check-list { display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.check-list .icon { color: var(--accent); margin-top: 2px; }

.chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip-row-left { justify-content: flex-start; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 100px; font-size: 14px; background: #fff;
}
.chip .icon { width: 15px; height: 15px; color: var(--muted); }
.chip-link { transition: border-color .2s, background .2s; }
.chip-link:hover { border-color: var(--accent); background: var(--cream); }

/* FAQ */
.faq-section { max-width: 1164px; }
.faq-section .center-heading h2 { margin-top: 20px; margin-bottom: 36px; }
.faq-list { display: grid; gap: 16px; }
.faq-list details { background: var(--cream); border-radius: 38px; padding: 0 32px; }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-size: 18px; cursor: pointer; list-style: none; padding: 25px 0;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary > span { font-size: 24px; font-weight: 300; transition: transform 0.2s; }
.faq-list details[open] summary > span { transform: rotate(45deg); }
.faq-list details p { font-size: 16px; line-height: 1.6; max-width: 850px; padding: 0 30px 28px 0; }

.home-final-cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; padding-bottom: 80px; }
.home-final-cta h2 { font-size: clamp(36px, 5vw, 56px); line-height: 1.1; }
.home-final-cta p { color: var(--muted); max-width: 560px; }
.home-final-cta .button-row { margin-top: 0; justify-content: center; }
main > .home-final-cta { padding-top: 40px; padding-bottom: 120px; }
main > .faq-section { padding-bottom: 120px; }

/* ---------- Páginas interiores ---------- */
.page-section { padding-top: 145px; padding-bottom: 100px; }
.page-heading h1 { font-size: clamp(40px, 5vw, 60px); max-width: 900px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.center-heading .crumbs ol { justify-content: center; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #c9c9bd; }
.crumbs a:hover, .crumbs [aria-current] { color: var(--ink); }

.page-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.page-hero-copy h1 { font-size: clamp(40px, 4.6vw, 58px); margin: 20px 0 24px; }
.page-hero-copy > p { font-size: 18px; line-height: 1.5; max-width: 520px; }
.page-hero-image { border-radius: 36px; overflow: hidden; aspect-ratio: 5 / 6; max-height: 660px; }

.includes-panel h2 { margin-bottom: 36px; }
.includes-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; max-width: 900px; margin: 0 auto; }
.includes-list li { display: flex; gap: 14px; align-items: center; font-size: 16px; line-height: 1.4; }
.includes-list .icon { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: #fff; color: var(--accent); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 80px; align-items: start; padding-block: 120px; }
.article { display: grid; gap: 64px; max-width: 720px; }
.article h2 { font-size: 36px; margin-bottom: 20px; }
.article p { font-size: 17px; line-height: 1.7; margin-bottom: 14px; }
.article strong { color: var(--ink); font-weight: 500; }
.article a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #c9c9bd; }
.steps { counter-reset: s; display: grid; gap: 10px; margin-bottom: 14px; }
.steps li { counter-increment: s; position: relative; padding: 18px 20px 18px 64px; background: var(--cream); border-radius: 20px; color: var(--muted); line-height: 1.55; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--accent); display: grid; place-items: center; font-size: 14px; }
.ticks { display: grid; gap: 10px; margin-bottom: 14px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); line-height: 1.55; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 10px; height: 5px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }
.article-aside { position: sticky; top: 110px; }

.contact-card { background: var(--cream); border-radius: 28px; padding: 32px; display: grid; gap: 22px; }
.contact-card h3 { font-size: 24px; }
.contact-card ul { display: grid; gap: 14px; font-size: 14px; }
.contact-card li { display: flex; gap: 12px; align-items: flex-start; overflow-wrap: anywhere; }
.contact-card li .icon { color: var(--accent); margin-top: 1px; }
.contact-card a:hover { color: var(--muted); }
.contact-card .button { width: 100%; }

.related { padding-bottom: 120px; }
.related h2 { font-size: 28px; margin-bottom: 20px; }
.related .chip .icon { width: 14px; height: 14px; }

.scope-panel { padding-bottom: 120px; }
.scope-list { max-width: 820px; margin: 36px auto 0; display: grid; }
.scope-list a { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.scope-list li:last-child a { border-bottom: 0; }
.scope-list a span { flex: 1; }
.scope-list a .icon:first-child { color: var(--accent); }
.scope-list a:hover { color: var(--muted); }

.case-grid { margin-top: 20px; }
.gallery-section { padding-bottom: 140px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery img { aspect-ratio: 4 / 3; border-radius: 24px; height: auto; }
.gallery figcaption { font-size: 14px; color: var(--muted); padding: 12px 4px 0; }

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-block: 100px; }
.service-card { display: flex; flex-direction: column; background: var(--cream); border-radius: 36px; min-height: 290px; padding: 32px; transition: background .25s; }
.service-card:hover { background: var(--cream-2); }
.service-card h3 { font-size: 16px; line-height: 1.3; color: var(--muted); letter-spacing: 0; }
.service-card p { color: var(--ink); font-size: 22px; line-height: 1.35; margin-top: 12px; letter-spacing: -0.01em; }

.facts-panel { margin-block: 120px; }
.facts-panel h2 { margin-bottom: 36px; }
.facts-table { margin: 0 auto; max-width: 820px; }
.facts-table > div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts-table > div:last-child { border-bottom: 0; }
.facts-table dt { color: var(--muted); font-size: 14px; }
.facts-table dd { margin: 0; }
.facts-table a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #c9c9bd; }

.area-section.container { padding-bottom: 140px; }
.casa-home-content .area-section.container { padding-bottom: 0; }

/* Legales */
.legal { max-width: 820px; }
.legal h1 { font-size: 48px; margin: 20px 0 32px; }
.legal .prose p, .legal .prose li { font-size: 16px; line-height: 1.7; margin-bottom: 14px; }
.legal .prose h2 { font-size: 24px; margin: 36px 0 12px; }
.legal .prose a { text-decoration: underline; text-underline-offset: 3px; }
.legal .facts-table { margin: 24px 0; background: var(--cream); border-radius: 24px; padding: 8px 24px; }
.todo { background: #f5e7dd; color: #64382b; padding: 2px 8px; border-radius: 6px; font-size: 0.9em; }

/* ---------- Contacto ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.form-panel { background: var(--cream); border-radius: 36px; padding: 44px; }
.contact-side { display: grid; gap: 24px; }
.tips { border: 1px solid var(--line); border-radius: 28px; padding: 32px; display: grid; gap: 18px; }
.tips h3 { font-size: 20px; letter-spacing: -0.01em; }
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; color: var(--ink); }
.opt { color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  font-size: 16px; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 150px; border-radius: 20px; }
.field select {
  appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23282828' stroke-width='1.5' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #828a64; box-shadow: 0 0 0 3px #dce1ce; }
.field input::placeholder, .field textarea::placeholder { color: #a3a59a; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #b3261e; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); flex-shrink: 0; }
.check a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.check.is-invalid label { color: #b3261e; }
.form__error { padding: 12px 16px; border-radius: 14px; background: #fbeceb; color: #7a1a14; font-size: 14px; }
.form__note { font-size: 13px; }
.form__note a { color: var(--ink); text-decoration: underline; }
.form .button { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-done { display: grid; gap: 18px; justify-items: start; }
.form-done:focus { outline: none; }
.form-done h2 { font-size: 36px; }
.form-done a { color: var(--ink); text-decoration: underline; }

/* ---------- Pie ---------- */
.footer { background: var(--accent); color: #d2d4c7; padding: 100px 80px 0; overflow: hidden; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr; gap: 140px; max-width: 1440px; margin: auto; }
.footer-invitation h2 { font-size: 28px; line-height: 1.15; max-width: 560px; color: #f8f8f1; }
.footer-invitation p { color: #d2d4c7; font-size: 14px; margin: 44px 0 12px; }
.footer-invitation .button { background: #fff; color: var(--ink); border-color: #fff; min-height: 42px; }
.footer-invitation .button:hover { background: var(--cream); }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; }
.footer-top > div { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 14px; }
.footer-top .eyebrow { background: transparent; color: #b5b8a6; padding: 0; font-size: 12px; margin-bottom: 0; }
.footer-top .footer-gap { margin-top: 18px; }
.footer-top a:hover { color: #fff; }
.footer-bottom {
  max-width: 1440px; margin: 100px auto 0; padding: 30px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 14px;
  border-top: 1px solid #ffffff1f;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: #fff; }
.footer-large-brand {
  font-size: clamp(80px, 22vw, 420px); line-height: 0.95; font-weight: 500; letter-spacing: -0.06em;
  text-align: center; white-space: nowrap; margin: 60px -40px -10px; color: #dadccd;
}

/* ---------- Selector de idioma ---------- */
.language-picker { position: relative; font-size: 12px; margin-right: 6px; }
.language-picker summary { display: flex; align-items: center; gap: 5px; padding: 10px 4px; list-style: none; cursor: pointer; letter-spacing: .02em; }
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker summary .icon { width: 14px; height: 14px; }
.language-picker[open] summary .icon:last-child { transform: rotate(180deg); }
.language-options {
  position: absolute; right: 0; top: 100%; width: 170px; padding: 8px; z-index: 50;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 40px #0001;
}
.language-options a { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 7px; font-size: 14px; }
.language-options a:hover, .language-options a[aria-current="true"] { background: var(--cream); }
.cta-short { display: none; }
.navigation-languages { display: flex; gap: 8px; margin-top: 28px; }
.navigation-languages a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 100px; font-size: 14px; background: #fff; }
.navigation-languages a[aria-current="true"] { border-color: var(--accent); background: var(--sage); }
.navigation-languages .icon { width: 15px; height: 15px; }
.footer-langs { margin-top: 18px; color: #b5b8a6; }
.footer-langs a[aria-current="true"] { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* ==========================================================================
   ACENTOS DE COLOR — mostaza (guiño al amarillo de marca de Qualinor),
   melocotón y salvia sobre la base crema/oliva. Borrar este bloque = versión sobria.
   ========================================================================== */
.eyebrow-mustard { background: var(--mustard-soft); color: var(--mustard-ink); }
.tone-0 { --tone-bg: var(--sage-strong); --tone-ink: var(--accent); }
.tone-1 { --tone-bg: var(--peach); --tone-ink: var(--peach-ink); }
.tone-2 { --tone-bg: var(--mustard-soft); --tone-ink: var(--mustard-ink); }

/* Hero: punto "en vivo" y botón de presupuesto en mostaza */
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--mustard); margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 0 0 #e3b04b99; animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 #e3b04b99; } 70% { box-shadow: 0 0 0 8px #e3b04b00; } 100% { box-shadow: 0 0 0 0 #e3b04b00; } }
.hero-start-icon { background: var(--mustard); color: var(--ink); }
.hero-start:hover .hero-start-icon { background: #edc06a; }

/* Pasos con iconos en tres tonos */
.step-icon { background: var(--tone-bg, var(--sage)); color: var(--tone-ink, var(--accent)); }

/* Banda de foto con velo oliva en lugar de gris */
.task-shade { background: linear-gradient(100deg, #2b2f1fe6 0%, #3a3e2ab3 45%, #1d201366 100%); }
.task-wheel-list a .icon { color: var(--mustard); opacity: 1; }

/* Tarjetas de servicio: flecha en círculo de color y borde a juego */
.home-service-copy .card-arrow { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--tone-bg); color: var(--tone-ink); transition: transform .2s; }
.home-service-card:hover .card-arrow { transform: rotate(45deg); }
.home-service-card:hover { border-color: var(--tone-ink); }

/* Bloque de ayuda: oliva + melocotón */
.home-help article.home-help-primary { background: var(--accent); color: #f8f8f1; }
.home-help-primary p, .home-help-primary small { color: #d2d4c7; }
.home-help-primary > .icon { color: var(--mustard); }
.home-help-primary .button-dark { background: var(--mustard); border-color: var(--mustard); color: var(--ink); }
.home-help-primary .button-dark:hover { background: #edc06a; }
.home-help article.home-help-urgent { background: var(--peach); border-color: transparent; }
.home-help-urgent > .icon { color: var(--peach-ink); }

/* Entregables en panel mostaza suave */
.club-value { background: var(--mustard-soft); border: 0; border-radius: 40px; padding: 56px; }
.club-value-intro > p { color: #6f6656; }
.club-value-benefits article > .icon { width: 36px; height: 36px; padding: 8px; margin-top: 0; border-radius: 50%; background: #fff; color: var(--mustard-ink); }
.club-value-benefits article p { color: #6f6656; }

/* Proyectos: franja de color superior y etiqueta de sector teñida */
.trust-grid article[class*="tone-"] { position: relative; overflow: hidden; padding-top: 32px; }
.trust-grid article[class*="tone-"]::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--tone-bg); }
.trust-grid article[class*="tone-"] .trust-meta { align-self: flex-start; background: var(--tone-bg); color: var(--tone-ink); padding: 6px 10px; border-radius: 6px; }

/* Misión y visión teñidas */
.mv-grid .service-card[class*="tone-"] { background: var(--tone-bg); }
.mv-grid .service-card[class*="tone-"] h3 { color: var(--tone-ink); }

/* Chips de zona y lista "Qué incluye" */
.chip .icon { color: var(--mustard-ink); }
.includes-list li:nth-child(3n+1) .icon { background: var(--sage-strong); }
.includes-list li:nth-child(3n+2) .icon { background: var(--peach); color: var(--peach-ink); }
.includes-list li:nth-child(3n) .icon { background: var(--mustard-soft); color: var(--mustard-ink); }

/* FAQ abierta en mostaza suave */
.faq-list details[open] { background: var(--mustard-soft); }

/* Cierre en panel salvia */
.final-panel { width: 100%; background: var(--sage-strong); border-radius: 40px; padding: 72px 32px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.final-panel p { color: #5d6152; }

/* ---------- Responsive ---------- */
@media (min-width: 1600px) {
  .container { width: min(1280px, calc(100% - 80px)); }
}
@media (max-width: 1050px) {
  .header-hide-md { display: none; }
  .home-services-grid, .trust-grid, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer { padding: 80px 40px 0; }
  .footer-main { grid-template-columns: 1fr; gap: 60px; }
  .article-layout, .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .article-aside { position: static; }
  .feature-row, .page-hero, .club-value { gap: 40px; }
  .task-wheel { font-size: 40px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 85px; }
  .container { width: calc(100% - 40px); }
  h1 { font-size: 40px; }
  h2 { font-size: 36px; }
  h3 { font-size: 26px; }
  .header-inner { height: 68px; padding: 12px 20px; gap: 10px; }
  .header-inner .brand-lettering { display: none; }
  .header-actions { gap: 8px; }
  .header-benefits, .header-cta { padding: 10px 14px; font-size: 13px; }
  .header-cta .icon { width: 15px; }
  .menu-toggle { padding: 6px; }
  .navigation-panel { padding: 24px; }
  .navigation-top .brand-lettering { font-size: 23px; }

  .casa-hero { min-height: 600px; }
  .casa-hero-copy { padding: 150px 20px; }
  .casa-hero-copy h1 { font-size: 36px; line-height: 1.2; }
  .casa-hero-copy p { font-size: 20px; line-height: 1.25; max-width: 370px; margin-top: 24px; }
  .hero-news { top: 92px; gap: 10px; padding: 7px 14px; max-width: calc(100% - 32px); }
  .hero-news > span:first-child, .hero-news-divider { display: none; }
  .hero-news em { font-size: 12px; }
  .hero-news > .icon { display: none; }
  .casa-hero-bottom { bottom: 36px; left: 16px; right: 16px; }

  .casa-home-content { padding: 90px 0; gap: 96px; }
  .casa-how { border-radius: 28px; padding: 40px 24px; }
  .casa-how h2 { font-size: 28px; }
  .casa-steps { grid-template-columns: 1fr; gap: 32px; margin-top: 32px; }
  .casa-section-heading { gap: 20px; }
  .casa-section-heading h2 { font-size: 40px; }
  .casa-section-heading p { font-size: 16px; }
  .casa-tasks { gap: 56px; }
  .casa-task-photo { height: 560px; }
  .task-wheel { flex-direction: column; gap: 18px; font-size: 30px; padding: 32px 20px; }
  .task-wheel > span { text-align: center; max-width: 280px; font-size: 26px; }
  .task-wheel-window { height: 300px; }
  .task-wheel-list { padding-block: 120px; text-align: center; }
  .task-wheel-list a { justify-content: center; }

  .feature-rows { gap: 64px; }
  .feature-row { grid-template-columns: 1fr; gap: 24px; }
  .feature-row-reverse .feature-image { order: 0; }
  .feature-image { order: -1; border-radius: 28px; aspect-ratio: 4 / 3; }
  .feature-copy h2 { font-size: 30px; }
  .feature-row-text { gap: 12px; }

  .home-services-grid, .trust-grid, .trust-grid.two-col, .gallery, .mv-grid, .home-help, .club-value, .includes-list, .form__row { grid-template-columns: 1fr; }
  .home-help article { padding: 32px 24px; }
  .home-help h2 { font-size: 30px; }
  .club-value { gap: 36px; }
  .trust-standard h2 { font-size: 34px; }
  .faq-list details { border-radius: 26px; padding: 0 22px; }
  .faq-list summary { font-size: 16px; padding: 20px 0; }

  .page-section { padding-top: 110px; padding-bottom: 72px; }
  .page-hero { grid-template-columns: 1fr; gap: 32px; }
  .page-hero-image { border-radius: 28px; aspect-ratio: 4 / 3; }
  .article-layout { padding-block: 72px; }
  .article { gap: 48px; }
  .article h2 { font-size: 28px; }
  .mv-grid { padding-block: 64px; }
  .service-card { border-radius: 28px; min-height: 0; }
  .facts-panel { margin-block: 72px; }
  .facts-table > div { grid-template-columns: 1fr; gap: 4px; }
  .form-panel { padding: 28px 20px; border-radius: 28px; }
  .form .button { justify-self: stretch; }
  .button-row .button { flex: 1 1 100%; }
  .related, .scope-panel { padding-bottom: 72px; }
  .gallery-section, .area-section.container { padding-bottom: 96px; }
  .legal h1 { font-size: 36px; }

  .footer { padding: 70px 20px 0; }
  .footer-main { gap: 50px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; margin-top: 60px; }
  .footer-large-brand { margin: 30px -20px -6px; }
}
@media (max-width: 480px) {
  .header-hide-sm { display: none; }
}
@media (max-width: 760px) {
  .header .language-picker { display: none; }
  .club-value { padding: 32px 22px; border-radius: 28px; }
  .final-panel { padding: 48px 22px; border-radius: 28px; }
}
@media (max-width: 360px) {
  .cta-long { display: none; }
  .cta-short { display: inline; }
}
@media (max-width: 380px) {
  .header-cta { padding: 9px 12px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .header, .navigation-dialog, .footer, .home-final-cta { display: none; }
}
