:root {
  --navy: #06245c;
  --blue: #084a98;
  --blue-2: #0a66c2;
  --gold: #f9b414;
  --gold-2: #ffd36b;
  --ink: #13213c;
  --muted: #5d6b80;
  --line: #d9e2ef;
  --bg: #f5f8fc;
  --soft-blue: #eaf3ff;
  --soft-gold: #fff6df;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(7, 36, 92, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  line-height: 1.55;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 108px;
  padding: 18px clamp(28px, 5.4vw, 84px);
  background: #ffffff;
  border-bottom: 1px solid rgba(6, 36, 92, 0.12);
  box-shadow: 0 3px 12px rgba(6, 36, 92, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--navy);
  font-size: 17px;
  font-weight: 900;
  border: 3px solid var(--gold);
  border-radius: 50%;
  background: #fff9e9;
}

.brand strong {
  position: relative;
  display: block;
  color: var(--navy);
  font-size: clamp(38px, 3.4vw, 58px);
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand strong span {
  color: var(--gold);
}

.brand strong span::before {
  content: "";
  position: absolute;
  left: 6px;
  top: -17px;
  width: 58px;
  height: 22px;
  background:
    radial-gradient(circle at 50% 100%, transparent 12px, var(--gold) 13px, transparent 14px),
    linear-gradient(90deg, transparent 9%, var(--gold) 9% 13%, transparent 13% 29%, var(--gold) 29% 33%, transparent 33% 48%, var(--gold) 48% 52%, transparent 52% 67%, var(--gold) 67% 71%, transparent 71% 87%, var(--gold) 87% 91%, transparent 91%);
  clip-path: inset(0 0 4px 0);
  opacity: 0.9;
}

.brand small {
  display: block;
  margin-top: 8px;
  color: var(--blue);
  font-size: clamp(16px, 1.45vw, 25px);
  font-weight: 800;
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 1.9vw, 34px);
  width: 100%;
}

.main-nav a {
  position: relative;
  padding: 10px 0;
  color: var(--navy);
  font-size: clamp(14px, 1.02vw, 18px);
  font-weight: 900;
  border-radius: 0;
  white-space: nowrap;
}

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

.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 3px;
  background: var(--gold);
  border-radius: 99px;
}

.main-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
  padding: 14px 22px;
  color: var(--navy);
  background: var(--gold);
  border-radius: 8px;
  box-shadow: 0 10px 18px rgba(249, 180, 20, 0.24);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
}

.hero {
  display: block;
  min-height: 468px;
  padding: 64px clamp(28px, 5.4vw, 84px) 46px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.99) 0%, rgba(255,255,255,0.97) 38%, rgba(255,255,255,0.42) 49%, rgba(255,255,255,0.02) 57%),
    url("assets/hero-family.jpg") right bottom / auto 92% no-repeat,
    linear-gradient(90deg, #f6fbff, #dceeff);
  overflow: hidden;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(48px, 4.9vw, 74px);
  line-height: 1.04;
  letter-spacing: 0;
}

h1::after {
  content: " bienestar para tu familia";
  display: block;
  color: var(--gold);
}

.hero-lead {
  max-width: 620px;
  margin: 26px 0 0;
  color: #17233f;
  font-size: clamp(19px, 1.65vw, 26px);
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 72px;
  padding: 18px 34px;
  font-size: clamp(17px, 1.2vw, 22px);
  font-weight: 900;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 12px 26px rgba(8, 74, 152, 0.28);
}

.btn.secondary {
  color: var(--navy);
  background: var(--white);
  border-color: var(--navy);
}

.hero-panel {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(6, 36, 92, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.panel-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(249, 180, 20, 0.18);
}

.house-visual {
  position: relative;
  min-height: 300px;
  padding: 34px 24px 24px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.8), rgba(255,255,255,0.94)),
    linear-gradient(145deg, #e6f3ff, #fff2cf);
  overflow: hidden;
}

.sun {
  position: absolute;
  top: 28px;
  right: 38px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 18px rgba(249, 180, 20, 0.16);
}

.roof {
  width: min(330px, 80%);
  height: 120px;
  margin: 82px auto 0;
  clip-path: polygon(50% 0, 100% 68%, 88% 68%, 88% 100%, 12% 100%, 12% 68%, 0 68%);
  background: linear-gradient(135deg, var(--blue), var(--navy));
}

.house-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: min(290px, 70%);
  margin: -4px auto 0;
  padding: 18px;
  border-radius: 0 0 8px 8px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(6, 36, 92, 0.16);
}

.house-body span {
  height: 54px;
  border-radius: 4px;
  background: var(--soft-blue);
  border: 2px solid #b9d7f6;
}

.battery {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 176px;
  padding: 14px;
  color: var(--white);
  border-radius: 8px;
  background: var(--navy);
  box-shadow: 0 14px 30px rgba(6, 36, 92, 0.2);
}

.battery strong,
.battery small {
  display: block;
}

.battery small {
  margin-top: 4px;
  color: #dcecff;
  font-size: 12px;
  line-height: 1.35;
}

.hero-checks {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.hero-checks li {
  position: relative;
  padding-left: 26px;
  color: var(--ink);
  font-weight: 700;
}

.hero-checks li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.56em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0 clamp(28px, 5.4vw, 84px);
  color: var(--white);
  background: #08488f;
}

.feature-strip article {
  display: grid;
  grid-template-columns: 78px 1fr;
  column-gap: 22px;
  align-items: center;
  min-height: 160px;
  padding: 26px 28px 26px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.32);
}

.feature-strip article + article {
  padding-left: 28px;
}

.feature-strip article:last-child {
  border-right: 0;
}

.feature-strip .icon {
  display: grid;
  grid-row: span 2;
  width: 70px;
  height: 70px;
  place-items: center;
  color: var(--gold);
  font-size: 48px;
  font-weight: 900;
}

.icon-people::before {
  content: "●●";
  letter-spacing: -10px;
}

.icon-shield::before {
  content: "⬟";
}

.icon-house::before {
  content: "⌂";
}

.icon-bolt::before {
  content: "ϟ";
  border: 3px solid var(--gold);
  border-radius: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
}

.feature-strip h2 {
  margin: 0 0 2px;
  font-size: clamp(19px, 1.5vw, 24px);
  line-height: 1.12;
}

.feature-strip p {
  margin: 0;
  color: #e8f2ff;
  font-size: clamp(14px, 1.05vw, 18px);
  line-height: 1.35;
}

.section {
  padding: 74px clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

.section h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}

.section h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.2;
}

.section p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 34px;
  align-items: center;
  background: var(--white);
}

.split p {
  max-width: 820px;
  font-size: 18px;
}

.callout {
  padding: 30px;
  border-left: 8px solid var(--gold);
  border-radius: 8px;
  background: var(--soft-gold);
  box-shadow: 0 12px 34px rgba(6, 36, 92, 0.08);
}

.callout strong {
  color: var(--navy);
  font-size: 22px;
}

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

.benefit-grid article,
.service-card,
.diagnostic-form,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(6, 36, 92, 0.08);
}

.benefit-grid article {
  min-height: 240px;
  padding: 24px;
}

.benefit-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  place-items: center;
  color: var(--navy);
  font-weight: 900;
  border-radius: 8px;
  background: var(--soft-gold);
  border: 1px solid #f7d472;
}

.process-section {
  background: var(--white);
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  overflow: hidden;
}

.process article {
  position: relative;
  min-height: 248px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.process article:last-child {
  border-right: 0;
}

.process span {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  place-items: center;
  color: var(--white);
  font-weight: 900;
  border-radius: 50%;
  background: var(--blue);
}

.service-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 20px;
  background: linear-gradient(180deg, var(--bg), #ffffff);
}

.service-card {
  padding: 28px;
}

.service-card.dark {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--blue));
}

.service-card.dark h2,
.service-card.dark p,
.service-card.dark .eyebrow,
.service-card.dark .text-link {
  color: var(--white);
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 900;
  border-bottom: 2px solid currentColor;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
}

.evidence {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 34px;
  align-items: center;
  background: var(--white);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.stats div {
  padding: 18px;
  border-radius: 8px;
  background: var(--soft-blue);
  border: 1px solid #cfe2f7;
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  color: var(--blue);
  font-size: 30px;
  line-height: 1;
}

.stats span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.evidence-media {
  display: grid;
  gap: 16px;
}

.evidence-media img,
.ods img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(6, 36, 92, 0.08);
}

.ods {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  background: var(--soft-gold);
}

.faq-section {
  background: var(--bg);
}

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

.faq-list details {
  padding: 0;
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  padding: 22px 24px;
  color: var(--navy);
  font-weight: 900;
}

.faq-list p {
  margin: 0;
  padding: 0 24px 22px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 34px;
  align-items: start;
  background:
    linear-gradient(135deg, rgba(6, 36, 92, 0.94), rgba(8, 74, 152, 0.9)),
    linear-gradient(135deg, var(--navy), var(--blue));
}

.contact-section h2,
.contact-section p,
.contact-section .eyebrow {
  color: var(--white);
}

.contact-box {
  display: grid;
  gap: 5px;
  margin-top: 26px;
  padding: 22px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.diagnostic-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 26px;
}

.diagnostic-form label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
}

.diagnostic-form input,
.diagnostic-form select,
.diagnostic-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
  border: 1px solid #c8d5e4;
  border-radius: 6px;
  background: var(--white);
}

.diagnostic-form textarea {
  resize: vertical;
}

.website-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.full {
  grid-column: 1 / -1;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--blue);
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 5vw, 72px);
  color: var(--white);
  background: #041b45;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer span {
  color: #dce8fb;
}

.site-footer a {
  font-weight: 900;
  color: var(--gold);
}

@media (max-width: 1100px) {
  .hero,
  .split,
  .evidence,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .feature-strip,
  .benefit-grid,
  .process,
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ods {
    grid-template-columns: 300px 1fr;
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    padding: 14px 20px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 81px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(6, 36, 92, 0.1);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a,
  .main-nav .nav-cta {
    margin: 0;
    padding: 13px 10px;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .feature-strip,
  .benefit-grid,
  .process,
  .service-grid,
  .stats,
  .ods,
  .diagnostic-form {
    grid-template-columns: 1fr;
  }

  .feature-strip article,
  .feature-strip article + article,
  .process article {
    padding-left: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  }

  .process article {
    border-bottom-color: var(--line);
  }

  .feature-strip article:last-child,
  .process article:last-child {
    border-bottom: 0;
  }

  .diagnostic-form .full,
  .full {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .brand strong {
    font-size: 23px;
  }

  .brand small {
    font-size: 11px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    font-size: 14px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .hero-panel {
    padding: 18px;
  }

  .battery {
    position: static;
    width: 100%;
    margin-top: 16px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
