/* ═══════════════════════════════════════════════════════════════════════════
   TRIPLESHOT — components.css
   Navbar · Footer · Botones · Cards · Formulario · WhatsApp · CTA Banner
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── CORTINA DE TRANSICIÓN ─────────────────────────────────────────────── */
.page-curtain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0;
  will-change: opacity, backdrop-filter;
}

/* ─── NAVBAR ─────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  /* Debe quedar por encima de .nav-overlay (z-index:1050): el botón          */
  /* hamburguesa/"X" vive dentro de .navbar, y un z-index alto solo en el     */
  /* botón (1100) no basta — no escapa el stacking context de su padre.      */
  /* Sin esto, al abrir el menú el overlay tapa la "X" y no se puede cerrar. */
  z-index: 1060;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background var(--t-mid) var(--ease),
              box-shadow var(--t-mid) var(--ease),
              transform 0.38s var(--ease);
  display: flex;
  align-items: center;
}

/* Navbar oculta al hacer scroll down */
.navbar--hidden {
  transform: translateY(-100%);
}

/* Con el menú overlay abierto, .navbar sube por encima de .nav-overlay      */
/* (ver z-index arriba) para que la "X" quede clickeable. El resto del       */
/* navbar (logo, quick-nav, idioma) se oculta para no superponerse con el    */
/* propio contenido del overlay debajo.                                     */
.navbar--menu-open .navbar__logo,
.navbar--menu-open .navbar__quick-nav,
.navbar--menu-open .navbar__lang {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
}

.navbar__inner {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  line-height: 1;
}

/* Desplegable — entre logo y centro */
.navbar__quick-nav {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: var(--sp-2xl);
}

.navbar__logo-img {
  height: 55px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Flecha desplegable */
.navbar__dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--c-text-muted);
  font-size: 0.8rem;
  padding: 4px 6px;
  line-height: 1;
  transition: color var(--t-fast);
}

.navbar__current-page {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-white);
  transition: color var(--t-fast);
}

.navbar__dropdown-toggle:hover .navbar__current-page,
.navbar__dropdown-toggle.open  .navbar__current-page {
  color: var(--c-primary-bright);
}

.navbar__dropdown-toggle i {
  display: block;
  transition: transform var(--t-mid) var(--ease);
}

.navbar__dropdown-toggle:hover  { color: var(--c-white); }
.navbar__dropdown-toggle.open   { color: var(--c-primary-bright); }
.navbar__dropdown-toggle.open i { transform: rotate(180deg); }

/* Menú desplegable */
.navbar__dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(17, 0, 8, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 2px solid var(--c-primary);
  border-radius: var(--r-sm);
  padding: var(--sp-xs) 0;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-mid) var(--ease),
              transform var(--t-mid) var(--ease),
              visibility var(--t-mid);
  z-index: 999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

.navbar__dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.navbar__dropdown-link {
  display: block;
  padding: 0.5rem 1.2rem;
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-muted);
  transition: color var(--t-fast), padding-left var(--t-fast);
  white-space: nowrap;
}

.navbar__dropdown-link:hover  { color: var(--c-white); padding-left: 1.6rem; }
.navbar__dropdown-link.active { color: var(--c-primary-bright); }

/* ── Servicios sub-menú en desplegable central ──────────────────────────── */
.navbar__dropdown-item { display: flex; flex-direction: column; }

.navbar__dropdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar__dropdown-row .navbar__dropdown-link--parent { flex: 1; }

.navbar__dropdown-subtoggle {
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 0.5rem 0.8rem;
  transition: color var(--t-fast);
}
.navbar__dropdown-subtoggle i {
  display: block;
  font-size: 0.6rem;
  transition: transform var(--t-mid) var(--ease);
}
.navbar__dropdown-subtoggle.open i { transform: rotate(90deg); }
.navbar__dropdown-subtoggle:hover  { color: var(--c-white); }

.navbar__dropdown-subgroup {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-mid) var(--ease);
}
.navbar__dropdown-subgroup.open { max-height: 120px; }

.navbar__dropdown-link--sub {
  padding-left: 2rem;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.4);
}
.navbar__dropdown-link--sub:hover { color: var(--c-white); padding-left: 2.4rem; }

.navbar__logo-main {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: 1.5rem;
  color: var(--c-white);
  letter-spacing: -0.03em;
}

.navbar__logo-main span {
  color: var(--c-primary-bright);
}

.navbar__logo-sub {
  font-family: var(--font-body);
  font-size: 0.52rem;
  font-weight: var(--fw-medium);
  color: var(--c-text-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Eslogan central */
.navbar__slogan {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  line-height: 1.15;
  pointer-events: none;
  user-select: none;
}

.navbar__slogan-line {
  display: block;
  font-family: var(--font-display);
  font-size: 0.5rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--c-white);
}

.navbar__slogan-brand {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: var(--fw-black);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, var(--c-primary-bright) 0%, var(--c-primary) 55%, var(--c-primary-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hamburguesa */
/* Grupo derecho: idioma + hamburguesa */
.navbar__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

/* Selector de idioma */
.navbar__lang {
  position: relative;
  display: flex;
  align-items: center;
}

.navbar__lang-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--c-text-muted);
  font-size: 0.75rem;
  padding: 4px 6px;
  line-height: 1;
  transition: color var(--t-fast);
}

.navbar__lang-toggle i {
  display: block;
  font-size: 0.65rem;
  transition: transform var(--t-mid) var(--ease);
}

.navbar__lang-current {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: var(--fs-small);
  letter-spacing: 0.1em;
  color: var(--c-white);
  transition: color var(--t-fast);
}

.navbar__lang-toggle:hover { color: var(--c-white); }
.navbar__lang-toggle.open  { color: var(--c-primary-bright); }
.navbar__lang-toggle.open .navbar__lang-current { color: var(--c-primary-bright); }
.navbar__lang-toggle.open i { transform: rotate(180deg); }

.navbar__lang-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  background: rgba(17, 0, 8, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 2px solid var(--c-primary);
  border-radius: var(--r-sm);
  padding: var(--sp-xs) 0;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--t-mid) var(--ease),
              transform var(--t-mid) var(--ease),
              visibility var(--t-mid);
  z-index: 999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

.navbar__lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar__lang-option {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  padding: 0.5rem 1.2rem;
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-muted);
  transition: color var(--t-fast), padding-left var(--t-fast);
  white-space: nowrap;
}

.navbar__lang-option:hover  { color: var(--c-white); padding-left: 1.6rem; }
.navbar__lang-option.active { color: var(--c-primary-bright); }

.navbar__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  position: relative;
  z-index: 1100;
}

.navbar__burger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform var(--t-mid) var(--ease),
              opacity var(--t-mid) var(--ease),
              width var(--t-mid) var(--ease);
  transform-origin: center;
}

.navbar__burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__burger.active span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.navbar__burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Overlay Menu */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  flex-direction: row;
  pointer-events: none;
  clip-path: circle(0% at calc(100% - 48px) 40px);
  transition: clip-path 0.75s var(--ease);
  /* Safari/iOS: sin will-change, el hit-testing de los botones dentro del   */
  /* overlay puede quedar desincronizado del clip-path mientras anima,       */
  /* haciendo que el primer tap "no responda" hasta terminar la transición. */
  will-change: clip-path;
}

.nav-overlay.open {
  pointer-events: all;
  clip-path: circle(150% at calc(100% - 48px) 40px);
}

/* ── Panel izquierdo: gradiente rojo + logo centrado ───────────────────── */
.nav-overlay__left {
  flex: 0 0 40%;
  background: linear-gradient(135deg, #EC1E32 0%, #8B0020 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Capa de imagen (aparece en hover de los enlaces) */
.nav-overlay__img-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  z-index: 0;
}
.nav-overlay__img-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(255,32,64,0.6) 0%, rgba(122,0,31,0.75) 100%);
}
.nav-overlay__img-layer.visible { opacity: 1; }

.nav-overlay__logo-img {
  width: clamp(180px, 22vw, 280px);
  height: auto;
  object-fit: contain;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s 0.25s var(--ease), transform 0.55s 0.25s var(--ease);
  position: relative;
  z-index: 1;
  display: block;
}
.nav-overlay.open .nav-overlay__logo-img { opacity: 1; transform: none; }

/* ── Panel derecho: fondo oscuro + links ───────────────────────────────── */
.nav-overlay__right {
  flex: 1;
  background: #3A0018;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: var(--sp-xl);
  position: relative;
}

.nav-overlay__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-overlay__link {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  transition: color var(--t-fast);
  opacity: 0;
  transform: translateX(24px);
}

.nav-overlay.open .nav-overlay__link {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s var(--ani-delay, 0.30s) var(--ease), transform 0.4s var(--ani-delay, 0.30s) var(--ease), color var(--t-fast);
}

.nav-overlay__link:hover  { color: var(--c-white); }
.nav-overlay__link.active { color: var(--c-white); }

/* ── Servicios: item wrapper con acordeón ───────────────────────────────── */
.nav-overlay__item {
  display: flex;
  flex-direction: column;
}
.nav-overlay__item-row {
  display: flex;
  align-items: center;
}
.nav-overlay__subtoggle {
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 4px 10px;
  line-height: 1;
  transition: color var(--t-fast);
  touch-action: manipulation;
}
.nav-overlay__subtoggle i {
  font-size: 1.1rem;
  display: block;
  transition: transform var(--t-mid) var(--ease);
}
.nav-overlay__subtoggle.open i { transform: rotate(90deg); }
.nav-overlay__subtoggle:hover { color: var(--c-white); }

.nav-overlay__subgroup {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
  padding-left: clamp(1rem, 2vw, 1.8rem);
}
/* 400px: cabe el 4to ítem ("Ver todos los servicios") + los 3 originales   */
/* incluso con el font-size más grande de clamp() en pantallas medianas.    */
.nav-overlay__subgroup.open { max-height: 400px; }

.nav-overlay__sublink {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(1rem, 2vw, 1.8rem);
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  padding: 2px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(16px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s 0.3s, color var(--t-fast), padding-left var(--t-fast);
}
.nav-overlay__subgroup.open .nav-overlay__sublink {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.3s 0.1s var(--ease), transform 0.3s 0.1s var(--ease), visibility 0s 0.1s, color var(--t-fast), padding-left var(--t-fast);
}
.nav-overlay__sublink:hover  { color: var(--c-white); padding-left: 8px; }
.nav-overlay__sublink.active { color: var(--c-white); }

/* ── Socials: esquina inferior derecha ─────────────────────────────────── */
.nav-overlay__socials {
  display: flex;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.4s 0.7s;
  position: absolute;
  bottom: var(--sp-md);
  right: var(--sp-md);
}
.nav-overlay.open .nav-overlay__socials { opacity: 1; }

.nav-overlay__social {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-white);
  font-size: 0.85rem;
  transition: background var(--t-fast), transform var(--t-fast);
}
.nav-overlay__social:hover {
  background: var(--c-primary);
  transform: scale(1.12);
}

/* ─── BOTONES ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-small);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  padding: 0.9em 2.2em;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-fast) var(--ease-back),
              box-shadow var(--t-fast) var(--ease);
  white-space: nowrap;
}

/* Shimmer sweep */
.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s var(--ease);
}
.btn:hover::after { left: 150%; }

.btn:hover { transform: scale(1.04); }
.btn:active { transform: scale(0.97); }

/* Tamaño pequeño */
.btn--sm {
  font-size: 0.65rem;
  padding: 0.6em 1.4em;
  letter-spacing: 0.12em;
}

/* Variantes */
.btn--primary {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-bright) 100%);
  color: var(--c-white);
  box-shadow: var(--shadow-btn);
}
.btn--primary:hover {
  box-shadow: 0 6px 30px rgba(229,57,53,0.65);
}

.btn--outline {
  background: transparent;
  color: var(--c-white);
  border: 2px solid transparent;
  position: relative;
  isolation: isolate;
}
.btn--outline:hover {
  background: var(--c-primary);
  box-shadow: var(--shadow-btn);
}

.btn--outline::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--meteor-angle),
    transparent    0%,
    transparent    60%,
    rgba(246,21,5,0.18) 70%,
    rgba(246,21,5,0.55) 79%,
    #F61505        83%,
    #ffffff        85%,
    #F61505        87%,
    rgba(246,21,5,0.35) 92%,
    transparent    97%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: meteor-spin 2.8s linear infinite;
  pointer-events: none;
}

.btn--ghost {
  background: rgba(255,255,255,0.06);
  color: var(--c-white);
  border: 1px solid rgba(255,255,255,0.1);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--c-primary);
}

.btn--full { width: 100%; justify-content: center; }

/* Estado loading */
.btn.loading {
  pointer-events: none;
  opacity: 0.7;
}
.btn.loading::before {
  content: '';
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--c-white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 6px;
}

/* ─── WHATSAPP BUTTON ────────────────────────────────────────────────────── */
.whatsapp-btn {
  position: fixed;
  bottom: 25vh;
  right: 32px;
  z-index: 900;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.9rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  animation: wa-bounce 2.5s var(--ease) infinite;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.whatsapp-btn::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0;
  animation: wa-ring 2.5s ease infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 30px rgba(37,211,102,0.7);
  animation: none;
}

/* ─── ESTRELLA CTA ───────────────────────────────────────────────────────── */
.cta-estrella {
  width: 110px;
  height: 110px;
  object-fit: contain;
  animation: estrella-pulse 2.5s ease-in-out infinite;
  display: block;
  margin-inline: auto;
}

/* ─── CTA BANNER ─────────────────────────────────────────────────────────── */
.cta-banner {
  position: relative;
  isolation: isolate;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid transparent;
  border-radius: var(--r-xl);
  padding: var(--sp-md) var(--sp-lg);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-md);
  overflow: hidden;
  background: transparent;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(236,30,50,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--meteor-angle),
    transparent    0%,
    transparent    60%,
    rgba(246,21,5,0.18) 70%,
    rgba(246,21,5,0.55) 79%,
    #F61505        83%,
    #ffffff        85%,
    #F61505        87%,
    rgba(246,21,5,0.35) 92%,
    transparent    97%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: meteor-spin 4s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.cta-banner__text h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: var(--fw-black);
  line-height: var(--lh-snug);
  margin-bottom: var(--sp-md);
}

.cta-banner__logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.cta-banner__chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.chat-bubble {
  background: var(--c-white);
  color: #222;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  padding: 12px 16px;
  border-radius: var(--r-md);
  border-bottom-left-radius: 4px;
  max-width: 260px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.chat-bubble:nth-child(2) {
  align-self: flex-end;
  border-radius: var(--r-md);
  border-bottom-right-radius: 4px;
  background: var(--c-bg-wine-lt);
  color: var(--c-white);
}

.chat-bubble.visible {
  animation: chat-appear 0.4s var(--ease-back) forwards;
}

/* ─── CARDS ──────────────────────────────────────────────────────────────── */
.card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  transition: transform var(--t-mid) var(--ease),
              box-shadow var(--t-mid) var(--ease),
              border-color var(--t-mid);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--meteor-angle),
    transparent    0%,
    transparent    60%,
    rgba(246,21,5,0.18) 70%,
    rgba(246,21,5,0.55) 79%,
    #F61505        83%,
    #ffffff        85%,
    #F61505        87%,
    rgba(246,21,5,0.35) 92%,
    transparent    97%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: meteor-spin 2.5s linear infinite;
  animation-play-state: paused;
  opacity: 0;
  transition: opacity var(--t-mid);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), var(--shadow-glow-sm);
  border-color: var(--c-primary);
}

.card:hover::before {
  animation-play-state: running;
  opacity: 1;
}

.card__image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.card:hover .card__image { transform: scale(1.05); }

.card__body {
  padding: var(--sp-md);
}

.card__meta {
  font-size: var(--fs-xs);
  color: var(--c-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.card__title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  color: var(--c-white);
  margin-bottom: var(--sp-xs);
}

.card__excerpt {
  font-size: var(--fs-small);
  color: var(--c-text-muted);
  line-height: var(--lh-normal);
}

.card__body .btn {
  margin-top: var(--sp-sm);
}

/* ─── TESTIMONIOS SWIPER ────────────────────────────────────────────────── */
.swiper--testimonials {
  width: 100%;
}

/* ─── TESTIMONIOS CARD ───────────────────────────────────────────────────── */
.testimonial-card {
  background: linear-gradient(135deg, var(--c-primary) 0%, #A00000 100%);
  border-radius: var(--r-xl);
  padding: var(--sp-xl) var(--sp-lg);
  position: relative;
  height: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial-card__logo {
  display: block;
  height: 150px;
  width: auto;
  max-width: 55%;
  margin: 0 auto var(--sp-xs);
  object-fit: contain;
}

.testimonial-card__quote {
  font-size: 4rem;
  font-family: Georgia, serif;
  color: rgba(255,255,255,0.3);
  line-height: 1;
  margin-bottom: var(--sp-sm);
}

.testimonial-card__inner {
  background: rgba(255,255,255,0.12);
  border-radius: var(--r-lg);
  padding: var(--sp-md);
}

.testimonial-card__stars {
  display: flex;
  gap: 4px;
  margin-bottom: var(--sp-xs);
}

.testimonial-card__stars .fas.fa-star {
  color: #FFD700;
  font-size: 0.95rem;
}

.testimonial-card__stars .far.fa-star {
  color: rgba(255, 215, 0, 0.3);
  font-size: 0.95rem;
}

.testimonial-card__text {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  color: var(--c-white);
  line-height: var(--lh-normal);
  margin-bottom: var(--sp-sm);
}

.testimonial-card__author strong {
  display: block;
  font-size: var(--fs-small);
  color: var(--c-white);
}
.testimonial-card__author span {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.65);
}

/* ─── FORMULARIO DE CONTACTO ────────────────────────────────────────────── */
.contact-form__wrapper {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-lg);
  position: relative;
  isolation: isolate;
  transition: border-color var(--t-mid);
}

.contact-form__wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--meteor-angle),
    transparent    0%,
    transparent    60%,
    rgba(246,21,5,0.18) 70%,
    rgba(246,21,5,0.55) 79%,
    #F61505        83%,
    #ffffff        85%,
    #F61505        87%,
    rgba(246,21,5,0.35) 92%,
    transparent    97%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: meteor-spin 3.5s linear infinite;
  animation-play-state: paused;
  opacity: 0;
  transition: opacity var(--t-mid);
  pointer-events: none;
}

.contact-form__wrapper:hover::before,
.contact-form__wrapper:focus-within::before {
  animation-play-state: running;
  opacity: 1;
}

.contact-form__title {
  font-size: var(--fs-h2);
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  color: var(--c-white);
  margin-bottom: var(--sp-xs);
}

.contact-form__subtitle {
  font-size: var(--fs-small);
  color: var(--c-text-muted);
  margin-bottom: var(--sp-md);
}

.contact-form__subtitle a {
  color: var(--c-primary-bright);
  font-weight: var(--fw-bold);
}

.form-group {
  margin-bottom: var(--sp-sm);
}

.form-group label {
  display: block;
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--c-text-muted);
  margin-bottom: 6px;
  transition: color var(--t-fast);
}

.form-group:focus-within label {
  color: var(--c-primary-bright);
}

.form-control {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  padding: 14px 18px;
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  outline: none;
}

.form-control::placeholder { color: rgba(255,255,255,0.2); }

.form-control:focus {
  border-color: var(--c-primary-bright);
  background: rgba(236,30,50,0.06);
  box-shadow: 0 0 0 3px rgba(236,30,50,0.15);
}

.form-control.error {
  border-color: #ff5252;
  box-shadow: 0 0 0 3px rgba(255,82,82,0.15);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.form-message {
  padding: 14px 18px;
  border-radius: var(--r-md);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  display: none;
  margin-top: var(--sp-sm);
}
.form-message.success {
  display: block;
  background: rgba(76,175,80,0.15);
  border: 1px solid #4CAF50;
  color: #81C784;
}
.form-message.error {
  display: block;
  background: rgba(244,67,54,0.15);
  border: 1px solid #f44336;
  color: #EF9A9A;
}

/* ─── FAQ ACCORDION ──────────────────────────────────────────────────────── */
.faq { padding-block: var(--sp-xl); }

.faq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-sm);
  align-items: start;
}

.accordion-item {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-fast);
}

.accordion-item.active {
  border-color: var(--c-primary);
  box-shadow: 0 0 20px rgba(236,30,50,0.1);
}

.accordion-header {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 20px 24px;
  cursor: pointer;
  transition: background var(--t-fast);
}
.accordion-header:hover { background: rgba(236,30,50,0.06); }

.accordion-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--c-primary-bright);
  font-size: 1.1rem;
  font-weight: var(--fw-black);
  transition: transform var(--t-mid) var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.accordion-item.active .accordion-icon { transform: rotate(45deg); }

.accordion-title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-small);
  color: var(--c-white);
  flex: 1;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
}
.accordion-item.active .accordion-body {
  max-height: 300px;
}

.accordion-body p {
  padding: 0 24px 20px;
  font-size: var(--fs-small);
  color: var(--c-text-muted);
  line-height: var(--lh-loose);
}

/* ─── CLIENTS MARQUEE ────────────────────────────────────────────────────── */
.clients {
  overflow: hidden;
  padding-block: var(--sp-lg);
}

/* Variante usada como reemplazo del orbital circular en móvil (<768px);      */
/* oculta por defecto, .responsive.css la muestra bajo el breakpoint móvil.  */
.clients--mobile-only { display: none; }

.clients__track {
  display: flex;
  gap: var(--sp-xl);
  width: max-content;
  animation: marquee 25s linear infinite;
}
.clients__track:hover { animation-play-state: paused; }
.clients__track + .clients__track { margin-top: var(--sp-sm); }

.clients__track--reverse {
  animation-direction: reverse;
}

.clients__logo {
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity var(--t-mid);
  filter: grayscale(1) brightness(2);
  width: 150px;
  height: 100px;
  object-fit: contain;
}
.clients__logo:hover { opacity: 1; filter: none; }

/* ─── CLIENTS PYRAMID ────────────────────────────────────────────────────── */
.clients-pyramid {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.clients-pyramid .clients {
  padding-block: var(--sp-xs);
  width: 100%;
}

.clients-pyramid__row--1 { max-width: 100%; }
.clients-pyramid__row--2 { max-width: 75%; }
.clients-pyramid__row--3 { max-width: 50%; }

/* ─── PRE-FOOTER: testimonios + contacto ─────────────────────────────────── */
.pre-footer {
  padding-block: var(--sp-2xl);
}

.pre-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: start;
}

.pre-footer__grid > * {
  min-width: 0;
}

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
.footer {
  background: transparent;
  padding-top: 20px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent       0%,
    rgba(236,30,50,0.15) 10%,
    var(--c-primary)  35%,
    var(--c-primary-bright) 50%,
    var(--c-primary)  65%,
    rgba(236,30,50,0.15) 90%,
    transparent       100%
  );
  background-size: 200% 100%;
  animation: footer-shimmer 3s ease-in-out infinite;
}

@keyframes footer-shimmer {
  0%   { background-position: 150% 0; opacity: 0.6; }
  50%  { opacity: 1; }
  100% { background-position: -50% 0; opacity: 0.6; }
}

/* Grid 4 columnas */
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr 1.2fr;
  gap: var(--sp-xl);
  padding-bottom: var(--sp-xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  align-items: start;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.footer__logo {
  width: 160px;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: left;
}

/* Títulos de columna */
.footer__col-title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--c-white);
  margin-bottom: var(--sp-xs);
}

/* Dirección / horarios */
.footer__col-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.footer__col-body p {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.6);
  line-height: var(--lh-loose);
}

/* Lista de servicios */
.footer__col-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.footer__col-list a {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.6);
  transition: color var(--t-fast);
  position: relative;
}

.footer__col-list a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--c-primary-bright);
  transition: width var(--t-mid) var(--ease);
}

.footer__col-list a:hover { color: var(--c-primary-bright); }
.footer__col-list a:hover::after { width: 100%; }

/* Íconos de redes sociales */
.footer__social-icons {
  display: flex;
  gap: var(--sp-xs);
  flex-wrap: wrap;
}

.footer__social-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-sm);
  color: var(--c-white);
  font-size: 0.9rem;
  overflow: hidden;
  transition: border-color var(--t-mid) var(--ease),
              transform var(--t-mid) var(--ease);
}

.footer__social-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--c-primary-bright) 0%, var(--c-primary-dark) 100%);
  opacity: 0;
  transition: opacity var(--t-mid) var(--ease);
}

.footer__social-btn i { position: relative; z-index: 1; }

.footer__social-btn:hover {
  border-color: var(--c-primary-bright);
  transform: translateY(-2px);
}

.footer__social-btn:hover::before { opacity: 1; }

/* Bottom bar */
.footer__bottom {
  padding-block: var(--sp-md);
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}

/* Links legales */
.footer__legal {
  display: flex;
  gap: var(--sp-lg);
}

.footer__legal a {
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  position: relative;
  transition: color var(--t-fast);
}

.footer__legal a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--c-primary-bright);
  transition: width var(--t-mid) var(--ease);
}

.footer__legal a:hover,
.footer__legal a.active { color: var(--c-primary-bright); }
.footer__legal a:hover::after,
.footer__legal a.active::after { width: 100%; }

.footer__copy {
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
}

/* ─── FONDO GLOBAL ───────────────────────────────────────────────────────── */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.page-bg__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 110% 120% at 0% 50%,
      rgba(200,0,0,0.55) 0%,
      rgba(120,0,0,0.30) 45%,
      transparent        65%),
    radial-gradient(ellipse 115% 120% at 100% 50%,
      rgba(41,0,19,1.00) 0%,
      rgba(17,0,8,0.75)  45%,
      transparent        70%),
    var(--c-bg);
}

#page-particles {
  position: absolute;
  inset: 0;
}

/* ─── HERO BASE ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  bottom: 0; left: 10%;
  width: 80%;
  height: 60px;
  background: linear-gradient(90deg, transparent, var(--c-primary-bright), transparent);
  filter: blur(30px);
  animation: glow-line 3s ease-in-out infinite;
  z-index: 3;
}

.hero__content {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: var(--sp-lg) var(--sp-xl);
  max-width: 950px !important;
  margin-inline: auto;
}

/* Responsive max-width para hero content */
@media (max-width: 768px) {
  .hero__content {
    max-width: 90% !important;
  }
}

@media (max-width: 480px) {
  .hero__content {
    max-width: 100% !important;
    padding: var(--sp-md) var(--sp-lg);
  }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: clamp(1.2rem, 2.8vw, 2.5rem);
  line-height: var(--lh-normal);
  color: var(--c-white);
  margin-bottom: var(--sp-sm);
  background: none;
  border: none;
}

.hero__title--gradient {
  background: linear-gradient(
    135deg,
    var(--c-primary-bright) 0%,
    var(--c-primary)        55%,
    var(--c-primary-dark)   100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  border: none;
}

/* H1 + H2 del hero forman una unidad visual */
.hero__content h1.hero__title {
  margin-bottom: var(--sp-2xs);
}

.hero__subtitle {
  font-size: clamp(0.875rem, 1vw, 1rem);
  color: var(--c-text-muted);
  line-height: var(--lh-normal);
  margin-bottom: var(--sp-md);
}

/* ─── SECTION HEADER DIVIDERS ────────────────────────────────────────────── */
.section-badge {
  display: inline-block;
  font-size: var(--fs-xs);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-primary-bright);
  padding: 6px 16px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  margin-bottom: var(--sp-sm);
  position: relative;
  isolation: isolate;
}

.section-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--meteor-angle),
    transparent    0%,
    transparent    60%,
    rgba(246,21,5,0.18) 70%,
    rgba(246,21,5,0.55) 79%,
    #F61505        83%,
    #ffffff        85%,
    #F61505        87%,
    rgba(246,21,5,0.35) 92%,
    transparent    97%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: meteor-spin 2.5s linear infinite;
  pointer-events: none;
}

/* ─── LASER LINE ─────────────────────────────────────────────────────────── */
.laser-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    transparent 10%,
    var(--c-primary-bright) 50%,
    transparent 90%,
    transparent 100%);
  opacity: 0.7;
  animation: laser-scan 4s ease-in-out infinite;
  filter: blur(1px);
}

/* ─── INFO ITEMS (contacto) ──────────────────────────────────────────────── */
.info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-sm);
}

.info-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(236,30,50,0.15);
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary-bright);
  font-size: 1rem;
  flex-shrink: 0;
}

.info-item__text strong {
  display: block;
  font-size: var(--fs-small);
  color: var(--c-white);
  margin-bottom: 2px;
}
.info-item__text span {
  font-size: var(--fs-small);
  color: var(--c-text-muted);
}
.info-item__text a {
  color: var(--c-primary-bright);
  transition: color var(--t-fast);
}
.info-item__text a:hover { color: var(--c-white); }

/* ─── VAMOS DIRECTO AL OBJETIVO ──────────────────────────────────────────── */
.objetivo-section {
  text-align: center;
  padding-block: var(--sp-md);
  position: relative;
  overflow: visible;
}

.objetivo-diana {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 420px; height: 420px;
  z-index: 0;
  pointer-events: none;
  animation: objetivo-pulse 3s ease-in-out infinite;
}

.objetivo-section__title {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-white);
  position: relative;
  z-index: 1;
  line-height: var(--lh-tight);
}

/* ─── SERVICE HIGHLIGHT ITEMS ────────────────────────────────────────────── */
.service-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
  padding: var(--sp-lg) var(--sp-xl);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--r-xl);
  border: 1px solid var(--c-border);
}

.service-highlight__item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.service-highlight__icon {
  color: var(--c-primary-bright);
  font-size: 1.6rem;
  margin-bottom: var(--sp-xs);
}

.service-highlight__title {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: var(--fs-small);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-white);
}

.service-highlight__desc {
  font-size: var(--fs-small);
  color: var(--c-text-muted);
  line-height: var(--lh-normal);
}

.service-highlight__desc span {
  color: var(--c-primary-bright);
}
