/* GEMA, header, menú móvil, footer y WhatsApp flotante. Se carga en todo el sitio salvo en las páginas Canvas.
   Sale de gema.css de la propuesta (las mismas reglas), sin el reset global. */
:root {
  --plum: #840e5c;
  --plum-deep: #5c0940;
  --plum-soft: #f7ecf2;
  --steel: #a9b8c6;
  --steel-soft: #eef2f6;
  --ink: #18151d;
  --muted: #5e5866;
  --line: #e8e4ec;
  --bg: #fcfbfd;
  --white: #fff;
  --ok: #1d9a68;

  --r-card: 22px;
  --r-field: 12px;
  --wrap: 1240px;
  --pad: clamp(16px, 4vw, 40px);
  --sec: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: "Sora", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
}

/* Reset acotado: solo dentro del header, el menú móvil y el footer. Cada selector pesa lo mismo que un elemento
   (0,0,1): empata con el CSS de Hello Elementor y gana por orden de carga, pero pierde contra cualquier clase de
   componente. No toca el contenido de la página ni los widgets de Elementor. */
:where(.nav, .mnav, .foot) { font-family: var(--body); color: var(--ink); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
:where(.nav, .mnav, .foot) * { box-sizing: border-box; }
p:where(.nav p, .mnav p, .foot p),
h2:where(.nav h2, .mnav h2, .foot h2),
ul:where(.nav ul, .mnav ul, .foot ul),
li:where(.nav li, .mnav li, .foot li),
div:where(.nav div, .mnav div, .foot div),
a:where(.nav a, .mnav a, .foot a),
button:where(.nav button, .mnav button, .foot button),
span:where(.nav span, .mnav span, .foot span),
nav:where(.nav nav, .mnav nav, .foot nav) { margin: 0; padding: 0; }
ul:where(.nav ul, .foot ul) { list-style: none; }
a:where(.nav a, .mnav a, .foot a) { color: inherit; text-decoration: none; }
button:where(.nav button) { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img:where(.nav img, .foot img) { display: block; max-width: 100%; height: auto; }
.nav :focus-visible, .mnav :focus-visible, .foot :focus-visible, .skip:focus-visible, .wa-float:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; border-radius: 6px; }
/* Con la barra de administración visible, la cápsula baja para no quedar debajo. */
.admin-bar .nav { top: 46px; }
@media (max-width: 782px) { .admin-bar .nav { top: 60px; } }
body.gema-chrome .site-main { padding-top: 110px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--plum); color: #fff; padding: 8px 14px; border-radius: 99px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 99px; font-weight: 600; font-size: 16px; white-space: nowrap; transition: transform .2s var(--ease), background .2s, box-shadow .3s var(--ease), color .2s; }
.btn:active { transform: scale(.97); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 15px; }
.btn--full { width: 100%; }
.btn--primary { background: var(--plum); color: #fff; box-shadow: 0 8px 24px -10px rgba(132, 14, 92, .55); }
.btn--primary:hover { background: var(--plum-deep); box-shadow: 0 12px 28px -10px rgba(132, 14, 92, .6); }
.btn--ghost { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--plum); color: var(--plum); }
.btn--glass { color: #fff; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255, 255, 255, .24); }
.btn--light { background: #fff; color: var(--plum); }
.btn--light:hover { background: var(--plum-soft); }
.btn--outline-light { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.btn--outline-light:hover { box-shadow: inset 0 0 0 1.5px #fff; background: rgba(255, 255, 255, .08); }

/* ---------- Header ---------- */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding: 0 var(--pad); pointer-events: none; }
.nav__in { pointer-events: auto; max-width: calc(var(--wrap) - 2 * var(--pad)); margin: 0 auto; height: 68px; padding: 0 10px 0 24px; display: flex; align-items: center; gap: 28px; border-radius: 99px; background: #fff; box-shadow: 0 10px 34px -14px rgba(40, 12, 32, .32); transition: box-shadow .3s var(--ease), background .3s; }
.nav.is-scrolled .nav__in { box-shadow: 0 14px 40px -16px rgba(40, 12, 32, .4); }
.nav__logo { flex: none; }
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav__links > a, .drop__btn { white-space: nowrap; padding: 10px 14px; border-radius: 99px; font-weight: 500; font-size: 15.5px; display: inline-flex; align-items: center; gap: 6px; transition: background .2s, color .2s; }
.nav__links > a:hover, .drop__btn:hover, .drop.is-open .drop__btn { background: var(--plum-soft); color: var(--plum); }
.drop { position: relative; }
.drop__btn i { font-size: 13px; transition: transform .3s var(--ease); }
.drop.is-open .drop__btn i { transform: rotate(180deg); }
.drop__panel { position: absolute; top: calc(100% + 10px); left: 0; min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 8px; box-shadow: 0 24px 48px -20px rgba(60, 20, 50, .25); display: grid; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .3s var(--ease), visibility .2s; }
.drop__panel--wide { grid-template-columns: 1fr 1fr; min-width: 520px; }
.drop.is-open .drop__panel { opacity: 1; visibility: visible; transform: none; }
.drop__panel a { padding: 10px 14px; border-radius: 10px; font-size: 15px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.drop__panel a:hover { background: var(--plum-soft); color: var(--plum); }
.drop__panel a i { color: var(--steel); }
.nav__end { display: flex; align-items: center; gap: 12px; }
.nav__social { display: flex; gap: 2px; }
.nav__social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 21px; color: var(--plum); transition: background .2s, color .2s; }
.nav__social a:hover { background: var(--plum); color: #fff; }

.status { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 99px; font-size: 14.5px; font-weight: 500; background: var(--steel-soft); color: var(--ink); white-space: nowrap; transition: background .2s; }
.status:hover { background: #e3e9ef; }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--steel); }
.status.is-open .status__dot { background: var(--ok); box-shadow: 0 0 0 0 rgba(29, 154, 104, .5); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(29, 154, 104, 0); } 100% { box-shadow: 0 0 0 0 rgba(29, 154, 104, 0); } }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--steel-soft); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mnav[hidden] { display: none; }
.mnav { pointer-events: auto; position: fixed; inset: 0; z-index: -1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 32px; padding: 110px var(--pad) 40px; background: var(--plum); color: #fff; text-align: center; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; animation: mnavIn .35s var(--ease) both; }
.mnav::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .06); pointer-events: none; }
@keyframes mnavIn { from { opacity: 0; } }
.mnav__links { display: grid; gap: 4px; }
.mnav__links a { padding: 8px 12px; font-family: var(--display); font-size: clamp(28px, 7.5vw, 38px); font-weight: 600; letter-spacing: -0.02em; animation: cardIn .6s var(--ease) both; }
.mnav__links a:nth-child(2) { animation-delay: .04s; } .mnav__links a:nth-child(3) { animation-delay: .08s; }
.mnav__links a:nth-child(4) { animation-delay: .12s; } .mnav__links a:nth-child(5) { animation-delay: .16s; }
.mnav__links a:hover { color: var(--plum-soft); }
.mnav .btn { width: min(100%, 340px); }
.mnav__social { display: flex; gap: 10px; }
.mnav__social a { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); transition: background .2s; }
.mnav__social a:hover { background: rgba(255, 255, 255, .14); }
html.menu-open { overflow: hidden; }
.nav.is-menu .nav__in { background: transparent; box-shadow: none; }
.nav.is-menu .nav__logo img { filter: brightness(0) invert(1); }
.nav.is-menu .status { background: rgba(255, 255, 255, .14); color: #fff; }
.nav.is-menu .burger { background: rgba(255, 255, 255, .16); }
.nav.is-menu .burger span { background: #fff; }

@keyframes cardIn { from { transform: translateY(24px); opacity: 0; } }

/* ---------- Footer ---------- */
.foot { background: var(--plum-deep); color: rgba(255, 255, 255, .78); padding: 72px 0 0; font-size: 15px; overflow: hidden; }
.foot__grid { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr 1fr; gap: 40px; }
.foot__logo { height: 52px; width: auto; filter: brightness(0) invert(1); }
.foot__addr { margin-top: 18px; max-width: 28ch; display: flex; gap: 8px; align-items: flex-start; line-height: 1.5; }
.foot__addr i { margin-top: 3px; font-size: 18px; color: #fff; flex: none; }
.foot__phones { margin-top: 14px; display: flex; gap: 8px; align-items: flex-start; }
.foot__phones i { margin-top: 3px; font-size: 18px; color: #fff; flex: none; }
.foot__phones ul { display: grid; gap: 4px; }
.foot__phones li { display: flex; gap: 8px; }
.foot__phones span { min-width: 82px; color: rgba(255, 255, 255, .55); }
.foot h2 { font-family: var(--body); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 14px; }
.foot__grid > div:not(.foot__brand) { display: grid; align-content: start; gap: 8px; }
.foot a:hover { color: #fff; }
.social { display: flex; gap: 8px; margin-top: 22px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: rgba(255, 255, 255, .08); transition: background .2s; }
.social a:hover { background: rgba(255, 255, 255, .18); }
.foot__word { display: block; width: 100%; height: auto; margin-top: 64px; }
.foot__bar { margin-top: 40px; padding: 24px 0 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; color: #fff; background: #25d366; box-shadow: 0 14px 30px -10px rgba(18, 140, 70, .6); transition: transform .3s var(--ease); animation: cardIn .8s 1.2s var(--ease) both; }
.wa-float:hover { transform: scale(1.08); }
.wa-float:active { transform: scale(.96); }


/* ---------- Responsive ---------- */
@media (min-width: 1181px) { .mnav { display: none !important; } }
@media (max-width: 1180px) {
  .nav__links { display: none; }
  .burger { display: inline-block; }
  .nav__end { margin-left: auto; }
}
@media (max-width: 960px) {
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav { top: 10px; }
  .nav__in { height: 60px; gap: 10px; padding: 0 8px 0 16px; }
  .nav__logo img { height: 34px; }
  .nav__end .btn, .nav__social { display: none; }
  .status { height: 38px; padding: 0 12px; font-size: 13.5px; }
  .foot__grid { grid-template-columns: 1fr; }
  .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav *, .mnav *, .foot *, .wa-float { animation: none !important; transition: none !important; }
}

/* Hello Elementor da color a a:hover y a:active. Estas reglas fijan el color de cada componente para que no cambie al pasar el mouse. */
.btn--primary:hover, .btn--primary:active, .btn--glass:hover, .btn--glass:active, .btn--outline-light:hover, .btn--outline-light:active,
.mnav__social a:hover, .mnav__social a:active, .wa-float:hover, .wa-float:active { color: #fff; }
.btn--light:hover, .btn--light:active { color: var(--plum); }
.status:hover, .status:active { color: var(--ink); }
.nav.is-menu .status:hover { color: #fff; }

/* Menú móvil: nada se desplaza de lado. */
html { overflow-x: clip; }

/* Hello Elementor pone azul (#336) a todo enlace en hover y rosa (#c36) a todo botón. Aquí los enlaces conservan su color y los botones su fondo. */
a:hover, a:active { color: inherit; }
.prose a:hover, .prose a:active { color: var(--plum); }
.burger:hover, .burger:focus { background: var(--steel-soft); color: inherit; }
.nav.is-menu .burger:hover, .nav.is-menu .burger:focus { background: rgba(255, 255, 255, .16); }
.drop__btn:focus { color: inherit; }
.slider__btn:hover:disabled, .slider__btn:focus:disabled { background: var(--bg); color: inherit; }
