/* =============================================================
   RosaFincas — Sistema de diseño
   Identidad de marca original: azul corporativo + verde,
   Libre Franklin / Inter, logo RF circular.
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Color de marca (tomado de la identidad original de rosafincas.es) */
  --bg: #ffffff;
  --bg-2: #f5f7fa;
  --bg-3: #eef2f7;
  --ink: #1a1a2e;
  --ink-soft: #4a5568;
  --primary: #1b3a6b;
  --primary-hover: #2a5298;
  --primary-dark: #0f2347;
  --primary-soft: #ebf0fa;
  --primary-bright: #9dbcf0;
  --accent: #2e7d32;
  --accent-hover: #1b5e20;
  --accent-soft: #e8f5e9;
  --accent-bright: #8fce91;
  --star: #d97706;
  --line: #d1d9e6;
  --line-soft: #e8ecf2;
  --line-inverse: rgba(255, 255, 255, 0.18);

  /* Tipografía */
  --font-display: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Escala */
  --fs-display: clamp(2.3rem, 4.8vw + 1rem, 3.9rem);
  --fs-h1: clamp(2.1rem, 3.6vw + 0.8rem, 3.1rem);
  --fs-h2: clamp(1.6rem, 2.2vw + 0.7rem, 2.3rem);
  --fs-h3: clamp(1.15rem, 1vw + 0.85rem, 1.4rem);
  --fs-lead: clamp(1.05rem, 0.45vw + 0.9rem, 1.2rem);

  /* Ritmo */
  --space-section: clamp(4.25rem, 8.5vw, 7.5rem);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --max: 72.5rem;

  /* Detalles */
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 8px 24px rgba(27, 58, 107, 0.14), 0 0 1px rgba(27, 58, 107, 0.12);
  --shadow-card: 0 2px 8px rgba(27, 58, 107, 0.08), 0 0 1px rgba(27, 58, 107, 0.12);
  --ease: cubic-bezier(0.22, 0.9, 0.3, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--primary-hover);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--primary);
}

::selection {
  background: var(--primary-soft);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--primary-hover);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.75rem;
  z-index: 1000;
  background: var(--primary-dark);
  color: #fff;
  padding: 0.6rem 1.1rem;
  border-radius: 99px;
  text-decoration: none;
}

.skip-link:focus {
  left: 0.75rem;
  color: #fff;
}

/* ---------- Utilidades ---------- */
.wrap {
  width: min(var(--max), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.section {
  padding-block: var(--space-section);
  position: relative;
}

.section--tight {
  padding-block: calc(var(--space-section) * 0.6);
}

.section--alt {
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section--dark {
  background: var(--primary-dark);
  color: #f4f7fd;
}

.section--dark ::selection {
  background: var(--primary-hover);
  color: #fff;
}

.eyebrow {
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: currentColor;
  opacity: 0.6;
}

.section--dark .eyebrow {
  color: var(--accent-bright);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 46rem;
}

.section--dark .lead {
  color: rgba(244, 247, 253, 0.8);
}

.accent-word {
  color: var(--primary-hover);
}

.section--dark .accent-word {
  color: var(--primary-bright);
}

.center {
  text-align: center;
}

.center .eyebrow::before {
  display: none;
}

.center .lead {
  margin-inline: auto;
}

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--primary);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.65rem;
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1.5px solid var(--btn-bg);
  border-radius: 99px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  --btn-bg: var(--primary-hover);
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -14px rgba(27, 58, 107, 0.55);
}

.btn:active {
  transform: translateY(0);
}

.btn--accent {
  --btn-bg: var(--accent);
}

.btn--accent:hover {
  --btn-bg: var(--accent-hover);
  box-shadow: 0 14px 30px -14px rgba(46, 125, 50, 0.55);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--primary);
  border-color: var(--line);
}

.btn--ghost:hover {
  --btn-bg: transparent;
  color: var(--primary-dark);
  border-color: var(--primary);
  box-shadow: none;
}

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--primary-dark);
}

.btn--light:hover {
  --btn-bg: var(--primary-soft);
  color: var(--primary-dark);
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.45);
}

.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: var(--line-inverse);
}

.btn--ghost-light:hover {
  --btn-bg: transparent;
  color: #fff;
  border-color: #fff;
  box-shadow: none;
}

.btn svg {
  width: 1.05em;
  height: 1.05em;
  flex: none;
}

/* ---------- Cabecera ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.header.is-scrolled {
  border-bottom-color: var(--line-soft);
  box-shadow: 0 2px 12px rgba(27, 58, 107, 0.1);
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.8rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand__mark {
  width: 2.6rem;
  height: 2.6rem;
  flex: none;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s var(--ease);
}

.brand:hover .brand__mark {
  transform: scale(1.06);
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand__name em {
  font-style: normal;
  color: var(--primary-hover);
}

.brand__tag {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
}

.nav__link {
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding-block: 0.35rem;
  position: relative;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav__link[aria-current="page"] {
  color: var(--primary);
}

/* Enlace "Área de clientes" del menú móvil: oculto en escritorio,
   donde ese destino se muestra como botón destacado */
.nav__link--mobile {
  display: none;
}

.nav .btn {
  padding: 0.62rem 1.25rem;
  font-size: 0.9rem;
}

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}

.header__phone svg {
  width: 1rem;
  height: 1rem;
}

.header__phone:hover {
  color: var(--primary-hover);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .header__phone {
    display: none;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 30px 40px -30px rgba(15, 35, 71, 0.4);
    padding: 0.5rem var(--gutter) 1.25rem;
    display: none;
  }

  .nav.is-open {
    display: flex;
    max-height: calc(100dvh - 4.5rem);
    overflow-y: auto;
  }

  .nav__link {
    padding: 0.85rem 0.25rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav__link::after {
    display: none;
  }

  .nav__link--mobile {
    display: block;
  }

  /* En móvil el destino aparece como enlace del menú, no como botón */
  .nav .btn {
    display: none;
  }
}

/* ---------- Hero (foto de marca + degradado corporativo) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(15, 35, 71, 0.95) 0%,
    rgba(15, 35, 71, 0.88) 50%,
    rgba(27, 58, 107, 0.72) 100%
  );
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.hero h1 {
  font-size: var(--fs-display);
  font-weight: 800;
  margin-bottom: 0.5em;
}

.hero .eyebrow {
  color: var(--primary-bright);
}

.hero .lead {
  color: rgba(255, 255, 255, 0.86);
}

.hero .accent-word {
  color: var(--primary-bright);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero__note {
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__note svg {
  width: 1rem;
  height: 1rem;
  color: var(--accent-bright);
  flex: none;
}

/* Placa de colegiación */
.plaque {
  position: relative;
  background: linear-gradient(160deg, #ffffff 0%, #f3f6fb 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem 2rem 1.75rem;
  color: var(--ink);
}

.plaque::before {
  content: "";
  position: absolute;
  inset: 0.55rem;
  border: 1px solid var(--line-soft);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}

.plaque__seal {
  margin-bottom: 1.1rem;
}

.plaque__seal img {
  width: min(11.5rem, 70%);
  height: auto;
  border-radius: 6px;
}

.plaque__num {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--primary);
  margin: 0;
}

.plaque__label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-hover);
  margin: 0.4rem 0 0.9rem;
}

.plaque__body {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-soft);
}

/* ---------- Barra de confianza ---------- */
.trustbar {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-2);
}

.trustbar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
}

.trustbar__item {
  background: var(--bg-2);
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.trustbar__value {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary);
}

.trustbar__value .star {
  color: var(--star);
}

.trustbar__label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.3rem;
}

@media (max-width: 720px) {
  .trustbar__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Tarjetas de servicio ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2.25rem 2rem 2rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--line);
}

.card__num {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-hover);
  display: block;
  margin-bottom: 1.4rem;
}

.card__num::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 2px;
  background: var(--accent);
  opacity: 0.6;
  margin-top: 0.55rem;
}

.card h3 {
  font-size: var(--fs-h3);
}

.card p {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
  display: grid;
  gap: 0.55rem;
}

.card li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.card li::before {
  content: "";
  flex: none;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 0.52rem;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.card__link svg {
  width: 0.95rem;
  height: 0.95rem;
  transition: transform 0.25s var(--ease);
}

.card__link:hover svg {
  transform: translateX(4px);
}

/* ---------- Pasos ---------- */
.steps {
  counter-reset: paso;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 2.25rem 1.75rem;
  margin-top: 2.75rem;
}

.step {
  counter-increment: paso;
  position: relative;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.step::before {
  content: "0" counter(paso);
  position: absolute;
  top: -0.85rem;
  left: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-hover);
  background: var(--bg);
  padding-right: 0.75rem;
}

.section--alt .step::before {
  background: var(--bg-2);
}

.section--dark .step {
  border-top-color: var(--line-inverse);
}

.section--dark .step::before {
  background: var(--primary-dark);
  color: var(--primary-bright);
}

.step h3 {
  font-size: 1.12rem;
  margin-bottom: 0.4rem;
}

.step p {
  font-size: 0.94rem;
  color: var(--ink-soft);
  margin: 0;
}

.section--dark .step p {
  color: rgba(244, 247, 253, 0.75);
}

/* ---------- Franja de valoración ---------- */
.rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2.5rem;
  text-align: center;
}

.rating__score {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1;
}

.rating__stars {
  color: var(--star);
  display: inline-flex;
  gap: 0.2rem;
}

.rating__stars svg {
  width: 1.3rem;
  height: 1.3rem;
}

.rating__meta {
  text-align: left;
  max-width: 22rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.section--dark .rating__meta {
  color: rgba(244, 247, 253, 0.78);
}

/* ---------- Zonas ---------- */
.areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.area {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.6rem 1.5rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.area:hover {
  border-color: var(--primary-hover);
  transform: translateY(-4px);
}

.area h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.area h3 svg {
  width: 1rem;
  height: 1rem;
  color: var(--accent);
  flex: none;
}

.area p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Acordeón FAQ ---------- */
.faq {
  max-width: 50rem;
  margin: 2.5rem auto 0;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.35rem 0.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  transition: color 0.25s var(--ease);
}

.faq summary:hover {
  color: var(--primary-hover);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  color: var(--primary-hover);
  transition: transform 0.3s var(--ease);
  flex: none;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details[open] summary {
  color: var(--primary-hover);
}

.faq .faq__body {
  padding: 0 0.25rem 1.5rem;
  color: var(--ink-soft);
  max-width: 44rem;
}

.faq .faq__body p:last-child {
  margin-bottom: 0;
}

/* ---------- Bandas CTA ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
}

.cta-band .wrap {
  position: relative;
  z-index: 1;
}

.cta-band__motif {
  position: absolute;
  right: -4rem;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(16rem, 30vw, 26rem);
  color: var(--primary-bright);
  opacity: 0.16;
  pointer-events: none;
}

.cta-band h2 {
  font-size: var(--fs-h2);
  max-width: 32rem;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.9rem;
}

.cta-band__hours {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: rgba(244, 247, 253, 0.65);
}

/* ---------- Bloque a dos columnas ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.split--center {
  align-items: center;
}

@media (max-width: 860px) {
  .split,
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .plaque {
    max-width: 26rem;
  }
}

/* ---------- Lista de verificación ---------- */
.checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1rem;
}

.checklist li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.checklist svg {
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  color: var(--accent);
  margin-top: 0.15rem;
}

.section--dark .checklist svg {
  color: var(--accent-bright);
}

.checklist strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
}

.checklist span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.section--dark .checklist span {
  color: rgba(244, 247, 253, 0.75);
}

/* ---------- Valores ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.value {
  text-align: center;
  padding: 2.25rem 1.75rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.value__icon {
  width: 3.2rem;
  height: 3.2rem;
  margin: 0 auto 1.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
}

.value__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.value h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.value p {
  font-size: 0.94rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Formularios ---------- */
.form {
  display: grid;
  gap: 1.2rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

@media (max-width: 640px) {
  .form__row {
    grid-template-columns: 1fr;
  }
}

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.field label .opt {
  font-weight: 400;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 8.5rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary-hover);
  box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.15);
}

.field input.is-invalid,
.field textarea.is-invalid,
.field select.is-invalid {
  border-color: #dc2626;
}

.field__error {
  display: none;
  font-size: 0.82rem;
  color: #b91c1c;
  margin-top: 0.35rem;
}

.field.has-error .field__error {
  display: block;
}

.form__consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.form__consent input {
  margin-top: 0.25rem;
  accent-color: var(--primary);
  width: 1rem;
  height: 1rem;
  flex: none;
}

.form__success {
  display: none;
  background: var(--accent-soft);
  border: 1px solid #c8e6c9;
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  color: var(--accent-hover);
}

.form__success.is-visible {
  display: block;
}

.form__success strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- Ficha de contacto ---------- */
.contact-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2.25rem 2rem;
  display: grid;
  gap: 1.6rem;
}

.contact-card__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-card__item > svg {
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  color: var(--primary-hover);
  margin-top: 0.2rem;
}

.contact-card__item strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.contact-card__item p,
.contact-card__item a {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.contact-card__item a.big {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}

.contact-card__item a.big:hover {
  color: var(--primary-hover);
}

/* ---------- Mapa (carga bajo demanda) ---------- */
.map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--bg-3);
  min-height: 22rem;
}

.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 1rem;
  text-align: center;
  padding: 2rem;
  background:
    radial-gradient(circle at 30% 30%, rgba(42, 82, 152, 0.08), transparent 45%),
    repeating-linear-gradient(
      45deg,
      transparent 0 34px,
      rgba(27, 58, 107, 0.05) 34px 35px
    );
}

.map__placeholder p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 24rem;
}

.map__placeholder .btn {
  justify-self: center;
}

/* ---------- Pestañas (Área clientes) ---------- */
.tabs {
  display: inline-flex;
  gap: 0.4rem;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: 99px;
  padding: 0.35rem;
  margin-bottom: 2rem;
}

.tabs button {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  padding: 0.6rem 1.4rem;
  border-radius: 99px;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.tabs button[aria-selected="true"] {
  background: var(--primary);
  color: #fff;
}

.tab-panel[hidden] {
  display: none;
}

/* ---------- Aviso urgencias ---------- */
.notice {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fef3e2;
  border: 1px solid rgba(217, 119, 6, 0.3);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
}

.notice svg {
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  color: #b45309;
  margin-top: 0.15rem;
}

.notice p {
  margin: 0;
  font-size: 0.95rem;
}

.notice a {
  font-weight: 650;
  white-space: nowrap;
}

/* ---------- Página legal ---------- */
.legal {
  max-width: 46rem;
}

.legal h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
}

.legal p,
.legal li {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* ---------- Cabecera de página interior ---------- */
.page-head {
  padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}

.page-head h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  max-width: 42rem;
}

.page-head .lead {
  margin-bottom: 0;
}

.page-head__motif {
  position: absolute;
  right: -3rem;
  bottom: -3rem;
  width: clamp(12rem, 22vw, 18rem);
  color: var(--primary-hover);
  opacity: 0.1;
  pointer-events: none;
}

/* ---------- Pie ---------- */
.footer {
  background: var(--primary-dark);
  color: rgba(244, 247, 253, 0.8);
  padding-block: 4rem 2rem;
  font-size: 0.94rem;
}

.footer a {
  color: rgba(244, 247, 253, 0.85);
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-inverse);
}

@media (max-width: 860px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

.footer .brand {
  color: #fff;
}

.footer .brand__tag {
  color: rgba(244, 247, 253, 0.6);
}

.footer__motto {
  font-size: 1rem;
  color: rgba(244, 247, 253, 0.65);
  margin-top: 1.2rem;
  max-width: 18rem;
}

.footer h4 {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 247, 253, 0.5);
  margin-bottom: 1.1rem;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  font-size: 0.82rem;
  color: rgba(244, 247, 253, 0.55);
}

.footer__legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer__legal a {
  color: rgba(244, 247, 253, 0.55);
}

/* ---------- Animaciones de entrada ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
