:root {
  /* Paleta base */
  --color-bg: #222831;
  /* Gris Pizarra */
  --color-bg-alt: #30475E;
  /* Azul Petróleo */
  --color-bg-alt-soft: rgba(48, 71, 94, 0.5);
  /* Azul Petróleo */
  --color-surface: #2f3640;
  /* Keeping as is for nuance, or could map to secondary */
  --color-primary: #00ADB5;
  /* Cian Moderno */
  --color-primary-soft: rgba(0, 173, 181, 0.12);
  --color-text: #EEEEEE;
  /* Blanco Humo */
  --color-text-muted: #b0bec5;
  /* Adjusted for better contrast on dark bg */
  --color-border: #393E46;

  --radius-lg: 1.25rem;
  --radius-md: 0.75rem;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.45);
  --container-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, #222831 0, #111318 58%, #0b0c10 100%);
  color: var(--color-text);
}

#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  /* Behind everything */
  pointer-events: none;
  /* Allow clicks to pass through */
}

/* Layout base */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(34, 40, 49, 0.96), rgba(34, 40, 49, 0.8));
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 0.3s ease-in-out;
}

.site-header.nav-hidden {
  transform: translateY(-100%);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 66px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

/*
.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
}
*/
.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
}



.logo-text {
  color: var(--color-text-muted);
}

/* NAV */

.main-nav {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.main-nav a:hover {
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Dropdown Menu */
.nav-item.dropdown {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  min-width: 200px;
  padding: 0.5rem 0;
  z-index: 100;
  overflow: visible;
  /* Changed from hidden to allow the bridge to work */
}

/* Invisible bridge to prevent menu from closing */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
}

.nav-item.dropdown:hover .dropdown-menu {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.dropdown-menu a {
  padding: 0.75rem 1.2rem;
  white-space: nowrap;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-primary);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Redes en header */

.header-social {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.social-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.social-icon:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #111318;
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(0, 173, 181, 0.7);
}

.social-icon--telegram svg {
  display: block;
}

.social-icon--telegram {
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Adjust icon size if needed */
}

.social-icon--telegram:hover {
  background: #24A1DE;
  /* Telegram official color */
  border-color: #24A1DE;
  box-shadow: 0 0 14px rgba(36, 161, 222, 0.7);
  color: #fff;
}

/* Tooltip Container */
.tooltip-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Tooltip Base Styles */
.tooltip-text {
  visibility: hidden;
  width: 220px;
  background-color: var(--color-surface);
  color: var(--color-text);
  text-align: center;
  border-radius: var(--radius-md);
  padding: 0.8rem;
  position: absolute;
  z-index: 100;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  font-size: 0.8rem;
  line-height: 1.4;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  pointer-events: none;
  /* Prevent tooltip from blocking interactions */
}

/* Tooltip Arrow Base */
.tooltip-text::after {
  content: "";
  position: absolute;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
}

/* Position: Bottom (Header) */
.tooltip-text--bottom {
  top: 135%;
  margin-top: 5px;
  /* Gap */
}

.tooltip-text--bottom::after {
  bottom: 100%;
  /* Arrow at top */
  border-color: transparent transparent var(--color-border) transparent;
  /* Match border */
}

/* Position: Top (Footer) */
.tooltip-text--top {
  bottom: 135%;
  margin-bottom: 5px;
  /* Gap */
}

.tooltip-text--top::after {
  top: 100%;
  /* Arrow at bottom */
  border-color: var(--color-border) transparent transparent transparent;
  /* Match border */
}


/* Show on Hover */
.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.tooltip-container:hover .tooltip-text--bottom {
  transform: translateX(-50%) translateY(0);
  /* Final position */
}

.tooltip-container:hover .tooltip-text--top {
  transform: translateX(-50%) translateY(0);
  /* Final position */
}

/* HERO */

.hero {
  padding: 4rem 0 3.5rem;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

/* subtítulo principal (lo que pediste más grande) */
.hero-kicker {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero-subtitle {
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 36rem;
}

.hero-cta {
  margin: 1.75rem 0 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #00fff5, #00ADB5);
  color: #111318;
  box-shadow: 0 14px 30px rgba(0, 173, 181, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(0, 173, 181, 0.5);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--color-text-muted);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.02);
}

/* ------------------------------------------------
   RADAR INDUSTRIAL PAGE STYLES
------------------------------------------------ */
.radar-industrial-page .hero-cta {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.radar-industrial-page .radar-industrial-page .hero-highlights li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--color-text-muted);
}

.radar-industrial-page .hero-highlights li::before {
  content: "✓";
  color: var(--color-primary);
  font-weight: bold;
}

/* Tabla de especificaciones */
.spec-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 300px;
}

.spec-table th,
.spec-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.spec-table th {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-primary);
  font-weight: 600;
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.8rem;
  font-style: italic;
}

.radar-industrial-page .hero-media img {
  border-radius: 8px;
  width: 100%;
  height: auto;
}

/* Scoped Two Columns for Radar Page */
.radar-industrial-page .two-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .radar-industrial-page .two-columns {
    grid-template-columns: 1fr 1fr;
  }
}

.radar-industrial-page .highlight-box {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.radar-industrial-page .highlight-box h3 {
  color: var(--color-secondary);
  margin-top: 0;
}

.contact-link {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.contact-link:hover {
  color: #fff;
  text-decoration: underline;
}

.whatsapp-float-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  box-shadow: var(--shadow);
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-highlights li {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

/* Imagen hero */

.hero-media {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.hero-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius-lg) - 0.4rem);
  margin-bottom: 0.5rem;
}

.hero-media figcaption {
  margin-top: 0.45rem;
}

.guarantee-box p {
  margin: 0;
}

/* SECCIONES GENERALES */

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--color-bg-alt-soft);
}

.section h2 {
  font-size: 1.6rem;
  margin: 0 0 0.75rem;
}

/* Video Background Services & Applications */
#servicios,
#aplicaciones {
  position: relative;
  overflow: hidden;
  /* background-color fallback si el vídeo falla */
  background-color: var(--color-bg);
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

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

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Capa más oscura para resaltar texto (0.85) */
  background: rgba(13, 15, 20, 0.85);
  background: radial-gradient(circle at center, rgba(13, 15, 20, 0.7) 0%, rgba(13, 15, 20, 0.95) 100%);
}

#servicios .container,
#aplicaciones .container {
  /* Contenedor semitransparente para resaltar texto sobre video */
  background: rgba(13, 15, 20, 0.65);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.section-intro {
  margin: 0 0 1.8rem;
  max-width: 40rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.section-intro-centered {
  margin: 0 auto 2.5rem;
  max-width: 48rem;
  text-align: center;
  font-size: 1.15rem;
  color: var(--color-text);
  line-height: 1.6;
}

.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: flex-start;
}

.two-columns-equal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: flex-start;
}

/* Caja destacada */

.highlight-box {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-soft);
}

.highlight-box h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.highlight-box ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--color-text-muted);
  font-size: 0.93rem;
}

/* EXPERIENCIA (historia + timeline) */

.experience-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.experience-summary p {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.experience-timeline {
  position: relative;
  padding-left: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.timeline-line {
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  left: 0.5rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), transparent);
  opacity: 0.7;
}

.timeline-item {
  position: relative;
  padding-left: 0.8rem;
}

.timeline-point {
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--color-primary);
  box-shadow: 0 0 10px rgba(0, 173, 181, 0.9);
}

.timeline-content {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 0.9rem 0.9rem 0.95rem;
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  font-size: 0.92rem;
}

.timeline-date {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}

.timeline-content h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.timeline-content p {
  margin: 0;
  color: var(--color-text-muted);
}

/* Imagen de sección */

.section-image {
  margin: 2.3rem auto 0;
  max-width: 720px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.section-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
}

.section-image figcaption {
  margin-top: 0.45rem;
}

.small-image {
  max-width: 420px;
}

/* =========================================
   SERVICIOS: ROTADOR DE CASOS (INTRO)
   ========================================= */
.services-rotator {
  position: relative;
}

.services-rotator__content {
  transition: opacity 0.25s ease, transform 0.25s ease;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.services-rotator__content:active {
  transform: scale(0.995);
  opacity: 0.9;
}

.services-rotator__content.is-fading {
  opacity: 0;
  transform: translateY(6px);
}

.services-rotator__p {
  margin: 0 0 0.65rem 0;
  line-height: 1.65;
}

.services-rotator__p:last-child {
  margin-bottom: 0;
}

.services-rotator__dots {
  display: flex;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.services-rotator__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.2s ease, transform 0.2s ease, width 0.2s ease;
}

.services-rotator__dot.is-active {
  width: 18px;
  background: var(--color-primary);
  transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {

  .services-rotator__content,
  .services-rotator__dot {
    transition: none;
  }
}

/* =========================================
   BARRA DE PROGRESO (NUEVO)
   ========================================= */
.services-rotator__progress {
  position: absolute;
  bottom: 0;
  /* Se ubica al pie del contenedor */
  left: 0;
  width: 100%;
  height: 3px;
  /* Grosor sutil */
  background: rgba(0, 0, 0, 0.05);
  /* Fondo muy tenue para la pista */
  z-index: 10;
}

.services-rotator__bar {
  height: 100%;
  width: 0;
  /* Empieza vacía */
  background: var(--color-primary);
  /* Tu color corporativo */
  transform-origin: left;
}

/* La clase que activa la animación */
.services-rotator__bar.is-running {
  /* 12s linear coincide con tu intervalo de JS */
  animation: progressFill 12s linear forwards;
}

/* Pausar la animación visual si el usuario pone el mouse encima */
/* Esto coincide visualmente con tu lógica de JS de detener el timer */
.services-rotator:hover .services-rotator__bar {
  animation-play-state: paused;
}

/* Keyframes para el llenado */
@keyframes progressFill {
  from {
    width: 0%;
  }

  to {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-rotator__bar {
    display: none;
    /* Ocultar barra si el usuario prefiere no ver movimiento */
  }
}

/* Cards (servicios, etc.) */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.card p {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 0.93rem;
  color: var(--color-text-muted);
}

.card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* VENTA DE EQUIPOS */

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.4rem;
}

.equipment-item figure {
  margin: 0;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 0.9rem 0.9rem 1rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.equipment-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 0.5rem);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease;
}

.equipment-image:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.7);
  filter: brightness(1.05);
}

.equipment-item figcaption {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.equipment-cta {
  margin-top: 0.6rem;
  display: flex;
  justify-content: center;
}

.equipment-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--color-text);
  background: rgba(0, 173, 181, 0.18);
  transition: background 0.2s ease, border-color 0.2s ease,
    transform 0.1s ease, box-shadow 0.2s ease;
}

.equipment-btn:hover {
  background: linear-gradient(135deg, #00fff5, #00ADB5);
  border-color: var(--color-primary);
  color: #111318;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 173, 181, 0.55);
}

.lightbox-trigger {
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.lightbox-trigger:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}

/* LIGHTBOX */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 999;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

/*
.lightbox-inner {
  max-width: 90vw;
  max-height: 90vh;
  padding: 0.5rem;
}

.lightbox-inner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 24px 60px rgba(0, 0, 0, 0.9);
}
*/
.lightbox-inner {
  padding: 0.5rem;
  /* centramos y dejamos que el tamaño lo controle la imagen */
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-inner img {
  max-width: 90vw;
  /* nunca más ancho que la pantalla */
  max-height: 90vh;
  /* nunca más alto que la pantalla */
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 24px 60px rgba(0, 0, 0, 0.9);
}


/* RESPONSIVO EQUIPOS */

@media (max-width: 1200px) {
  .equipment-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .equipment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .equipment-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* CERTIFICACIONES */

.cert-list {
  margin: 0 0 1.1rem;
  padding-left: 1.1rem;
  color: var(--color-text-muted);
  font-size: 0.93rem;
}

/* CONTACTO (nueva versión sin formulario) */

.contact-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  margin-bottom: 2rem;
}

.contact-card {
  display: block;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 1.4rem 1.3rem;
  text-decoration: none;
  color: var(--color-text);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  transition:
    border-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.contact-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.contact-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ===== Formación y certificaciones ===== */

#formacion-certificaciones {
  padding: 4rem 0;
}

#formacion-certificaciones .section-title {
  margin-bottom: 0.75rem;
}

#formacion-certificaciones .section-subtitle {
  max-width: 680px;
  margin-bottom: 2.5rem;
  opacity: 0.8;
}

/* Layout hero + carrusel */
.cert-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .cert-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
}

/* Imagen hero */
.cert-hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

/* Carrusel */
.cert-carousel {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}

.cert-carousel-viewport {
  overflow: hidden;
  border-radius: 0.75rem;
  background: radial-gradient(circle at top left, rgba(0, 173, 181, 0.15), transparent),
    radial-gradient(circle at bottom right, rgba(42, 100, 25, 0.18), transparent),
    rgba(15, 18, 24, 0.95);
  padding: 0.5rem;
}

.cert-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.cert-slide {
  min-width: 100%;
  padding: 0.5rem;
  display: flex;
  justify-content: center;
}

.cert-slide img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  object-fit: contain;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

/* Botones prev/next */
.cert-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  padding: 0;
  z-index: 2;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.cert-carousel-btn--prev {
  left: 0.25rem;
}

.cert-carousel-btn--next {
  right: 0.25rem;
}

.cert-carousel-btn:hover {
  background: rgba(0, 173, 181, 0.85);
  transform: translateY(-50%) scale(1.05);
}

.cert-carousel-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

/* Dots / indicadores */
.cert-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.cert-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.2s ease, transform 0.2s ease, width 0.2s ease;
}

.cert-dot.is-active {
  width: 18px;
  background: #00adb5;
  /* acento */
  transform: scale(1.05);
}

/* Bloque de CTA Platzi bajo el carrusel */
.cert-platzi-cta {
  margin-top: 1.25rem;
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.9;
}

.cert-platzi-cta p {
  margin-bottom: 0.75rem;
}

/* Botón Platzi (ajusta colores a tu paleta si lo deseas) */
.btn-platzi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #00adb5;
  background: #00adb5;
  color: #0b1015;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease,
    box-shadow 0.2s ease;
}

.btn-platzi:hover {
  background: transparent;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 173, 181, 0.35);
}

.btn-platzi:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 173, 181, 0.25);
}

/*
@media (max-width: 768px) {
  .cert-platzi-cta {
    text-align: center;
  }
}
*/
/* Hover con efecto de luz más marcado */
.contact-card:hover {
  border-color: var(--color-primary);
  background:
    radial-gradient(circle at top left, rgba(0, 173, 181, 0.28), #303744);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(0, 173, 181, 0.6),
    0 0 26px rgba(0, 173, 181, 0.45),
    0 18px 40px rgba(0, 0, 0, 0.85);
}

/* Barra de redes en contacto */

.social-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.social-bar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.social-pill {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.social-pill:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #111318;
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(0, 173, 181, 0.7);
}

/* FOOTER */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.8rem 0 2.4rem;
  background: #222831;
}

.footer-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
}

.footer-content p {
  margin: 0.1rem 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer-small {
  font-size: 0.8rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* RESPONSIVO */

@media (max-width: 1200px) {
  .experience-wrapper {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  }
}

@media (max-width: 1024px) {
  .experience-wrapper {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards-grid,
  .contact-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-media {
    order: -1;
  }

  .two-columns,
  .two-columns-equal {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards-grid,
  .contact-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-image {
    margin-top: 1.8rem;
  }

  .header-social {
    display: none;
  }
}

@media (max-width: 720px) {
  .header-content {
    height: 60px;
  }

  .main-nav {
    position: absolute;
    inset-inline: 0;
    top: 60px;
    background: rgba(34, 40, 49, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 0.75rem;
    display: none;
  }

  .main-nav a {
    padding: 0.4rem 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav.is-open {
    display: flex;
  }

  .hero {
    padding-top: 3rem;
  }

  .social-bar {
    align-items: flex-start;
  }

  .footer-social {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* =========================================
   1. CURSOR PERSONALIZADO (TECH STYLE)
   ========================================= */
body {
  cursor: none;
  /* Oculta el cursor nativo para dejar solo el personalizado */
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background-color: #00f2ff;
  /* Cian Neón */
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 10002;
  pointer-events: none;
}

.cursor-outline {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 10001;
  pointer-events: none;
  transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
}

/* En móviles desactivamos el cursor personalizado */
@media (max-width: 768px) {

  .cursor-dot,
  .cursor-outline {
    display: none;
  }

  body {
    cursor: auto;
  }
}

/* =========================================
   2. TEXT REVEAL (BORROSO -> NÍTIDO)
   ========================================= */
.reveal-text {
  filter: blur(10px);
  /* Empieza borroso */
  opacity: 0;
  /* Empieza invisible */
  transform: translateY(30px);
  /* Empieza más abajo */
  transition: all 1s ease-out;
  /* La magia de la transición */
}

.reveal-text.visible {
  filter: blur(0);
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   3. EFECTO PARALLAX TILT (IMÁGENES)
   ========================================= */
/* Reutilizamos la clase glitch-container para no cambiar el HTML,
   pero el efecto será diferente */
.glitch-container {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 15px;
  /* Preparamos la perspectiva para el efecto 3D */
  perspective: 1000px;
  transition: transform 0.3s ease-out;
}

.glitch-container img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
  /* Un pequeño zoom inicial para que no se vean bordes al inclinar */
  transform: scale(1.02);
}

/* Al pasar el mouse, aplicamos la inclinación */
.glitch-container:hover img {
  /* Inclina la imagen. Puedes ajustar los grados (deg) */
  transform: rotateX(5deg) rotateY(-5deg) scale(1.05);
  /* Sombra suave para dar profundidad */
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
}

/* --- OPCIÓN 1: TECH SCANNER --- */
.scanner-container {
  position: relative;
  display: inline-block;
  overflow: hidden;
  /* Importante para que la luz no salga de la foto */
  border-radius: 12px;
  /* Bordes suaves */
}

.scanner-container img {
  display: block;
  width: 100%;
  transition: opacity 0.3s;
}

/* La barra de luz del escáner */
.scanner-container::after {
  content: '';
  position: absolute;
  top: -100%;
  /* Empieza fuera de la imagen (arriba) */
  left: 0;
  width: 100%;
  height: 50%;
  /* Altura del degradado */
  /* Luz Cian estilo Tech */
  background: linear-gradient(to bottom, transparent, rgba(0, 242, 255, 0.6) 90%, rgba(0, 242, 255, 1) 100%);
  opacity: 0.7;
  transition: top 0.5s ease-in-out;
  /* Velocidad del escaneo al volver */
  pointer-events: none;
}

/* Animación al hacer Hover */
.scanner-container:hover::after {
  top: 150%;
  /* Baja hasta salirse por abajo */
  transition: top 1.5s ease-in-out;
  /* Escaneo lento y elegante */
}

.scanner-container:hover img {
  opacity: 0.9;
}





/* FAQ ROTATOR */
.faq-rotator .highlight-box {
  transition: all 0.6s ease;
  opacity: 0.4;
  transform: scale(0.95);
  filter: grayscale(0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-rotator .highlight-box.is-active {
  opacity: 1;
  transform: scale(1.02);
  filter: grayscale(0);
  border: 1px solid var(--color-primary);
  box-shadow: 0 0 15px rgba(0, 173, 181, 0.2);
  z-index: 2;
}

.faq-rotator:hover .highlight-box {
  /* Al hacer hover en el contenedor, pausamos el efecto visual "fuerte" 
     Opción: dejar que el usuario vea todos con claridad si pasa el mouse?
     Por ahora dejamos que el JS maneje el pase, pero visualmente: */
  opacity: 0.9;
  filter: grayscale(0.2);
  transform: scale(1);
}

.faq-rotator:hover .highlight-box.is-active {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1.02);
}

/* ------------------------------------------------
   TIENDA PAGE STYLES
------------------------------------------------ */
.tienda-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: var(--color-bg);
  color: var(--color-text);
}

.tienda-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
}

.tienda-back-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: bold;
}

.tienda-main {
  padding: 2rem;
}

.tienda-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ------------------------------------------------
   PYME 360 LANDING PAGE STYLES
------------------------------------------------ */


/* HERO */
.pyme-hero {
  padding: 5rem 0 4rem;
  text-align: center;
}

.pyme-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  max-width: 900px;
  margin: 0 auto 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.micro-trust {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  opacity: 0.8;
}

/* PAIN POINTS */
.pain-list {
  list-style: none;
  padding: 0;
  font-size: 1.05rem;
  max-width: 800px;
  margin: 0 auto;
}

.pain-list li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.5rem;
}

.pain-list li::before {
  content: "❌";
  position: absolute;
  left: 0;
  font-size: 0.8em;
  top: 3px;
}

/* STEPS GRID */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.step-card {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  position: relative;
}

.step-num {
  font-size: 3rem;
  font-weight: bold;
  opacity: 0.1;
  position: absolute;
  top: 10px;
  right: 20px;
}

/* RESULTS GRID */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.result-card {
  background: var(--color-surface);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-primary);
}

.result-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.result-impact {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 500;
}

/* IA SECTION */
.benefit-list {
  list-style: none;
  padding: 0;
}

.benefit-list li {
  margin-bottom: 0.8rem;
  padding-left: 1.2rem;
  border-left: 2px solid var(--color-primary);
}

/* MODULES MENU */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.module-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.module-card h3 {
  color: var(--color-primary);
  margin-top: 0;
  font-size: 1.4rem;
}

.module-sub {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
}

.module-includes {
  margin-bottom: auto;
  padding-left: 1.2rem;
  color: var(--color-text-muted);
}

.module-result {
  margin-top: 1rem;
  background: rgba(0, 173, 181, 0.1);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

/* OFFER BOX */
.offer-section {
  background: var(--color-primary-soft);
}

.offer-box {
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.offer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  text-align: left;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .offer-cols {
    grid-template-columns: 1fr;
  }
}

.check-list,
.x-list {
  list-style: none;
  padding: 0;
}

.check-list li::before {
  content: "✓ ";
  color: var(--color-primary);
  font-weight: bold;
}

.x-list li::before {
  content: "× ";
  color: #ff4757;
  font-weight: bold;
}

.price-line {
  font-size: 1.2rem;
  margin: 2rem 0;
}

.offer-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

/* FAQ */
.faq-list details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  margin-bottom: 0.8rem;
  border-radius: var(--radius-md);
  padding: 1rem;
}

.faq-list summary {
  font-weight: 600;
  cursor: pointer;
}

/* STICKY MOBILE */
.sticky-cta-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 1rem;
  display: none;
  /* Desktop default */
  justify-content: center;
  gap: 1rem;
  z-index: 100;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .sticky-cta-mobile {
    display: flex;
  }

  .whatsapp-float-btn {
    bottom: 80px;
    /* Raise above sticky bar */
  }
}

/* =========================================
   PORTAL / DEMO PAGE STYLES
   ========================================= */

.portal-body {
  background-color: var(--bg-color, #222831);
  color: var(--text-color, #EEEEEE);
  font-family: 'Inter', sans-serif;
  height: 100vh;
  overflow: hidden;
}

.portal-container {
  display: grid;
  grid-template-columns: 1fr 350px;
  height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  background-color: var(--bg-card, #222831);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

/* --- Menu Section (Left) --- */
.menu-section {
  padding: 2rem;
  overflow-y: auto;
  background-color: var(--bg-color, #222831);
}

.portal-header {
  margin-bottom: 2rem;
}

.portal-header h1 {
  font-size: 2.5rem;
  color: var(--text-color, #EEEEEE);
}

.portal-header .highlight {
  color: var(--primary-color, #00ADB5);
}

.categories-nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.category-btn {
  background: var(--bg-card, #393E46);
  border: 1px solid var(--border-color, #30475E);
  color: var(--text-color, #EEEEEE);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.category-btn:hover,
.category-btn.active {
  background: var(--primary-color, #00ADB5);
  color: #fff;
  border-color: var(--primary-color, #00ADB5);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background-color: var(--bg-card, #393E46);
  border: 1px solid var(--border-color, #30475E);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color, #00ADB5);
}

.product-pulse-container {
  position: relative;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
  background-color: var(--bg-color, #222831);
}

.pulse-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 2;
  animation: pulseFade 8s infinite;
}

@keyframes pulseFade {

  0%,
  40% {
    opacity: 1;
  }

  50%,
  90% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.pulse-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
  padding: 1rem;
  background-color: var(--bg-card, #393E46);
}

.pulse-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-color, #EEEEEE);
}

.pulse-info .price {
  font-family: 'Fira Code', monospace;
  color: var(--primary-color, #00ADB5);
  font-size: 1.2rem;
  font-weight: bold;
}

.add-to-cart-btn {
  margin-top: 1rem;
  background-color: var(--secondary-color, #30475E);
  color: #fff;
  border: none;
  padding: 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
  font-weight: 500;
}

.add-to-cart-btn:hover {
  background-color: var(--primary-color, #00ADB5);
}

/* --- Cart Section (Right) --- */
.cart-section {
  background-color: #1b2028;
  border-left: 1px solid var(--border-color, #30475E);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cart-header {
  padding: 1.5rem;
  background-color: var(--bg-card, #393E46);
  border-bottom: 1px solid var(--border-color, #30475E);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  font-size: 1.2rem;
  margin: 0;
  color: var(--text-color, #EEEEEE);
}

.cart-items-container {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
}

.cart-item {
  background-color: var(--bg-color, #222831);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid transparent;
}

.cart-item:hover {
  border-color: var(--primary-color, #00ADB5);
}

.item-details h4 {
  margin: 0 0 0.3rem 0;
  font-size: 0.95rem;
  color: var(--text-color, #EEEEEE);
}

.item-details .item-price {
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  color: #ccc;
}

.item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  background: var(--bg-card, #393E46);
  border: 1px solid #30475E;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  border-color: var(--primary-color, #00ADB5);
}

.item-qty {
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  min-width: 20px;
  text-align: center;
  color: var(--text-color, #EEEEEE);
}

.empty-cart-message {
  text-align: center;
  color: #888;
  margin-top: 2rem;
}

.cart-footer {
  padding: 1.5rem;
  background-color: var(--bg-card, #393E46);
  border-top: 1px solid var(--border-color, #30475E);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-color, #EEEEEE);
}

#cart-total-price {
  font-family: 'Fira Code', monospace;
  color: var(--primary-color, #00ADB5);
}

.btn-block {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--primary-color, #00ADB5);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-block:hover {
  background-color: #008c93;
}

/* Responsive PORTAL */
@media (max-width: 768px) {
  .portal-container {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }

  .portal-body {
    height: auto;
    overflow-y: auto;
  }

  .cart-section {
    border-left: none;
    border-top: 1px solid var(--border-color, #30475E);
    position: fixed;
    /* Changed from sticky to fixed */
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 50vh;
    z-index: 100;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    padding-bottom: env(safe-area-inset-bottom, 0);
    /* Safe area for mobile */
    box-sizing: border-box;
    background-color: var(--bg-card, #393E46);
    /* Ensure background is opaque */
  }

  /* Add spacer so content isn't hidden behind fixed cart */
  .portal-container {
    padding-bottom: 70px;
    /* Adjust based on cart height approx */
  }
}


/* FORM */
.pyme-form .form-group {
  margin-bottom: 1rem;
  text-align: left;
}

.pyme-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.pyme-form input,
.pyme-form select {
  width: 100%;
  padding: 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: inherit;
}

.pyme-form input:focus,
.pyme-form select:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* ------------------------------------------------
   INTERACTIVE QUOTE WIDGET (Redesign)
------------------------------------------------ */
.quote-widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.widget-step {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.widget-step.is-active {
  display: block;
}

.widget-title {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #fff;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.option-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.option-card:hover {
  background: rgba(0, 173, 181, 0.1);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.option-card.is-selected {
  background: rgba(0, 173, 181, 0.2);
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(0, 173, 181, 0.2);
}

.option-icon {
  font-size: 1.5rem;
}

.option-info h4 {
  margin: 0 0 0.2rem 0;
  font-size: 1rem;
  color: #fff;
}

.option-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.widget-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
}

.btn-back {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

.btn-back:hover {
  text-decoration: underline;
  color: #fff;
}

/* WhatsApp Preview Box */
.whatsapp-preview {
  background: #000;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
  border-left: 4px solid #25D366;
  font-family: monospace;
  font-size: 0.85rem;
  color: #eee;
}

.whatsapp-preview::before {
  content: "Mensaje a enviar:";
  display: block;
  font-size: 0.7rem;
  color: #888;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

/* =========================================
   METODO PYME STYLES (Extracted from metodo-pyme.html)
   ========================================= */

.floating-whatsapp-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  box-shadow: var(--shadow);
}

.hero-label {
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.intro-paragraph {
  max-width: 600px;
  margin-bottom: 2rem;
}

.final-phrase {
  margin-top: 1.5rem;
  font-weight: 500;
  color: var(--color-primary);
}

.section-border-top {
  border-top: 1px solid var(--color-border);
}

.corporate-list {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
}

.corporate-link {
  font-size: 1.1rem;
}

.form-container-limit {
  max-width: 600px;
}

.btn-full-width {
  width: 100%;
  margin-top: 1rem;
}

.testimonials-placeholder {
  margin: 2rem 0;
  font-style: italic;
  color: var(--color-text-muted);
}

.guarantee-box {
  border: 1px solid var(--color-primary);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  display: inline-block;
}

.guarantee-box h3 {
  margin-top: 0;
  color: var(--color-primary);
}



/* =========================================
   RADAR INDUSTRIAL STYLES (Extracted from radar-industrial.html)
   ========================================= */

.relative-z2 {
  position: relative;
  z-index: 2;
}

.box-spacing {
  margin-top: 1.4rem;
}

.hero-cta-small {
  margin-top: 0.9rem;
}

.industries-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--color-text-muted);
}

.faq-text {
  margin: 0;
  color: var(--color-text-muted);
}

.contact-action-space {
  margin-top: 1rem;
}

/* =========================================
   GLOBAL UTILITY STYLES (Extracted from multiple files)
   ========================================= */

.btn-login {
  margin-left: 0.5rem;
}

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

/* =========================================
   PLANES WEB PAGES STYLES (Extracted from planes-web.html)
   ========================================= */

.pyme-hero {
  padding: 4rem 0 3rem;
  background: radial-gradient(circle at center, #2f3640 0%, #222831 100%);
  text-align: center;
}

.pyme-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  line-height: 1.2;
  background: linear-gradient(to right, #fff, #00ADB5);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Plan Cards */
.plan-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 173, 181, 0.15);
  border-color: var(--color-primary);
}

.plan-profile {
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.plan-card.featured {
  border: 2px solid var(--color-primary);
  background: rgba(0, 173, 181, 0.03);
  position: relative;
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #000;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
}

.plan-header {
  text-align: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1.5rem;
}

.plan-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.plan-title {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  color: #fff;
}

.plan-desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.plan-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  flex-grow: 1;
}

.plan-benefits li {
  margin-bottom: 0.8rem;
  padding-left: 1.2rem;
  position: relative;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.plan-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

.plan-benefits li.disabled {
  color: rgba(255, 255, 255, 0.2);
  text-decoration: line-through;
}

.plan-benefits li.disabled::before {
  content: "×";
  color: rgba(255, 255, 255, 0.2);
}

.plan-price {
  text-align: center;
  margin-bottom: 1.5rem;
}

.price-tag {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
}

.price-sub {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.plan-card .btn {
  margin-top: auto;
  width: 100%;
}

.plan-reqs {
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--color-border);
}

.plan-reqs h5 {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  color: #fff;
}

.plan-reqs ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plan-reqs li {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
  position: relative;
  color: var(--color-text-muted);
}

.plan-reqs li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

/* Problem Cards */
.problem-card {
  background: rgba(255, 0, 0, 0.03);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #ff4d4d;
  display: flex;
  flex-direction: column;
}

.problem-card h4 {
  margin-top: 0;
  color: #ff4d4d;
}

.problem-card__symptom {
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.problem-card__list {
  padding-left: 1.2rem;
  margin: 0.5rem 0 1rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.problem-card__footer {
  margin-top: auto;
  font-size: 0.9rem;
  color: #fff;
  border-top: 1px dashed rgba(255, 77, 77, 0.3);
  padding-top: 0.8rem;
}

/* Use Case Cards (Positive) */
.use-case-card {
  background: rgba(0, 173, 181, 0.03);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--color-primary);
  display: flex;
  flex-direction: column;
}

.use-case-card h4 {
  margin-top: 0;
  color: var(--color-primary);
}

.use-case-card__scenario {
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.use-case-card p {
  margin-top: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Table Enhancements for Dark Mode */
.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: var(--color-surface);
  z-index: 10;
  font-weight: 500;
}

.comparison-table thead th {
  background: rgba(0, 0, 0, 0.2);
  color: var(--color-primary);
  font-size: 1.1rem;
}

.comparison-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}



/* FAQ Call to Action Box */
.faq-cta-box {
  background: linear-gradient(135deg, rgba(34, 40, 49, 0.9), rgba(0, 173, 181, 0.08));
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 3rem auto 0;
  max-width: 650px;
  box-shadow: 0 0 25px rgba(0, 173, 181, 0.1);
  position: relative;
  overflow: hidden;
}

.faq-cta-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.faq-cta-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  animation: float 3s ease-in-out infinite;
}

.faq-cta-box h3 {
  color: #fff;
  font-size: 1.4rem;
  margin: 0 0 0.8rem;
}

.faq-cta-box p {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-6px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Glassmorphism Card (for Thank You page etc) */
.glass-card {
  background: rgba(34, 40, 49, 0.7);
  /* Dark semi-transparent */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* Subtle border */
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass-card h1 {
  margin-top: 0.5rem;
  color: #fff;
}

.glass-card .section-intro {
  margin-bottom: 0;
  color: var(--color-text-muted);
}

.module-icon {
  display: block;
  margin: 0 auto 1rem;
  width: 48px;
  height: 48px;
  stroke: var(--color-primary);
}

/* ========================================
   COOKIE CONSENT BANNER
   ======================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #222831;
  /* Dark background */
  color: #eeeeee;
  padding: 1rem 0;
  z-index: 10000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  /* Enabled by default, JS will toggle */
  transition: transform 0.3s ease-in-out;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.cookie-banner__text {
  font-size: 0.9rem;
  margin-right: 1.5rem;
  line-height: 1.5;
}

.cookie-banner__text a {
  color: #00ADB5;
  /* Primary color */
  text-decoration: underline;
}

.cookie-banner__text a:hover {
  text-decoration: none;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
}

.cookie-banner__btn {
  background: linear-gradient(135deg, #00fff5, #00ADB5);
  color: #111318;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 14px 30px rgba(0, 173, 181, 0.4);
  transition: all 0.3s ease;
}

.cookie-banner__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(0, 173, 181, 0.5);
}

.cookie-banner__btn:active {
  transform: translateY(1px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cookie-banner__container {
    flex-direction: column;
    text-align: center;
  }

  .cookie-banner__text {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .cookie-banner__actions {
    width: 100%;
    justify-content: center;
  }

  .cookie-banner__btn {
    width: 100%;
    max-width: 200px;
  }
}

/* =========================================
   LEGAL PAGES STYLES (Enforce Theme Colors)
   ========================================= */
.privacy-content a,
.legal-document a,
.data-deletion-content a,
.terms-nav a {
  color: var(--color-primary);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.privacy-content a:hover,
.legal-document a:hover,
.data-deletion-content a:hover,
.terms-nav a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Legal Content Layout Constraints */
.legal-document,
.data-deletion-content,
.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  border-bottom: 1px solid var(--color-border);
  /* Subtle separator if needed */
  padding-bottom: 2rem;
}

/* Ensure terms layout fits within container nicely */
.terms-layout {
  /* max-width is handled by .container wrapper in HTML */
  width: 100%;
}



/* =========================================
   TERMS & CONDITIONS LAYOUT
   ========================================= */

.terms-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
  padding-bottom: 4rem;
}

.terms-sidebar {
  position: sticky;
  top: 100px;
  /* Adjust based on header height */
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 1rem;
}

.terms-nav h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
}

.terms-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.terms-nav li a {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 0.25rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
  transition: all 0.3s ease;
}

.terms-nav li a:hover {
  color: var(--color-text);
  border-left-color: var(--color-primary-soft);
}

.terms-nav li a.active {
  color: var(--color-primary);
  border-left-color: var(--color-primary);
  font-weight: 600;
}

/* Scrollbar customized for sidebar */
.terms-sidebar::-webkit-scrollbar {
  width: 4px;
}

.terms-sidebar::-webkit-scrollbar-thumb {
  background-color: var(--color-border);
  border-radius: 4px;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .terms-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .terms-sidebar {
    position: relative;
    top: 0;
    max-height: none;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1.5rem;
  }

  .terms-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .terms-nav li a {
    border-left: none;
    padding-left: 0;
    border-bottom: 2px solid transparent;
    padding-bottom: 0.25rem;
  }

  .terms-nav li a:hover {
    border-bottom-color: var(--color-primary-soft);
  }

  .terms-nav li a.active {
    border-left-color: transparent;
    border-bottom-color: var(--color-primary);
  }
}

/* =========================================
   HIGHLIGHTED SECTIONS (Terms & Conditions)
   ========================================= */

.highlight-section {
  background: linear-gradient(135deg, rgba(34, 40, 49, 0.8), rgba(0, 173, 181, 0.05));
  border: 1px solid rgba(0, 173, 181, 0.3);
  border-left: 4px solid var(--color-primary);
  padding: 2rem;
  margin: 2.5rem 0;
  border-radius: 0 0.75rem 0.75rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 173, 181, 0.15);
}

.highlight-section h2 {
  color: var(--color-primary);
  margin-top: 0;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* Specific Highlight for Navigation */
.terms-nav li a.highlight-nav-item {
  color: var(--color-primary);
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
}

.terms-nav li a.highlight-nav-item::before {
  content: "";
  /* Warning/Important icon */
  margin-right: 6px;
  font-size: 0.9em;
  filter: grayscale(100%);
  transition: filter 0.3s;
}

.terms-nav li a.highlight-nav-item:hover::before,
.terms-nav li a.highlight-nav-item.active::before {
  filter: grayscale(0%);
}

.terms-nav li a.highlight-nav-item.active {
  background: rgba(0, 173, 181, 0.1);
  border-radius: 4px;
  padding-left: 0.75rem;
  /* Adjust padding since border-left logic might conflict */
}


/* =========================================
   TECH STYLE HEADINGS (Legal Pages)
   ========================================= */

.legal-document h1,
.privacy-content h1,
.data-deletion-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #00ADB5 0%, #eeeeee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 10px 30px rgba(0, 173, 181, 0.2);
}

.legal-document h2,
.privacy-content h2,
.data-deletion-content h2 {
  font-size: 1.8rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, #00ADB5, #00fff5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
  width: 100%;
  /* Ensure transparency works across block */
}

/* Add a tech-style underline */
.legal-document h2::after,
.privacy-content h2::after,
.data-deletion-content h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  margin-top: 0.5rem;
  box-shadow: 0 0 10px var(--color-primary);
  border-radius: 2px;
}

.legal-document h3,
.privacy-content h3,
.data-deletion-content h3 {
  font-size: 1.3rem;
  color: #eeeeee;
  /* White text */
  margin-top: 2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}



/* ------------------------------------------------
   BANDEJA UNIFICADA PAGE STYLES
------------------------------------------------ */

.inbox-page .hero-media img {
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  width: 64px;
  height: 64px;
  line-height: 64px;
  text-align: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Comparison Table */
.comparison-wrapper {
  overflow-x: auto;
  margin-top: 2rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  background: var(--color-surface);
}

.comparison-table th,
.comparison-table td {
  padding: 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.comparison-table th {
  background: rgba(0, 0, 0, 0.2);
  font-weight: 600;
  color: var(--color-text-muted);
}

.comparison-table th.my-solution-col {
  background: rgba(0, 173, 181, 0.1);
  color: var(--color-primary);
  border-top: 2px solid var(--color-primary);
}

.comparison-table td.positive {
  color: #4ade80;
  /* Green-400 equivalent */
  background: rgba(74, 222, 128, 0.05);
}

.comparison-table td.negative {
  color: #f87171;
  /* Red-400 equivalent */
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.legal-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
  font-style: italic;
  text-align: center;
}

/* =========================================
   DEMO PAGE STYLES (Moved from demo.html)
   ========================================= */

:root {
  --demo-bg: #222831;
  --demo-card: #393E46;
  --demo-text: #EEEEEE;
  --demo-primary: #00ADB5;
  --demo-border: #30475E;
}

/* Override global cursor: none if present */
body.portal-body,
.portal-container,
button,
a,
div {
  cursor: default !important;
}

/* Ensure interactive elements have pointer */
button,
a,
.category-btn,
.product-card,
.qty-btn {
  cursor: pointer !important;
}

body.portal-body {
  background-color: var(--demo-bg);
  color: var(--demo-text);
  font-family: 'Inter', sans-serif;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  /* Disable user select for long press feel */
  user-select: none;
  -webkit-user-select: none;
}

.portal-container {
  display: grid;
  grid-template-columns: 1fr 350px;
  height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  background-color: var(--demo-bg);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  position: relative;
}

/* --- Menu Section --- */
.menu-section {
  padding: 2rem;
  overflow-y: auto;
  background-color: var(--demo-bg);
  scrollbar-width: thin;
  scrollbar-color: var(--demo-primary) var(--demo-bg);
}

.portal-header {
  margin-bottom: 2rem;
  animation: fadeInDown 0.8s ease;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-logo-area {
  width: 60px;
  height: 60px;
  background: var(--demo-card);
  border: 1px solid var(--demo-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.header-logo-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-logo-placeholder {
  font-size: 24px;
  color: var(--demo-primary);
}

.header-text h1 {
  font-size: 2.5rem;
  color: var(--demo-text);
  margin: 0 0 0.2rem 0;
  line-height: 1;
}

.header-text p {
  margin: 0;
  color: #aaa;
  font-size: 0.9rem;
}

.subtitle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-bank-toggle {
  background: transparent;
  border: 1px solid var(--demo-border);
  color: var(--demo-primary);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.btn-bank-toggle:hover {
  background: rgba(0, 173, 181, 0.1);
  border-color: var(--demo-primary);
}

.bank-info-container {
  background: rgba(34, 40, 49, 0.95);
  border: 1px solid var(--demo-border);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1rem;
  width: 100%;
  max-width: 400px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bank-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bank-item:last-child {
  border-bottom: none;
}

.bank-label {
  color: #aaa;
  font-size: 0.85rem;
  width: 60px;
}

.bank-value {
  color: #fff;
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  flex: 1;
  text-align: left;
  padding-left: 10px;
  word-break: break-all;
}

.btn-copy {
  background: transparent;
  border: none;
  color: var(--demo-primary);
  cursor: pointer;
  padding: 5px;
  transition: transform 0.2s;
}

.btn-copy:hover {
  transform: scale(1.1);
  color: #fff;
}

.portal-header .highlight {
  color: var(--demo-primary);
}

/* Categories Nav */
.categories-nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  animation: fadeIn 1s ease 0.2s backwards;
  flex-wrap: nowrap;
  /* Ensure they don't wrap */
  /* Scrollbar Styling */
  scrollbar-width: thin;
  scrollbar-color: var(--demo-primary) var(--demo-bg);
}

.categories-nav::-webkit-scrollbar {
  height: 4px;
  /* Thin scrollbar */
}

.categories-nav::-webkit-scrollbar-track {
  background: var(--demo-bg);
  border-radius: 4px;
}

.categories-nav::-webkit-scrollbar-thumb {
  background-color: var(--demo-primary);
  border-radius: 4px;
}

.category-btn {
  background: var(--demo-card);
  border: 1px solid var(--demo-border);
  color: var(--demo-text);
  padding: 0.6rem 1.8rem;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  /* Prevent shrinking */
}

.category-btn:hover {
  transform: translateY(-2px);
  border-color: var(--demo-primary);
  box-shadow: 0 5px 15px rgba(0, 173, 181, 0.2);
}

.category-btn.active {
  background: var(--demo-primary);
  color: #fff;
  border-color: var(--demo-primary);
  box-shadow: 0 0 20px rgba(0, 173, 181, 0.4);
}

/* GRID ANIMATION CONTAINER */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  perspective: 1000px;
}

.product-card {
  background-color: var(--demo-card);
  border: 1px solid var(--demo-border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  /* Faster for click feedback */
  position: relative;
  overflow: visible;
  /* Allow tooltip to overflow if needed, but absolute positioned */

  /* Initial State */
  opacity: 0;
  transform: translateY(50px) scale(0.9);
  animation: gridReveal 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;

  /* Touch/Click Feedback */
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Grid Reveal Animation */
@keyframes gridReveal {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }

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

.product-card:active {
  transform: scale(0.95) !important;
  background-color: #2b3038;
  border-color: var(--demo-primary);
}

.product-card:hover {
  /* Only hover effect on desktop, handled by :active on mobile mostly */
  border-color: var(--demo-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

/* Service Selection Overlay */
.service-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #222831;
  /* Theme dark background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  /* Highest priority */
  transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

.service-overlay.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.service-overlay-content {
  text-align: center;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
}

.service-overlay-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--demo-primary);
}

.service-overlay-content p {
  color: #ccc;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.overlay-logo {
  font-size: 4rem;
  color: var(--demo-primary);
  margin-bottom: 1rem;
  animation: bounce 2s infinite;
}

.overlay-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.service-card-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 2rem 1rem;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.service-card-btn:hover {
  background: rgba(0, 173, 181, 0.1);
  border-color: var(--demo-primary);
  transform: translateY(-5px);
}

.icon-circle {
  width: 60px;
  height: 60px;
  background: rgba(0, 173, 181, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--demo-primary);
  transition: all 0.3s ease;
}

.service-card-btn:hover .icon-circle {
  background: var(--demo-primary);
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 173, 181, 0.5);
}

.service-card-btn span {
  font-weight: 600;
  font-size: 1rem;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-20px);
  }

  60% {
    transform: translateY(-10px);
  }
}

/* Lightbox Styles */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
}

.lightbox-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-image {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--demo-primary);
}

.lightbox-overlay.visible .lightbox-image {
  transform: scale(1);
}

/* --- Service Options --- */
.service-options {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.service-btn {
  background: var(--demo-card);
  border: 1px solid var(--demo-border);
  color: var(--demo-text);
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  flex: 1;
  transition: all 0.3s;
  font-weight: 500;
  text-align: center;
  min-width: 120px;
}

.service-btn:hover {
  border-color: var(--demo-primary);
  background: #2b3038;
}

.service-btn.active {
  background: var(--demo-primary);
  color: #fff;
  border-color: var(--demo-primary);
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(0, 173, 181, 0.3);
}

.address-input-container,
.name-input-container {
  margin-bottom: 2rem;
  display: none;
  /* Hidden by default */
  animation: fadeIn 0.4s ease;
}

.address-input,
.name-input {
  width: 100%;
  background: var(--demo-card);
  border: 1px solid var(--demo-border);
  color: #fff;
  padding: 1rem;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  resize: none;
  outline: none;
  transition: border-color 0.3s;
}

.address-input:focus,
.name-input:focus {
  border-color: var(--demo-primary);
}

.product-info h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem 0;
  color: var(--demo-text);
  pointer-events: none;
}

.product-info .price {
  font-family: 'Fira Code', monospace;
  color: var(--demo-primary);
  font-size: 1.3rem;
  font-weight: bold;
  pointer-events: none;
}

.add-hint {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #888;
  opacity: 0.6;
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}

.add-hint i {
  color: var(--demo-primary);
}

/* --- Cart Section --- */
.cart-section {
  background-color: #1b2028;
  border-left: 1px solid var(--demo-border);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
  z-index: 10;
  overflow: hidden;
  /* Prevent grid item from growing */
  min-height: 0;
  /* Allow shrinking below content size */
}

.cart-header {
  padding: 1.8rem;
  background-color: var(--demo-card);
  border-bottom: 1px solid var(--demo-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  font-size: 1.3rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-items-container {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  min-height: 0;
  /* Crucial for nested flex scrolling */
}

.cart-item {
  background-color: var(--demo-bg);
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid transparent;
  animation: slideInRight 0.3s ease;
}

.cart-separator {
  padding: 0.8rem;
  margin: 1rem 0;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--demo-primary);
  font-weight: bold;
  border: 1px dashed var(--demo-border);
}

.btn-remove-sep {
  background: transparent;
  border: none;
  color: #ff4757;
  cursor: pointer;
  padding: 5px;
  font-size: 0.9rem;
  transition: transform 0.2s;
}

.btn-remove-sep:hover {
  transform: scale(1.1);
}

@keyframes slideInRight {
  from {
    transform: translateX(20px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.item-details h4 {
  margin: 0 0 0.3rem 0;
  font-size: 0.95rem;
}

.item-details .item-price {
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  color: #ccc;
}

.item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  background: var(--demo-card);
  border: 1px solid var(--demo-border);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.qty-btn:hover {
  border-color: var(--demo-primary);
  background: var(--demo-primary);
}

.item-qty {
  font-family: 'Fira Code', monospace;
  font-size: 1rem;
  min-width: 24px;
  text-align: center;
}

.cart-footer {
  padding: 1.8rem;
  background-color: var(--demo-card);
  border-top: 1px solid var(--demo-border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
  font-weight: bold;
}

#cart-total-price {
  font-family: 'Fira Code', monospace;
  color: var(--demo-primary);
}

.btn-whatsapp {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, #00ADB5 0%, #008c93 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  transition: all 0.3s;
  font-weight: bold;
  box-shadow: 0 5px 20px rgba(0, 173, 181, 0.3);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 173, 181, 0.5);
}

.cart-footer-actions {
  display: flex;
  gap: 10px;
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--demo-border);
  color: #aaa;
  padding: 1.2rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover {
  border-color: #ff4757;
  color: #ff4757;
  background: rgba(255, 71, 87, 0.1);
}

.empty-cart-message {
  text-align: center;
  color: #aaa;
  margin-top: 3rem;
  font-style: italic;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .portal-container {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .portal-body {
    overflow-y: auto;
    height: auto;
  }

  .cart-section {
    border-left: none;
    border-top: 1px solid var(--demo-border);
    position: sticky;
    bottom: 0;
    max-height: 50vh;
    z-index: 900;
  }

  /* Mobile Grid Optimization (Compact View) */
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .product-card {
    padding: 0.6rem;
    border-radius: 10px;
  }

  .product-info h3 {
    font-size: 0.85rem;
    margin-bottom: 0.15rem;
    line-height: 1.1;
  }

  .product-info .price {
    font-size: 0.9rem;
  }

  .btn-card-add {
    padding: 0.4rem;
    font-size: 0.8rem;
    gap: 4px;
    margin-top: 0.4rem;
  }

  .categories-nav {
    gap: 0.4rem;
  }

  .category-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
}

/* --- View Toggle (Header Button) --- */
.view-toggle-btn {
  background-color: var(--demo-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
}

.view-toggle-btn:hover {
  background-color: #008c93;
  transform: translateY(-1px);
}

/* Hide FAB styles */
/* (We are reusing the class but changing context) */

/* Full Cart View State */
body.view-cart-full .menu-section {
  display: none !important;
}

body.view-cart-full .portal-container {
  grid-template-columns: 1fr !important;
}

body.view-cart-full .cart-section {
  border-left: none;
  /* Use fixed positioning anchored to all sides */
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;

  width: 100% !important;
  height: auto !important;
  max-height: none !important;

  z-index: 9999;

  display: flex !important;
  flex-direction: column;

  /* Ensure footer isn't hidden by home indicator on iOS */
  padding-bottom: env(safe-area-inset-bottom, 20px);
  box-sizing: border-box;
  /* Include padding in calculations */
}

body.view-cart-full .cart-header,
body.view-cart-full .cart-footer {
  flex-shrink: 0;
  /* Prevent shrinking */
}

body.view-cart-full .cart-items-container {
  flex-grow: 1;
  overflow-y: auto;
  /* Scroll only items */
  height: auto;
}

@media (max-width: 768px) {

  /* Mobile Cart Optimization (Compact View) */
  .cart-header {
    padding: 0.6rem 0.8rem;
  }

  .cart-header h2 {
    font-size: 1rem;
  }

  .cart-items-container {
    padding: 0.8rem;
  }

  .cart-item {
    padding: 0.6rem;
    margin-bottom: 0.6rem;
  }

  .item-details h4 {
    font-size: 0.85rem;
  }

  .item-details .item-price {
    font-size: 0.75rem;
  }

  .qty-btn {
    width: 22px;
    height: 22px;
  }

  .btn-whatsapp {
    padding: 0.7rem;
    font-size: 0.95rem;
  }

  .cart-footer {
    padding: 1rem;
  }
}

/* --- Product Card Actions --- */
.card-actions {
  margin-top: 1rem;
}

.btn-card-add {
  width: 100%;
  padding: 0.8rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #00ADB5 0%, #008c93 100%);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 173, 181, 0.3);
}

.btn-card-add:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 173, 181, 0.5);
}

/* --- Interactive Guide Styles --- */
.guide-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.guide-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.guide-highlight {
  position: relative;
  z-index: 9999 !important;
  box-shadow: 0 0 0 4px var(--demo-primary), 0 0 0 5000px rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  background-color: var(--demo-card);
  transition: all 0.3s ease;
}

/* Fix for elements inside containers with lower z-index (like cart-section) */
.guide-parent-active {
  z-index: 10000 !important;
  position: relative;
}

.guide-tooltip {
  position: absolute;
  background: var(--demo-card);
  border: 1px solid var(--demo-primary);
  padding: 1rem;
  border-radius: 8px;
  color: #fff;
  z-index: 10000;
  width: 250px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  display: none;
  animation: fadeIn 0.3s ease;
}

.guide-tooltip h4 {
  color: var(--demo-primary);
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.guide-tooltip p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.4;
  color: #ddd;
}

.guide-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-guide-next,
.btn-guide-skip {
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  border: none;
}

.btn-guide-next {
  background: var(--demo-primary);
  color: #fff;
}

.btn-guide-skip {
  background: transparent;
  color: #aaa;
  border: 1px solid #555;
}

.btn-guide-skip:hover {
  border-color: #fff;
  color: #fff;
}

.btn-card-add:active {
  transform: scale(0.98);
}

/* =========================================
   LOGIN MODAL STYLES
   ========================================= */
/* =========================================
   GENERIC MODAL STYLES (Login, Info, etc.)
   ========================================= */
.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  /* Black w/ opacity */
  justify-content: center;
  align-items: center;
}

/* Open state triggered by JS */
.modal.is-open {
  display: flex !important;
}

.modal-content {
  background-color: var(--color-surface);
  margin: auto;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  width: 90%;
  max-width: 500px;
  /* Slightly wider to accommodate info content */
  position: relative;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
  animation: modalFadeIn 0.3s;
}

.close-modal {
  color: var(--color-text-muted);
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 20px;
}

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

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   TRIGGER STYLES (Info/Help Tips)
   ========================================= */
.info-trigger {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  background-color: var(--color-primary);
  /* Brand cyan */
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  margin-left: 5px;
  vertical-align: middle;
  transform: translateY(-1px);
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.info-trigger:hover {
  background-color: var(--color-bg-alt);
  /* Brand secondary blue */
  transform: translateY(-1px) scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* =========================================
   PARTICLE MENU (HERO)
   ========================================= */

.particle-menu-container {
  position: relative;
  width: 40%;
  max-width: 600px;
  margin: 2rem auto 0 0;
  /* Cargado a la izquierda */
  height: 250px;
  overflow: visible;
  border-radius: var(--radius-lg);
  background: transparent;
}

.particle-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-primary);
  color: var(--color-text);
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  z-index: 10;
  white-space: nowrap;

  /* Shared animation base */
  animation-timing-function: ease-in-out, linear;
  animation-iteration-count: infinite, infinite;
  animation-fill-mode: both, both;
}

.particle-btn i {
  color: var(--color-primary);
  font-size: 1rem;
  transition: color 0.3s ease;
}

.particle-btn:hover {
  scale: 1.1;
  background: var(--color-primary);
  color: #111;
  box-shadow: 0 8px 25px rgba(0, 173, 181, 0.6);
  z-index: 20;
  animation-play-state: paused;
}

.particle-btn:hover i {
  color: #111;
}

/* =========================================================
   📍 POSICIÓN INICIAL (CENTRO DE GRAVEDAD)
   "top" y "left" definen el punto exacto desde donde el botón
   va a comenzar a orbitar dentro del recuadro amarillo.
   
   - top: 0% es hasta arriba, 100% es hasta abajo.
   - left: 0% es izquierda total, 100% es derecha total.
   - Modificarlos mueve toda la órbita de ese botón de lugar.
   ========================================================= */

.particle-btn:nth-child(1) {
  top: 20%;
  /* Punto de inicio vertical */
  left: 30%;
  /* Punto de inicio horizontal */
  animation-name: floatOrbit1, particlePulse;
  /* ⏱️ VELOCIDAD: El primer número (40s) dicta cuánto tarda en dar una vuelta completa (su órbita). 
     Si quieres que se mueva más rápido, redúcelo (ej: 20s). Si quieres más lento, auméntalo (ej: 60s). */
  animation-duration: 40s, 15s;
  animation-delay: 0s, 2s;
  animation-direction: alternate, normal;
}

.particle-btn:nth-child(2) {
  top: 40%;
  left: 20%;
  animation-name: floatOrbit2, particlePulse;
  animation-duration: 50s, 15s;
  animation-delay: -5s, 5s;
  animation-direction: alternate-reverse, normal;
}

.particle-btn:nth-child(3) {
  top: 60%;
  left: 40%;
  animation-name: floatOrbit3, particlePulse;
  animation-duration: 44s, 15s;
  animation-delay: -10s, 8s;
  animation-direction: alternate, normal;
}

.particle-btn:nth-child(4) {
  top: 80%;
  left: 20%;
  animation-name: floatOrbit2, particlePulse;
  animation-duration: 56s, 15s;
  animation-delay: -15s, 11s;
  animation-direction: alternate, normal;
}

.particle-btn:nth-child(5) {
  top: 100%;
  left: 80%;
  animation-name: floatOrbit1, particlePulse;
  animation-duration: 48s, 15s;
  animation-delay: -20s, 14s;
  animation-direction: alternate-reverse, normal;
}

.particle-btn:nth-child(6) {
  top: 10%;
  left: 70%;
  animation-name: floatOrbit3, particlePulse;
  animation-duration: 45s, 15s;
  animation-delay: -12s, 17s;
  animation-direction: alternate, normal;
}

/* =========================================================
   🔘 TAMAÑO DE LAS ÓRBITAS (MOVIMIENTO)
   Los porcentajes en "translate(X, Y)" indican cuánto se 
   aleja el botón de su centro.
   
   - Valores grandes (ej: 100%, 120%) = Órbitas muy amplias.
   - Valores chicos (ej: 20%, 30%) = Movimiento corto/tímido.
   - Si aumentas la órbita sin subir los segundos en "animation-duration" (más arriba), 
     los botones viajarán más rápido para cubrir la nueva distancia.
   ========================================================= */
@keyframes floatOrbit1 {
  0% {
    transform: translate(-100%, -120%);
  }

  33% {
    transform: translate(20%, -40%);
  }

  66% {
    transform: translate(-20%, 60%);
  }

  100% {
    transform: translate(60%, 20%);
  }
}

@keyframes floatOrbit2 {
  0% {
    transform: translate(60%, -80%);
  }

  33% {
    transform: translate(-40%, 20%);
  }

  66% {
    transform: translate(40%, 60%);
  }

  100% {
    transform: translate(-60%, -40%);
  }
}

@keyframes floatOrbit3 {
  0% {
    transform: translate(-40%, 60%);
  }

  33% {
    transform: translate(60%, -60%);
  }

  66% {
    transform: translate(-60%, -20%);
  }

  100% {
    transform: translate(20%, 40%);
  }
}

/* Pulsing effect to catch the eye */
@keyframes particlePulse {

  0%,
  90% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-color: var(--color-primary);
  }

  95% {
    box-shadow: 0 0 25px rgba(0, 173, 181, 0.8), 0 0 40px rgba(0, 173, 181, 0.4);
    border-color: #fff;
    filter: brightness(1.2);
  }

  100% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-color: var(--color-primary);
  }
}

@media (max-width: 820px) {
  .hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-visual-column {
    order: -1;
  }

  .particle-menu-container {
    width: 100%;
    height: 200px;
    margin-top: 1rem;
  }

  .particle-btn {
    font-size: 0.8rem;
    padding: 8px 14px;
  }
}

/* Portal Back Button */
.portal-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--demo-primary, #00ADB5);
  background: rgba(0, 173, 181, 0.1);
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 173, 181, 0.2);
  margin-right: 15px;
}

.portal-back-btn:hover {
  background: var(--demo-primary, #00ADB5);
  color: #111318;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 173, 181, 0.4);
}