@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand Colors */
  --color-primary: #e33232;
  /* Rojo */
  --color-primary-dark: #b82222;
  --color-secondary: #ff4d4d;
  --color-accent: #6b21a8;
  /* Deep Purple */

  /* Background & Surface */
  --color-bg-dark: #070b14;
  --color-surface: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2));
  /* Black Gradient Glass */
  --color-surface-hover: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.5));
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-focus: rgba(227, 50, 50, 0.5);

  /* Typography Colors */
  --color-text-primary: #ffffff;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Metrics */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-glow: 0 0 20px rgba(227, 50, 50, 0.2);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
  --glass-blur: blur(16px);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background-color: var(--color-bg-dark);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Video */
.bg-video-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(7, 11, 20, 0.6) 0%,
      rgba(7, 11, 20, 0.85) 100%);
}

/* Global Elements */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
  background: linear-gradient(to right, #fff, var(--color-text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: 0 auto 4rem auto;
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #000;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  color: #fff;
  background: var(--color-primary-dark);
}



.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn-outline:hover {
  background: rgba(227, 50, 50, 0.1);
  transform: translateY(-2px);
}

.btn-off-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  border: 1px solid var(--color-primary-dark);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  box-shadow: 0 0 5px rgba(227, 50, 50, 0.25);
  animation: pulse-glow 2s infinite alternate;
  position: relative;
  overflow: hidden;
}

.btn-off-badge-hero::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -35%;
  width: 30%;
  height: 140%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: rotate(18deg);
  animation: badge-shimmer 2.8s ease-in-out infinite;
}

.cta-repeat-section {
  padding-top: 10px;
  padding-bottom: 40px;
}

.cta-repeat-card {
  text-align: center;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(227, 50, 50, 0.14), rgba(0, 0, 0, 0.45));
  border-color: rgba(227, 50, 50, 0.35);
}

.cta-repeat-eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(227, 50, 50, 0.35);
  background: rgba(227, 50, 50, 0.12);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta-repeat-title {
  margin-bottom: 1rem;
}

.cta-repeat-subtitle {
  margin-bottom: 2rem;
  max-width: 760px;
}

.cta-repeat-button {
  color: #fff;
  gap: 12px;
}

.cta-repeat-button:hover {
  color: #fff;
}

/* Glass Card */
.glass-card {
  background: var(--color-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--color-border-focus);
  background: var(--color-surface-hover);
  transform: translateY(-5px);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1280px;
  z-index: 1000;
  padding: 15px 20px;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  border-radius: 50px;
}

.navbar.scrolled {
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--color-primary);
  padding: 10px 20px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--color-primary);
}

.nav-logo-img {
  height: 30px;
  width: auto;
}

.nav-logo-text {
  height: 20px;
  width: auto;
  margin-left: 10px;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-normal);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  /* offset for navbar */
}

.hero-content {
  max-width: 800px;
}

.hero-actions {
  flex-wrap: wrap;
  align-items: center;
}

.hero-model-card {
  overflow: hidden;
}

.hero-title {
  font-size: 2.88rem;
  /* Reducido un 20% de 3.6rem */
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #FFFFFF 0%, #A0AEC0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1rem;
  /* Reducido un 20% de 1.25rem */
  color: var(--color-text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* Inicio - Info Blocks */
.info-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-block .icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(227, 50, 50, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 1px solid rgba(227, 50, 50, 0.2);
}

.info-block h3 {
  font-size: 1.25rem;
  color: #fff;
}

.info-block p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

/* Clientes Marquee */
.clients-section {
  padding: 4rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: rgba(7, 11, 20, 0.4);
  backdrop-filter: var(--glass-blur);
}

.clients-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.clients-marquee .marquee-content {
  display: flex;
  width: max-content;
  animation: scroll-clients 45s linear infinite;
}

.clients-marquee .marquee-content:hover {
  animation-play-state: paused;
}

.clients-marquee .marquee-group {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding-right: 4rem;
}

@keyframes scroll-clients {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.client-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-muted);
  filter: grayscale(100%);
  transition: all var(--transition-normal);
  opacity: 0.5;
}

.client-logo:hover {
  filter: grayscale(0%);
  color: #fff;
  opacity: 1;
}

/* Counters */
.counters-grid {
  margin-top: 6rem;
}

.counter-item {
  text-align: center;
}

.counter-number {
  font-size: 3.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  text-shadow: var(--shadow-glow);
}

.counter-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.counter-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* Partner Links Style */
.partner-link {
  display: flex;
  align-items: center;
  gap: 35px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.partner-link img {
  width: auto;
  height: 64px;
  object-fit: contain;
  filter: grayscale(0.2);
  transition: all 0.3s ease;
}

/* Reducir Cencosud un 25% */
.partner-link img.logo-cencosud {
  height: 48px;
}

/* Reducir Unigis un 20% (64px * 0.8 = ~51px) */
.partner-link img.logo-unigis {
  height: 51px;
}

/* Reducir ARM y AssistCargo un 10% (64px * 0.9 = ~58px) */
.partner-link img.logo-arm,
.partner-link img.logo-assistcargo {
  height: 58px;
}

/* Agrandar Newsan y Loginter un 10% (64px * 1.1 = ~70px) */
.partner-link img.logo-newsan,
.partner-link img.logo-loginter {
  height: 70px;
}

.partner-link span {
  font-weight: 600;
  font-size: 1.1rem;
}

.partner-link:hover {
  color: #fff;
  transform: translateY(-5px);
}

.partner-link:hover img {
  filter: grayscale(0);
  transform: scale(1.05);
}

/* Partners Marquee Variant - Seamless Loop Fix */
.partners-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.partners-marquee .marquee-content {
  display: flex;
  width: max-content;
  animation: scroll-partners 50s linear infinite;
}

.partners-marquee .marquee-group {
  display: flex;
  align-items: center;
  gap: 10rem;
  padding-right: 10rem;
  /* Espacio extra para que el loop sea infinito y sin saltos */
}

@keyframes scroll-partners {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes scroll-partners {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Servicios Section */
.service-category {
  margin-bottom: 4rem;
}

.service-category h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #fff;
  display: inline-block;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 0.5rem;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.service-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-border);
}

.service-item i {
  color: var(--color-primary);
  font-size: 1.25rem;
  margin-top: 0.2rem;
}

/* Descargas */
.download-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.download-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
  border: 1px solid var(--color-border);
  transition: all var(--transition-normal);
}

.download-card:hover .download-icon {
  background: var(--color-primary);
  color: #000;
  box-shadow: var(--shadow-glow);
  border-color: var(--color-primary);
}

.download-card h3 {
  font-size: 1.3rem;
}

.download-card p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  flex-grow: 1;
}

/* Novedades */
.news-img {
  width: 100%;
  height: 180px;
  object-grow: 0;
  object-fit: cover;
}

.app-img {
  height: 200px;
  width: auto;
  object-fit: contain;
  background: transparent;
  transition: transform var(--transition-normal);
  display: block;
  margin: 0 auto;
}

.app-card:hover .app-img {
  transform: scale(1.05);
}

.news-date {
  font-size: 0.85rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  display: block;
  font-family: var(--font-heading);
}

.news-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Formularios */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(227, 50, 50, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Facturación - Medios de Pago */
.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.payment-method {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--color-primary);
}

.contact-item h4 {
  margin-bottom: 0.25rem;
}

.contact-item p {
  color: var(--color-text-secondary);
}

/* Footer */
.footer {
  background: rgba(7, 11, 20, 0.95);
  border-top: 1px solid var(--color-border);
  padding: 60px 0 20px;
  margin-top: 80px;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  color: white;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }

  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar {
    top: 10px;
    width: calc(100% - 20px);
    padding: 12px 16px;
  }

  .nav-container {
    gap: 1rem;
  }

  .logo {
    min-width: 0;
  }

  .nav-logo-img {
    height: 26px;
  }

  .nav-logo-text {
    height: 16px;
    margin-left: 6px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(7, 11, 20, 0.98);
    backdrop-filter: var(--glass-blur);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transition: left var(--transition-normal);
  }

  .nav-links.active {
    left: 0;
  }

  .hero {
    min-height: auto;
    padding-top: 110px;
  }

  .hero-shell {
    min-height: auto !important;
    padding-top: 0 !important;
    padding-bottom: 30px !important;
  }

  .cesvi-badge {
    position: static !important;
    margin-bottom: 1.5rem;
    align-items: flex-start !important;
  }

  .cesvi-badge span {
    text-align: left !important;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .cta-repeat-card {
    padding: 2rem 1.25rem;
  }

  .cta-repeat-button {
    width: 100%;
  }

  .hero-model-card {
    height: 320px !important;
  }

  .grid-2,
  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }

  .counter-number {
    font-size: 2.5rem;
  }

  .partners-marquee .marquee-group {
    gap: 4rem;
    padding-right: 4rem;
  }

  .partner-link {
    gap: 18px;
  }

  .partner-link img {
    height: 44px;
  }

  .partner-link img.logo-cencosud {
    height: 34px;
  }

  .partner-link img.logo-unigis {
    height: 38px;
  }

  .partner-link img.logo-arm,
  .partner-link img.logo-assistcargo {
    height: 40px;
  }

  .partner-link img.logo-newsan,
  .partner-link img.logo-loginter {
    height: 48px;
  }

  .partner-link span {
    font-size: 0.95rem;
  }

  .whatsapp-btn {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
}

/* Toast Notification */
#custom-toast {
  visibility: hidden;
  min-width: 250px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: var(--radius-md);
  padding: 16px;
  position: fixed;
  z-index: 2000;
  left: 50%;
  bottom: 50px;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--color-border);
  transition: visibility 0s, opacity 0.5s linear;
  opacity: 0;
}

#custom-toast.show {
  visibility: visible;
  opacity: 1;
}

#custom-toast.success {
  border-left: 5px solid #25D366;
}

#custom-toast.error {
  border-left: 5px solid var(--color-primary);
}

#custom-toast.info {
  border-left: 5px solid #149DCC;
}

/* News Carousel */
.carousel-container {
  position: relative;
  width: 100%;
  padding: 0 50px;
}

.carousel-track-wrapper {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 2rem;
}

.carousel-track .news-card,
.carousel-track .app-card {
  width: calc(33.333% - 1.35rem);
  flex: 0 0 calc(33.333% - 1.35rem);
  display: flex;
  flex-direction: column;
}

.news-card>div {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-card a {
  margin-top: auto;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background: rgba(227, 50, 50, 0.1);
  border: 1px solid var(--color-primary);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
}

.carousel-btn:hover {
  background: var(--color-primary);
  box-shadow: var(--shadow-glow);
}

.carousel-btn.prev {
  left: -10px;
}

.carousel-btn.next {
  right: -10px;
}

@media (max-width: 1024px) {
  .carousel-track .news-card,
  .carousel-track .app-card {
    width: calc(50% - 1rem);
    flex: 0 0 calc(50% - 1rem);
  }
}

@media (max-width: 768px) {
  .carousel-container {
    padding: 0 10px;
  }

  .carousel-track .news-card,
  .carousel-track .app-card {
    width: 100%;
    flex: 0 0 100%;
  }

  .carousel-btn {
    display: none;
  }
}

@media (max-width: 768px) {

  .hotspot-annotation,
  .callout-line {
    display: none;
  }
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 5px rgba(227, 50, 50, 0.25);
  }

  100% {
    box-shadow: 0 0 18px rgba(227, 50, 50, 0.6);
  }
}

@keyframes badge-shimmer {

  0%,
  70%,
  100% {
    left: -35%;
    opacity: 0;
  }

  10% {
    opacity: 0.95;
  }

  35% {
    left: 120%;
    opacity: 0;
  }
}

/* 3D Hotspots - Red Tech Style */
.hotspot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background-color: var(--color-primary);
  box-shadow: 0 0 15px var(--color-primary), 0 0 30px rgba(227, 50, 50, 0.5);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.hotspot:not([data-visible]) {
  opacity: 1;
}

.hotspot:hover {
  transform: scale(1.3);
  box-shadow: 0 0 25px var(--color-primary);
}

.hotspot-annotation {
  background: rgb(7, 11, 20);
  border: 1px solid rgba(227, 50, 50, 0.5);
  border-left: 3px solid var(--color-primary);
  border-radius: 4px;
  color: #7ffcf3;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  position: absolute;
  top: -100px;
  /* Mayor separación inicial */
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  opacity: 1;
  pointer-events: auto;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 10px rgba(227, 50, 50, 0.1);
  text-shadow: 0 0 8px rgba(127, 252, 243, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hotspot-label-icon {
  margin-right: 10px;
  color: currentColor;
  font-size: 0.8rem;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Callout Line (Historieta) */
.callout-line {
  position: absolute;
  bottom: -60px;
  /* Ajustado para la nueva separación */
  left: 50%;
  width: 2px;
  /* Más ancha */
  height: 60px;
  /* Línea más larga */
  background: var(--color-primary);
  /* Color sólido sin efecto láser */
  transform: translateX(-50%);
  transition: height 0.3s ease;
  pointer-events: none;
}

.hotspot::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: var(--color-primary);
  border-radius: 50%;
  z-index: -1;
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(3.5);
    opacity: 0;
  }
}

/* Left-pointing hotspot variant */
.hotspot--left .hotspot-annotation {
  top: 50%;
  left: auto;
  right: calc(100% + 20px);
  transform: translateY(-50%);
  text-align: right;
}

.hotspot--left .callout-line {
  position: absolute;
  top: 50%;
  right: -20px;
  bottom: auto;
  left: auto;
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  transform: translateY(-50%);
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 10001;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.lightbox-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 1200px;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 30px rgba(227, 50, 50, 0.3);
  animation: zoom 0.6s;
}

@keyframes zoom {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: var(--color-primary);
  text-decoration: none;
  cursor: pointer;
}

@media only screen and (max-width: 700px) {
  .lightbox-content {
    width: 100%;
  }
}

.app-img {
  cursor: pointer;
}

/* Left-pointing hotspot with long line */
.hotspot--left-lg .hotspot-annotation {
  top: 50%;
  left: auto;
  right: calc(100% + 60px);
  transform: translateY(-50%);
  text-align: right;
}

.hotspot--left-lg .callout-line {
  position: absolute;
  top: 50%;
  right: -60px;
  bottom: auto;
  left: auto;
  width: 60px;
  height: 2px;
  background: var(--color-primary);
  transform: translateY(-50%);
}