/* =========================================================
   C-SUITE Stylesheet
   Fuentes permitidas: Helvetica y Times New Roman
   ========================================================= */

:root {
  --navy: #071f3f;
  --navy-2: #0d2d55;
  --navy-3: #133b66;
  --gold: #bc954c;
  /* #d3a64a; */
  --gold-2: #f2cd7a;
  --white: #ffffff;
  --paper: #f7f8fb;
  --soft: #eef2f7;
  --text: #0f2340;
  --muted: #65738a;
  --line: #dfe5ee;
  --whatsapp: #25d366;
  --shadow: 0 18px 45px rgba(7, 31, 63, .12);
  --radius: 18px;
  --serif: "Times New Roman", Times, serif;
  --sans: "Helvetica Neue", Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: #fff;
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

button, input, select, textarea {
  font: inherit;
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 76px 0;
}

.section-soft {
  background: linear-gradient(180deg, #fff 0%, #f7f8fb 100%);
}

.section-navy {
  background: var(--navy);
  color: #fff;
}

.section-title {
  text-align: center;
  margin-bottom: 34px;
}

.eyebrow {
  display: block;
  color: var(--gold);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title h2, .page-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--navy);
}

.section-title p {
  max-width: 720px;
  margin: 12px auto 0;
  color: var(--muted);
}

.gold {
  color: var(--gold);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 31, 63, .98);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}

.nav-wrap {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 238px;
}

.brand img {
  width: 235px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav a {
  color: #fff;
  font-weight: 750;
  font-size: .98rem;
  position: relative;
  padding: 34px 0;
}

.main-nav a.active::after, .main-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 9px;
  padding: 14px 22px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: .22s ease;
  cursor: pointer;
  white-space: nowrap;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #071f3f;
  font-family: Helvetica;

  box-shadow: 0 8px 16px rgba(211, 166, 74, .18);
}

.btn-dark {
  background: var(--navy);
  color: #fff;
}

.btn-outline {
  border-color: rgba(211, 166, 74, .75);
  color: #fff;
  background: rgba(255, 255, 255, .03);
}

.btn-whatsapp {
  border-color: var(--gold);
  color: #fff;
  background: rgba(8, 28, 55, .4);
}

.btn-whatsapp::before {
  content: "";
  width: 22px;
  height: 22px;
  display: inline-block;
  flex: 0 0 22px;
  background-color: currentColor;

  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.01 3C8.84 3 3 8.84 3 16.01c0 2.3.6 4.54 1.74 6.52L3 29l6.63-1.71A12.93 12.93 0 0 0 16.01 29C23.18 29 29 23.17 29 16.01S23.18 3 16.01 3Zm0 23.8c-1.98 0-3.92-.53-5.62-1.53l-.4-.24-3.93 1.02 1.05-3.82-.26-.41a10.76 10.76 0 0 1-1.65-5.81c0-5.96 4.85-10.81 10.81-10.81s10.8 4.85 10.8 10.81-4.85 10.79-10.8 10.79Zm5.92-8.08c-.32-.16-1.91-.94-2.2-1.05-.3-.11-.51-.16-.73.16-.21.32-.84 1.05-1.03 1.26-.19.22-.38.24-.7.08-.32-.16-1.36-.5-2.59-1.6-.96-.85-1.6-1.91-1.79-2.23-.19-.32-.02-.5.14-.66.14-.14.32-.38.49-.57.16-.19.21-.32.32-.54.11-.22.05-.41-.03-.57-.08-.16-.73-1.75-1-2.39-.26-.63-.53-.54-.73-.55h-.62c-.21 0-.56.08-.86.41-.3.32-1.13 1.1-1.13 2.69s1.16 3.12 1.32 3.33c.16.22 2.28 3.48 5.52 4.88.77.33 1.37.53 1.84.68.77.25 1.48.21 2.04.13.62-.09 1.91-.78 2.18-1.54.27-.75.27-1.4.19-1.54-.08-.14-.29-.22-.61-.38Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.01 3C8.84 3 3 8.84 3 16.01c0 2.3.6 4.54 1.74 6.52L3 29l6.63-1.71A12.93 12.93 0 0 0 16.01 29C23.18 29 29 23.17 29 16.01S23.18 3 16.01 3Zm0 23.8c-1.98 0-3.92-.53-5.62-1.53l-.4-.24-3.93 1.02 1.05-3.82-.26-.41a10.76 10.76 0 0 1-1.65-5.81c0-5.96 4.85-10.81 10.81-10.81s10.8 4.85 10.8 10.81-4.85 10.79-10.8 10.79Zm5.92-8.08c-.32-.16-1.91-.94-2.2-1.05-.3-.11-.51-.16-.73.16-.21.32-.84 1.05-1.03 1.26-.19.22-.38.24-.7.08-.32-.16-1.36-.5-2.59-1.6-.96-.85-1.6-1.91-1.79-2.23-.19-.32-.02-.5.14-.66.14-.14.32-.38.49-.57.16-.19.21-.32.32-.54.11-.22.05-.41-.03-.57-.08-.16-.73-1.75-1-2.39-.26-.63-.53-.54-.73-.55h-.62c-.21 0-.56.08-.86.41-.3.32-1.13 1.1-1.13 2.69s1.16 3.12 1.32 3.33c.16.22 2.28 3.48 5.52 4.88.77.33 1.37.53 1.84.68.77.25 1.48.21 2.04.13.62-.09 1.91-.78 2.18-1.54.27-.75.27-1.4.19-1.54-.08-.14-.29-.22-.61-.38Z'/%3E%3C/svg%3E");

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: transparent;
  border-radius: 10px;
  color: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.mobile-panel {
  display: none;
}

/* Hero */

.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(7, 31, 63, .96) 0%,
      rgba(7, 31, 63, .88) 36%,
      rgba(7, 31, 63, .58) 62%,
      rgba(7, 31, 63, .18) 100%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(52, 91, 134, .45) 0%,
      rgba(52, 91, 134, 0) 34%
    ),
    url("../assets/img/hero-team.png");

  background-size: cover;
  background-position: center 60%;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(ellipse at 0% 68%, rgba(255, 255, 255, .14) 0 1px, transparent 2px 14px);
  opacity: .18;
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(500px, .98fr);
  gap: 48px;
  align-items: center;
  padding: 54px 0 48px;
  
}

.hero-copy {
  max-width: 620px;
  /* margin-bottom: 32px; */

}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3.15rem, 5.6vw, 5.8rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.035em;
  margin-bottom: 22px;
}

.hero h1 .small-line {
  display: block;
}

.hero p {
  font-size: 1.08rem;
  color: #eef4fb;
  max-width: 570px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
    /* margin-top: 100px; */

}

.hero-badges {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-badges span::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 1px solid var(--gold);
  border-radius: 5px;
  background: rgba(211, 166, 74, .08);
}

.hero-visual {
  position: relative;
  min-height: 440px;
}
 
.hero-photo {
  position: absolute;

  /* Abarca todo el ancho de la pantalla */
  right: calc((min(1180px, 92vw) - 100vw) / 2);
  width: 100vw;

  /* Centra la imagen verticalmente y la hace más alta que el hero */
  top: 45%;
  height: calc(100% + 420px);
  /* transform: translateY(-50%); */

  border-radius: 0;
  overflow: hidden;
  background: #0a1b34;
  box-shadow: none;
  z-index: -1;
  pointer-events: none;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: .95;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(7, 31, 63, .96) 0%,
    rgba(7, 31, 63, .90) 32%,
    rgba(7, 31, 63, .62) 55%,
    rgba(7, 31, 63, .26) 78%,
    rgba(7, 31, 63, .10) 100%
  );
}

/* FORMULARIO DEL HERO */
.lead-card {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  max-width: calc(100vw - 48px);
  background: #fff;
  color: var(--text);
  border-radius: 20px;
  padding: 30px 30px 30px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .22);
  z-index: 3;
}

.lead-card h3 {
  font-family: var(--serif);
  font-size: 1.85rem;
  line-height: 1.05;
  color: var(--navy);
  margin-bottom: 6px;
}

.lead-card p {
  color: var(--muted);
  font-size: .96rem;
  margin-bottom: 18px;
}

.form-grid {
  display: grid;
  gap: 5px;
}

.field {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid #d7deea;
  border-radius: 9px;
  font-family: inherit;
  font-size: .96rem;
  color: var(--text);
  background: #fff;
  outline: none;
}

.field:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 154, 61, .16);
}

.lead-card .btn {
  width: 100%;
  min-height: 48px;
  margin-top: 2px;
  border: none;
  cursor: pointer;
  font-size: .98rem;
}

.secure {
  margin-top: 14px;
  text-align: center;
  font-size: .82rem;
  color: var(--muted);
}
 

.form-field {
  width: 100%;
}

.error-message {
  display: none;
  margin-top: 5px;
  font-size: .78rem;
  color: #b42318;
  line-height: 1.3;
}

.form-field.has-error .error-message {
  display: block;
}

.form-field.has-error .field {
  border-color: #d92d20;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, .12);
}

.form-field.is-valid .field {
  border-color: #12b76a;
}

.honeypot {
  display: none !important;
}

/* Benefits */

.benefit-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(15, 35, 64, .04);
}

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

.benefit-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  padding: 34px 26px;
  border-right: 1px solid var(--line);
}

.benefit-item:last-child {
  border-right: 0;
}

.icon-circle {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(211, 166, 74, .55);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--navy);
  font-size: 1.4rem;
  background: #fff;
}

.benefit-item h3 {
  font-size: 1rem;
  font-weight: 850;
  margin-bottom: 3px;
}

.benefit-item p {
  font-size: .88rem;
  color: var(--muted);
}

/* Cards */

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

.program-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: .22s ease;
}

.program-card:hover {
  transform: translateY(-4px);
}

.program-img {
  height: 142px;
  background: linear-gradient(135deg, #d9e2ec, #f8fafc);
  position: relative;
  overflow: hidden;
}

.program-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7, 31, 63, .08), rgba(211, 166, 74, .12));
}

.program-card:nth-child(1) .program-img {
  background: linear-gradient(135deg, #d8e5ef, #f8fafc), url("../assets/img/hero-team.svg");
  background-size: cover;
}

.program-card:nth-child(2) .program-img {
  background: linear-gradient(135deg, #aebccc, #f5f7fa);
}

.program-card:nth-child(3) .program-img {
  background: linear-gradient(135deg, #e5edf5, #ffffff);
}

.program-card:nth-child(4) .program-img {
  background: linear-gradient(135deg, #d6c7b2, #f8f1e3);
}

.program-body {
  padding: 28px 22px 24px;
  position: relative;
}

.program-icon {
  position: absolute;
  top: -30px;
  left: 20px;
  width: 58px;
  height: 58px;
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  border: 4px solid #fff;
}

.program-body h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.1;
  margin: 14px 0 10px;
  color: var(--navy);
}

.program-body p {
  font-size: .93rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.text-link {
  font-weight: 850;
  color: #b27c20;
}

.why-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.why-item {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  gap: 16px;
}

.why-item:last-child {
  border-right: 0;
}

.why-item .icon-circle {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
}

.why-item h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.why-item p {
  font-size: .86rem;
  color: var(--muted);
}

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

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 28px;
  box-shadow: 0 12px 25px rgba(15, 35, 64, .05);
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
}

.step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -21px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 2rem;
}

.step-num {
  width: 36px;
  height: 36px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 850;
}

.step h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
}

.step p {
  font-size: .87rem;
  color: var(--muted);
}

.trust {
  background: var(--navy);
  color: #fff;
  border-radius: 14px;
  padding: 42px 48px;
}

.trust h2 {
  font-family: var(--serif);
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 28px;
}

.logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 32px;
}

.logos span {
  text-align: center;
  opacity: .88;
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: .05em;
  color: #fff;
}

.stats {
  border-top: 1px solid rgba(255, 255, 255, .18);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-top: 28px;
}

.stat {
  display: flex;
  gap: 14px;
  align-items: center;
}

.stat strong {
  display: block;
  color: var(--gold);
  font-size: 1.8rem;
}

.stat span {
  font-size: .9rem;
  color: #e5edf5;
}

.cta {
  background: var(--navy);
  color: #fff;
}

.cta-panel {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: center;
  background: linear-gradient(135deg, #092344, #0d315d);
  border: 1px solid rgba(211, 166, 74, .45);
  border-radius: 18px;
  padding: 34px 44px;
  overflow: hidden;
  position: relative;
}

.cta-panel::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -50px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(211, 166, 74, .35);
  border-radius: 50%;
}

.cta h2 {
  font-family: var(--serif);
  font-size: 2rem;
  color: #fff;
}

.cta p {
  color: #d9e5f5;
}

.cta-actions {
  justify-self: end;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer {
  background: #061934;
  color: #dce8f8;
  padding: 62px 0 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .9fr .9fr .9fr;
  gap: 38px;
}

.footer-logo {
  width: 220px;
  margin-bottom: 16px;
}

.footer p, .footer a {
  color: #cdd8e8;
  font-size: .92rem;
}

.footer h4 {
  color: #fff;
  margin-bottom: 14px;
  font-size: 1rem;
}

.footer a {
  display: block;
  margin-bottom: 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 18px;
  margin-top: 34px;
  color: #bac7d8;
  font-size: .84rem;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 12px 28px rgba(37, 211, 102, .34);
  z-index: 999;
  transition: .22s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 34px rgba(37, 211, 102, .42);
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
  fill: #fff;
}

/* Importante: elimina el ícono anterior */
.whatsapp-float::before {
  content: none;
}

@media (max-width: 640px) {
  .whatsapp-float {
    width: 56px;
    height: 56px;
    right: 16px;
    bottom: 16px;
  }

  .whatsapp-float svg {
    width: 30px;
    height: 30px;
  }
}

/* Page generic */

.page-hero {
  background: linear-gradient(135deg, #071f3f, #0d315d);
  color: #fff;
  padding: 88px 0;
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  line-height: 1.05;
  max-width: 500px;
}

.page-hero p {
  font-size: 1.1rem;
  color: #e2edf9;
  max-width: 690px;
  margin-top: 18px;
}

.sub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.simple-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.simple-card h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.simple-card p, .simple-card li {
  color: var(--muted);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: .82rem;
  font-weight: 750;
  color: var(--navy);
  background: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 34px;
  align-items: start;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.contact-form .field, .contact-form textarea {
  margin-bottom: 12px;
}

.contact-form textarea {
  width: 100%;
  min-height: 128px;
  border: 1px solid #d5deea;
  border-radius: 8px;
  padding: 13px;
  resize: vertical;
}

.contact-form .btn {
  width: 100%;
}

@media (max-width:1180px) {
  .nav-wrap {
    height: auto;
    padding: 16px 0;
  }

  .brand {
    min-width: 200px;
  }

  .brand img {
    width: 205px;
  }

  .main-nav {
    gap: 20px;
  }

  .nav-cta .btn {
    padding: 12px 16px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-visual {
    min-height: 430px;
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
  }

  .hero h1 {
    max-width: 860px;
  }

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

@media (max-width:900px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav, .nav-cta {
    display: none;
  }

  .mobile-panel {
    display: block;
    position: fixed;
    inset: 92px 0 auto 0;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 16px 4vw 22px;
    transform: translateY(-130%);
    transition: .25s ease;
    z-index: 998;
  }

  .mobile-panel.open {
    transform: translateY(0);
  }

  .mobile-panel a {
    display: block;
    color: #fff;
    font-weight: 800;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .mobile-panel .btn {
    margin-top: 14px;
    width: 100%;
  }

  .benefit-row, .why-row, .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefit-item:nth-child(2) {
    border-right: 0;
  }

  .why-item:nth-child(2) {
    border-right: 0;
  }

  .program-grid, .steps, .sub-grid, .contact-grid, .cta-panel, .footer-grid {
    grid-template-columns: 1fr;
  }

  .step::after {
    display: none;
  }

  .cta-actions {
    justify-self: start;
  }

  .footer-bottom {
    flex-direction: column;
  }

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

@media (max-width:640px) {
  .container {
    width: min(100% - 32px, 1180px);
  }

  .site-header {
    position: sticky;
  }

  .brand img {
    width: 178px;
  }

  .hero-grid {
    padding: 38px 0;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .hero-badges {
    gap: 12px;
  }

  .hero-badges span {
    width: calc(50% - 6px);
    font-size: .78rem;
  }

  .hero-visual {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .hero-photo {
    position: relative;
    inset: auto;
    height: 270px;
    right: auto;
    left: auto;
    top: auto;
    bottom: auto;
  }
 
  /* benefits */

  .benefit-row, .why-row, .stats, .logos {
    grid-template-columns: 1fr;
  }

  .benefit-item, .why-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .benefit-item:last-child, .why-item:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 54px 0;
  }

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

  .trust {
    padding: 32px 20px;
  }

  .stat {
    justify-content: center;
    text-align: left;
  }

  .section-title h2 {
    font-size: 2.2rem;
  }

  .page-hero {
    padding: 62px 0;
  }

  .whatsapp-float {
    width: 56px;
    height: 56px;
    right: 16px;
    bottom: 16px;
  }

  .footer-grid {
    gap: 24px;
  }
}


/* =========================================================
   Responsive final overrides
   Mantiene la imagen del hero basada en .hero-photo
   ========================================================= */

/* Evita desbordes horizontales por elementos de 100vw */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Mejor comportamiento general de botones y formularios en pantallas chicas */
.btn,
.field,
textarea,
select {
  max-width: 100%;
}

textarea {
  font-family: var(--sans);
}

/* Header: cambia a menú móvil antes para evitar que el menú se encime */
@media (max-width: 1080px) {
  .nav-wrap {
    min-height: 76px;
    height: auto;
    padding: 14px 0;
  }

  .brand {
    min-width: auto;
  }

  .brand img {
    width: clamp(170px, 28vw, 210px);
  }

  .main-nav,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
    flex: 0 0 44px;
  }

  .mobile-panel {
    display: block;
    position: fixed;
    inset: 76px 0 auto 0;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 16px 4vw 22px;
    transform: translateY(-130%);
    transition: .25s ease;
    z-index: 998;
  }

  .mobile-panel.open {
    transform: translateY(0);
  }

  .mobile-panel a {
    display: block;
    color: #fff;
    font-weight: 800;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .mobile-panel .btn {
    width: 100%;
    margin-top: 14px;
  }
}

 