:root {
  --ink: #242338;
  --ink-soft: #625f70;
  --paper: #f8f4ed;
  --mist: #eeebf3;
  --line: #ddd8e4;
  --teal: #7467b5;
  --teal-dark: #353451;
  --teal-deep: #171724;
  --clay: #e57658;
  --gold: #d8aa5b;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c4b;
  --shadow-soft: 0 6px 24px rgba(18, 57, 55, 0.07);
  --shadow: 0 20px 50px rgba(18, 57, 55, 0.13);
  --radius: 18px;
  --radius-sm: 12px;
  --container: min(1140px, calc(100vw - 32px));
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body.cookie-consent-open {
  overflow: auto;
}

body.construction-notice-open {
  overflow: hidden;
}

.construction-notice {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 15, 26, 0.62);
  backdrop-filter: blur(5px);
}

.construction-notice.is-closing {
  animation: construction-fade-out 0.18s ease both;
}

.construction-notice-panel {
  width: min(470px, calc(100vw - 36px));
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 18px;
  align-items: center;
  padding: 26px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(35, 34, 56, 0.99), rgba(23, 23, 36, 0.99));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  animation: construction-rise 0.26s cubic-bezier(0.2, 0.85, 0.3, 1) both;
}

.construction-notice-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  align-self: start;
  color: #171724;
  border-radius: 50%;
  background: #ef9a55;
  font: 800 1.35rem/1 var(--font-body);
}

.construction-notice-copy {
  display: grid;
  gap: 7px;
}

.construction-notice-kicker {
  color: #ef9a55;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.construction-notice-copy h2 {
  color: #fff;
  font-size: 1.45rem;
  line-height: 1.18;
}

.construction-notice-copy p:not(.construction-notice-kicker) {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  line-height: 1.55;
}

.construction-notice-button {
  grid-column: 1 / -1;
  justify-self: end;
  min-width: 130px;
}

@keyframes construction-rise {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes construction-fade-out {
  to { opacity: 0; }
}

.cookie-consent {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 18px;
  pointer-events: none;
}

.cookie-consent.is-closing {
  pointer-events: none;
}

.cookie-consent.is-closing .cookie-consent-panel {
  animation: cookie-shrink-to-left 0.18s ease both;
}

.cookie-consent-panel {
  width: min(350px, calc(100vw - 36px));
  max-height: calc(100dvh - 36px);
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 20px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(35, 34, 56, 0.98), rgba(23, 23, 36, 0.98));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
  pointer-events: auto;
  transform-origin: left bottom;
  animation: cookie-grow-from-left 0.28s cubic-bezier(0.2, 0.85, 0.3, 1) both;
}

.cookie-consent-copy {
  display: grid;
  gap: 9px;
}

.cookie-consent-copy .cookie-kicker {
  color: #ef9a55;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.cookie-consent-copy h2 {
  max-width: none;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.18;
}

.cookie-consent-copy p:not(.cookie-kicker) {
  max-width: none;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  line-height: 1.5;
}

.cookie-consent-copy a {
  width: max-content;
  color: #f0ca88;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cookie-consent-actions [data-cookie-action="settings"] {
  grid-column: 1 / -1;
}

.cookie-button {
  min-height: 39px;
  padding: 9px 11px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font: 700 0.76rem/1.1 var(--font-body);
  white-space: nowrap;
  cursor: pointer;
}

.cookie-button:hover,
.cookie-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.15);
}

.cookie-button-primary {
  border-color: #e77d35;
  background: linear-gradient(135deg, #cf5f2d, #ef9344);
}

.cookie-preferences {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.cookie-preferences[hidden] {
  display: none;
}

.cookie-preferences label {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.cookie-preferences label span {
  display: grid;
  gap: 3px;
}

.cookie-preferences strong {
  font-size: 0.86rem;
}

.cookie-preferences small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
  line-height: 1.35;
}

.cookie-preferences input {
  width: 20px;
  height: 20px;
  flex: none;
  accent-color: #e77d35;
}

.cookie-save {
  grid-column: 1 / -1;
}

@keyframes cookie-grow-from-left {
  from { opacity: 0; transform: translateX(-18px) scaleX(0.35); }
  to { opacity: 1; transform: translateX(0) scaleX(1); }
}

@keyframes cookie-shrink-to-left {
  from { opacity: 1; transform: translateX(0) scaleX(1); }
  to { opacity: 0; transform: translateX(-12px) scaleX(0.35); }
}

@media (max-width: 780px) {
  .construction-notice {
    padding: 10px;
  }

  .construction-notice-panel {
    width: min(360px, calc(100vw - 20px));
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 22px;
  }

  .construction-notice-button {
    width: 100%;
  }

  .cookie-consent {
    padding: 10px;
  }

  .cookie-consent-panel {
    width: min(330px, calc(100vw - 20px));
    max-height: calc(100dvh - 20px);
    gap: 14px;
    padding: 17px;
    border-radius: 16px;
  }

  .cookie-button {
    width: 100%;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
  color: var(--ink-soft);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.01em;
}

h1 {
  max-width: 14ch;
  font-size: clamp(2.7rem, 6.2vw, 5rem);
}

h1 em {
  font-style: italic;
  color: var(--teal);
}

h2 {
  max-width: 18ch;
  font-size: clamp(1.9rem, 3.6vw, 3.2rem);
}

h3 {
  font-size: 1.12rem;
  font-family: var(--font-body);
  font-weight: 700;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 40;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(253, 253, 251, 0.78);
  border-bottom: 1px solid rgba(224, 235, 228, 0.7);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-grid;
  grid-template-columns: 36px 166px;
  grid-template-rows: 42px;
  align-items: center;
  gap: 0 8px;
  min-width: 0;
}

.brand::after {
  content: none;
  display: none;
}

.theme-night .brand::after {
  color: #fff;
}

.brand-mark {
  grid-column: 1;
  grid-row: 1;
  width: 36px;
  height: 42px;
  flex: none;
  object-fit: contain;
}

.brand .brand-copy {
  grid-column: 2;
  grid-row: 1;
  width: 166px;
  max-width: 166px;
  display: grid;
  gap: 1px;
  line-height: 1;
}

.brand .brand-copy::after {
  content: "Correduría de Seguros";
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.05;
  white-space: nowrap;
}

.brand-wordmark {
  display: none;
}

.brand .brand-copy small {
  width: auto;
  max-width: none;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.05;
  white-space: nowrap;
}

.theme-night .brand .brand-copy small {
  color: rgba(255, 255, 255, 0.9);
}

.theme-night .brand .brand-copy::after {
  color: rgba(255, 255, 255, 0.9);
}

.brand span {
  display: grid;
  gap: 0;
  line-height: 1.2;
  width: max-content;
  max-width: 230px;
}

.brand strong {
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

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

.brand small {
  width: 100%;
  max-width: 100%;
  font-size: 0.7rem;
  line-height: 1.25;
  white-space: normal;
}

.nav-specialty {
  padding: 5px 9px;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.main-nav .nav-feature {
  position: relative;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 7px 18px rgba(97, 43, 16, 0.2);
  transform: translateY(-2px);
}

.main-nav .nav-account {
  position: relative;
  width: 31px;
  height: 31px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: #fff !important;
  border: 0;
  border-radius: 50%;
}

.account-icon {
  display: none;
}

.main-nav .nav-account::before {
  content: "";
  width: 18px;
  height: 18px;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm0 2c-4.42 0-8 2.24-8 5v1h16v-1c0-2.76-3.58-5-8-5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm0 2c-4.42 0-8 2.24-8 5v1h16v-1c0-2.76-3.58-5-8-5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.account-tooltip {
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  z-index: 50;
  padding: 6px 9px;
  color: #fff;
  border-radius: 8px;
  background: #171724;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
  font-size: 0.72rem;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.nav-account:hover .account-tooltip,
.nav-account:focus-visible .account-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.main-nav .nav-account:hover,
.main-nav .nav-account:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
  margin-left: auto;
}

.main-nav a {
  padding: 9px 13px;
  color: var(--ink-soft);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.93rem;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--ink);
  background: var(--mist);
}

.main-nav .nav-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--whatsapp-dark);
}

.main-nav .nav-whatsapp:hover,
.main-nav .nav-whatsapp:focus-visible {
  color: #fff;
  background: var(--whatsapp-dark);
}

.main-nav .nav-cta {
  color: #fff;
  background: var(--teal-dark);
  box-shadow: 0 6px 16px rgba(18, 57, 55, 0.22);
}

.main-nav .nav-cta:hover,
.main-nav .nav-cta:focus-visible {
  background: var(--teal);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(620px, 86vh, 820px);
  padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 80px);
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(47, 111, 103, 0.16), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(224, 104, 79, 0.1), transparent 60%),
    linear-gradient(180deg, #f4faf6 0%, var(--paper) 100%);
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
}

.hero-video-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(253, 253, 251, 0.96) 0%, rgba(253, 253, 251, 0.82) 48%, rgba(253, 253, 251, 0.55) 100%),
    linear-gradient(180deg, rgba(253, 253, 251, 0.72) 0%, rgba(253, 253, 251, 0.2) 48%, var(--paper) 100%);
}

.hero-main-video,
.hero-video-card video,
.about-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-main-video {
  filter: saturate(0.85) contrast(0.95);
}

.hero-glow {
  position: absolute;
  inset: auto -120px -180px auto;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 164, 65, 0.14), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  min-height: clamp(500px, 68vh, 650px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero-copy {
  display: grid;
  gap: 26px;
}

.hero-slogan {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 2.6vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(16, 18, 31, 0.86), rgba(18, 22, 34, 0.66));
  box-shadow: 0 20px 48px rgba(7, 8, 18, 0.3);
  backdrop-filter: blur(9px);
}

.screen-page.home-page .hero-slogan h1 {
  color: #fff;
  text-shadow: 0 3px 18px rgba(5, 7, 15, 0.72);
}

.screen-page.home-page .hero-slogan h1 em {
  color: #ffc27f;
}

.screen-page.home-page .hero-slogan .lead {
  color: #fff;
  text-shadow: 0 2px 12px rgba(5, 7, 15, 0.8);
}

.screen-page.home-page .hero-slogan .hero-actions {
  margin-top: 2px;
}

.screen-page.home-page .hero-slogan .hero-actions .button {
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.76rem;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clay);
  flex: none;
}

.lead {
  max-width: 680px;
  color: var(--ink);
  font-size: clamp(1.06rem, 1.9vw, 1.28rem);
  font-weight: 450;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 70%);
  box-shadow: 0 12px 26px rgba(18, 57, 55, 0.26);
}

.button.primary:hover {
  box-shadow: 0 16px 32px rgba(18, 57, 55, 0.32);
}

.button.whatsapp {
  color: #fff;
  background: linear-gradient(135deg, var(--whatsapp) 0%, var(--whatsapp-dark) 80%);
  box-shadow: 0 12px 26px rgba(18, 140, 75, 0.28);
}

.button.whatsapp:hover {
  box-shadow: 0 16px 32px rgba(18, 140, 75, 0.34);
}

.button.secondary {
  color: var(--teal-dark);
  border-color: rgba(47, 111, 103, 0.28);
  background: rgba(255, 255, 255, 0.72);
}

.button.secondary:hover {
  border-color: var(--teal);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.button.full {
  width: 100%;
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}

.trust-list li {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(224, 235, 228, 0.9);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
}

.trust-list span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.trust-list strong {
  display: block;
  margin-top: 4px;
  font-size: 0.9rem;
}

.hero-visual {
  margin: 0;
}

.hero-visual img,
.hero-video-card video {
  width: 100%;
  filter: drop-shadow(0 24px 40px rgba(18, 57, 55, 0.18));
}

.hero-video-card {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(224, 235, 228, 0.92);
  border-radius: calc(var(--radius) + 8px);
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 36, 35, 0.02), rgba(14, 36, 35, 0.2)),
    radial-gradient(460px 240px at 10% 0%, rgba(255, 255, 255, 0.36), transparent 62%);
  pointer-events: none;
}

.hero-support {
  max-width: 620px;
  margin-top: -10px;
  font-size: 0.98rem;
}

.hero-stories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.story-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  background: var(--teal-deep);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.story-card-wide {
  grid-column: 1 / -1;
  min-height: 250px;
}

.story-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.story-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 32%, rgba(9, 29, 27, 0.84) 100%);
}

.story-card:hover img,
.story-card:focus-visible img {
  transform: scale(1.035);
}

.story-overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: grid;
  gap: 2px;
  padding: 20px;
  color: #fff;
}

.story-overlay small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.story-overlay strong {
  font-size: 1.05rem;
  line-height: 1.25;
}

/* ---------- Secciones ---------- */

.section {
  padding: clamp(64px, 8vw, 116px) 0;
}

.section-muted {
  background: linear-gradient(180deg, #f6fbf8 0%, #eef7f2 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-health {
  background:
    radial-gradient(700px 420px at 100% 20%, rgba(224, 104, 79, 0.08), transparent 65%),
    linear-gradient(180deg, #fffaf7 0%, var(--paper) 100%);
  border-top: 1px solid rgba(224, 104, 79, 0.12);
  border-bottom: 1px solid rgba(224, 104, 79, 0.12);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}

.service-detail-reverse {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
}

.service-detail-copy {
  display: grid;
  gap: 20px;
  justify-items: start;
}

.service-intro {
  color: var(--ink);
  font-size: clamp(1.02rem, 1.6vw, 1.14rem);
}

.service-detail-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(224, 235, 228, 0.95);
  border-radius: calc(var(--radius) + 6px);
  background: #fff;
  box-shadow: var(--shadow);
}

.service-detail-media img,
.service-detail-media video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.service-detail-media figcaption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 12px 14px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
  background: rgba(14, 36, 35, 0.76);
  backdrop-filter: blur(10px);
  font-size: 0.86rem;
  font-weight: 600;
}

.service-checklist {
  display: grid;
  gap: 0;
  width: 100%;
  padding: 0;
  margin: 2px 0;
  list-style: none;
}

.service-checklist li {
  display: grid;
  gap: 3px;
  padding: 15px 0 15px 30px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 8px 25px, var(--clay) 0 4px, transparent 4.5px);
}

.service-checklist li:first-child {
  border-top: 1px solid var(--line);
}

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

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

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal-dark);
  border-bottom: 1px solid rgba(47, 111, 103, 0.28);
  font-weight: 750;
}

.service-link span {
  transition: transform 0.2s ease;
}

.service-link:hover span,
.service-link:focus-visible span {
  transform: translateX(4px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.split > div:first-child,
.section-heading,
.method-grid > div:first-child,
.contact-grid > div:first-child,
.compliance-grid > div:first-child,
.about-grid > div:last-child {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.specialty-intro {
  align-content: start;
}

.specialty-photo,
.section-banner,
.method-photo,
.about-video {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(224, 235, 228, 0.95);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.specialty-photo {
  width: 100%;
  margin-top: 10px;
  aspect-ratio: 16 / 9;
}

.specialty-photo img,
.section-banner img,
.method-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card,
.service-card,
.compliance-panel,
.contact-form,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.feature-card,
.service-card {
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover,
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-card {
  padding: 24px;
}

.feature-card h3,
.service-card h3 {
  margin-bottom: 10px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-banner {
  aspect-ratio: 16 / 6.2;
  margin: -10px 0 28px;
}

.section-heading.compact {
  margin-bottom: 24px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  min-height: 220px;
  padding: 24px;
  display: grid;
  align-content: start;
}

.service-card span {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--clay), #c5503a);
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.82rem;
}

.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(32px, 5vw, 72px);
}

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps li {
  position: relative;
  min-height: 180px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, #fff 0%, var(--mist) 100%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.steps li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 18px;
  right: 22px;
  color: rgba(47, 111, 103, 0.18);
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
}

.steps strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.08rem;
}

.method-photo {
  width: min(100%, 420px);
  aspect-ratio: 16 / 10;
  margin-top: 12px;
}

/* ---------- Sobre mí ---------- */

.section-about {
  background: linear-gradient(180deg, var(--paper) 0%, #f4faf6 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.about-photo {
  margin: 0;
}

.about-video {
  aspect-ratio: 16 / 10;
}

.about-video video {
  display: block;
}

.photo-placeholder {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  color: rgba(47, 111, 103, 0.4);
  border: 2px dashed rgba(47, 111, 103, 0.3);
  border-radius: var(--radius);
  background:
    radial-gradient(400px 300px at 30% 20%, rgba(47, 111, 103, 0.1), transparent 70%),
    #fff;
}

.about-points {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 6px 0 0;
  list-style: none;
}

.about-points li {
  position: relative;
  padding: 14px 16px 14px 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.about-points li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  color: var(--teal);
  font-weight: 800;
}

.broker-statement {
  min-height: 350px;
  display: grid;
  align-content: end;
  gap: 16px;
  padding: clamp(30px, 5vw, 56px);
  overflow: hidden;
  color: #fff;
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(420px 300px at 100% 0%, rgba(217, 164, 65, 0.22), transparent 60%),
    radial-gradient(360px 300px at 0% 100%, rgba(224, 104, 79, 0.24), transparent 62%),
    var(--teal-deep);
  box-shadow: var(--shadow);
}

.broker-statement span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.broker-statement blockquote {
  max-width: 11ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  font-weight: 600;
  line-height: 1.04;
}

/* ---------- Cumplimiento ---------- */

.section-compliance {
  color: #fff;
  background:
    radial-gradient(900px 500px at 90% 0%, rgba(47, 111, 103, 0.55), transparent 60%),
    var(--teal-deep);
}

.section-compliance p,
.section-compliance .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.section-compliance h2 {
  color: #fff;
}

.compliance-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.compliance-panel {
  padding: 30px;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.compliance-panel ul {
  padding-left: 18px;
  margin: 16px 0 0;
  color: var(--ink-soft);
}

.compliance-panel li + li {
  margin-top: 10px;
}

.compliance-panel a {
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.compliance-panel em {
  color: var(--clay);
  font-style: normal;
  font-size: 0.85em;
  font-weight: 700;
}

/* ---------- FAQ ---------- */

.faq-section {
  background: #fff;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.faq-list details {
  padding: 20px 22px;
  transition: box-shadow 0.2s ease;
}

.faq-list details[open] {
  box-shadow: var(--shadow-soft);
  border-color: rgba(47, 111, 103, 0.35);
}

.faq-list summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
  list-style: none;
  position: relative;
  padding-right: 32px;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--teal);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

.faq-list p {
  padding-top: 14px;
}

/* ---------- Contacto ---------- */

.contact-section {
  background:
    radial-gradient(800px 400px at 10% 0%, rgba(224, 104, 79, 0.08), transparent 60%),
    radial-gradient(800px 400px at 95% 100%, rgba(47, 111, 103, 0.1), transparent 60%),
    #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.contact-direct {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  font-weight: 700;
}

.contact-direct a {
  color: var(--teal-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  width: fit-content;
}

.contact-form {
  display: grid;
  gap: 15px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.94rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  color: var(--ink);
  background: #fcfdfc;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(47, 111, 103, 0.14);
}

.contact-form textarea {
  resize: vertical;
}

.checkbox-row {
  grid-template-columns: 20px 1fr;
  align-items: start;
  font-weight: 400 !important;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--teal);
}

.checkbox-row a {
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-note {
  min-height: 24px;
  color: var(--teal-dark);
  font-weight: 700;
}

.field-error {
  color: #a73324;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.field-error:empty {
  display: none;
}

.field-help {
  justify-self: end;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 500;
}

.contact-form [aria-invalid="true"] {
  border-color: #b43a2c;
}

.contact-form [aria-invalid="true"]:focus {
  border-color: #b43a2c;
  box-shadow: 0 0 0 3px rgba(180, 58, 44, 0.16);
}

.checkbox-row .field-error {
  grid-column: 2;
}

.form-note[data-state="success"] {
  color: #176c4a;
}

.form-note[data-state="error"] {
  color: #a73324;
}

.form-note[data-state="loading"] {
  color: var(--teal-dark);
}

.contact-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.contact-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 44px 0;
  color: rgba(255, 255, 255, 0.85);
  background: var(--teal-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer-brand strong {
  display: block;
  color: #fff;
  margin-bottom: 4px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.85rem;
  max-width: 420px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a,
.footer-meta a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.92rem;
}

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

.footer-meta {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.footer-meta p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

/* ---------- Botón flotante WhatsApp ---------- */

.whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 58px;
  padding: 15px 17px;
  color: #fff;
  background: linear-gradient(135deg, var(--whatsapp) 0%, var(--whatsapp-dark) 85%);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(18, 140, 75, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, gap 0.25s ease;
}

.whatsapp-fab:hover,
.whatsapp-fab:focus-visible {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 18px 40px rgba(18, 140, 75, 0.48);
  gap: 10px;
}

.whatsapp-fab .fab-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.95rem;
  transition: max-width 0.3s ease;
}

.whatsapp-fab:hover .fab-label,
.whatsapp-fab:focus-visible .fab-label {
  max-width: 140px;
}

@keyframes fab-pulse {
  0% { box-shadow: 0 14px 34px rgba(18, 140, 75, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70% { box-shadow: 0 14px 34px rgba(18, 140, 75, 0.4), 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 14px 34px rgba(18, 140, 75, 0.4), 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-fab {
  animation: fab-pulse 2.6s ease-out 3;
}

.whatsapp-fab-image {
  width: 78px;
  height: 78px;
  min-height: 78px;
  padding: 0;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  background: #087cf0;
  box-shadow: 0 16px 38px rgba(21, 38, 82, 0.42);
  animation: none;
}

.whatsapp-fab-image img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  border-radius: 20px;
  transform: scale(1.08);
}

.whatsapp-fab-image:hover,
.whatsapp-fab-image:focus-visible {
  gap: 0;
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 20px 44px rgba(21, 38, 82, 0.52);
}

.budget-fab {
  position: fixed;
  right: 28px;
  bottom: 112px;
  z-index: 51;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: linear-gradient(145deg, #e57658, #b94d3c);
  box-shadow: 0 14px 32px rgba(79, 36, 29, 0.36);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.budget-fab svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.budget-fab::after {
  content: "Presupuesto";
  position: absolute;
  top: 50%;
  right: 72px;
  padding: 7px 10px;
  color: #fff;
  border-radius: 9px;
  background: rgba(23, 23, 36, 0.92);
  box-shadow: 0 8px 22px rgba(7, 8, 16, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translate(8px, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}

.budget-fab:hover,
.budget-fab:focus-visible {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 18px 38px rgba(79, 36, 29, 0.46);
}

.budget-fab:hover::after,
.budget-fab:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%);
}

/* Posición final de los dos accesos flotantes */

.whatsapp-fab.whatsapp-fab-image {
  top: 88px;
  right: 20px;
  bottom: auto;
  width: 68px;
  height: 68px;
  min-height: 68px;
  gap: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 50%;
}

.whatsapp-fab.whatsapp-fab-image img {
  width: 100%;
  height: 100%;
  flex: none;
  border-radius: 50%;
  transform: scale(1.065);
}

.whatsapp-fab.whatsapp-fab-image .fab-label {
  position: absolute;
  top: 50%;
  right: 76px;
  max-width: none;
  overflow: visible;
  padding: 7px 10px;
  color: #fff;
  border-radius: 9px;
  background: rgba(23, 23, 36, 0.92);
  box-shadow: 0 8px 22px rgba(7, 8, 16, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(8px, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-size: 0.78rem;
  white-space: nowrap;
}

.whatsapp-fab.whatsapp-fab-image:hover,
.whatsapp-fab.whatsapp-fab-image:focus-visible {
  gap: 0;
}

.whatsapp-fab.whatsapp-fab-image:hover .fab-label,
.whatsapp-fab.whatsapp-fab-image:focus-visible .fab-label {
  max-width: none;
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
}

.budget-fab {
  right: 28px;
  bottom: 20px;
}

@media (max-width: 640px) {
  .whatsapp-fab.whatsapp-fab-image {
    top: 78px;
    right: 12px;
    bottom: auto;
    width: 58px;
    height: 58px;
    min-height: 58px;
    padding: 0;
    border-radius: 50%;
  }

  .whatsapp-fab.whatsapp-fab-image img {
    width: 100%;
    height: 100%;
  }

  .whatsapp-fab.whatsapp-fab-image .fab-label {
    display: none;
  }

  .budget-fab {
    right: 14px;
    bottom: 14px;
    width: 68px;
    height: 68px;
  }
}

/* Destaque principal de navegación */

.main-nav .nav-feature,
.main-nav .nav-feature[aria-current="page"] {
  color: #fff;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.main-nav a[href*="quienes-somos"],
.main-nav a[href*="quienes-somos"][aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 7px 18px rgba(97, 43, 16, 0.2);
  transform: translateY(-2px);
}

/* ---------- Información ampliada de microempresas ---------- */

.microbusiness-info-page {
  background:
    radial-gradient(900px 520px at 100% 32%, rgba(116, 103, 181, 0.1), transparent 68%),
    var(--paper);
}

.theme-night.microbusiness-info-page .site-header {
  background: linear-gradient(90deg, #cf5f2d 0%, #e77d35 55%, #ef9344 100%);
  border-bottom-color: rgba(255, 255, 255, 0.24);
}

.microbusiness-info-main {
  overflow: hidden;
}

.microbusiness-info-hero {
  position: relative;
  padding: clamp(60px, 8vw, 112px) 0 clamp(70px, 9vw, 124px);
  color: #fff;
  background:
    radial-gradient(680px 460px at 92% 8%, rgba(229, 118, 88, 0.28), transparent 66%),
    radial-gradient(640px 460px at 2% 100%, rgba(116, 103, 181, 0.26), transparent 68%),
    linear-gradient(145deg, #171724 0%, #29263d 56%, #1a1928 100%);
}

.microbusiness-info-hero::after {
  content: "";
  position: absolute;
  right: -160px;
  bottom: -230px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.025), 0 0 0 140px rgba(255, 255, 255, 0.018);
  pointer-events: none;
}

.microbusiness-info-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  gap: clamp(36px, 7vw, 88px);
  align-items: start;
}

.microbusiness-info-heading {
  display: grid;
  gap: 20px;
  align-content: start;
}

.microbusiness-info-heading .breadcrumb {
  width: max-content;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
  font-weight: 700;
}

.microbusiness-info-heading .breadcrumb::before {
  content: "← ";
}

.microbusiness-info-heading .eyebrow,
.microbusiness-info-hero .microbusiness-card-kicker {
  color: #f1c88d;
}

.microbusiness-info-heading h1 {
  max-width: 10ch;
  color: #fff;
  font-size: clamp(3.1rem, 6vw, 5.8rem);
  line-height: 0.94;
}

.microbusiness-info-heading p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.7);
}

.microbusiness-info-heading .microbusiness-info-lead {
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.06rem, 1.45vw, 1.25rem);
  line-height: 1.65;
}

.microbusiness-obligations {
  display: grid;
  gap: 18px;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045));
  box-shadow: 0 30px 70px rgba(5, 5, 12, 0.28);
  backdrop-filter: blur(14px);
}

.microbusiness-card-kicker {
  color: var(--clay);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.microbusiness-obligations h2 {
  max-width: 15ch;
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.microbusiness-obligations ul {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.microbusiness-obligations li {
  position: relative;
  padding-left: 27px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
  line-height: 1.55;
}

.microbusiness-obligations li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e57658, #efb469);
  box-shadow: 0 0 0 5px rgba(229, 118, 88, 0.12);
}

.microbusiness-obligations > p:last-child {
  padding-top: 18px;
  color: rgba(255, 255, 255, 0.68);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.microbusiness-info-content {
  display: grid;
  gap: clamp(58px, 8vw, 104px);
  padding-top: clamp(70px, 9vw, 118px);
  padding-bottom: clamp(80px, 10vw, 136px);
}

.microbusiness-coverage-heading {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.microbusiness-coverage-heading h2 {
  max-width: 14ch;
  font-size: clamp(2.4rem, 4.8vw, 4.5rem);
}

.microbusiness-coverage-heading > p:last-child {
  max-width: 660px;
  font-size: 1rem;
}

.microbusiness-coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.microbusiness-coverage-card {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 100%;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid rgba(83, 76, 102, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 34px rgba(35, 31, 53, 0.07);
}

.microbusiness-coverage-card::after {
  content: "";
  position: absolute;
  right: -35px;
  bottom: -42px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: rgba(116, 103, 181, 0.055);
}

.microbusiness-coverage-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 13px;
  background: linear-gradient(135deg, #cf5f2d, #ef9344);
  box-shadow: 0 8px 18px rgba(207, 95, 45, 0.2);
  font-size: 0.72rem;
  font-weight: 800;
}

.microbusiness-coverage-card h3 {
  max-width: 20ch;
  color: var(--ink);
  font: 650 clamp(1.3rem, 2vw, 1.65rem)/1.12 var(--font-display);
}

.microbusiness-coverage-card p {
  position: relative;
  z-index: 1;
  font-size: 0.91rem;
  line-height: 1.65;
}

.microbusiness-coverage-card p + p {
  padding-top: 13px;
  border-top: 1px solid rgba(83, 76, 102, 0.1);
}

.microbusiness-advice {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(34px, 7vw, 90px);
  padding: clamp(34px, 6vw, 68px);
  color: #fff;
  border-radius: 30px;
  background:
    radial-gradient(440px 300px at 0% 100%, rgba(229, 118, 88, 0.2), transparent 68%),
    linear-gradient(145deg, #252238, #171724);
  box-shadow: 0 30px 70px rgba(25, 22, 38, 0.18);
}

.microbusiness-advice > div:first-child {
  display: grid;
  gap: 14px;
  align-content: start;
}

.microbusiness-advice .eyebrow {
  color: #f0ca88;
}

.microbusiness-advice h2 {
  max-width: 12ch;
  color: #fff;
  font-size: clamp(2.15rem, 4vw, 3.7rem);
}

.microbusiness-advice-copy {
  display: grid;
  gap: 22px;
}

.microbusiness-advice-copy p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
}

.microbusiness-advice-copy p + p {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.microbusiness-contact {
  width: min(860px, 100%);
  display: grid;
  gap: 18px;
  justify-self: center;
  justify-items: center;
  padding: clamp(38px, 7vw, 72px);
  border: 1px solid rgba(207, 95, 45, 0.18);
  border-radius: 30px;
  background:
    radial-gradient(380px 260px at 100% 0%, rgba(239, 147, 68, 0.16), transparent 70%),
    #fff9f3;
  box-shadow: 0 22px 54px rgba(35, 31, 53, 0.1);
  text-align: center;
}

.microbusiness-contact h2 {
  max-width: 15ch;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
}

.microbusiness-contact > p:not(.microbusiness-card-kicker) {
  max-width: 650px;
}

.microbusiness-contact .button {
  min-width: 190px;
  margin-top: 8px;
}

@media (max-width: 980px) {
  .microbusiness-info-hero-grid,
  .microbusiness-advice {
    grid-template-columns: 1fr;
  }

  .microbusiness-info-heading h1 {
    max-width: 12ch;
  }

  .microbusiness-obligations {
    width: min(720px, 100%);
  }

  .microbusiness-coverage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .microbusiness-advice h2 {
    max-width: 16ch;
  }
}

@media (max-width: 640px) {
  .microbusiness-info-hero {
    padding-top: 44px;
  }

  .microbusiness-info-hero-grid {
    gap: 34px;
  }

  .microbusiness-info-heading {
    gap: 16px;
  }

  .microbusiness-info-heading h1 {
    font-size: clamp(2.75rem, 14vw, 4rem);
  }

  .microbusiness-obligations,
  .microbusiness-advice,
  .microbusiness-contact {
    border-radius: 22px;
  }

  .microbusiness-coverage-grid {
    grid-template-columns: 1fr;
  }

  .microbusiness-coverage-card {
    padding: 24px;
  }

  .microbusiness-contact .button {
    width: 100%;
  }
}

/* ---------- Información ampliada de alquileres ---------- */

.rental-info-page {
  background:
    radial-gradient(760px 520px at 0% 48%, rgba(229, 118, 88, 0.08), transparent 68%),
    radial-gradient(880px 600px at 100% 72%, rgba(116, 103, 181, 0.1), transparent 70%),
    var(--paper);
}

.theme-night.rental-info-page .site-header {
  background: linear-gradient(90deg, #cf5f2d 0%, #e77d35 55%, #ef9344 100%);
  border-bottom-color: rgba(255, 255, 255, 0.24);
}

.rental-info-main {
  overflow: hidden;
}

.rental-info-hero {
  position: relative;
  padding: clamp(60px, 8vw, 110px) 0 clamp(70px, 9vw, 122px);
  color: #fff;
  background:
    radial-gradient(720px 520px at 95% 12%, rgba(216, 170, 91, 0.22), transparent 68%),
    radial-gradient(620px 440px at 0% 100%, rgba(116, 103, 181, 0.28), transparent 68%),
    linear-gradient(145deg, #171724 0%, #29263d 58%, #1a1928 100%);
}

.rental-info-hero::after {
  content: "";
  position: absolute;
  top: -260px;
  right: -210px;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 76px rgba(255, 255, 255, 0.025), 0 0 0 152px rgba(255, 255, 255, 0.016);
  pointer-events: none;
}

.rental-info-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(350px, 1.1fr);
  gap: clamp(38px, 7vw, 88px);
  align-items: center;
}

.rental-info-heading {
  display: grid;
  gap: 20px;
}

.rental-info-heading .breadcrumb {
  width: max-content;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
  font-weight: 700;
}

.rental-info-heading .breadcrumb::before {
  content: "← ";
}

.rental-info-heading .eyebrow,
.rental-intro-card .microbusiness-card-kicker {
  color: #f1c88d;
}

.rental-info-heading h1 {
  max-width: 11ch;
  color: #fff;
  font-size: clamp(3rem, 5.8vw, 5.6rem);
  line-height: 0.95;
}

.rental-info-heading .rental-info-lead {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.06rem, 1.45vw, 1.24rem);
  line-height: 1.68;
}

.rental-intro-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 20px;
  padding: clamp(30px, 4vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.115), rgba(255, 255, 255, 0.045));
  box-shadow: 0 30px 70px rgba(5, 5, 12, 0.28);
  backdrop-filter: blur(14px);
}

.rental-intro-card::after {
  content: "";
  position: absolute;
  right: -65px;
  bottom: -75px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(229, 118, 88, 0.1);
}

.rental-intro-card h2 {
  position: relative;
  z-index: 1;
  max-width: 15ch;
  color: #fff;
  font-size: clamp(1.9rem, 3.2vw, 3rem);
}

.rental-intro-card p:not(.microbusiness-card-kicker) {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.rental-intro-card p + p:not(.microbusiness-card-kicker) {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.rental-info-content {
  display: grid;
  gap: clamp(34px, 5vw, 58px);
  padding-top: clamp(70px, 9vw, 116px);
  padding-bottom: clamp(80px, 10vw, 136px);
}

.rental-audience-section {
  display: grid;
  gap: clamp(30px, 5vw, 52px);
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid rgba(83, 76, 102, 0.13);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 48px rgba(35, 31, 53, 0.08);
}

.rental-audience-heading {
  display: grid;
  grid-template-columns: minmax(250px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(24px, 6vw, 72px);
  align-items: end;
}

.rental-audience-heading > div {
  display: grid;
  gap: 13px;
}

.rental-audience-heading h2 {
  max-width: 14ch;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
}

.rental-audience-heading > p {
  max-width: 620px;
  line-height: 1.7;
}

.rental-option-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rental-option-list li {
  position: relative;
  min-height: 100%;
  padding: 17px 18px 17px 50px;
  color: var(--ink-soft);
  border: 1px solid rgba(83, 76, 102, 0.1);
  border-radius: 15px;
  background: rgba(248, 244, 237, 0.72);
  font-size: 0.9rem;
  line-height: 1.55;
}

.rental-option-list li::before {
  content: "✓";
  position: absolute;
  top: 16px;
  left: 17px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #cf5f2d, #ef9344);
  font-size: 0.68rem;
  font-weight: 900;
}

.rental-note {
  padding: 20px 22px;
  color: var(--ink);
  border-left: 4px solid var(--clay);
  border-radius: 0 16px 16px 0;
  background: rgba(229, 118, 88, 0.09);
  font-size: 0.92rem;
  line-height: 1.65;
}

.rental-tenant-section {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(520px 340px at 100% 0%, rgba(116, 103, 181, 0.24), transparent 68%),
    linear-gradient(145deg, #252238, #171724);
  box-shadow: 0 28px 64px rgba(25, 22, 38, 0.17);
}

.rental-tenant-section h2 {
  color: #fff;
}

.rental-tenant-section .eyebrow {
  color: #f0ca88;
}

.rental-tenant-section .rental-audience-heading > p {
  color: rgba(255, 255, 255, 0.7);
}

.rental-tenant-section .rental-option-list li {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
}

.rental-related-section {
  background:
    radial-gradient(520px 360px at 100% 0%, rgba(216, 170, 91, 0.12), transparent 72%),
    rgba(255, 255, 255, 0.82);
}

.rental-contact {
  margin-top: clamp(12px, 2vw, 24px);
}

@media (max-width: 980px) {
  .rental-info-hero-grid,
  .rental-audience-heading {
    grid-template-columns: 1fr;
  }

  .rental-info-heading h1 {
    max-width: 12ch;
  }

  .rental-intro-card {
    width: min(760px, 100%);
  }

  .rental-audience-heading h2 {
    max-width: 18ch;
  }
}

@media (max-width: 640px) {
  .rental-info-hero {
    padding-top: 44px;
  }

  .rental-info-hero-grid {
    gap: 34px;
  }

  .rental-info-heading h1 {
    font-size: clamp(2.65rem, 13.5vw, 4rem);
  }

  .rental-intro-card,
  .rental-audience-section {
    border-radius: 22px;
  }

  .rental-option-list {
    grid-template-columns: 1fr;
  }

  .rental-option-list li {
    padding-right: 15px;
  }
}

/* ---------- Información ampliada de salud y vida ---------- */

.health-info-page {
  background:
    radial-gradient(820px 560px at 0% 45%, rgba(116, 103, 181, 0.1), transparent 70%),
    radial-gradient(760px 520px at 100% 78%, rgba(229, 118, 88, 0.08), transparent 68%),
    var(--paper);
}

.theme-night.health-info-page .site-header {
  background: linear-gradient(90deg, #cf5f2d 0%, #e77d35 55%, #ef9344 100%);
  border-bottom-color: rgba(255, 255, 255, 0.24);
}

.health-info-main {
  overflow: hidden;
}

.health-info-hero {
  position: relative;
  padding: clamp(60px, 8vw, 110px) 0 clamp(70px, 9vw, 122px);
  color: #fff;
  background:
    radial-gradient(700px 500px at 92% 10%, rgba(116, 103, 181, 0.35), transparent 68%),
    radial-gradient(640px 460px at 0% 100%, rgba(229, 118, 88, 0.2), transparent 68%),
    linear-gradient(145deg, #171724 0%, #27243c 58%, #181725 100%);
}

.health-info-hero::after {
  content: "+";
  position: absolute;
  right: clamp(24px, 6vw, 90px);
  bottom: -105px;
  color: rgba(255, 255, 255, 0.035);
  font: 700 420px/1 var(--font-body);
  pointer-events: none;
}

.health-info-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(38px, 7vw, 88px);
  align-items: start;
}

.health-info-heading {
  display: grid;
  gap: 20px;
}

.health-info-heading .breadcrumb {
  width: max-content;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
  font-weight: 700;
}

.health-info-heading .breadcrumb::before {
  content: "← ";
}

.health-info-heading .eyebrow,
.health-intro-card .microbusiness-card-kicker {
  color: #f1c88d;
}

.health-info-heading h1 {
  max-width: 13ch;
  color: #fff;
  font-size: clamp(2.75rem, 5vw, 4.9rem);
  line-height: 0.97;
}

.health-info-heading .health-info-lead {
  max-width: 670px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 1.42vw, 1.22rem);
  line-height: 1.68;
}

.health-intro-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  padding: clamp(30px, 4vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.115), rgba(255, 255, 255, 0.045));
  box-shadow: 0 30px 70px rgba(5, 5, 12, 0.28);
  backdrop-filter: blur(14px);
}

.health-intro-card::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -90px;
  width: 220px;
  height: 220px;
  border: 32px solid rgba(116, 103, 181, 0.09);
  border-radius: 50%;
}

.health-intro-card h2 {
  position: relative;
  z-index: 1;
  max-width: 15ch;
  color: #fff;
  font-size: clamp(1.9rem, 3.2vw, 3rem);
}

.health-intro-card p:not(.microbusiness-card-kicker) {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.67;
}

.health-intro-card p + p:not(.microbusiness-card-kicker) {
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.health-intro-card .health-declaration-note {
  margin-top: 2px;
  padding: 17px 18px;
  color: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(240, 202, 136, 0.16);
  border-radius: 15px;
  background: rgba(240, 202, 136, 0.08);
  font-size: 0.9rem;
}

.health-info-content {
  display: grid;
  gap: clamp(36px, 5vw, 62px);
  padding-top: clamp(70px, 9vw, 116px);
  padding-bottom: clamp(80px, 10vw, 136px);
}

.health-options-section {
  background:
    radial-gradient(520px 360px at 100% 0%, rgba(116, 103, 181, 0.09), transparent 72%),
    rgba(255, 255, 255, 0.82);
}

.health-option-list li::before,
.health-advantage-list li::before {
  background: linear-gradient(135deg, #675aa9, #e57658);
  box-shadow: 0 6px 14px rgba(103, 90, 169, 0.18);
}

.health-carency-note {
  border-left-color: #7467b5;
  background: rgba(116, 103, 181, 0.085);
}

.health-preexisting-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(34px, 7vw, 88px);
  padding: clamp(34px, 6vw, 68px);
  color: #fff;
  border-radius: 30px;
  background:
    radial-gradient(480px 340px at 0% 100%, rgba(229, 118, 88, 0.2), transparent 68%),
    radial-gradient(420px 300px at 100% 0%, rgba(116, 103, 181, 0.22), transparent 70%),
    linear-gradient(145deg, #252238, #171724);
  box-shadow: 0 28px 64px rgba(25, 22, 38, 0.18);
}

.health-preexisting-heading {
  display: grid;
  gap: 14px;
  align-content: start;
}

.health-preexisting-heading .eyebrow {
  color: #f0ca88;
}

.health-preexisting-heading h2 {
  max-width: 13ch;
  color: #fff;
  font-size: clamp(2.15rem, 4vw, 3.75rem);
}

.health-preexisting-copy {
  display: grid;
  gap: 21px;
}

.health-preexisting-copy p {
  color: rgba(255, 255, 255, 0.73);
  line-height: 1.75;
}

.health-preexisting-copy p + p {
  padding-top: 21px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.health-advantages-section {
  background:
    radial-gradient(560px 400px at 100% 0%, rgba(229, 118, 88, 0.1), transparent 72%),
    rgba(255, 255, 255, 0.84);
}

.health-advantages-intro {
  margin-bottom: -24px;
  color: var(--ink);
  font-weight: 700;
}

.health-considerations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.health-considerations > p {
  min-height: 100%;
  padding: 22px;
  color: var(--ink-soft);
  border: 1px solid rgba(83, 76, 102, 0.1);
  border-radius: 17px;
  background: rgba(248, 244, 237, 0.72);
  font-size: 0.9rem;
  line-height: 1.65;
}

.health-considerations .health-oncology-note {
  color: var(--ink);
  border-color: rgba(116, 103, 181, 0.2);
  background: linear-gradient(145deg, rgba(116, 103, 181, 0.12), rgba(229, 118, 88, 0.07));
}

.health-contact {
  margin-top: clamp(12px, 2vw, 24px);
}

@media (max-width: 980px) {
  .health-info-hero-grid,
  .health-preexisting-section {
    grid-template-columns: 1fr;
  }

  .health-info-heading h1 {
    max-width: 15ch;
  }

  .health-intro-card {
    width: min(760px, 100%);
  }

  .health-preexisting-heading h2 {
    max-width: 17ch;
  }

  .health-considerations {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .health-info-hero {
    padding-top: 44px;
  }

  .health-info-hero-grid {
    gap: 34px;
  }

  .health-info-heading h1 {
    font-size: clamp(2.45rem, 12.2vw, 3.8rem);
  }

  .health-intro-card,
  .health-preexisting-section {
    border-radius: 22px;
  }

  .health-advantages-intro {
    margin-bottom: -12px;
  }
}

/* Tarjetas compactas de otros seguros en portada */
.home-mini-insurance {
  grid-column: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin-top: 2px;
}

.screen-page.home-page .hero-products {
  display: grid;
  gap: 12px;
  align-self: center;
  min-width: 0;
}

.home-mini-card {
  position: relative;
  min-height: 86px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 17px;
  background: #242333;
  box-shadow: 0 12px 26px rgba(7, 8, 16, 0.25);
  isolation: isolate;
}

.home-mini-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(15, 15, 26, 0.84) 100%);
}

.home-mini-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.home-mini-card-wide img {
  object-position: center 47%;
}

.home-mini-card span {
  position: absolute;
  z-index: 2;
  right: 13px;
  bottom: 11px;
  left: 13px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 750;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.72);
}

.home-mini-card:hover img,
.home-mini-card:focus-visible img {
  transform: scale(1.045);
  filter: saturate(1.07);
}

.home-mini-card:focus-visible {
  outline: 3px solid #f0ca88;
  outline-offset: 3px;
}

/* Fondo específico de la página de otros seguros */
.screen-page.complementary-page::before {
  inset: -20px;
  background-image:
    linear-gradient(90deg, rgba(13, 14, 25, 0.83), rgba(13, 14, 25, 0.58)),
    url("assets/otros-seguros-construccion.webp");
  background-position: center, center 48%;
  background-size: cover, cover;
  filter: blur(5px) brightness(0.8);
  transform: scale(1.035);
}

.screen-page.other-insurance-page::before {
  background-image:
    linear-gradient(90deg, rgba(13, 14, 25, 0.84), rgba(13, 14, 25, 0.5)),
    url("assets/otros-seguros-construccion.webp");
  background-position: center, center 48%;
  filter: blur(5px) brightness(0.8);
}

.insurance-catalog-screen .screen-intro {
  top: 96px;
}

.insurance-catalog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.catalog-secondary-link {
  color: #f0ca88;
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.catalog-specialty-card {
  border-color: rgba(240, 202, 136, 0.42);
  background: rgba(48, 38, 35, 0.82) !important;
}

.catalog-specialty-card h3 a {
  color: inherit;
  text-decoration: none;
}

.catalog-specialty-card h3 a:hover,
.catalog-specialty-card h3 a:focus-visible,
.catalog-specialty-link:hover,
.catalog-specialty-link:focus-visible {
  color: #f0ca88;
}

.catalog-specialty-link {
  align-self: end;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
}

@media (max-width: 1180px) {
  .insurance-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .home-mini-insurance {
    grid-column: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }

  .home-mini-card {
    min-height: clamp(70px, 18vw, 88px);
    border-radius: 13px;
  }

  .home-mini-card span {
    right: 8px;
    bottom: 7px;
    left: 8px;
    font-size: 0.64rem;
    line-height: 1.15;
  }
}

@media (max-width: 520px) {
  .home-mini-insurance {
    gap: 6px;
  }

  .home-mini-card {
    min-height: 68px;
    border-radius: 11px;
  }

  .home-mini-card span {
    right: 6px;
    bottom: 6px;
    left: 6px;
    font-size: 0.58rem;
  }
}

/* Área privada de clientes */
.account-access[hidden],
.client-dashboard[hidden],
[role="tabpanel"][hidden] {
  display: none !important;
}

.account-page { background: #f3f0e9; color: #20202b; }
.account-page .site-header { position: relative; }
.account-main { min-height: 72vh; }
.account-access {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr);
  gap: clamp(50px, 9vw, 120px);
  align-items: center;
}
.account-access-copy h1 { max-width: 690px; margin: 20px 0; color: #191924; font-size: clamp(3rem, 6vw, 5.5rem); line-height: .96; }
.account-access-copy > p { max-width: 650px; color: #62606a; font-size: 1.08rem; line-height: 1.75; }
.security-points { display: grid; gap: 15px; margin: 34px 0 0; padding: 0; list-style: none; color: #35343e; font-weight: 650; }
.security-points li { display: flex; gap: 12px; align-items: center; }
.security-points span { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: #e7d5b8; color: #4d321c; }
.login-card { padding: clamp(30px, 4vw, 48px); border: 1px solid rgba(27, 27, 38, .1); border-radius: 28px; background: #fff; box-shadow: 0 28px 80px rgba(29, 25, 18, .12); }
.login-lock { display: grid; width: 50px; height: 50px; place-items: center; margin-bottom: 24px; border-radius: 15px; background: #231f2b; color: #f2cf91; }
.login-lock svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.login-card h2 { margin: 7px 0 8px; color: #1e1d27; font-size: 2.15rem; }
.login-help { margin: 0 0 28px; color: #77747e; }
.account-login-form { display: grid; gap: 18px; }
.account-login-form > label, .renegotiation-form label { display: grid; gap: 8px; color: #36343e; font-size: .84rem; font-weight: 750; }
.account-login-form input, .renegotiation-form select { width: 100%; padding: 14px 15px; border: 1px solid #d7d3cc; border-radius: 10px; background: #fbfaf7; color: #24222b; font: inherit; }
.account-login-form input:focus, .renegotiation-form select:focus { border-color: #9a663b; outline: 3px solid rgba(154, 102, 59, .12); }
.login-options { display: flex; justify-content: space-between; gap: 20px; align-items: center; font-size: .78rem; }
.login-options .checkbox-row { margin: 0; color: #696670; font-weight: 500; }
.login-options a, .invite-note a { color: #75451f; font-weight: 750; }
.invite-note { margin-top: 28px; padding-top: 24px; border-top: 1px solid #e7e3dc; font-size: .88rem; }
.invite-note p { margin: 6px 0 8px; color: #74717a; line-height: 1.55; }

.client-dashboard { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 46px 0 80px; }
.dashboard-topbar { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 32px; }
.dashboard-topbar h1 { margin: 5px 0; color: #1e1d27; font-size: clamp(2.5rem, 5vw, 4.5rem); }
.dashboard-topbar p { margin: 0; color: #6e6b74; }
.secure-session { display: flex; gap: 12px; align-items: center; color: #4d6f5b; font-size: .78rem; font-weight: 700; }
.secure-session-state { display: inline-flex; gap: 7px; align-items: center; }
.secure-session-state i { color: #5b936c; font-style: normal; }
.logout-button { display: inline-flex; gap: 7px; align-items: center; padding: 10px 13px; border: 1px solid #cfc7bc; border-radius: 10px; background: #fff; color: #623b2b; font: 750 .76rem Inter, sans-serif; cursor: pointer; box-shadow: 0 5px 15px rgba(37, 30, 22, .05); }
.logout-button:hover { border-color: #9a663b; background: #fbf6ee; }
.logout-button:focus-visible { outline: 3px solid rgba(154, 102, 59, .2); outline-offset: 2px; }
.logout-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.client-summary { display: grid; grid-template-columns: auto minmax(210px, 1fr) minmax(350px, 1.35fr) auto; gap: 22px; align-items: center; padding: 25px 28px; border: 1px solid #ded9d0; border-radius: 20px; background: #fff; box-shadow: 0 15px 45px rgba(40, 34, 24, .06); }
.client-avatar { display: grid; width: 56px; height: 56px; place-items: center; border-radius: 50%; background: #241f2c; color: #f3cd8b; font-weight: 800; }
.client-summary > div:nth-child(2) { display: grid; gap: 3px; }
.client-summary small, .client-summary dt { color: #86828a; font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; }
.client-summary span { color: #74717a; font-size: .8rem; }
.client-summary dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; }
.client-summary dl div { display: grid; gap: 3px; }
.client-summary dd { margin: 0; color: #33313a; font-size: .84rem; }
.client-summary > a { color: #72451f; font-size: .8rem; font-weight: 750; }
.account-tabs { display: flex; gap: 8px; margin: 42px 0 28px; border-bottom: 1px solid #d7d1c7; }
.account-tabs button { padding: 15px 20px; border: 0; border-bottom: 3px solid transparent; background: none; color: #77737c; font: 700 .9rem Inter, sans-serif; cursor: pointer; }
.account-tabs button[aria-selected="true"] { border-color: #9a663b; color: #282631; }
.account-tabs span { display: inline-grid; min-width: 22px; height: 22px; margin-left: 5px; place-items: center; border-radius: 50%; background: #e4ded3; font-size: .68rem; }
.policy-heading { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 22px; }
.policy-heading h2 { margin: 0; color: #24222c; font-size: 2rem; }
.policy-heading p { margin: 6px 0 0; color: #75717a; font-size: .86rem; }
.policy-legend { display: flex; gap: 18px; color: #77737b; font-size: .72rem; white-space: nowrap; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; }.status-dot.active { background: #5a8a69; }.status-dot.warning { background: #c78342; }
.policy-groups { display: grid; gap: 17px; }
.policy-group { overflow: hidden; border: 1px solid #ded8ce; border-radius: 17px; background: #fff; }
.policy-group h3 { display: flex; gap: 11px; align-items: center; margin: 0; padding: 13px 20px; border-bottom: 1px solid #eee9e1; background: #faf8f4; color: #48454e; font: 750 .8rem Inter, sans-serif; text-transform: uppercase; letter-spacing: .055em; }
.policy-group h3 span { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 9px; background: #2a2531; color: #edc885; font-size: .67rem; }
.policy-row { display: grid; grid-template-columns: minmax(240px, 1.4fr) minmax(360px, 1fr) auto; gap: 25px; align-items: center; padding: 20px; }
.policy-row > div { display: grid; gap: 4px; }.policy-row small { color: #8b878e; font-size: .68rem; letter-spacing: .05em; }.policy-row strong { color: #292730; }.policy-row > div > span { color: #77737b; font-size: .78rem; }
.policy-row dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 0; }
.policy-row dl div { display: grid; gap: 5px; }.policy-row dt { color: #8b878f; font-size: .66rem; text-transform: uppercase; }.policy-row dd { margin: 0; color: #45424a; font-size: .82rem; font-weight: 700; }.policy-row .date-warning { color: #aa5f24; }
.policy-action { padding: 10px 13px; border: 1px solid #d5c5b4; border-radius: 9px; color: #71441f; font-size: .75rem; font-weight: 750; text-decoration: none; }
.renegotiation-card { display: grid; grid-template-columns: 1fr .85fr; gap: clamp(35px, 8vw, 100px); padding: clamp(30px, 5vw, 58px); border-radius: 24px; background: #28232e; color: #fff; }
.renegotiation-card h2 { margin: 8px 0 13px; color: #fff; font-size: clamp(2.2rem, 4vw, 3.6rem); }.renegotiation-card p { color: rgba(255,255,255,.66); line-height: 1.65; }
.renegotiation-form { align-self: center; display: grid; gap: 20px; padding: 25px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: rgba(255,255,255,.06); }.renegotiation-form label { color: #fff; }.renegotiation-form .button { text-align: center; }
.dashboard-demo-note { margin-top: 24px; color: #817d84; font-size: .73rem; text-align: center; }

@media (max-width: 900px) {
  .account-access { grid-template-columns: 1fr; }.account-access-copy h1 { font-size: clamp(2.7rem, 11vw, 4.5rem); }
  .dashboard-topbar, .policy-heading { align-items: start; flex-direction: column; }
  .client-summary { grid-template-columns: auto 1fr; }.client-summary dl { grid-column: 1 / -1; }.client-summary > a { grid-column: 1 / -1; }
  .policy-row { grid-template-columns: 1fr; }.policy-row dl { grid-template-columns: repeat(2, 1fr); }.policy-action { justify-self: start; }
  .renegotiation-card { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .account-access, .client-dashboard { width: min(100% - 24px, 1240px); }.login-card { padding: 25px 20px; }.login-options { align-items: start; flex-direction: column; }
  .client-summary { padding: 20px; }.client-summary dl { grid-template-columns: 1fr; }.policy-row dl { grid-template-columns: 1fr; }.policy-legend { flex-direction: column; gap: 7px; }.account-tabs button { padding-inline: 11px; }.secure-session { width: 100%; justify-content: space-between; }
}

/* ---------- Páginas legales ---------- */

.legal-content {
  max-width: 780px;
  padding: clamp(48px, 7vw, 88px) 0;
}

.legal-content h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 8px;
}

.legal-content .legal-updated {
  margin-bottom: 36px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.legal-content h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin: 40px 0 12px;
}

.legal-content p,
.legal-content li {
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 22px;
}

.legal-content a {
  color: var(--teal-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content .pending {
  display: block;
  padding: 14px 16px;
  margin: 8px 0;
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(217, 164, 65, 0.1);
  color: var(--ink);
  font-size: 0.92rem;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.92rem;
}

.legal-content th,
.legal-content td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  color: var(--ink-soft);
  vertical-align: top;
}

.legal-content th {
  color: var(--ink);
  background: var(--mist);
}

/* ---------- Animaciones de aparición ---------- */

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

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

  .whatsapp-fab {
    animation: none;
  }

  .button:hover,
  .feature-card:hover,
  .service-card:hover,
  .steps li:hover {
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 78px 16px auto auto;
    width: min(360px, calc(100vw - 32px));
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: grid;
    gap: 4px;
    align-content: start;
  }

  .main-nav a {
    padding: 13px 14px;
    border-radius: var(--radius-sm);
  }

  .hero-grid,
  .split,
  .method-grid,
  .service-detail-grid,
  .service-detail-reverse,
  .compliance-grid,
  .contact-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .service-detail-reverse .service-detail-copy {
    order: 2;
  }

  .service-detail-reverse .service-detail-media {
    order: 1;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-visual {
    max-width: 560px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    min-height: 0;
  }

  .section-banner {
    aspect-ratio: 16 / 8;
  }

  .about-photo {
    max-width: 320px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(1140px, calc(100vw - 24px));
  }

  .header-inner {
    min-height: 68px;
  }

  .main-nav {
    inset: 72px 12px auto;
  }

  .brand strong {
    font-size: 0.96rem;
  }

  h1 {
    font-size: clamp(2.3rem, 11vw, 3.6rem);
  }

  h2 {
    font-size: clamp(1.7rem, 8.5vw, 2.6rem);
  }

  .hero-actions {
    display: grid;
  }

  .hero-stories {
    grid-template-columns: 1fr;
  }

  .story-card-wide {
    grid-column: auto;
  }

  .story-card,
  .story-card-wide {
    min-height: 190px;
  }

  .service-detail-media {
    border-radius: var(--radius);
  }

  .service-detail-media figcaption {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .hero-video-bg {
    opacity: 0.12;
  }

  .hero-video-card,
  .section-banner,
  .method-photo,
  .about-video {
    border-radius: var(--radius-sm);
  }

  .hero-video-card {
    aspect-ratio: 16 / 9;
  }

  .section-banner {
    margin-top: -4px;
  }

  .button {
    width: 100%;
  }

  .cards-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .service-card,
  .steps li {
    min-height: 0;
  }

  .whatsapp-fab {
    right: 14px;
    bottom: 14px;
    min-height: 54px;
    padding: 13px 15px;
  }

  .whatsapp-fab-image {
    width: 68px;
    height: 68px;
    min-height: 68px;
    padding: 0;
    border-radius: 21px;
  }
}

/* ---------- Páginas comerciales de una sola pantalla ---------- */

.screen-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: #fff;
  background-color: #171724;
  background-image: none;
}

.screen-page::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: -12px;
  pointer-events: none;
  background: url("assets/fondo-paginas-real.webp") center center / cover no-repeat;
  filter: blur(3px);
  transform: scale(1.015);
}

.screen-page.home-page::before {
  background-image: url("assets/portada-paisaje-marionetas.webp");
}

.screen-page .screen-main,
.screen-page.home-page .hero {
  text-shadow: 0 2px 12px rgba(7, 8, 18, 0.78);
}

.screen-page .button,
.screen-page input,
.screen-page select,
.screen-page textarea,
.screen-page .screen-points,
.screen-page .screen-insurance-grid,
.screen-page .screen-steps,
.screen-page .screen-quote,
.screen-page .quote-warning,
.screen-page .privacy-layer {
  text-shadow: none;
}

.screen-page > .site-header,
.screen-page > main,
.screen-page > .site-footer {
  position: relative;
  z-index: 1;
}

.screen-page > .site-header {
  position: sticky;
  top: 0;
  z-index: 200;
}

.screen-page > .whatsapp-fab {
  position: fixed;
  z-index: 20;
}

.theme-night.screen-page .site-header {
  flex: none;
  background: linear-gradient(90deg, #cf5f2d 0%, #e77d35 55%, #ef9344 100%);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(18px) saturate(1.15);
}

.screen-page .header-inner {
  min-height: 62px;
}

.screen-page .brand,
.screen-page .brand small,
.screen-page .main-nav a {
  color: #fff;
}

.screen-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  padding: clamp(14px, 2.4vh, 26px) 0;
}

.screen-card {
  width: min(1320px, calc(100% - 48px));
  max-height: 100%;
  margin: auto;
  padding: clamp(10px, 1.5vw, 20px);
  color: #fff;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.service-screen {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(310px, 1.15fr) minmax(280px, 1fr);
  gap: clamp(22px, 3vw, 44px);
  align-items: center;
}

.screen-intro,
.screen-details,
.screen-trust {
  display: grid;
  gap: 16px;
  align-content: center;
  justify-items: start;
  min-width: 0;
}

.screen-intro h1 {
  max-width: 11ch;
  color: #fff;
  font-size: clamp(2.5rem, 4.6vw, 4.8rem);
  line-height: 0.98;
}

.screen-intro > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(0.96rem, 1.25vw, 1.1rem);
}

.screen-page .eyebrow,
.screen-page .breadcrumb {
  color: #f0ca88;
}

.screen-page .breadcrumb {
  margin-bottom: -4px;
}

.screen-page .button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.screen-media {
  position: relative;
  align-self: stretch;
  min-height: 310px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  background: #171724;
  box-shadow: 0 18px 48px rgba(6, 7, 14, 0.3);
}

.screen-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen-media figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 11px 13px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(16, 17, 29, 0.76);
  backdrop-filter: blur(10px);
  font-size: 0.83rem;
  font-weight: 650;
}

.screen-details h2,
.screen-trust h2 {
  color: #fff;
  font-size: clamp(1.8rem, 2.7vw, 3rem);
}

.screen-details > p:not(.eyebrow),
.screen-trust > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.7);
}

.screen-points {
  width: 100%;
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.screen-points li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 11px;
  align-items: start;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.07);
}

.screen-points li > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--clay), #b94d3c);
  font-size: 0.72rem;
  font-weight: 800;
}

.screen-points li > div {
  display: grid;
  gap: 2px;
}

.screen-points strong {
  color: #fff;
  font-size: 0.93rem;
}

.screen-points p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
  line-height: 1.4;
}

.other-screen,
.method-screen,
.contact-screen {
  display: grid;
  gap: clamp(24px, 3vw, 46px);
  align-items: center;
}

.other-screen {
  grid-template-columns: minmax(250px, 0.72fr) minmax(560px, 1.55fr);
}

.screen-insurance-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.screen-page .screen-insurance-grid .insurance-card {
  min-height: 0;
  padding: 15px;
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: none;
}

.screen-page .screen-insurance-grid .insurance-card span {
  color: #f0ca88;
}

.screen-page .screen-insurance-grid .insurance-card h3 {
  color: #fff;
  font-size: 1rem;
}

.screen-page .screen-insurance-grid .insurance-card p {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.78rem;
  line-height: 1.4;
}

/* ---------- Servicios complementarios ---------- */

.complementary-page {
  height: auto !important;
  min-height: 100dvh;
  overflow: visible !important;
}

.complementary-page .screen-main {
  align-items: flex-start;
  padding-block: clamp(30px, 5vw, 70px);
}

.complementary-screen {
  width: min(1440px, calc(100% - 48px));
  grid-template-columns: minmax(260px, 0.58fr) minmax(650px, 1.65fr);
  align-items: start;
}

.complementary-screen .screen-intro {
  position: sticky;
  top: 96px;
}

.complementary-screen .screen-intro h1 {
  max-width: 15ch;
  font-size: clamp(2.15rem, 3.7vw, 4rem);
}

.complementary-screen .screen-details {
  width: 100%;
}

.complementary-services-grid {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.screen-page .complementary-services-grid .complementary-service-card {
  gap: 10px;
  padding: clamp(18px, 2vw, 25px);
  background: rgba(18, 19, 31, 0.76);
  backdrop-filter: blur(10px);
}

.screen-page .complementary-services-grid .complementary-service-card > span {
  font-size: 1.25rem;
}

.screen-page .complementary-services-grid .complementary-service-card h3 {
  font-size: 1.08rem;
  line-height: 1.25;
}

.complementary-service-card ul {
  display: grid;
  gap: 8px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.complementary-service-card li {
  position: relative;
  padding-left: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  line-height: 1.48;
}

.complementary-service-card li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f0ca88;
}

.screen-page .complementary-services-grid .coming-soon-card {
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding-right: 96px;
}

.screen-page .complementary-services-grid .coming-soon-card p {
  margin: 0;
  padding: 7px 12px;
  color: #fff2da;
  border: 1px solid rgba(240, 202, 136, 0.42);
  border-radius: 999px;
  background: rgba(240, 202, 136, 0.13);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .complementary-screen .screen-intro {
    position: static;
  }
}

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

  .screen-page .complementary-services-grid .coming-soon-card {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 10px;
    padding-right: 78px;
  }
}

.method-screen {
  grid-template-columns: minmax(230px, 0.7fr) minmax(460px, 1.35fr) minmax(250px, 0.82fr);
}

.screen-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: screen-step;
}

.screen-steps li {
  counter-increment: screen-step;
  display: grid;
  gap: 7px;
  min-height: 132px;
  align-content: start;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
}

.screen-steps li::before {
  content: "0" counter(screen-step);
  color: #f0ca88;
  font-size: 0.75rem;
  font-weight: 800;
}

.screen-steps strong {
  color: #fff;
}

.screen-steps p {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.82rem;
}

.screen-quote {
  width: 100%;
  padding: 20px;
  border: 1px solid rgba(240, 202, 136, 0.24);
  border-radius: 20px;
  background: rgba(240, 202, 136, 0.1);
}

.screen-quote small {
  display: block;
  margin-bottom: 8px;
  color: #f0ca88;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.screen-quote blockquote {
  color: #fff;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.12;
}

.screen-links {
  display: grid;
  gap: 6px;
}

.screen-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-screen {
  grid-template-columns: minmax(280px, 0.85fr) minmax(520px, 1.2fr);
}

.screen-page .contact-direct {
  margin-top: 2px;
}

.screen-page .contact-direct a {
  color: #f3d59e;
}

.screen-page .contact-form {
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.screen-page .contact-form label {
  gap: 4px;
  color: #fff;
  font-size: 0.82rem;
}

.screen-page .contact-form input,
.screen-page .contact-form select,
.screen-page .contact-form textarea {
  padding: 9px 11px;
  font-size: 0.88rem;
}

.screen-page .contact-form textarea {
  min-height: 66px;
}

.screen-privacy {
  gap: 3px;
  padding: 9px 11px;
  font-size: 0.7rem;
  line-height: 1.35;
}

.screen-page .checkbox-row {
  font-size: 0.75rem;
}

.screen-page .contact-form .button {
  padding-top: 10px;
  padding-bottom: 10px;
}

.screen-page .contact-form .field-error,
.screen-page .form-note[data-state="error"] {
  color: #ffd0c7;
}

.screen-page .contact-form .field-help {
  color: rgba(255, 255, 255, 0.74);
}

.screen-page .form-note[data-state="success"] {
  color: #b8f1d2;
}

.screen-page .form-note[data-state="loading"] {
  color: #f3d59e;
}

.screen-page .compact-footer {
  flex: none;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(90deg, #cf5f2d 0%, #e77d35 55%, #ef9344 100%);
  backdrop-filter: blur(16px);
}

.screen-page .compact-footer .footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.screen-page .compact-footer .footer-brand {
  display: none;
}

.screen-page .compact-footer .footer-links {
  display: flex;
  grid-template-columns: none;
  flex-wrap: wrap;
  gap: 5px 18px;
}

.screen-page .compact-footer .footer-links a,
.screen-page .compact-footer .footer-meta {
  font-size: 0.72rem;
}

.screen-page.home-page .hero {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  padding: clamp(16px, 2.5vh, 28px) 0;
  background: none;
}

.screen-page.home-page > main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}

.screen-page.home-page .hero {
  width: 100%;
}

.screen-page.home-page .hero::before,
.screen-page.home-page .hero-glow {
  display: none;
}

.screen-page.home-page .hero-grid {
  width: 100%;
  grid-template-columns: minmax(320px, 0.82fr) minmax(560px, 1.35fr);
  gap: clamp(22px, 3vw, 46px);
}

.screen-page.home-page .hero-copy {
  gap: 14px;
  padding: clamp(8px, 1.5vw, 18px) 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.screen-page.home-page .hero-copy h1 {
  font-size: clamp(2.35rem, 3.75vw, 4.05rem);
  line-height: 0.98;
}

.screen-page.home-page .hero-copy .lead {
  font-size: clamp(0.98rem, 1.35vw, 1.14rem);
}

.screen-page.home-page .hero-support {
  margin-top: -3px;
  font-size: 0.88rem;
}

.screen-page.home-page .hero-stories {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.screen-page.home-page .story-card,
.screen-page.home-page .story-card-wide {
  grid-column: auto;
  min-height: clamp(250px, 47vh, 450px);
}

.screen-page.home-page .story-overlay {
  padding: 16px;
}

.screen-media figcaption.screen-media-action {
  right: 18px;
  bottom: 18px;
  left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.service-more-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 750;
  text-shadow: 0 2px 12px rgba(8, 9, 15, 0.88);
}

.service-more-icon {
  width: 42px;
  height: 42px;
  display: grid;
  flex: none;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: linear-gradient(135deg, #cf5f2d 0%, #ef9344 100%);
  box-shadow: 0 8px 20px rgba(21, 12, 8, 0.38);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-more-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-more-link:hover .service-more-icon,
.service-more-link:focus-visible .service-more-icon {
  transform: translateX(3px);
  box-shadow: 0 10px 24px rgba(21, 12, 8, 0.5);
}

/* ---------- Simulador de presupuesto ---------- */

.quote-screen {
  display: grid;
  grid-template-columns: minmax(330px, 0.86fr) minmax(520px, 1.14fr);
  gap: clamp(24px, 3.5vw, 52px);
  align-items: stretch;
}

.quote-intro {
  display: grid;
  gap: 13px;
  align-content: center;
  min-width: 0;
}

.quote-intro h1 {
  max-width: 10ch;
  color: #fff;
  font-size: clamp(2.5rem, 4.4vw, 4.7rem);
  line-height: 0.98;
}

.quote-intro > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.96rem;
}

.quote-form {
  display: grid;
  gap: 10px;
  margin-top: 3px;
}

.quote-form label {
  display: grid;
  gap: 4px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 650;
}

.quote-form select {
  width: 100%;
  padding: 9px 11px;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  font: inherit;
}

.quote-form select:focus {
  outline: 3px solid rgba(240, 202, 136, 0.34);
  outline-offset: 1px;
}

.quote-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quote-form .button {
  margin-top: 2px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.quote-result {
  min-width: 0;
  display: grid;
  gap: 16px;
  align-content: center;
  padding: 0;
  color: #fff;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.quote-result .eyebrow {
  color: #f0ca88;
}

.quote-result-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.quote-price {
  margin-top: 3px;
  color: #fff;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.5rem, 4.2vw, 4.7rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.quote-period {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.84rem;
  font-weight: 650;
}

.quote-level-badge {
  flex: none;
  padding: 7px 10px;
  color: #fff;
  border: 1px solid rgba(240, 202, 136, 0.34);
  border-radius: 999px;
  background: rgba(229, 118, 88, 0.12);
  font-size: 0.72rem;
  font-weight: 800;
}

.quote-scale {
  display: grid;
  grid-template-columns: auto minmax(100px, 1fr) auto;
  gap: 10px;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  font-weight: 700;
}

.quote-scale > div {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(98, 85, 162, 0.25), rgba(229, 118, 88, 0.45));
}

.quote-scale i {
  position: absolute;
  top: 50%;
  width: 15px;
  height: 15px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 2px 8px rgba(21, 20, 34, 0.2);
  transform: translate(-50%, -50%);
  transition: left 0.22s ease;
}

.quote-proposal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.quote-proposal > div {
  display: grid;
  gap: 9px;
  align-content: start;
}

.quote-proposal h2 {
  color: #fff;
  font-size: 1.15rem;
}

.quote-proposal ul {
  display: grid;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.quote-proposal li {
  position: relative;
  padding-left: 17px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
}

.quote-proposal li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clay);
}

.quote-proposal p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
}

.quote-warning {
  padding: 10px 12px;
  color: #584d36;
  border: 1px solid rgba(217, 164, 65, 0.3);
  border-radius: 12px;
  background: rgba(217, 164, 65, 0.12);
  font-size: 0.7rem;
  line-height: 1.4;
}

.quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.quote-actions .button {
  padding: 10px 15px;
  font-size: 0.82rem;
}

.quote-result .button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

@media (min-width: 981px) and (min-height: 680px) {
  .screen-page {
    height: 100dvh;
    overflow: hidden;
  }

  .screen-page.contact-page {
    height: auto;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
  }
}

@media (max-width: 1100px) and (min-width: 981px) {
  .screen-card {
    width: min(1060px, calc(100% - 30px));
    padding: 22px;
  }

  .service-screen {
    grid-template-columns: minmax(210px, 0.78fr) minmax(280px, 1fr) minmax(250px, 0.92fr);
    gap: 20px;
  }

  .screen-intro h1 {
    font-size: clamp(2.25rem, 4vw, 3.5rem);
  }

  .screen-page.home-page .hero-grid {
    grid-template-columns: minmax(300px, 0.85fr) minmax(500px, 1.25fr);
  }

  .quote-screen {
    grid-template-columns: minmax(300px, 0.8fr) minmax(470px, 1.2fr);
    gap: 22px;
  }
}

@media (max-width: 980px) {
  .screen-page {
    display: block;
    min-height: 100dvh;
    background-attachment: scroll;
  }

  .screen-main {
    display: block;
    padding: 22px 0 34px;
  }

  .screen-card,
  .service-screen,
  .other-screen,
  .method-screen,
  .contact-screen,
  .quote-screen {
    width: min(720px, calc(100% - 30px));
    max-height: none;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .screen-intro h1 {
    max-width: 13ch;
  }

  .screen-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .screen-insurance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screen-page.home-page .hero {
    display: block;
    padding: 22px 0 34px;
  }

  .screen-page.home-page .hero-grid {
    grid-template-columns: 1fr;
  }

  .screen-page.home-page .hero-stories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screen-page.home-page .story-card-wide {
    grid-column: 1 / -1;
  }

  .screen-page.home-page .story-card,
  .screen-page.home-page .story-card-wide {
    min-height: 220px;
  }

  .screen-page .compact-footer .footer-grid {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .screen-card {
    padding: 20px;
    border-radius: 22px;
  }

  .screen-insurance-grid,
  .screen-steps,
  .screen-page.home-page .hero-stories {
    grid-template-columns: 1fr;
  }

  .quote-form-row,
  .quote-proposal {
    grid-template-columns: 1fr;
  }

  .quote-result-head {
    display: grid;
  }

  .screen-page.home-page .story-card-wide {
    grid-column: auto;
  }

  .screen-page .compact-footer .footer-grid {
    display: grid;
  }
}

@media (min-width: 981px) and (max-width: 1260px) {
  .main-nav a {
    padding-right: 9px;
    padding-left: 9px;
    font-size: 0.82rem;
  }
}

@media print {
  .quote-page {
    display: block;
    min-height: 0;
    color: #171724;
    background: #fff;
  }

  .quote-page::before,
  .quote-page .site-header,
  .quote-page .site-footer,
  .quote-page .whatsapp-fab,
  .quote-page .budget-fab,
  .quote-page .quote-intro,
  .quote-page .quote-actions {
    display: none !important;
  }

  .quote-page .screen-main {
    display: block;
    padding: 0;
  }

  .quote-page .quote-screen {
    display: block;
    width: 100%;
    max-height: none;
    padding: 0;
    border: 0;
    background: #fff;
    box-shadow: none;
  }

  .quote-page .quote-result {
    color: #171724;
    background: #fff;
    box-shadow: none;
  }

  .quote-page .quote-price,
  .quote-page .quote-proposal h2 {
    color: #171724;
  }

  .quote-page .quote-period,
  .quote-page .quote-scale,
  .quote-page .quote-proposal li,
  .quote-page .quote-proposal p {
    color: #625f70;
  }

  .quote-page .quote-proposal {
    border-color: #ddd8e4;
  }
}

/* ---------- Prueba de color: noche, marfil y terracota ---------- */

.theme-night {
  --ink: #242338;
  --ink-soft: #625f70;
  --paper: #f8f4ed;
  --mist: #eeebf3;
  --line: #ddd8e4;
  --teal: #7467b5;
  --teal-dark: #353451;
  --teal-deep: #171724;
  --clay: #e57658;
  --gold: #d8aa5b;
  --shadow-soft: 0 7px 24px rgba(35, 31, 53, 0.09);
  --shadow: 0 22px 54px rgba(25, 22, 38, 0.18);
}

.theme-night .site-header {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(23, 23, 36, 0.9);
}

.theme-night .brand small,
.theme-night .main-nav a {
  color: rgba(255, 255, 255, 0.7);
}

.theme-night .main-nav a:hover,
.theme-night .main-nav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.theme-night .main-nav .nav-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--clay), #b94d3c);
  box-shadow: 0 8px 20px rgba(185, 77, 60, 0.28);
}

.theme-night .nav-toggle {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
}

.theme-night .nav-toggle span:not(.sr-only) {
  background: #fff;
}

.theme-night .hero {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(900px 540px at 78% 0%, rgba(116, 103, 181, 0.28), transparent 62%),
    radial-gradient(720px 460px at -5% 110%, rgba(229, 118, 88, 0.18), transparent 64%),
    linear-gradient(150deg, #1a1928 0%, #232238 56%, #171724 100%);
}

.theme-night .hero h1 {
  color: #fff;
}

.theme-night .hero h1 em {
  color: #efb469;
}

.theme-night .hero .eyebrow {
  color: #e8c98d;
}

.theme-night .hero .lead {
  color: rgba(255, 255, 255, 0.94);
}

.theme-night .hero-support {
  color: rgba(255, 255, 255, 0.66);
}

.theme-night .hero .button.primary {
  background: linear-gradient(135deg, var(--clay), #b94d3c);
  box-shadow: 0 14px 30px rgba(185, 77, 60, 0.3);
}

.theme-night .hero .button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.theme-night .hero .button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.12);
}

.theme-night .section-muted {
  background: linear-gradient(180deg, #f0edf4 0%, #e8e3ee 100%);
}

.theme-night .section-health {
  background:
    radial-gradient(700px 420px at 100% 20%, rgba(229, 118, 88, 0.12), transparent 65%),
    linear-gradient(180deg, #fff7ef 0%, #f8f4ed 100%);
}

.theme-night .eyebrow,
.theme-night .service-link {
  color: #6255a2;
}

.theme-night #metodo {
  color: #fff;
  background:
    radial-gradient(720px 400px at 100% 0%, rgba(116, 103, 181, 0.2), transparent 65%),
    #1b1a2a;
}

.theme-night #metodo h2,
.theme-night #metodo .steps strong {
  color: #fff;
}

.theme-night #metodo p {
  color: rgba(255, 255, 255, 0.65);
}

.theme-night #metodo .eyebrow {
  color: #e8c98d;
}

.theme-night #metodo .steps li {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
}

.theme-night #metodo .steps li::before {
  color: rgba(232, 201, 141, 0.25);
}

.theme-night .section-about {
  background: linear-gradient(180deg, #f8f4ed 0%, #eee9f2 100%);
}

.theme-night .broker-statement,
.theme-night .section-compliance,
.theme-night .site-footer {
  background-color: #171724;
}

.theme-night .broker-statement {
  background:
    radial-gradient(420px 300px at 100% 0%, rgba(216, 170, 91, 0.2), transparent 60%),
    radial-gradient(360px 300px at 0% 100%, rgba(229, 118, 88, 0.24), transparent 62%),
    #171724;
}

@media (max-width: 980px) {
  .theme-night .main-nav {
    z-index: 210;
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
    border-color: rgba(255, 255, 255, 0.12);
    background: #232238;
    box-shadow: 0 24px 60px rgba(7, 8, 18, 0.52);
  }
}

/* ---------- Estructura multipágina ---------- */

.main-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.home-page .hero {
  min-height: auto;
  padding-top: clamp(48px, 6vw, 78px);
  padding-bottom: clamp(48px, 6vw, 78px);
  background-color: #171724;
  background-image: url("assets/portada-paisaje-marionetas.webp");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.home-page .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(18, 18, 31, 0.94) 0%, rgba(18, 18, 31, 0.78) 40%, rgba(18, 18, 31, 0.3) 72%, rgba(18, 18, 31, 0.12) 100%),
    linear-gradient(180deg, rgba(18, 18, 31, 0.06) 45%, rgba(18, 18, 31, 0.7) 100%);
}

.home-page .hero-glow {
  display: none;
}

.home-page .hero-grid {
  min-height: 0;
}

.subpage-hero {
  color: #fff;
  background:
    radial-gradient(780px 420px at 82% -10%, rgba(116, 103, 181, 0.3), transparent 65%),
    radial-gradient(520px 340px at 5% 120%, rgba(229, 118, 88, 0.18), transparent 65%),
    #1b1a2a;
}

.other-insurance-page .subpage-hero {
  background-color: #171724;
  background-image:
    linear-gradient(90deg, rgba(17, 18, 31, 0.94) 0%, rgba(17, 18, 31, 0.82) 38%, rgba(17, 18, 31, 0.34) 72%, rgba(17, 18, 31, 0.12) 100%),
    linear-gradient(180deg, rgba(17, 18, 31, 0.08) 45%, rgba(17, 18, 31, 0.64) 100%),
    url("assets/otros-seguros-construccion.webp");
  background-position: center, center, center 48%;
  background-size: cover, cover, cover;
  background-repeat: no-repeat;
}

.subpage-hero-inner {
  display: grid;
  gap: 18px;
  justify-items: start;
  padding-top: clamp(70px, 9vw, 120px);
  padding-bottom: clamp(70px, 9vw, 120px);
}

.subpage-hero h1 {
  max-width: 15ch;
  color: #fff;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
}

.subpage-hero p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
}

.subpage-hero .eyebrow {
  color: #e8c98d;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
  font-weight: 650;
}

.breadcrumb::before {
  content: "←";
}

.breadcrumb:hover,
.breadcrumb:focus-visible {
  color: #fff;
}

.cards-grid.three-cards {
  grid-template-columns: repeat(3, 1fr);
}

.cards-grid.two-cards {
  grid-template-columns: repeat(2, 1fr);
}

.cta-section {
  padding-top: 0;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(28px, 5vw, 56px);
  color: #fff;
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(520px 280px at 100% 0%, rgba(216, 170, 91, 0.2), transparent 65%),
    linear-gradient(135deg, #232238, #171724);
  box-shadow: var(--shadow);
}

.cta-panel > div {
  display: grid;
  gap: 10px;
}

.cta-panel h2 {
  max-width: 16ch;
  color: #fff;
}

.cta-panel .eyebrow {
  color: #e8c98d;
}

.comparison-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}

.method-copy {
  display: grid;
  gap: 20px;
  justify-items: start;
}

.health-note {
  max-width: 860px;
  display: grid;
  gap: 18px;
  justify-items: start;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(229, 118, 88, 0.2);
  border-radius: calc(var(--radius) + 6px);
  background: #fff9f4;
  box-shadow: var(--shadow-soft);
}

.insurance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.insurance-card {
  min-height: 245px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.insurance-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.insurance-card > span {
  color: var(--clay);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
}

.privacy-layer {
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--mist);
  font-size: 0.78rem;
  line-height: 1.45;
}

.privacy-layer p {
  color: var(--ink-soft);
}

.privacy-layer a {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-links-wide {
  grid-template-columns: repeat(2, minmax(135px, auto));
  column-gap: 24px;
}

.legal-back {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
  font-weight: 650;
}

.legal-back:hover,
.legal-back:focus-visible {
  color: #fff;
}

.compact-footer {
  padding-top: 28px;
  padding-bottom: 28px;
}

@media (max-width: 980px) {
  .home-page .hero,
  .home-page .hero-grid {
    min-height: auto;
  }

  .home-page .hero {
    background-position: 58% center;
  }

  .home-page .hero::before {
    background: linear-gradient(180deg, rgba(18, 18, 31, 0.86) 0%, rgba(18, 18, 31, 0.68) 45%, rgba(18, 18, 31, 0.92) 100%);
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid.three-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .insurance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .other-insurance-page .subpage-hero {
    background-image:
      linear-gradient(180deg, rgba(17, 18, 31, 0.86) 0%, rgba(17, 18, 31, 0.72) 52%, rgba(17, 18, 31, 0.94) 100%),
      url("assets/otros-seguros-construccion.webp");
    background-position: center, 62% center;
    background-size: cover, cover;
  }

  .subpage-hero h1 {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
  }

  .cards-grid.three-cards,
  .cards-grid.two-cards {
    grid-template-columns: 1fr;
  }

  .insurance-grid,
  .legal-links-wide {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .budget-fab {
    right: 14px;
    bottom: 14px;
    width: 68px;
    height: 68px;
  }

  .budget-fab::after {
    display: none;
  }
}

/* Ajustes finales de botones y accesos flotantes */

.screen-page > .budget-fab {
  bottom: 72px;
}

.theme-night.screen-page .button.primary,
.theme-night.screen-page .main-nav .nav-cta {
  color: #fff;
  background: linear-gradient(135deg, #cf5f2d 0%, #e77d35 58%, #ef9344 100%);
  box-shadow: 0 10px 24px rgba(173, 72, 27, 0.3);
}

.theme-night.screen-page .button.primary:hover,
.theme-night.screen-page .button.primary:focus-visible,
.theme-night.screen-page .main-nav .nav-cta:hover,
.theme-night.screen-page .main-nav .nav-cta:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, #b94d23 0%, #d96a2d 58%, #e98236 100%);
  box-shadow: 0 13px 28px rgba(151, 58, 21, 0.38);
}

@media (max-width: 640px) {
  .screen-page > .budget-fab {
    bottom: 118px;
  }

  .contact-page > .budget-fab,
  .contact-page > .whatsapp-fab,
  .quote-page > .budget-fab {
    display: none;
  }
}

/* Márgenes y límites visuales de las imágenes */

.screen-page.home-page {
  height: auto !important;
  min-height: 100dvh;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.screen-page.home-page .hero-grid {
  width: min(1180px, calc(100% - 80px));
}

.screen-page.home-page .story-card,
.screen-page.home-page .story-card-wide {
  min-height: clamp(220px, 40vh, 360px);
}

.screen-page .screen-media {
  width: 100%;
  height: auto;
  min-height: 0;
  align-self: center;
  aspect-ratio: 16 / 10;
}

.screen-page .screen-main {
  padding-bottom: clamp(26px, 4vh, 40px);
}

@media (min-width: 981px) and (max-height: 820px) {
  .screen-page .screen-intro,
  .screen-page .screen-details {
    gap: 11px;
  }

  .screen-page .screen-intro h1 {
    font-size: clamp(2.15rem, 3.7vw, 3.7rem);
  }

  .screen-page .screen-points li {
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

@media (max-width: 980px) {
  .screen-page.home-page .hero-grid {
    width: min(720px, calc(100% - 30px));
  }

  .screen-page.home-page .story-card,
  .screen-page.home-page .story-card-wide {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

/* Navegación institucional y página de presentación */

.profile-page {
  height: auto !important;
  min-height: 100dvh;
  overflow: visible !important;
}

.profile-main {
  position: relative;
  z-index: 1;
  color: #fff;
}

.profile-section {
  scroll-margin-top: 76px;
  padding: clamp(72px, 9vw, 118px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(23, 23, 36, 0.76);
}

.profile-section:nth-child(2) {
  background: rgba(35, 34, 56, 0.8);
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.75fr);
  gap: clamp(36px, 7vw, 90px);
  align-items: center;
}

.profile-copy,
.profile-heading {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.profile-copy h1,
.profile-copy h2,
.profile-heading h2 {
  color: #fff;
}

.profile-copy p:not(.eyebrow),
.profile-panel p,
.profile-steps p {
  color: rgba(255, 255, 255, 0.72);
}

.profile-about-copy {
  grid-column: 1 / -1;
  max-width: 980px;
}

.profile-about-copy p {
  max-width: 900px;
  font-size: 1rem;
  line-height: 1.75;
}

.profile-panel {
  display: grid;
  gap: 16px;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(240, 202, 136, 0.28);
  border-radius: 24px;
  background: rgba(240, 202, 136, 0.1);
  box-shadow: 0 24px 50px rgba(7, 8, 18, 0.2);
}

.profile-panel small {
  color: #f0ca88;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-panel h3 {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.profile-panel blockquote {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.9rem);
  line-height: 1.08;
}

.company-network {
  display: grid;
  gap: 24px;
  margin-top: clamp(48px, 7vw, 82px);
  padding-top: clamp(32px, 5vw, 56px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.company-network h2 {
  max-width: 18ch;
  color: #fff;
  font-size: clamp(1.65rem, 3.2vw, 2.8rem);
}

.company-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.company-list li {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 12px;
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.065);
  font-size: 0.79rem;
  line-height: 1.3;
}

.profile-heading {
  margin-bottom: 34px;
}

.profile-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0 0 30px;
  list-style: none;
  counter-reset: profile-step;
}

.profile-steps li {
  counter-increment: profile-step;
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
}

.profile-steps li::before {
  content: "0" counter(profile-step);
  color: #f0ca88;
  font-size: 0.78rem;
  font-weight: 800;
}

.profile-steps strong {
  color: #fff;
}

.profile-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  margin: 0 0 30px;
}

.profile-value-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(240, 202, 136, 0.24);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045));
}

.profile-value-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #f0ca88;
}

.profile-value-card.priorities::before {
  background: #ef9344;
}

.profile-value-label {
  margin: 0 0 5px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-value-card h3 {
  margin: 0 0 18px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.profile-value-card ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.profile-value-card li {
  position: relative;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  line-height: 1.5;
}

.profile-value-card li strong {
  display: block;
  margin-bottom: 3px;
  color: #fff;
  font-size: 0.94rem;
}

.profile-value-card li p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.profile-value-card li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f0ca88;
}

.profile-value-card.priorities li::before {
  background: #ef9344;
}

.account-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.account-note {
  color: rgba(255, 255, 255, 0.58) !important;
  font-size: 0.82rem !important;
}

@media (max-width: 1260px) and (min-width: 981px) {
  .nav-specialty {
    display: none;
  }

  .screen-page .brand small {
    max-width: 190px;
    font-size: 0.62rem;
  }
}

@media (max-width: 980px) {
  .nav-specialty {
    display: block;
    margin: 4px 8px 7px;
    color: rgba(255, 255, 255, 0.72);
    border-radius: 10px;
    text-align: center;
  }

  .main-nav .nav-feature {
    transform: none;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .screen-page .brand strong {
    font-size: 0.82rem;
  }

  .screen-page .brand small {
    max-width: 225px;
    font-size: 0.58rem;
  }

  .profile-steps,
  .profile-values,
  .account-actions {
    grid-template-columns: 1fr;
  }

  .profile-value-card.priorities {
    position: relative;
    top: auto;
  }

  .hero-slogan {
    padding: 22px;
  }
}

/* Prioridad final del botón institucional destacado */

.main-nav .nav-feature,
.main-nav .nav-feature[aria-current="page"] {
  color: #fff;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.main-nav a[href*="quienes-somos"],
.main-nav a[href*="quienes-somos"][aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 7px 18px rgba(97, 43, 16, 0.2);
  transform: translateY(-2px);
}
