/* =========================
   Cupcake Media – Stylesheet (COMPLETA)
   Incluye:
   - Header compacto (logo + menú)
   - Selector idioma alineado
   - Secciones sin espacios en blanco excesivos
   - About mini cards compactas
   - Servicios flip cards
   - “Nos eligen” carrusel con logos grandes (72px desktop)
   - Cubos 3D (base + clases para más cubitos)
   - Contacto en 2 columnas (form + logo a la derecha)
   - Tarjetas de contactos con flip (frente: nombre+QR / atrás: tel+ubicación)
   - Back to top
   ========================= */

/* ===== Tokens ===== */
:root {
  --bg: #0d0a12;
  --ink: #111111;
  --muted: #2d2d2d;

  --g1: #7b2ff7;
  /* purple */
  --g2: #f107a3;
  /* pink */
  --g3: #01c5ff;
  /* accent cyan */

  --card: #14121b;
  --card-2: #191627;

  --glass: rgba(255, 255, 255, .06);
  --line: rgba(0, 0, 0, .10);

  --ok: #12d48a;
  --warn: #ffd166;
  --err: #ff6b6b;

  --shadow: 0 20px 40px rgba(0, 0, 0, .15);
  --shadow-dark: 0 18px 40px rgba(0, 0, 0, .55);

  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius: 12px;

  --pad: clamp(14px, 1.7vw, 22px);
  --content-w: min(1200px, 92vw);

  --t-fast: .25s;
  --t-base: .6s;
  --t-slow: 1.1s;
  --ease: cubic-bezier(.2, .9, .2, 1);
}

/* ===== Reset / Base ===== */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: #fff;
  color: var(--ink);
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial;
  line-height: 1.45;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: var(--content-w);
  margin-inline: auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 1rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .2px;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  color: #fff;
  box-shadow: 0 12px 24px rgba(241, 7, 163, .22);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(241, 7, 163, .25);
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, .10);
  color: var(--ink);
  box-shadow: none;
}

.btn.tiny {
  padding: .65rem 1.1rem;
  font-size: .98rem;
}

/* ===== Sticky Header (compact) ===== */
header {
  position: sticky;
  top: 0;
  z-index: 120;
  backdrop-filter: saturate(140%) blur(10px);
  background: #fff;

}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1px;
  padding: .1rem var(--pad);
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand img {
  height: 150px;
  /* logo visible pero header compacto */
  width: auto;
  display: block;
  object-fit: contain;
  animation: floaty 8s ease-in-out infinite;
  /* Animación de flotación constante */
  transition: transform var(--t-base) var(--ease), filter var(--t-base) var(--ease);
}

.brand img:hover {
  /* Efecto premium al pasar el ratón */
  transform: scale(1.05) rotate(-1deg);
  filter: drop-shadow(0 8px 15px rgba(241, 7, 163, 0.4));
  animation-play-state: paused;
  /* Se detiene la flotación al hacer hover */
}

@media (max-width:520px) {
  .brand img {
    height: 42px;
  }
}

/* ===== Menu ===== */
.menu-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .03);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
}

.menu li {
  position: relative;
}

.menu a {
  display: inline-block;
  padding: .7rem 1.2rem;
  border-radius: 999px;
  color: #1b1b1b;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: all var(--t-fast) var(--ease);
}

.menu a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--g1), var(--g2));
  transition: all var(--t-fast) var(--ease);
  transform: translateX(-50%);
}

.menu a:hover {
  background: rgba(0, 0, 0, .04);
}

.menu a:hover::before {
  width: 70%;
}

.menu .cta-mini a {
  background: linear-gradient(135deg, var(--g1), var(--g2));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(241, 7, 163, .22);
}

.menu .cta-mini a:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(241, 7, 163, .22);
}

.menu .cta-mini a::before {
  display: none;
}

/* ===== Language selector (alineado con menú) ===== */
.lang-btn-premium {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  height: 44px;
  padding: 10px 38px 10px 16px;
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial;
  font-size: .98rem;
  font-weight: 900;
  line-height: 1;

  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .08);
  background: linear-gradient(135deg, var(--g1), var(--g2));
  color: #fff;
  cursor: pointer;

  box-shadow: 0 10px 22px rgba(241, 7, 163, .22);
  transition: transform .22s ease, box-shadow .22s ease;
}

.lang-btn-premium:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(241, 7, 163, .22);
}

.lang-btn-premium:focus {
  outline: none;
}

.lang-btn-premium option {
  background: #fff;
  color: #000;
  font-weight: 800;
}

/* ===== Burger ===== */
.burger {
  display: none;
  width: 40px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, .08);
  background: linear-gradient(135deg, var(--g1), var(--g2));
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.burger span,
.burger::before,
.burger::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--t-base) var(--ease);
}

.burger::before {
  transform: translateY(-6px);
}

.burger::after {
  transform: translateY(6px);
}

.burger.active span {
  transform: scaleX(0);
}

.burger.active::before {
  transform: translateY(0) rotate(45deg);
}

.burger.active::after {
  transform: translateY(0) rotate(-45deg);
}

/* Mobile panel */
.mobile-panel {
  display: none;
  position: fixed;
  inset: 58px 12px auto 12px;
  z-index: 110;


  padding: 12px;
  color: #fff;
}

.mobile-panel a {
  display: block;
  padding: 16px 18px;
  border-radius: 10px;
  color: #fff;
  opacity: .92;
}

.mobile-panel a:hover {
  background: rgba(255, 255, 255, .08);
  opacity: 1;
}

/* Responsive header */
@media (max-width:980px) {
  .menu {
    display: none;
  }

  .burger {
    display: flex;
  }
}

/* ===== Sections (sin espacios en blanco) ===== */
section {
  padding: clamp(32px, 5vw, 60px) 0;
  position: relative;
  margin: 0;
}

/* ===== Titles ===== */
.section-title {
  font-size: clamp(28px, 3.2vw, 42px);
  margin: 0 0 10px;
  position: relative;
  overflow: visible;
  z-index: 2;
  text-align: left;
  /* Permite que las letras suban sin cortarse */
}

.section-title .twinkle {
  cursor: pointer;
  display: inline-block;
  color: var(--ink);
}

.section-title .twinkle span {
  display: inline-block;
  transition: transform 0.4s var(--ease), color 0.4s var(--ease);
  white-space: pre;
  /* Mantiene los espacios entre palabras */
}

.section-title .twinkle span:hover {
  transform: translateY(-6px) rotate(-2deg);
  color: var(--g2) !important;
  text-shadow: 0 0 10px rgba(241, 7, 163, 0.4);
}

.section-sub {
  color: #222;
  max-width: 860px;
  margin: 0;
  text-wrap: balance;
  position: relative;
  z-index: 2;
  text-align: left;
}

.section-sub+.section-sub {
  margin-top: 6px;
}

/* Alineación a la izquierda para bloques de descripción */
.center-block {
  max-width: 860px;
  margin: 0;
  text-align: left;
}

/* ===== Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== HERO ===== */
.video-hero {
  position: relative;
  width: 100%;
  padding: clamp(10px, 2vw, 24px) 0;
  overflow: hidden;
  z-index: 1;
}

.video-hero .overlay {
  position: absolute;
  inset: 0;
  background: #fff;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(18px, 4vw, 50px);
  position: relative;
  z-index: 2;
}

.hero-content {
  text-align: left;
}

.hero-content h1 {
  font-size: clamp(30px, 4.8vw, 60px);
  line-height: 1.06;
  margin: 0 0 .5em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--g1), var(--g2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 440px;
  height: auto;
  display: block;
}

/* Hero responsive */
@media (max-width:900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    text-align: center;
  }

  .hero-image img {
    max-width: 420px;
  }
}

/* Orbs */
.orb {
  position: absolute;
  pointer-events: none;
  filter: blur(.3px);
  z-index: 1;
}

.orb--pink {
  top: -60px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at 30% 30%, #ff6ad5, rgba(255, 106, 213, .2) 60%, transparent 70%);
  border-radius: 50%;
  transform: translateZ(0) rotate(10deg);
  animation: floaty 10s ease-in-out infinite;
}

.orb--cyan {
  bottom: -60px;
  left: -40px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at 70% 40%, #5ee0ff, rgba(94, 224, 255, .17) 60%, transparent 70%);
  border-radius: 50%;
  animation: floaty 12s ease-in-out 1s infinite;
}

@keyframes floaty {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-10px)
  }
}

@keyframes floaty-contact {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-25px) rotate(-3deg);
  }
}

/* ===== Card base ===== */
.card {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--radius-lg);
  padding: clamp(14px, 1.6vw, 22px);
  box-shadow: var(--shadow-dark);
  color: #fff;
}

/* ===== Services (flip cards) ===== */
.services {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  align-items: stretch;
}

/* Card flip */
.service {
  position: relative;
  padding: 0;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .12);
  background:
    radial-gradient(circle at 0 0, rgba(123, 47, 247, .25), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(1, 197, 255, .18), transparent 55%),
    linear-gradient(145deg, rgba(20, 18, 27, .96), rgba(25, 22, 39, .88));
  overflow: hidden;
  perspective: 1000px;
  flex: 1 1 0;
  min-width: 0;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
  backdrop-filter: blur(10px);
  transition: transform var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease);
}

.service:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 28px 60px rgba(0, 0, 0, .65);
  border-color: rgba(241, 7, 163, .45);
}

.service-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 178px;
  transform-style: preserve-3d;
  transition: transform .8s var(--ease);
}

.service:hover .service-inner {
  transform: rotateY(180deg);
}

.service-front,
.service-back {
  position: absolute;
  inset: 0;
  padding: 18px;
  border-radius: 18px;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.service-front {
  background: linear-gradient(160deg, rgba(20, 18, 27, .86), rgba(25, 22, 39, .66));
}

.service-back {
  background: linear-gradient(160deg, rgba(123, 47, 247, .86), rgba(241, 7, 163, .66));
  transform: rotateY(180deg);
}

.service h4 {
  margin: 0;
  color: #fff;
}

.service p {
  margin: 0;
  color: #fff;
  opacity: .92;
  font-size: .97rem;
}

.service .ring {
  position: absolute;
  right: -70px;
  top: -50px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 18px solid rgba(241, 7, 163, .18);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12);
  pointer-events: none;
}

/* Services responsive */
@media (max-width:980px) {
  .services {
    flex-wrap: wrap;
  }

  .service {
    flex: 1 1 calc(50% - 12px);
  }
}

@media (max-width:560px) {
  .service {
    flex: 1 1 100%;
  }
}

/* ===== About mini cards (compactas) ===== */
.about-mini {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  align-items: stretch;
  flex-wrap: wrap;
}

.about-mini .service {
  flex: 1 1 280px;
  max-width: 520px;
}

.about-mini .service-inner {
  min-height: 140px;
}

.about-mini .service-front,
.about-mini .service-back {
  padding: 16px;
}

.about-mini h4 {
  font-size: 1.02rem;
}

/* ===== Cubos 3D (clases listas para sumar más) ===== */
.about-3d {
  position: absolute;
  right: -10px;
  top: -10px;
  transform: rotateX(12deg) rotateY(-20deg) rotateZ(5deg);
  transform-style: preserve-3d;
  pointer-events: none;
  opacity: .95;
}

.cube {
  width: 54px;
  height: 54px;
  position: relative;
  transform-style: preserve-3d;
  animation: turn 8s linear infinite;
  --z: 27;
}

.cube.mid {
  width: 44px;
  height: 44px;
  --z: 22;
}

.cube.small {
  width: 34px;
  height: 34px;
  --z: 17;
}

.cube.delay1 {
  animation-delay: -1.4s;
}

.cube.delay2 {
  animation-delay: -3.1s;
}

.cube.delay3 {
  animation-delay: -4.8s;
}

.cube div {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  opacity: .85;
  border: 1px solid rgba(255, 255, 255, .15);
}

.cube .front {
  transform: translateZ(calc(var(--z) * 1px));
}

.cube .back {
  transform: rotateY(180deg) translateZ(calc(var(--z) * 1px));
}

.cube .right {
  transform: rotateY(90deg) translateZ(calc(var(--z) * 1px));
}

.cube .left {
  transform: rotateY(-90deg) translateZ(calc(var(--z) * 1px));
}

.cube .top {
  transform: rotateX(90deg) translateZ(calc(var(--z) * 1px));
}

.cube .bottom {
  transform: rotateX(-90deg) translateZ(calc(var(--z) * 1px));
}

@keyframes turn {
  from {
    transform: rotateX(0) rotateY(0);
  }

  to {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

/* ===== Trusted title letters ===== */
.trusted .letters {
  display: block;
  position: relative;
  z-index: 2;
  font-size: clamp(24px, 3vw, 36px);
  /* 1-2 puntos más que antes */
  font-weight: 900;
  color: #111;
  font-family: Poppins;
}

.letters span {
  display: inline-block;
  transition: transform 0.4s var(--ease), color 0.4s var(--ease);
  white-space: pre;
}

.letters span:hover {
  transform: translateY(-6px) rotate(-2deg);
  color: var(--g2) !important;
  text-shadow: 0 0 10px rgba(241, 7, 163, 0.4);
}

/* ===== Marquee “Nos eligen” (logos GRANDES) ===== */
.marquee {
  margin-top: 16px;
  position: relative;
  z-index: 2;
  overflow: hidden;

  background: linear-gradient(180deg, rgba(0, 0, 0, .02), rgba(0, 0, 0, .01));
  padding: 12px 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 14px 18px;
  width: max-content;
  will-change: transform;
  animation: scroll 22s linear infinite;
}

.marquee-track img {

  width: auto;
  display: block;
  object-fit: contain;

  opacity: .92;
  transform: translateZ(0);
  transition: opacity .25s ease, transform .25s ease;
}

.marquee-track img:hover {
  opacity: 1;
  transform: scale(1.08);
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width:768px) {
  .marquee-track {
    gap: 44px;
    padding: 12px 14px;
    animation-duration: 26s;
  }

  .marquee-track img {
    height: 58px;
  }
}

@media (max-width:480px) {
  .marquee-track {
    gap: 28px;
    padding: 12px 14px;
    animation-duration: 28s;
  }

  .marquee-track img {
    height: 48px;
  }
}

/* ===== Form / Inputs ===== */
form {
  display: grid;
  gap: 10px;
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font: inherit;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #f8f5f5;
  opacity: 1;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  color: #f8f5f5;
}

input::-moz-placeholder,
textarea::-moz-placeholder {
  color: #f8f5f5;
  opacity: 1;
}

.muted {
  opacity: .9;
}

/* ===== Contact layout 2 columnas (form + logo derecha) ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: 16px;
  align-items: stretch;
  margin-top: 14px;
}

.contact-form-card {
  max-width: 620px;
}

.contact-side {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, .08);
  background: linear-gradient(135deg, rgba(123, 47, 247, .08), rgba(241, 7, 163, .08));
  box-shadow: 0 12px 26px rgba(0, 0, 0, .08);
}

.contact-side img {
  width: min(320px, 78%);
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .20));
  /* Animación de flotación más pronunciada */
  animation: floaty-contact 5s ease-in-out infinite;
  transition: transform var(--t-base) var(--ease), filter var(--t-base) var(--ease);
}

.contact-side img:hover {
  /* Efecto interactivo al pasar el mouse */
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 25px 50px rgba(241, 7, 163, 0.5));
}

@media (max-width:980px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    max-width: 100%;
  }

  .contact-side {
    min-height: 180px;
  }
}

/* ===== Social button premium ===== */
.social-btn-premium {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 14px;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #2d2d2d;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(8px);
  transition: all .35s cubic-bezier(0.23, 1, 0.32, 1);
  user-select: none;
}

.social-btn-premium svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform .4s ease;
}

.social-btn-premium:hover {
  background: #fff;
  color: #111;
  border-color: rgba(241, 7, 163, .55);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 20px rgba(123, 47, 247, 0.12);
}

.social-btn-premium:hover svg {
  transform: rotate(-10deg) scale(1.2);
}

.social-btn-premium:active {
  transform: translateY(-1px) scale(0.98);
}

/* ===== Flip contact cards (frente QR + nombre / atrás tel + lugar) ===== */
.qr-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

/* Envoltorio flip */
.flip {
  perspective: 1000px;
}

.flip-inner {
  position: relative;
  width: 100%;
  min-height: 140px;
  transform-style: preserve-3d;
  transition: transform .8s var(--ease);
  border-radius: 14px;
}

.flip:hover .flip-inner {
  transform: rotateY(180deg);
}

/* Caras */
.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: center;

  background: linear-gradient(135deg, rgba(123, 47, 247, .22), rgba(241, 7, 163, .18));
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .28);
  color: #fff;
}

.flip-face img {
  width: 84px;
  height: 84px;
  border-radius: 12px;
  background: #fff;
  display: block;
}

.flip-back {
  transform: rotateY(180deg);
  grid-template-columns: 1fr;
  text-align: left;
}

.who {
  font-weight: 900;
}

/* ===== Footer ===== */
footer {
  padding: 30px var(--pad);
  /* Un poco más de aire para que luzca mejor */

  color: #333;
  display: flex;
  flex-direction: column;
  /* Apila el texto sobre el botón */
  align-items: center;
  /* Centra ambos horizontalmente */
  justify-content: center;
  /* Centra verticalmente en su contenedor */
  gap: 16px;
  /* Espacio entre el texto y el botón */
  background: #fff;
  text-align: center;
}

/* ===== Back to top — versión ULTRA moderna ===== */

.back-to-top {

  position: fixed;

  left: 70%;
  bottom: 26px;

  transform: translateX(-50%) scale(.92);

  width: 56px;
  height: 56px;
  border-radius: 50%;

  display: none;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .28);

  color: #fff;
  font-size: 22px;
  font-weight: 600;

  /* glass + gradient */
  background: linear-gradient(135deg,
      rgba(123, 47, 247, .95),
      rgba(241, 7, 163, .95));

  backdrop-filter: blur(10px);

  box-shadow:
    0 12px 30px rgba(0, 0, 0, .28),
    inset 0 0 18px rgba(255, 255, 255, .15);

  z-index: 9999;

  transition:
    transform .28s cubic-bezier(.2, .9, .2, 1),
    box-shadow .28s ease,
    opacity .28s ease;
}


/* estado visible */
.back-to-top.show {
  display: flex;
  transform: translateX(-50%) scale(1);
}


/* hover elegante */
.back-to-top:hover {
  transform: translateX(-50%) translateY(-6px) scale(1.05);

  box-shadow:
    0 18px 40px rgba(0, 0, 0, .35),
    0 0 18px rgba(241, 7, 163, .35);
}


/* click */
.back-to-top:active {
  transform: translateX(-50%) translateY(-2px) scale(.97);
}


/* Mobile optimization */
@media (max-width:600px) {

  .back-to-top {
    width: 50px;
    height: 50px;
    font-size: 20px;
    bottom: 20px;
  }

}


/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  .marquee-track {
    animation: none !important;
  }
}