@font-face {
  font-family: "Bubbleboddy";
  src: url("Bubbleboddy-Neue-Trial-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

:root {
  --primary-blue: #305dbf;
  --light-blue: #3b82f6;
  --dark-bg: #0f172a;
  --color-principal: #163c7a;
}

body {
  font-family: "Bubbleboddy", sans-serif;
  overflow-x: hidden !important;
  width: 100% !important;
}

* {
  font-family: "Bubbleboddy", sans-serif;
}

/* HERO SECTION */
.hero-section {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #1e3a8a 100%);
  color: white;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;

}

.hero-section {
  min-height: 70vh;
  /* Ajusta la altura total del hero (antes podría ser 100vh) */
  display: flex;
  align-items: center;
  /* Centra verticalmente el contenido */
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle,
      rgba(59, 130, 246, 0.15),
      transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-section::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-section p {
  font-size: 1.1rem;
  opacity: 0.95;
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 600px;
}

.badge-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  width: fit-content;
}

.btn-hero {
  padding: 12px 32px;
  font-weight: 700;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-hero.btn-primary {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.btn-hero.btn-primary:hover {
  background: var(--light-blue);
  border-color: var(--light-blue);
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4);
}

.btn-hero.btn-outline-light {
  border-width: 2px;
  color: white;
}

.btn-hero.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transform: translateY(-2px);
}

.proof-items {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  opacity: 0.85;
}

.proof-item i {
  color: #60a5fa;
  font-size: 1.2rem;
}

.video-section {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.video-section video {
  width: 100%;
  height: 30%;
  display: block;
  background: #000;
}

/* STATS SECTION */
.stats-section {
  background: #f8f9fa;
  padding: 80px 0;
}

.stat-box {
  text-align: center;
  padding: 40px 20px;
}

.color-dos {
  color: rgb(138, 255, 80);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

.logos-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  opacity: 0.7;
}

.logo-item img {
  max-height: 80px;
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.logo-item img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 6px 16px rgba(37, 99, 235, 0.3));
}

/* FEATURES SECTION */
.features-section {
  background: white;
  padding: 80px 0;
}

.feature-card {
  padding: 40px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  background: #f9fafb;
  height: 100%;
}

.feature-card:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.1);
  transform: translateY(-4px);
}

.color-principal {
  color: var(--color-principal);
}

.fondo-principal {
  background-color: var(--color-principal);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.feature-card h5 {
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.feature-card p {
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* HOW IT WORKS PAGE */
.how-it-works {
  background: #f8f9fa;
  padding: 0px 0 90px;
  position: relative;
  overflow: hidden;
}

.how-it-works::before {
  content: "";
  position: absolute;
  top: 10%;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.how-it-works::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.how-it-works .badge-kicker {
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: #0f172a;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.08);
}

.how-it-works h1 {
  color: var(--color-principal);
}

.how-it-works p {
  color: #475569;
}

.how-step {
  border: 1px solid rgba(37, 99, 235, 0.35);
  background: #ffffff;
  border-left: 6px solid rgba(37, 99, 235, 0.85);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  overflow: hidden;
  min-height: 330px;
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.12);
}

.how-step:hover {
  transform: translateY(-10px);
  box-shadow: 0 34px 60px rgba(37, 99, 235, 0.25);
  border-color: rgba(37, 99, 235, 0.55);
}

.how-step .step-badge {
  width: 66px;
  height: 66px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(140deg, var(--color-principal), rgba(59, 130, 246, 0.85));
  color: white;
  font-weight: 700;
  font-size: 1.4rem;
  box-shadow: 0 14px 22px rgba(37, 99, 235, 0.22);
}

.how-step .step-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 18px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.1);
}

.how-step .step-icon i {
  font-size: 1.7rem;
  color: var(--color-principal);
}

.how-step .card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0.5rem;
  color: var(--color-principal);
}

.how-step .card-text {
  color: rgba(15, 23, 42, 0.75);
  margin-bottom: 0;
}

.how-it-works .btn-primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border: none;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.25);
}

.how-it-works .btn-outline-primary {
  border-color: rgba(37, 99, 235, 0.45);
  color: rgba(15, 23, 42, 0.9);
}

.how-it-works .btn-outline-primary:hover {
  background: rgba(37, 99, 235, 0.1);
}

@media (max-width: 767px) {
  .how-it-works {
    padding: 70px 0;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    padding: 80px 0 60px;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

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

  .btn-hero {
    padding: 10px 24px;
    font-size: 0.95rem;
  }
}

/*DIEGO*/
.object-fit-cover {
  object-fit: cover;
}

.tracking-wide {
  letter-spacing: 1px;
}

.bg-opacity-10 {
  --bs-bg-opacity: 0.1;
}

.card-animation {
  transition: transform 1s;
}

.card-animation:hover {
  transform: scale(105%);
}

/* TESTIMONIOS SECTION */
.testimonios-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.testimonios-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.testimonios-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.testimonios-header .badge-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.testimonios-header h2 {
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-principal);
  margin-bottom: 16px;
  line-height: 1.2;
}

.testimonios-header p {
  font-size: 1.2rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 1;
}

.testimonio-card {
  background: white;
  border-radius: 12px;
  padding: 36px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.2);
}

.testimonio-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  color: #fbbf24;
}

.testimonio-stars i {
  font-size: 1.1rem;
}

.testimonio-text {
  font-size: 1.1rem;
  color: #374151;
  font-weight: 500;
  line-height: 1.8;
  margin-bottom: 24px;
  flex: 1;
  font-style: italic;
  position: relative;
  padding-left: 20px;
}

.testimonio-text::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -40px;
  font-size: 3rem;
  color: var(--light-blue);
  opacity: 0.3;
  font-weight: bold;
}

.testimonio-author {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.testimonio-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-principal), var(--light-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.testimonio-info {
  flex: 1;
}

.testimonio-name {
  font-weight: 700;
  color: var(--dark-bg);
  margin-bottom: 4px;
  font-size: 1rem;
}

.testimonio-organization {
  font-size: 0.95rem;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 6px;
}

.testimonio-shield {
  font-size: 1.2rem;
  color: var(--primary-blue);
}

@media (max-width: 768px) {
  .testimonios-header h2 {
    font-size: 2rem;
  }

  .testimonios-grid {
    grid-template-columns: 1fr;
  }

  .testimonio-card {
    padding: 24px;
  }
}


/*mi parte*/

/* Animación de entrada suave hacia arriba */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* Aplicamos la animación a los elementos */
.animate-item {
  animation: fadeInUp 1s ease forwards;
}

/* Retrasos para que aparezcan en cascada */
.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

.delay-4 {
  animation-delay: 0.8s;
}

/*otra parte mia*/
/* Base de la tarjeta: define la velocidad de la animación */
.transition-card {
  transition: all 0.3s ease-in-out;
  /* Suaviza el cambio de forma y sombra */
  background-color: #ffffff;
  /* Asegura un fondo sólido */
}

/* Efecto al pasar el ratón */
.transition-card:hover {
  transform: scale(1.04);
  /* Crece un 4% */
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15) !important;
  /* Aumenta la sombra para dar profundidad */
  z-index: 10;
  /* Asegura que se ponga por encima de otras tarjetas */
}

/*mi parte*/

/* Animación de entrada suave hacia arriba */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* Aplicamos la animación a los elementos */
.animate-item {
  animation: fadeInUp 1s ease forwards;
}

/* Retrasos para que aparezcan en cascada */
.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

.delay-4 {
  animation-delay: 0.8s;
}

/*otra parte mia*/
/* Base de la tarjeta: define la velocidad de la animación */
.transition-card {
  transition: all 0.3s ease-in-out;
  /* Suaviza el cambio de forma y sombra */
  background-color: #ffffff;
  /* Asegura un fondo sólido */
}

/* Efecto al pasar el ratón */
.transition-card:hover {
  transform: scale(1.04);
  /* Crece un 4% */
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15) !important;
  /* Aumenta la sombra para dar profundidad */
  z-index: 10;
  /* Asegura que se ponga por encima de otras tarjetas */
}

.hero-section .hero-video {
  width: 80%;
  /* Ajusta el porcentaje a tu gusto */
  max-width: 500px;
  /* Tamaño máximo opcional */
  height: auto;
  /* Mantiene la proporción */
  display: block;
  margin: 0 auto;
  /* Centra el video */
  border-radius: 12px;
  /* Opcional: esquinas redondeadas */
}

.hero-section .video-section {
  display: flex;
  justify-content: center;
  /* Centrado horizontal */
}

.hero-section .hero-video {
  width: 80%;
  /* Ajusta ancho del video */
  max-width: 400px;
  /* Tamaño máximo */
  height: auto;
  /* Mantener proporción */
  border-radius: 12px;
  /* Opcional */
}

/* =========================================
   MODO OSCURO - COBERTURA TOTAL Y AGRESIVA
   ========================================= */

/* 1. Fondo general y Secciones (Forzando sobre Bootstrap) */
body.dark-mode,
body.dark-mode .bg-light,
body.dark-mode .bg-white,
body.dark-mode section,
body.dark-mode header,
body.dark-mode footer,
body.dark-mode .hero-section,
body.dark-mode .how-it-works,
body.dark-mode .stats-section,
body.dark-mode .features-section,
body.dark-mode .testimonios-section,
body.dark-mode .container-fluid {
  background-color: #121212 !important;
  background-image: none !important;
  /* Mata cualquier gradiente persistente */
  color: #ffffff !important;
}

/* 2. Textos principales (Matando .text-dark de Bootstrap) */
body.dark-mode,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode .text-dark,
body.dark-mode .card-title,
body.dark-mode .testimonio-name,
body.dark-mode .stat-number {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  /* Arreglo para el gradiente del stat-number */
}

/* 3. Tarjetas y contenedores (Para que no queden grises o blancas) */
body.dark-mode .card,
body.dark-mode .testimonio-card,
body.dark-mode .feature-card,
body.dark-mode .how-step,
body.dark-mode .stat-box,
body.dark-mode .transition-card,
body.dark-mode .timeline-item .bg-white {
  background-color: #1e1e1e !important;
  background-image: none !important;
  border-color: #333 !important;
  color: #ffffff !important;
}

/* 4. Efectos Hover en Tarjetas */
body.dark-mode .card:hover,
body.dark-mode .testimonio-card:hover,
body.dark-mode .feature-card:hover,
body.dark-mode .how-step:hover,
body.dark-mode .transition-card:hover {
  background-color: #2a2a2a !important;
  background-image: none !important;
  border-color: var(--primary-blue) !important;
}

/* 5. Textos secundarios y párrafos (Matando .text-muted) */
body.dark-mode p,
body.dark-mode span,
body.dark-mode .text-muted,
body.dark-mode .testimonio-text,
body.dark-mode .card-text,
body.dark-mode .stat-label {
  color: #b0b0b0 !important;
}

/* 6. Arreglos específicos para timeline y carrusel */
body.dark-mode .timeline-track {
  background-color: transparent !important;
}

body.dark-mode .timeline-prev,
body.dark-mode .timeline-next {
  background-color: #2a2a2a !important;
  color: #ffffff !important;
  border: 1px solid #444 !important;
}

body.dark-mode .timeline-prev:hover,
body.dark-mode .timeline-next:hover {
  background-color: var(--primary-blue) !important;
}

/* 7. Matar brillos de fondo molestos */
body.dark-mode .hero-section::before,
body.dark-mode .hero-section::after,
body.dark-mode .how-it-works::before,
body.dark-mode .how-it-works::after,
body.dark-mode .testimonios-section::before {
  opacity: 0.02 !important;
  background: transparent !important;
}

/* 8. Transición suave */
body * {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Botón Flotante Dark Mode */
.dark-mode-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #0d6efd;
  /* Color primario */
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1.5rem;
}

/* Hover */
.dark-mode-fab:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Mostrar solo un icono a la vez */
.dark-mode-fab .fa-sun {
  display: none;
}

body.dark-mode .dark-mode-fab .fa-moon {
  display: none;
}

body.dark-mode .dark-mode-fab .fa-sun {
  display: inline-block;
}

/* Cambiar color de fondo y del icono en modo oscuro */
body.dark-mode .dark-mode-fab {
  background: #f8f9fa;
  color: #212529;
}

/* Ajuste opcional para móviles */
@media (max-width: 768px) {
  .dark-mode-fab {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
}

/* FIX BOTÓN CTA EN MODO OSCURO */
/* BOTÓN CTA EN MODO OSCURO */
body.dark-mode .cta-demo-btn {
  background-color: #ffffff !important;
  color: #0d6efd !important;
  border: 2px solid #ffffff !important;
  /* 👈 borde blanco */
}

/* HOVER */
body.dark-mode .cta-demo-btn:hover {
  background-color: transparent !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  /* 👈 se mantiene blanco */
}

/* ARREGLAR HOVER BOTÓN CONTACTO EN MODO OSCURO */
body.dark-mode .cta-demo-btn:hover {
  background-color: transparent !important;
  /* quitamos el blanco */
  color: #ffffff !important;
  /* texto blanco */
  border: 2px solid #ffffff !important;
  /* borde blanco */
  box-shadow: none !important;
  /* opcional: sin efecto raro */
}

.melampo-brand__icon {
  display: flex;
  align-items: center;
}

.melampo-brand__icon img {
  display: block;
  height: 46px;
  width: auto;
}

.timeline-indicators {
  visibility: hidden;
}

/* Estilos para los indicadores del carrusel */
.timeline-indicators .indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
}

.timeline-indicators .indicator.active {
  background-color: #0d6efd;
  transform: scale(1.2);
}


/* Asegurar que el track tenga la transición */
.timeline-track {
  transition: transform 0.3s ease;
}

/* Estilos para los botones */
.timeline-prev,
.timeline-next {
  display: flex !important;
  /* Forzar display flex */
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.timeline-prev {
  margin-left: -24px;
}

.timeline-next {
  margin-right: -24px;
}

/* Estilos específicos para el timeline en móvil */
@media (max-width: 768px) {
  .timeline-item {
    flex: 0 0 calc(100% - 32px);
    /* Ocupa casi todo el ancho */
    max-width: calc(100% - 32px);
    margin: 0 16px;
  }

  .timeline-item .card {
    width: 100%;
  }

  .timeline-item .px-3 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}



/* ESTILOS PARA LA GALERÍA DE CAPTURAS DE PANTALLA */

/* Contenedor general para screenshots */
.screenshot-container {
  transition: all 0.3s ease;
  cursor: pointer;
  margin-top: 1rem;
  text-align: center;
}

.screenshot-container:hover .screenshot-img {
  transform: scale(1.02);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.05);
}

.screenshot-img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-height: 200px;
  width: auto;
  margin: 0 auto;
  display: block;
  border-radius: 12px;
  cursor: pointer;
}

/* Para que las imágenes se adapten bien en móviles */
@media (max-width: 768px) {
  .screenshot-img {
    max-height: 150px;
  }
}

/* Animación sutil de aparición (usando tu fadeInUp existente) */
.screenshot-container {
  animation: fadeInUp 0.6s ease forwards;
}

/* Estilo para el modal de imagen ampliada */
.modal-content.bg-transparent {
  background: transparent !important;
}

.modal-body {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.modal .btn-close-white {
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  padding: 0.75rem;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.modal .btn-close-white:hover {
  opacity: 1;
}

/* Ajuste para las tarjetas que contienen screenshots */
.card .screenshot-container {
  margin-top: 0.75rem;
}

/* ========== MODO OSCURO PARA LAS CAPTURAS ========== */

/* Modo oscuro para las imágenes y sus contenedores */
body.dark-mode .screenshot-img {
  filter: brightness(0.9);
}

body.dark-mode .screenshot-container:hover .screenshot-img {
  filter: brightness(1);
  box-shadow: 0 10px 25px -5px rgba(255, 255, 255, 0.1), 0 10px 10px -5px rgba(255, 255, 255, 0.05);
}

/* Modo oscuro para el modal */
body.dark-mode .modal .btn-close-red {
  background-color: red;
}

body.dark-mode .modal .btn-close-red:hover {
  background-color: red;
}

/* Asegurar que las tarjetas con screenshots tengan buen contraste en modo oscuro */
body.dark-mode .card .screenshot-container {
  background-color: transparent;
}




/* Nav flotante general */
.floating-nav {
  position: fixed !important;
  bottom: 30px !important;
  right: 30px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 15px !important;
  z-index: 999999 !important;
}

/* Estilos base para los items */
.floating-nav__item {
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  border: none !important;
  cursor: pointer !important;
}

.floating-nav__item i {
  line-height: 0 !important;
  font-size: 32px !important;
}

.floating-nav__item:hover {
  transform: scale(1.1) !important;
}

/* Estilos específicos para teléfono */
.floating-nav__item--phone {
  background-color: var(--primary-blue) !important;
  color: white !important;
}

.floating-nav__item--phone i {
  font-size: 26px !important;
}

.floating-nav__item--phone:hover {
  background-color: var(--color-principal) !important;
  color: white !important;
}

/* Estilos específicos para WhatsApp */
.floating-nav__item--whatsapp {
  background-color: #25d366 !important;
  color: white !important;
}

.floating-nav__item--whatsapp:hover {
  background-color: #128c7e !important;
}

/* Estilos específicos para modo oscuro (integrado) */
.floating-nav__item--darkmode {
  background-color: #383838 !important;
  color: white !important;
}

.floating-nav__item--darkmode:hover {
  transform: scale(1.1) rotate(15deg) !important;
  background-color: #000000 !important;
}

/* Mostrar solo un icono a la vez en el botón de modo oscuro */
.floating-nav__item--darkmode .fa-sun {
  display: none;
}

body.dark-mode .floating-nav__item--darkmode .fa-moon {
  display: none;
}

body.dark-mode .floating-nav__item--darkmode .fa-sun {
  display: inline-block;
}

/* Cambiar color del botón modo oscuro en modo oscuro */
body.dark-mode .floating-nav__item--darkmode {
  background-color: #f8f9fa !important;
  color: #212529 !important;
}

/* Ajuste para móviles */
@media (max-width: 576px) {
  .floating-nav {
    bottom: 20px !important;
    right: 20px !important;
    gap: 12px !important;
  }

  .floating-nav__item {
    width: 50px !important;
    height: 50px !important;
  }

  .floating-nav__item i {
    font-size: 24px !important;
  }

  .floating-nav__item--phone i {
    font-size: 20px !important;
  }
}
/* Estilo base para las secciones con marca de agua */
.imgagen {
    position: relative;
    overflow: hidden; /* Evita que la imagen se salga de la sección */
}

.imgagen::before {
    content: "";
    position: absolute;
    
    /* Centrado absoluto */
    top: 50%;
    left: 50%;
    /* El translate(-50%, -50%) es lo que hace que el centro de la imagen 
       coincida con el centro de la sección */
    transform: translate(-50%, -50%); 
    
    width: 900px;  /* Puedes hacerlo un poco más grande si quieres que destaque más */
    height: 900px;
    
    background-image: url('img/logo-melanpo-AAFF2.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    
    opacity: 0.05; /* Muy sutil para que no moleste al leer */
    z-index: 0;
    pointer-events: none; 
}

/* Aseguramos que el contenido (texto y tarjetas) esté por encima */
.how-it-works .container, 
.testimonios-section .container {
    position: relative;
    z-index: 1;
}