/* ───────────── PR Mecánica Integral · estilos ───────────── */

:root {
  --azul:        #1565d8;
  --azul-osc:    #0b4894;
  --navy:        #0a2540;
  --navy-2:      #0e3054;
  --tinta:       #15263a;
  --gris:        #5b6b7e;
  --linea:       #dfe6ef;
  --claro:       #f4f7fc;
  --blanco:      #ffffff;
  --wa:          #25d366;
  --wa-osc:      #1da851;

  --max:         1180px;
  --r:           14px;
  --r-sm:        10px;
  --sombra:      0 1px 2px rgba(10, 37, 64, .06), 0 8px 24px rgba(10, 37, 64, .07);
  --sombra-alta: 0 12px 34px rgba(10, 37, 64, .14);

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --texto:   "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--texto);
  font-size: 17px;
  line-height: 1.65;
  color: var(--tinta);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { max-width: 100%; }
a { color: var(--azul); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 20px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip:focus { left: 8px; top: 8px; }

:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; border-radius: 4px; }

/* ───────────── Tipografía ───────────── */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); text-transform: uppercase; }
h1 em { font-style: normal; color: var(--azul); }
h2 { font-size: clamp(2rem, 4.4vw, 3rem); text-transform: uppercase; }
h3 { font-size: 1.32rem; letter-spacing: 0; }

.eyebrow {
  font-family: var(--texto);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--azul);
  margin: 0 0 .7rem;
}
.lead { font-size: 1.08rem; color: var(--gris); max-width: 62ch; }
.lead--inv { color: rgba(255, 255, 255, .78); }

/* ───────────── Botones ───────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--texto); font-size: .95rem; font-weight: 600;
  padding: .72em 1.3em;
  border: 1px solid transparent; border-radius: 999px;
  cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--lg { font-size: 1.02rem; padding: .85em 1.6em; }
.btn--block { width: 100%; }

.btn--wa { background: var(--wa); color: #06331a; box-shadow: 0 6px 18px rgba(37, 211, 102, .32); }
.btn--wa:hover { background: var(--wa-osc); color: #fff; }

.btn--ghost { background: transparent; color: var(--navy); border-color: var(--linea); }
.btn--ghost:hover { border-color: var(--azul); color: var(--azul); }

.btn--ig {
  color: #fff;
  background: linear-gradient(60deg, #f9ce34, #ee2a7b 48%, #6228d7);
  box-shadow: 0 6px 18px rgba(238, 42, 123, .28);
}

.ico { width: 1.15em; height: 1.15em; fill: currentColor; flex: 0 0 auto; }

/* ───────────── Nav ───────────── */

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nav.is-stuck { border-bottom-color: var(--linea); box-shadow: 0 4px 18px rgba(10, 37, 64, .06); }

.nav__in { display: flex; align-items: center; gap: 24px; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--azul), var(--azul-osc));
  color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.25rem;
  letter-spacing: .02em;
  box-shadow: 0 4px 12px rgba(21, 101, 216, .35);
}
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__txt strong { font-family: var(--display); font-size: 1.28rem; text-transform: uppercase; }
.brand__txt small {
  font-size: .68rem; font-weight: 600; letter-spacing: .28em;
  text-transform: uppercase; color: var(--azul); margin-top: 3px;
}

.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a {
  font-size: .93rem; font-weight: 500; color: var(--tinta);
  padding: 4px 0; position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--azul); transition: right .2s ease;
}
.nav__links a:hover { text-decoration: none; }
.nav__links a:hover::after { right: 0; }

.burger { display: none; }

/* ───────────── Hero ───────────── */

.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 480px at 78% 12%, rgba(21, 101, 216, .55), transparent 62%),
    radial-gradient(700px 420px at 8% 88%, rgba(21, 101, 216, .22), transparent 60%),
    linear-gradient(170deg, #0a2540, #071b2e);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
}
.hero__in { position: relative; padding: clamp(70px, 11vw, 130px) 20px clamp(60px, 8vw, 96px); }
.hero h1 { max-width: 20ch; }
.hero__sub { font-size: 1.14rem; color: rgba(255, 255, 255, .8); max-width: 58ch; margin: 0 0 2.2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__cta .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.hero__cta .btn--ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; border-color: #fff; }

.hero__badges {
  list-style: none; margin: clamp(46px, 7vw, 74px) 0 0; padding: 0;
  display: grid; gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r); overflow: hidden;
}
.hero__badges li {
  background: rgba(255, 255, 255, .04);
  padding: 18px 20px; display: flex; flex-direction: column;
}
.hero__badges b {
  font-family: var(--display); font-size: 1.5rem; text-transform: uppercase;
  line-height: 1.1;
}
.hero__badges span { font-size: .86rem; color: rgba(255, 255, 255, .62); }

/* ───────────── Tira ───────────── */

.strip { background: var(--azul); color: #fff; }
.strip__in {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px;
  padding-block: 16px;
}
.strip p {
  margin: 0; font-size: .92rem; font-weight: 500;
  display: inline-flex; align-items: center; gap: .5em;
}
.strip .ico { fill: #fff; }

/* ───────────── Secciones ───────────── */

.sec { padding-block: clamp(62px, 9vw, 104px); }
.sec--alt { background: var(--claro); }
.sec--dark { background: var(--navy); color: #fff; }
.sec--dark h2, .sec--dark h3 { color: #fff; }
.sec--cta { background: linear-gradient(150deg, var(--navy-2), #071b2e); color: #fff; }
.sec--cta h2 { color: #fff; }

.sec__head { max-width: 66ch; margin-bottom: clamp(36px, 5vw, 54px); }
.sec__foot { margin-top: 36px; font-size: 1rem; color: var(--gris); }
.sec__foot a[data-wa] { font-weight: 600; cursor: pointer; }

.grid { display: grid; gap: 20px; }
.grid--svc { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }

.card {
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: var(--r);
  padding: 26px 24px 24px;
  box-shadow: var(--sombra);
  transition: transform .18s ease, box-shadow .22s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(21, 101, 216, .35);
  box-shadow: var(--sombra-alta);
}
.card__ico {
  display: grid; place-items: center;
  width: 50px; height: 50px; margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(21, 101, 216, .1);
  color: var(--azul);
}
.card__ico svg { width: 26px; height: 26px; fill: currentColor; }
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; font-size: .96rem; color: var(--gris); }

/* ───────────── Dos columnas ───────────── */

.two {
  display: grid; gap: clamp(34px, 5vw, 64px);
  grid-template-columns: 1fr 1fr; align-items: center;
}
.two--rev { align-items: stretch; }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 22px; }
.steps li {
  counter-increment: s;
  position: relative; padding-left: 62px;
}
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--display); font-size: 1.35rem; font-weight: 700;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
}
.steps h3 { margin-bottom: .25em; }
.steps p { margin: 0; font-size: .96rem; color: rgba(255, 255, 255, .72); }

/* ───────────── Instagram ───────────── */

.ig { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ig blockquote.instagram-media { margin: 0 auto !important; min-width: 0 !important; }

.ig__ph {
  grid-column: 1 / -1;
  border: 2px dashed var(--linea);
  border-radius: var(--r);
  background: var(--claro);
  padding: clamp(38px, 6vw, 62px) 28px;
  text-align: center;
}
.ig__ph svg { width: 46px; height: 46px; fill: var(--azul); opacity: .7; }
.ig__ph h3 { margin: 14px 0 .3em; }
.ig__ph p { margin: 0 auto; max-width: 48ch; color: var(--gris); font-size: .96rem; }

/* ───────────── Zona ───────────── */

.zona__card { display: flex; flex-direction: column; justify-content: center; }

.data { margin: 30px 0 0; display: grid; gap: 18px; }
.data > div { border-top: 1px solid var(--linea); padding-top: 14px; }
.data dt {
  font-size: .76rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--azul); margin-bottom: 3px;
}
.data dd { margin: 0; font-size: 1rem; }
.data dd a { font-weight: 600; cursor: pointer; }

.map { border-radius: var(--r); overflow: hidden; box-shadow: var(--sombra); min-height: 330px; }
.map iframe { width: 100%; height: 100%; min-height: 330px; border: 0; display: block; }
.map__ph {
  height: 100%; min-height: 330px;
  display: grid; place-content: center; justify-items: center; gap: 4px;
  text-align: center; padding: 30px;
  background: linear-gradient(150deg, #e7eef8, #d7e3f4);
  color: var(--navy);
}
.map__ph svg { width: 44px; height: 44px; fill: var(--azul); }
.map__ph p { margin: 8px 0 0; font-family: var(--display); font-size: 1.5rem; text-transform: uppercase; }
.map__ph span { font-size: .92rem; color: var(--gris); }

/* ───────────── Formulario ───────────── */

.turno {
  display: grid; gap: clamp(34px, 5vw, 60px);
  grid-template-columns: 1fr 1fr; align-items: center;
}
.turno__copy .lead { margin-bottom: 0; }

.form {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r);
  padding: clamp(22px, 3vw, 30px);
  display: grid; gap: 15px;
}
.form label { display: grid; gap: 6px; }
.form label > span {
  font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: rgba(255, 255, 255, .78);
}
.form label em { font-style: normal; text-transform: none; letter-spacing: 0; opacity: .65; }
.form input, .form select, .form textarea {
  font: inherit; font-size: .98rem;
  width: 100%; padding: .7em .85em;
  color: #fff;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--r-sm);
  resize: vertical;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(255, 255, 255, .42); }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--wa);
  background: rgba(255, 255, 255, .12);
}
.form select option { color: var(--tinta); }
.form input:user-invalid { border-color: #ff8f8f; }
.form__note { margin: 0; font-size: .82rem; color: rgba(255, 255, 255, .5); text-align: center; }

/* ───────────── Footer ───────────── */

.foot { background: #061726; color: rgba(255, 255, 255, .7); padding-top: 54px; font-size: .94rem; }
.foot__in {
  display: grid; gap: 30px;
  grid-template-columns: 1.4fr 1fr 1fr;
  padding-bottom: 40px;
}
.foot p { margin: 14px 0 0; max-width: 34ch; }
.foot nav, .foot__in > div:last-child { display: flex; flex-direction: column; gap: 9px; }
.foot a { color: rgba(255, 255, 255, .78); cursor: pointer; }
.foot a:hover { color: #fff; }
.brand--foot { color: #fff; }
.foot__legal {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-block: 18px;
}
.foot__legal p { margin: 0; font-size: .84rem; color: rgba(255, 255, 255, .45); }

/* ───────────── FAB WhatsApp ───────────── */

.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 120;
  display: inline-flex; align-items: center; gap: .5em;
  padding: 13px 18px; border-radius: 999px;
  background: var(--wa); color: #06331a;
  font-weight: 700; font-size: .96rem;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .42);
  transition: transform .16s ease, background .2s ease;
  cursor: pointer;
}
.fab:hover { transform: translateY(-3px); background: var(--wa-osc); color: #fff; text-decoration: none; }
.fab svg { width: 26px; height: 26px; fill: currentColor; }

/* ───────────── Responsive ───────────── */

@media (max-width: 900px) {
  .two, .turno { grid-template-columns: 1fr; }
  .two--rev > .map { order: 2; }
  .hero__badges { grid-template-columns: repeat(2, 1fr); }
  .foot__in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .nav__cta { display: none; }
  .burger {
    display: grid; gap: 5px; margin-left: auto;
    width: 44px; height: 44px; place-content: center;
    background: none; border: 0; cursor: pointer; padding: 0;
  }
  .burger span {
    display: block; width: 24px; height: 2px; border-radius: 2px;
    background: var(--navy); transition: transform .2s ease, opacity .2s ease;
  }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav__links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--linea);
    box-shadow: 0 14px 28px rgba(10, 37, 64, .1);
    padding: 6px 20px 14px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 13px 0; border-bottom: 1px solid var(--linea); font-size: 1rem; }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__links a::after { display: none; }

  .hero__cta .btn { width: 100%; }
  .hero__badges li { padding: 14px 16px; }
  .hero__badges b { font-size: 1.28rem; }
  .hero__badges span { font-size: .8rem; }
  .foot__in { grid-template-columns: 1fr; }
  .fab__txt { display: none; }
  .fab { padding: 15px; }
}

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