:root {
  --navy: #13285a;
  --navy-2: #0e1f47;
  --text: #2b3b5c;
  --muted: #5c6b85;
  --mint: #3fbf8f;
  --teal: #1f9d93;
  --mint-soft: #e4f6ef;
  --line: #e2ecef;
  --bg: #ffffff;
  --bg-soft: #f3fbfa;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(19, 40, 90, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Nunito", system-ui, sans-serif; font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
:focus-visible { outline: 3px solid #7fd3c0; outline-offset: 3px; border-radius: 8px; }

/* Botones y enlaces */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 20px; border-radius: 12px; font: inherit; font-size: 15px; font-weight: 800; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn svg { font-size: 18px; }
.btn--dark { background: var(--navy); color: #fff; border: 1px solid var(--navy); box-shadow: 0 8px 20px rgba(19, 40, 90, .22); }
.btn--dark:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn--line { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.btn--line:hover { background: #f2f5fb; }
.btn--lg { padding: 15px 26px; font-size: 16px; border-radius: 14px; }
.link { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-weight: 800; text-decoration: none; border-bottom: 2px solid #bfe8dd; padding-bottom: 2px; }
.link:hover { border-color: var(--teal); }

/* Logo */
.logo { display: inline-flex; color: var(--navy); }
.logo svg { width: 140px; height: 43px; stroke: none; fill: currentColor; }

/* Navegación */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(19, 40, 90, .05); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.nav__menu { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 700; color: var(--navy); }
.nav__menu > a:not(.btn) { text-decoration: none; }
.nav__menu > a:not(.btn):hover, .drop__btn:hover { color: var(--teal); }
.nav__menu .btn--line { margin-left: 4px; }
.nav__toggle { display: none; }
.drop { position: relative; }
.drop__btn { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.drop__btn svg { font-size: 16px; transition: transform .2s; }
.drop.is-open .drop__btn svg { transform: rotate(180deg); }
.drop__panel { position: absolute; top: calc(100% + 14px); left: -14px; display: none; min-width: 250px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.drop.is-open .drop__panel { display: grid; }
.drop__panel a { padding: 10px 12px; border-radius: 9px; text-decoration: none; font-weight: 700; }
.drop__panel a:hover { background: var(--bg-soft); color: var(--teal); }

/* Portada */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% 30%, #def5f2 0%, rgba(222, 245, 242, 0) 60%), linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); }
.hero::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -80px; height: 160px; background: #e8f7f3; border-radius: 50%; }
.hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 30px; padding: 40px 0 70px; }
.eyebrow { margin: 0 0 16px; color: var(--teal); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { margin: 0; color: var(--navy); font-size: clamp(40px, 5.6vw, 70px); font-weight: 900; line-height: 1.02; letter-spacing: -.02em; }
.hero h1 span { display: block; color: var(--mint); }
.hero__lead { max-width: 470px; margin: 22px 0 32px; color: var(--muted); font-size: 19px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.hero__art img { width: 100%; border-radius: 28px; -webkit-mask-image: radial-gradient(ellipse 58% 56% at 55% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 58% 56% at 55% 50%, #000 55%, transparent 100%); transform: scale(1.12); transform-origin: 60% 50%; }

/* Secciones */
.sec { padding: 80px 0 90px; }
.sec__title { margin: 0; text-align: center; color: var(--navy); font-size: clamp(28px, 3.4vw, 42px); font-weight: 900; letter-spacing: -.015em; line-height: 1.15; }
.sec__title span { color: var(--teal); }
.sec__sub { margin: 10px auto 44px; max-width: 620px; text-align: center; color: var(--muted); font-size: 18px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 18px; padding: 24px 24px 46px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: transform .18s, box-shadow .18s, border-color .18s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c9ebe1; }
.card__ic { grid-row: span 2; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--mint-soft); color: var(--teal); font-size: 25px; }
.card h3 { margin: 4px 0 6px; color: var(--navy); font-size: 19px; font-weight: 900; line-height: 1.2; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card__go { position: absolute; right: 22px; bottom: 18px; color: var(--teal); font-size: 20px; transition: transform .18s; }
.card:hover .card__go { transform: translateX(4px); }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.promo { position: relative; display: block; min-height: 300px; overflow: hidden; border-radius: 24px; text-decoration: none; background: #e9f8f7; }
.promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.promo--adia img { object-position: 20% 30%; }
.promo--brote img { object-position: 80% 50%; }
.promo:hover img { transform: scale(1.03); }
.promo__txt { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; height: 100%; min-height: 300px; padding: 34px; max-width: 52%; }
.promo--adia .promo__txt { margin-left: auto; }
.promo h3 { margin: 0 0 10px; color: var(--navy); font-size: clamp(24px, 2.4vw, 32px); font-weight: 900; line-height: 1.1; }
.promo p { margin: 0 0 22px; color: var(--text); font-size: 15px; }
.promo__go { display: grid; place-items: center; width: 46px; height: 46px; border: 2px solid var(--navy); border-radius: 50%; color: var(--navy); font-size: 20px; transition: background .18s, color .18s; }
.promo:hover .promo__go { background: var(--navy); color: #fff; }

/* Contacto */
.contact { position: relative; padding: 70px 0 90px; background: var(--navy) url("img/contacto-fondo.jpg") left bottom / cover no-repeat; color: #fff; }
.contact__in { display: grid; grid-template-columns: 1fr 1.05fr; align-items: start; gap: 48px; }
.contact__txt { padding-top: 40px; }
.contact h2 { margin: 0 0 14px; font-size: clamp(32px, 4vw, 50px); font-weight: 900; line-height: 1.05; letter-spacing: -.015em; }
.contact h2 span { display: block; color: #57d8a8; }
.contact__txt p { margin: 0; max-width: 430px; color: #d4def0; font-size: 19px; }
.form { display: grid; gap: 14px; padding: 28px; background: #fff; border-radius: 20px; color: var(--navy); box-shadow: 0 24px 50px rgba(0, 0, 0, .25); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 800; }
.form input, .form textarea { width: 100%; padding: 11px 14px; border: 1px solid #d6e0ea; border-radius: 10px; background: #fff; color: var(--text); font: inherit; font-size: 15px; font-weight: 600; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: #9aa7ba; font-weight: 600; }
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31, 157, 147, .15); }
.form [aria-invalid="true"] { border-color: #d64545; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form__msg { margin: 0; font-size: 14px; font-weight: 700; }
.form__msg.ok { color: #198754; }
.form__msg.err { color: #c43c3c; }
.form__legal { margin: 0; color: var(--muted); font-size: 12.5px; }
.form button[disabled] { opacity: .7; cursor: wait; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Pie */
.foot { padding: 26px 0; border-top: 1px solid var(--line); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 14px; color: var(--muted); }
.foot nav a { padding: 0 16px; text-decoration: none; border-left: 1px solid #cdd7e2; }
.foot nav a:first-child { border-left: 0; }
.foot nav a:hover { color: var(--teal); }

/* Página de texto (privacidad) */
.doc { max-width: 760px; padding: 50px 0 80px; }
.doc h1 { color: var(--navy); font-size: 38px; font-weight: 900; margin: 0 0 8px; }
.doc h2 { color: var(--navy); font-size: 21px; font-weight: 900; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc .doc__fecha { color: var(--muted); margin: 0 0 28px; }

/* Tablet */
@media (max-width: 980px) {
  .nav__toggle { display: grid; gap: 5px; place-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
  .nav__toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .2s, opacity .2s; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__menu { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 20px 22px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.is-open .nav__menu { display: flex; }
  .nav__menu > a:not(.btn), .drop__btn { padding: 12px 4px; font-size: 16px; }
  .nav__menu .btn { margin: 6px 0 0; }
  .drop__panel { position: static; min-width: 0; box-shadow: none; border: 0; padding: 0 0 6px 12px; }
  .hero__in { grid-template-columns: 1fr; padding-top: 24px; }
  .hero__art { max-width: 620px; margin-inline: auto; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duo, .contact__in { grid-template-columns: 1fr; }
}

/* Celular */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .hero__lead { font-size: 17px; }
  .sec { padding: 56px 0 64px; }
  .cards { grid-template-columns: 1fr; }
  .promo { min-height: 0; background: #eaf8f6; }
  .promo img { position: static; height: 210px; }
  .promo__txt, .promo--adia .promo__txt { height: auto; max-width: none; min-height: 0; margin: 0; padding: 20px 22px 24px; justify-content: flex-start; }
  .promo h3 { font-size: 22px; }
  .promo p { font-size: 14px; margin-bottom: 16px; }
  .form { padding: 20px; }
  .form__row { grid-template-columns: 1fr; }
  .foot__in { flex-direction: column; align-items: flex-start; }
  .foot nav a:first-child { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
