/* =========================================================
   Es-saadi Dental · colores tomados de la tarjeta de visita
   ========================================================= */
:root {
  --navy: #1b3c84;
  --navy-700: #163271;
  --navy-900: #0d2152;
  --sky: #3b9be3;
  --sky-600: #2681c7;
  --sky-50: #ecf5fd;
  --bg: #f6f9fc;
  --surface: #ffffff;
  --ink: #0e1b33;
  --ink-2: #33415a;
  --muted: #5e6c84;
  --line: #e0e7f1;

  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-lg: 20px;
  --r-md: 14px;
  --shadow: 0 1px 2px rgba(13, 33, 82, .06), 0 18px 40px -18px rgba(13, 33, 82, .28);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --nav-h: 104px;
  --origin: left;
}
[dir="rtl"] { --origin: right; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
.ph, .ph-fill { line-height: 1; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sky-600); margin-bottom: 16px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--font); white-space: nowrap; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.btn i { font-size: 18px; transition: transform 200ms var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--glass { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn--full { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--navy-700); }
  .btn--primary:hover .ph-arrow-right { transform: translateX(3px); }
  .btn--glass:hover { background: #fff; color: var(--navy); border-color: #fff; }
}

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); margin-top: 28px; }
.link-arrow i { transition: transform 200ms var(--ease-out); }
@media (hover: hover) { .link-arrow:hover i { transform: translateX(4px); } }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  background: #fff; border-bottom: 1px solid var(--line);
  transition: box-shadow 300ms ease;
}
.nav.is-solid { box-shadow: 0 4px 20px rgba(15, 35, 80, .06); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav__logo { display: block; }
.nav__logo img { height: 78px; width: auto; }

/* selector de idioma */
.lang { display: flex; gap: 2px; padding: 3px; margin-inline-start: 20px; border-radius: 999px; background: var(--sky-50); border: 1px solid var(--line); transition: background-color 300ms ease, border-color 300ms ease; }
.lang button {
  min-width: 40px; height: 32px; padding: 0 10px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: 600 13px/1 var(--font); color: var(--navy); transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.lang button[lang="ar"] { font-family: "IBM Plex Sans Arabic", var(--font); font-size: 14px; }
.lang button:active { transform: scale(.94); }
.lang button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.nav.is-solid .lang, .nav.is-open .lang { background: var(--sky-50); border-color: var(--line); }
.nav.is-solid .lang button, .nav.is-open .lang button { color: var(--navy); }
.nav.is-solid .lang button[aria-pressed="true"], .nav.is-open .lang button[aria-pressed="true"] { background: var(--navy); color: #fff; }

.nav__links { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.nav.is-solid .nav__links { color: var(--ink-2); }
.nav__links a:not(.btn) { position: relative; padding: 6px 0; }
.nav__links a:not(.btn):not(.nav__phone)::after {
  content: ""; position: absolute; inset: auto 0 0; height: 2px; border-radius: 2px; background: var(--sky);
  transform: scaleX(0); transform-origin: var(--origin); transition: transform 250ms var(--ease-out);
}
@media (hover: hover) { .nav__links a:not(.btn):hover::after { transform: scaleX(1); } }
.nav__phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.nav__phone i { font-size: 18px; color: var(--sky); }

.nav__toggle { display: none; position: relative; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--sky-50); cursor: pointer; }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform 250ms var(--ease-out); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 960px) {
  :root { --nav-h: 84px; }
  .nav__logo img { height: 58px; }
  .nav__toggle { display: block; margin-inline-start: 8px; }
  .lang { margin-inline-start: auto; }
  .lang button { min-width: 34px; padding: 0 8px; height: 30px; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 24px; background: #fff; color: var(--ink-2); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-8px); visibility: hidden;
    transition: opacity 200ms ease, transform 250ms var(--ease-out), visibility 250ms;
  }
  .nav__links.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__links a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links .btn { margin-top: 18px; }
}

/* ---------- hero slider ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  /* min-height + padding-top: el hero crece hacia abajo si el contenido no cabe (nunca se corta bajo la cabecera) */
  min-height: clamp(680px, 92vh, 900px); padding-top: calc(var(--nav-h) + 56px);
  background: var(--navy-900); color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
}
@media (min-width: 1400px) { .hero { min-height: clamp(720px, 88vh, 940px); } }

.hero__slides { position: absolute; inset: 0; z-index: -2; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1100ms var(--ease-in-out); }
.slide img {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%);
  transform: scale(1.08); transition: transform 7500ms linear;
}
.slide.is-active { opacity: 1; }
.slide.is-active img { transform: scale(1); }

.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 33, 82, .92) 0%, rgba(13, 33, 82, .74) 38%, rgba(13, 33, 82, .18) 72%, rgba(13, 33, 82, .05) 100%),
    linear-gradient(0deg, rgba(13, 33, 82, .85) 0%, rgba(13, 33, 82, 0) 34%),
    linear-gradient(180deg, rgba(13, 33, 82, .55) 0%, rgba(13, 33, 82, 0) 22%);
}
@media (max-width: 760px) {
  .hero__scrim { background: linear-gradient(0deg, rgba(13, 33, 82, .96) 0%, rgba(13, 33, 82, .8) 46%, rgba(13, 33, 82, .3) 78%, rgba(13, 33, 82, .55) 100%); }
}

.hero__content { padding-bottom: 48px; }
.hero__title { font-size: clamp(40px, 6vw, 76px); font-weight: 800; letter-spacing: -.035em; max-width: 13ch; line-height: 1.02; }
.hero__title span { color: #8cc8f5; }
.hero__lead { margin-top: 22px; max-width: 48ch; font-size: clamp(17px, 1.5vw, 19px); color: rgba(255, 255, 255, .86); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero__bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 24px; padding-bottom: 28px; }
.hero__tab {
  position: relative; display: grid; gap: 2px; text-align: start; padding: 18px 0 0; border: 0; background: none;
  color: rgba(255, 255, 255, .62); font: inherit; cursor: pointer; transition: color 250ms ease;
}
.hero__tab::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: rgba(255, 255, 255, .22); border-radius: 2px; }
.hero__tab strong { font-size: 15px; font-weight: 600; }
.hero__tab small { font-size: 13px; color: inherit; opacity: .8; }
.hero__tab.is-active { color: #fff; }
.hero__progress { position: absolute; inset: 0 0 auto; height: 2px; border-radius: 2px; background: var(--sky); transform: scaleX(0); transform-origin: var(--origin); }
.hero__tab.is-active .hero__progress { animation: progress var(--dur, 6000ms) linear forwards; }
.hero.is-paused .hero__tab.is-active .hero__progress { animation-play-state: paused; }
@media (hover: hover) { .hero__tab:hover { color: #fff; } }
@keyframes progress { to { transform: scaleX(1); } }
@media (max-width: 760px) {
  .hero { min-height: 640px; padding-top: calc(var(--nav-h) + 40px); }
  .hero__bar { grid-template-columns: repeat(4, 1fr); gap: 0 8px; }
  .hero__tab small { display: none; }
  .hero__tab strong { font-size: 12px; }
}

/* hero entrance */
.js .load { opacity: 0; transform: translateY(16px); animation: rise 900ms var(--ease-out) forwards; }
.js .load:nth-child(2) { animation-delay: 120ms; }
.js .load:nth-child(3) { animation-delay: 240ms; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- value strip ---------- */
.values { background: var(--surface); border-bottom: 1px solid var(--line); }
.values__grid { display: grid; grid-template-columns: 1fr; }
.value { display: flex; gap: 16px; align-items: flex-start; padding: 26px 0; border-bottom: 1px solid var(--line); }
.value:last-child { border-bottom: 0; }
.value i { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--sky-50); color: var(--navy); font-size: 24px; }
.value strong { display: block; font-size: 16px; font-weight: 700; }
.value span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
@media (min-width: 640px) { .values__grid { grid-template-columns: repeat(2, 1fr); column-gap: 32px; } .value:nth-last-child(2) { border-bottom: 0; } }
@media (min-width: 1100px) {
  .values__grid { grid-template-columns: repeat(4, 1fr); column-gap: 0; }
  .value { padding: 34px 28px; border-bottom: 0; border-inline-start: 1px solid var(--line); }
  .value:first-child { border-inline-start: 0; padding-inline-start: 0; }
}

/* las decoraciones (anillos) no deben ensanchar la página; en árabe (RTL) desplazaban todo el contenido.
   clip en cada sección, no en body: el overflow de body se propaga a la ventana y deja de recortar. */
main > section, .footer { overflow-x: clip; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
@media (min-width: 1000px) { .section { padding: 136px 0; } }
.section h2 { font-size: clamp(32px, 4.4vw, 54px); }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__lead { margin-top: 18px; font-size: 18px; color: var(--ink-2); max-width: 62ch; }

/* ---------- about ---------- */
.about__grid { display: grid; gap: 64px; align-items: center; }
@media (min-width: 1000px) { .about__grid { grid-template-columns: .9fr 1.1fr; gap: 96px; } }
.about__media { position: relative; max-width: 520px; margin-inline-end: auto; width: 100%; }
.about__media > img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); }
.orbit {
  position: absolute; z-index: 0; left: -14%; top: 50%; width: 128%; aspect-ratio: 2.6;
  border: 2px solid var(--sky); border-radius: 50%; transform: translateY(-50%) rotate(-14deg); opacity: .55;
}
.about__media::after {
  content: ""; position: absolute; z-index: 2; left: -14%; top: 50%; width: 128%; aspect-ratio: 2.6;
  border: 2px solid var(--sky); border-radius: 50%; transform: translateY(-50%) rotate(-14deg);
  clip-path: inset(50% 0 0 0); pointer-events: none;
}
.about__badge {
  position: absolute; z-index: 3; inset-inline-end: -12px; bottom: 28px;
  display: flex; align-items: center; gap: 12px; padding: 14px 18px 14px 14px;
  background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow);
}
.about__badge img { width: 44px; height: auto; }
.about__badge strong { display: block; font-size: 15px; color: var(--navy); }
.about__badge span { display: block; font-size: 13px; color: var(--muted); }
@media (max-width: 560px) { .about__badge { inset-inline-end: 12px; } }

.about__text h2 { max-width: 16ch; margin-bottom: 28px; }
.about__lead { font-size: 20px; line-height: 1.55; color: var(--ink); font-weight: 500; }
.about__text p + p { margin-top: 18px; }
.about__text p:not(.about__lead) { color: var(--ink-2); font-size: 17px; }

/* ---------- catalog (bento) ---------- */
.catalog { background: var(--surface); border-block: 1px solid var(--line); }
.bento { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); } .product--hero { grid-column: span 2; } }
@media (min-width: 1040px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .product--hero { grid-column: span 2; grid-row: span 2; }
}
.product {
  display: flex; flex-direction: column; overflow: hidden; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: border-color 250ms ease, transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.product__img { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--sky-50); }
.product__img img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform 600ms var(--ease-out); }
.product__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.product h3 { font-size: 20px; letter-spacing: -.015em; }
.product p { font-size: 15px; color: var(--muted); line-height: 1.55; }
.product__cta { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy); }
.product__cta i { transition: transform 200ms var(--ease-out); }

.product--hero { background: var(--navy); border-color: var(--navy); color: #fff; }
.product--hero .product__img { aspect-ratio: auto; flex: 1; min-height: 260px; }
.product--hero .product__body { flex: none; padding: 28px; }
.product--hero h3 { font-size: clamp(24px, 2.4vw, 32px); }
.product--hero p { color: rgba(255, 255, 255, .8); font-size: 16px; max-width: 58ch; }
.product--hero .product__cta { color: #8cc8f5; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.tags li { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }

@media (hover: hover) and (pointer: fine) {
  .product:hover { transform: translateY(-4px); border-color: var(--sky); box-shadow: var(--shadow); }
  .product:hover .product__img img { transform: scale(1.05); }
  .product:hover .product__cta i { transform: translate(2px, -2px); }
}

.catalog__note {
  display: grid; gap: 16px; align-items: center; margin-top: 32px; padding: 24px;
  border-radius: var(--r-lg); background: var(--sky-50); border: 1px dashed rgba(38, 129, 199, .45);
}
.catalog__note > i { font-size: 28px; color: var(--sky-600); }
.catalog__note p { color: var(--ink-2); }
.catalog__note strong { color: var(--ink); }
@media (min-width: 800px) { .catalog__note { grid-template-columns: auto 1fr auto; padding: 22px 28px; } }

/* ---------- services ---------- */
.services__grid { display: grid; gap: 48px; }
@media (min-width: 1000px) {
  .services__grid { grid-template-columns: .85fr 1.15fr; gap: 96px; }
  .services__intro { position: sticky; top: calc(var(--nav-h) + 48px); align-self: start; }
}
.services__intro p { margin-top: 22px; font-size: 18px; color: var(--ink-2); max-width: 42ch; }
.services__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.services__list li {
  display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start;
  padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.services__list li > i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--navy); color: #fff; font-size: 24px; }
.services__list h3 { font-size: 19px; margin-bottom: 6px; letter-spacing: -.015em; }
.services__list p { color: var(--muted); }

/* ---------- steps ---------- */
.steps { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.steps::before {
  content: ""; position: absolute; right: -18%; top: 50%; width: 70%; aspect-ratio: 2.6;
  border: 2px solid rgba(140, 200, 245, .28); border-radius: 50%; transform: translateY(-50%) rotate(-14deg); pointer-events: none;
}
.steps__title { max-width: 18ch; margin-bottom: 56px; }
.steps__row { position: relative; display: grid; gap: 40px; }
@media (min-width: 900px) {
  .steps__row { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .steps__row::before { content: ""; position: absolute; left: 28px; right: 28px; top: 28px; border-top: 2px dashed rgba(255, 255, 255, .25); }
}
.step { position: relative; }
.step__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--navy); font-size: 26px; margin-bottom: 24px; box-shadow: 0 0 0 8px var(--navy); }
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { color: rgba(255, 255, 255, .78); max-width: 34ch; }

/* ---------- contact ---------- */
.contact__grid { display: grid; gap: 24px; }
@media (min-width: 1000px) { .contact__grid { grid-template-columns: 1fr 1.15fr; gap: 32px; align-items: stretch; } }
.contact__side { display: grid; gap: 24px; align-content: start; }
.contact__list { list-style: none; margin: 0; padding: 8px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; }
.contact__list li + li { border-top: 1px solid var(--line); }
.contact__ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--sky-50); color: var(--navy); font-size: 22px; }
.contact__ic--wa { background: #e6f8ee; color: #1a9e55; }
.contact__list small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact__list a, .contact__list span { font-size: 17px; font-weight: 600; }
.contact__route { display: inline-flex !important; align-items: center; gap: 4px; margin-top: 4px; font-size: 14px !important; color: var(--sky-600); }
@media (hover: hover) { .contact__list a:hover { color: var(--navy); } }

.form { display: grid; gap: 16px; padding: 28px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.form__title { font-size: 20px; font-weight: 700; letter-spacing: -.015em; }
.form__row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field > span { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; font: 400 16px/1.4 var(--font); color: var(--ink);
  background: var(--bg); border: 1px solid #cdd7e5; border-radius: 12px; resize: vertical;
  transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sky); background: #fff; box-shadow: 0 0 0 4px rgba(59, 155, 227, .18); }
.field__error { display: none; font-style: normal; font-size: 13px; color: #b42318; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #d92d20; }
.field.is-invalid .field__error { display: block; }
.form__note { font-size: 13px; color: var(--muted); text-align: center; }

.map { position: relative; min-height: 420px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--sky-50); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- footer ---------- */
.footer { background: var(--navy-900); color: rgba(255, 255, 255, .72); padding: 64px 0 36px; }
.footer__inner { display: grid; gap: 36px; }
@media (min-width: 900px) { .footer__inner { grid-template-columns: 1.3fr 1fr 1fr; align-items: start; } }
.footer__brand img { width: 220px; height: auto; margin-bottom: 16px; }
.footer__brand p { max-width: 32ch; font-size: 15px; }
.footer__nav, .footer__contact { display: grid; gap: 12px; font-size: 15px; }
.footer__contact a, .footer__contact span { display: inline-flex; align-items: center; gap: 8px; }
.footer__contact i { color: #8cc8f5; font-size: 18px; }
@media (hover: hover) { .footer a:hover { color: #fff; } }
.footer__copy { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }

/* ---------- floating whatsapp ---------- */
.wa {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 40;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; font-size: 30px; box-shadow: 0 12px 28px -10px rgba(13, 33, 82, .5);
  transition: transform 200ms var(--ease-out);
}
.wa:active { transform: scale(.94); }
@media (hover: hover) { .wa:hover { transform: scale(1.06); } }

/* ---------- árabe (derecha a izquierda) ---------- */
html[lang="ar"] body, html[lang="ar"] .btn, html[lang="ar"] input, html[lang="ar"] textarea { font-family: "IBM Plex Sans Arabic", var(--font); }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] .hero__title { letter-spacing: 0; line-height: 1.3; }
html[lang="ar"] .eyebrow, html[lang="ar"] .contact__list small { letter-spacing: 0; }
html[lang="ar"] .hero__title { font-weight: 700; }
html[lang="ar"] p, html[lang="ar"] .product p { line-height: 1.8; }
[dir="rtl"] .flip { transform: scaleX(-1); }
[dir="rtl"] .hero__scrim {
  background:
    linear-gradient(270deg, rgba(13, 33, 82, .92) 0%, rgba(13, 33, 82, .74) 38%, rgba(13, 33, 82, .18) 72%, rgba(13, 33, 82, .05) 100%),
    linear-gradient(0deg, rgba(13, 33, 82, .85) 0%, rgba(13, 33, 82, 0) 34%),
    linear-gradient(180deg, rgba(13, 33, 82, .55) 0%, rgba(13, 33, 82, 0) 22%);
}
@media (max-width: 760px) { [dir="rtl"] .hero__scrim { background: linear-gradient(0deg, rgba(13, 33, 82, .96) 0%, rgba(13, 33, 82, .8) 46%, rgba(13, 33, 82, .3) 78%, rgba(13, 33, 82, .55) 100%); } }
[dir="rtl"] .slide img { transform: scale(1.08) scaleX(-1); }
[dir="rtl"] .slide.is-active img { transform: scale(1) scaleX(-1); }
[dir="rtl"] .orbit, [dir="rtl"] .about__media::after { transform: translateY(-50%) rotate(14deg); }
[dir="rtl"] .steps::before { right: auto; left: -18%; transform: translateY(-50%) rotate(14deg); }
[dir="rtl"] .wa { right: auto; left: 18px; }
@media (hover: hover) and (pointer: fine) {
  [dir="rtl"] .btn--primary:hover .ph-arrow-right { transform: scaleX(-1) translateX(3px); }
  [dir="rtl"] .product:hover .product__cta i { transform: scaleX(-1) translate(2px, -2px); }
}
@media (hover: hover) { [dir="rtl"] .link-arrow:hover i { transform: scaleX(-1) translateX(4px); } }

/* ---------- scroll reveal ---------- */
.js .reveal { transform: translateY(18px); transition: transform 800ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- safe areas (notch) + tarjeta del mapa ---------- */
.nav { padding-top: env(safe-area-inset-top, 0px); height: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); }
body { overflow-x: clip; }
.btn--light { background: #fff; color: var(--navy); }
@media (hover: hover) and (pointer: fine) { .btn--light:hover { background: var(--sky-50); } }
.map--card { display: grid; place-items: end start; padding: 28px; color: #fff; background: radial-gradient(120% 90% at 70% 30%, #2a56b0 0%, var(--navy) 45%, var(--navy-900) 100%); border-color: var(--navy); min-height: 440px; }
.map__grid { position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(140, 200, 245, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 200, 245, .14) 1px, transparent 1px),
    linear-gradient(32deg, transparent 47%, rgba(140, 200, 245, .22) 47.5%, rgba(140, 200, 245, .22) 49%, transparent 49.5%),
    linear-gradient(-58deg, transparent 58%, rgba(140, 200, 245, .18) 58.5%, rgba(140, 200, 245, .18) 60%, transparent 60.5%);
  background-size: 44px 44px, 44px 44px, 100% 100%, 100% 100%; }
.map__ring { position: absolute; left: 58%; top: 34%; width: 220px; aspect-ratio: 2.6; border: 2px solid rgba(140, 200, 245, .55); border-radius: 50%; transform: translate(-50%, -50%) rotate(-14deg); }
.map__pin { position: absolute; left: 58%; top: 34%; transform: translate(-50%, -100%); font-size: 54px; color: #fff; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .35)); animation: pinDrop 2.4s var(--ease-out) infinite; }
@keyframes pinDrop { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.map__info { position: relative; display: grid; gap: 14px; }
.map__info img { width: 190px; height: auto; }
.map__addr { font-size: 18px; font-weight: 600; }
.map__actions { display: flex; flex-wrap: wrap; gap: 10px; }
[dir="rtl"] .map__ring, [dir="rtl"] .map__pin { left: 42%; }
