@font-face {
  font-family: "Poppins";
  src: url("../assets/tipografia/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/tipografia/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/tipografia/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --azul: #0f2d3d;
  --verde: #5c8d7d;
  --terracota: #c26a4a;
  --marfil: #f6f1e8;
  --arena: #e8ded2;
  --grafito: #2e2f33;
  --blanco-calido: #fffaf2;
  --linea: rgba(15, 45, 61, 0.14);
  --sombra: 0 18px 54px rgba(15, 45, 61, 0.10);
  --radius-lg: 24px;
  --radius-md: 16px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", Arial, sans-serif;
  color: var(--grafito);
  background:
    radial-gradient(circle at 14% 10%, rgba(92, 141, 125, 0.10), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(194, 106, 74, 0.08), transparent 24%),
    var(--marfil);
  line-height: 1.65;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

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

.skip-link:focus {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: white;
  background: var(--azul);
  border-radius: 999px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 241, 232, 0.91);
  border-bottom: 1px solid rgba(15, 45, 61, 0.10);
  backdrop-filter: blur(18px);
}

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

.brand-link {
  flex: 0 0 auto;
}

.brand-link img {
  width: clamp(190px, 20vw, 246px);
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 34px);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--azul);
}

.main-nav a {
  position: relative;
  text-decoration: none;
  padding-block: 10px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--terracota);
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
}

.hero {
  min-height: calc(100svh - 78px);
  display: flex;
  align-items: center;
  padding: clamp(24px, 4vw, 48px) 0 30px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(390px, 1.05fr);
  align-items: center;
  gap: clamp(30px, 4vw, 58px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--verde);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--azul);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 650px;
  margin-bottom: 18px;
  font-size: clamp(2.7rem, 4.6vw, 4.85rem);
  line-height: 1.02;
  font-weight: 600;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 2.7vw, 2.65rem);
  font-weight: 600;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-lead {
  max-width: 610px;
  margin-bottom: 20px;
  color: var(--grafito);
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
}

.hero-copy,
.about-copy,
.card,
.pillar,
.process-step,
.quote-card,
.info-card,
.trust-strip article,
.trust-strip article div {
  min-width: 0;
}

.hero-copy p,
.trust-strip span,
.button {
  overflow-wrap: break-word;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: var(--azul);
  box-shadow: 0 14px 24px rgba(15, 45, 61, 0.20);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #15384b;
}

.button-secondary {
  color: var(--azul);
  background: rgba(255, 250, 242, 0.64);
  border-color: rgba(92, 141, 125, 0.55);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
  margin-top: 22px;
}

.trust-strip article {
  display: flex;
  gap: 10px;
  align-items: center;
}

.trust-strip img {
  width: 28px;
  height: 28px;
}

.trust-strip strong {
  display: block;
  color: var(--azul);
  font-size: 0.86rem;
  line-height: 1.2;
}

.trust-strip span {
  display: block;
  color: rgba(46, 47, 51, 0.78);
  font-size: 0.78rem;
  line-height: 1.35;
}

.hero-visual {
  position: relative;
  height: min(52vw, 500px);
  min-height: 390px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--arena);
  box-shadow: var(--sombra);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(246, 241, 232, 0.88) 0%, rgba(246, 241, 232, 0.28) 38%, transparent 72%),
    linear-gradient(0deg, rgba(15, 45, 61, 0.05), transparent 42%);
}

.hero-visual > img:first-child {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  object-position: center center;
}

.curve-pattern {
  position: absolute;
  z-index: 2;
  left: 4%;
  top: 18%;
  width: 58%;
  opacity: 0.54;
  pointer-events: none;
}

.hero-portrait {
  position: absolute;
  z-index: 3;
  right: clamp(18px, 4vw, 34px);
  bottom: clamp(18px, 4vw, 34px);
  width: clamp(156px, 28vw, 230px);
  aspect-ratio: 1;
  height: auto;
  object-fit: cover;
  object-position: center center;
  background: var(--marfil);
  border: 7px solid rgba(246, 241, 232, 0.92);
  border-radius: 20px;
  box-shadow: 0 18px 46px rgba(15, 45, 61, 0.22);
}

.section {
  padding: clamp(42px, 5.2vw, 68px) 0;
  border-top: 1px solid rgba(15, 45, 61, 0.08);
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: end;
  margin-bottom: 24px;
}

.split-heading p:last-child {
  max-width: 650px;
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.section-cards {
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.52), rgba(232, 222, 210, 0.28));
}

.card-grid {
  display: grid;
  gap: 16px;
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  min-height: 198px;
  padding: 28px 22px;
  text-align: center;
  background: rgba(255, 250, 242, 0.74);
  border: 1px solid var(--linea);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 42px rgba(15, 45, 61, 0.055);
}

.card img,
.pillar img {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
}

.card p,
.pillar p,
.process-step p {
  margin-bottom: 0;
  font-size: 0.94rem;
  line-height: 1.55;
}

.process-section {
  background: rgba(232, 222, 210, 0.46);
}

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

.process-step {
  position: relative;
  padding: 18px 12px 2px;
  text-align: center;
}

.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50px;
  right: -18px;
  width: 32px;
  border-top: 1px dashed rgba(15, 45, 61, 0.35);
}

.step-number {
  position: absolute;
  top: 0;
  left: 8px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--verde);
  border-radius: 50%;
  font-size: 0.88rem;
  font-weight: 600;
}

.process-step img {
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  padding: 13px;
  background: rgba(255, 250, 242, 0.6);
  border: 1px solid rgba(194, 106, 74, 0.30);
  border-radius: 50%;
}

.page-hero {
  padding: clamp(48px, 7vw, 86px) 0 clamp(32px, 5vw, 60px);
  background:
    linear-gradient(120deg, rgba(246, 241, 232, 0.94), rgba(232, 222, 210, 0.36)),
    var(--marfil);
  border-bottom: 1px solid rgba(15, 45, 61, 0.08);
}

.page-hero .page-kicker {
  max-width: 860px;
  margin-bottom: 0;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.4rem, 4.4vw, 4.4rem);
}

.content-section {
  padding: clamp(42px, 5vw, 68px) 0;
}

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

.info-card {
  padding: 24px;
  background: rgba(255, 250, 242, 0.74);
  border: 1px solid var(--linea);
  border-radius: var(--radius-md);
}

.info-card p:last-child,
.info-card li:last-child {
  margin-bottom: 0;
}

.plain-list,
.check-list {
  padding-left: 1.2rem;
  margin: 0;
}

.plain-list li,
.check-list li {
  margin-bottom: 8px;
}

.warning-band {
  padding: 22px 24px;
  background: rgba(232, 222, 210, 0.50);
  border-left: 4px solid var(--terracota);
  border-radius: var(--radius-md);
}

.warning-band p:last-child {
  margin-bottom: 0;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  background: rgba(255, 250, 242, 0.78);
  border: 1px solid var(--linea);
  border-radius: var(--radius-md);
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
}

.table-scroll:focus-visible {
  outline: 3px solid rgba(92, 141, 125, 0.55);
  outline-offset: 4px;
}

.table-scroll .pricing-table {
  min-width: 760px;
}

.pricing-table th,
.pricing-table td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(15, 45, 61, 0.10);
}

.pricing-table th {
  color: var(--azul);
  background: rgba(232, 222, 210, 0.48);
  font-weight: 600;
}

.pricing-table tr:last-child td {
  border-bottom: 0;
}

.legal-draft {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 7px 12px;
  color: var(--azul);
  background: rgba(194, 106, 74, 0.12);
  border: 1px solid rgba(194, 106, 74, 0.28);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.approach-section {
  background: rgba(255, 250, 242, 0.35);
}

.approach-grid {
  display: grid;
  grid-template-columns: 0.9fr repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
  align-items: stretch;
}

.section-intro {
  padding-right: 16px;
}

.section-intro h2 {
  font-size: clamp(1.75rem, 2.25vw, 2.35rem);
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--azul);
  font-weight: 600;
  text-underline-offset: 5px;
}

.pillar {
  padding: 24px 20px;
  text-align: center;
  border-left: 1px solid var(--linea);
}

.about-section {
  background: rgba(246, 241, 232, 0.84);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 0.82fr 0.92fr;
  gap: clamp(22px, 3vw, 34px);
  align-items: center;
}

.about-image {
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--sombra);
}

.about-image img {
  width: 100%;
  min-height: 260px;
  object-fit: cover;
}

.about-image-portrait {
  background: var(--arena);
}

.about-image-portrait img {
  aspect-ratio: 1;
  min-height: 0;
  object-position: center center;
}

.about-copy p:not(.eyebrow) {
  max-width: 520px;
}

.quote-card {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  padding: 32px;
  color: var(--azul);
  background:
    url("../assets/patrones/patron_curvas_2.svg") right 18px bottom 18px / 190px auto no-repeat,
    rgba(232, 222, 210, 0.42);
  border: 1px solid rgba(15, 45, 61, 0.09);
  border-radius: var(--radius-md);
}

.quote-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.62;
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.38fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 58px);
}

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

details {
  background: rgba(255, 250, 242, 0.74);
  border: 1px solid var(--linea);
  border-radius: 12px;
}

summary {
  cursor: pointer;
  padding: 15px 20px;
  color: var(--azul);
  font-weight: 600;
}

details p {
  padding: 0 20px 17px;
  margin: 0;
}

.cta-section {
  padding-top: 34px;
}

.cta-card {
  display: grid;
  grid-template-columns: 1.1fr 0.62fr 0.7fr;
  gap: 26px;
  align-items: center;
  padding: clamp(26px, 3.4vw, 38px);
  background:
    linear-gradient(90deg, rgba(246, 241, 232, 0.94), rgba(232, 222, 210, 0.78)),
    url("../assets/img/cta-primer-paso-formulario.png") left center / 360px auto no-repeat;
  border: 1px solid rgba(15, 45, 61, 0.10);
  border-radius: var(--radius-lg);
  box-shadow: var(--sombra);
}

.cta-card h2 {
  font-size: clamp(1.85rem, 2.5vw, 2.55rem);
}

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

.contact-pending {
  padding-left: 28px;
  border-left: 1px solid rgba(15, 45, 61, 0.16);
}

.contact-pending p {
  margin-bottom: 8px;
  color: rgba(46, 47, 51, 0.82);
  font-size: 0.9rem;
}

.notice-section {
  padding: 0 0 42px;
}

.notice-card {
  padding: 20px 24px;
  background: rgba(232, 222, 210, 0.45);
  border-left: 4px solid var(--terracota);
  border-radius: 18px;
}

.notice-card h2 {
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.notice-card p {
  margin-bottom: 6px;
}

.site-footer {
  padding: 26px 0 22px;
  background: rgba(255, 250, 242, 0.54);
  border-top: 1px solid rgba(15, 45, 61, 0.10);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 26px;
  align-items: center;
}

.footer-grid img {
  width: 214px;
  height: auto;
}

.footer-grid p {
  max-width: 420px;
  margin: 10px 0 0;
  color: rgba(46, 47, 51, 0.74);
  font-size: 0.88rem;
}

.footer-grid nav,
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  font-size: 0.82rem;
}

.footer-legal span {
  color: rgba(15, 45, 61, 0.72);
}

.footer-warning {
  grid-column: 1 / -1;
  max-width: 980px;
  margin: 0;
  color: rgba(46, 47, 51, 0.78);
  font-size: 0.82rem;
}

.footer-grid a {
  color: var(--azul);
  text-decoration: none;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 1060px) {
  .hero-grid,
  .split-heading,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    height: auto;
    min-height: 380px;
  }

  .hero-visual > img:first-child {
    min-height: 380px;
  }

  .card-grid.four,
  .process-grid,
  .approach-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid,
  .cta-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-pending {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(15, 45, 61, 0.16);
    padding-top: 22px;
  }

  .process-step:not(:last-child)::after {
    display: none;
  }

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

@media (max-width: 780px) {
  .header-inner {
    min-height: 76px;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    background: rgba(255, 250, 242, 0.72);
    border: 1px solid var(--linea);
    border-radius: 999px;
  }

  .nav-toggle-line,
  .nav-toggle-line::before,
  .nav-toggle-line::after {
    width: 20px;
    height: 2px;
    display: block;
    background: var(--azul);
    border-radius: 999px;
  }

  .nav-toggle-line {
    position: relative;
  }

  .nav-toggle-line::before,
  .nav-toggle-line::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-toggle-line::before {
    top: -7px;
  }

  .nav-toggle-line::after {
    top: 7px;
  }

  .main-nav {
    position: fixed;
    inset: 76px 20px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 18px;
    background: rgba(246, 241, 232, 0.98);
    border: 1px solid var(--linea);
    border-radius: 18px;
    box-shadow: var(--sombra);
  }

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

  .main-nav a {
    padding: 12px 10px;
  }

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

  h1 {
    max-width: 720px;
    font-size: clamp(2.25rem, 8.5vw, 3.15rem);
    line-height: 1.06;
  }

  .hero-lead {
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .trust-strip {
    gap: 12px;
    margin-top: 20px;
  }

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

  .hero-visual {
    min-height: 320px;
    border-radius: 22px;
  }

  .hero-visual > img:first-child {
    min-height: 320px;
  }

  .hero-portrait {
    width: clamp(136px, 34vw, 180px);
    border-width: 6px;
    border-radius: 18px;
  }

  .card-grid.four,
  .process-grid,
  .approach-grid {
    grid-template-columns: 1fr;
  }

  .pillar {
    border-left: 0;
    border-top: 1px solid var(--linea);
  }

  .section {
    padding-block: 42px;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  h1 {
    font-size: clamp(2rem, 9.2vw, 2.55rem);
    line-height: 1.06;
  }

  .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.13em;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-grid {
    gap: 24px;
  }

  .hero-visual,
  .hero-visual > img:first-child {
    min-height: 280px;
  }

  .hero-portrait {
    right: 14px;
    bottom: 14px;
    width: 128px;
    border-width: 5px;
    border-radius: 16px;
  }

  .brand-link img {
    width: 196px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .card,
  .quote-card,
  .cta-card {
    padding: 26px 20px;
  }
}
