/* Variables de Color */
:root {
  --color-negro: #000000;
  --color-blanco: #fff;
  --color-azul: #4267B2;
  --color-boton: #ffe6bc;
  --color-fondo: #f7f1ea;
  --color-acento: #ff6b35;
  --color-boton_prim: #3B5999;
  --color-acento-prim: #000080;
  --color-exito: #2ecc71;
  --color-peligro: #e74c3c;
  --fuente-principal: "Poppins", sans-serif;
}

/* Reset y Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--fuente-principal);
  color: var(--color-negro);
  background-color: var(--color-fondo);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Navbar */
.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bg-cream {
  background-color: var(--color-fondo) !important;
}

.navbar-brand {
  font-size: 1.5rem;
  color: var(--color-negro) !important;
}

.navbar-brand i {
  color: var(--color-acento);
}

.nav-link {
  color: var(--color-negro) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--color-acento) !important;
  transform: translateY(-2px);
}

.btn-cta-nav {
  background-color: var(--color-azul);
  border-radius: 25px;
  padding: 0.5rem 1.5rem !important;
  font-weight: 600;
  color: var(--color-blanco) !important;
}

.btn-cta-nav:hover {
  background-color: var(--color-acento);
  color: white !important;
}

/* Hero Section */
.hero-section {
  padding: 60px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero-decoration {
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, var(--color-boton) 100%);
  z-index: -1;
  border-radius: 0 0 0 100px;
}

.badge-promo {
  background-color: var(--color-acento);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-weight: 600;
  display: inline-block;
}

.hero-content h1 {
  color: var(--color-negro);
  font-weight: 800;
  line-height: 1.2;
}

.hero-content .lead {
  font-size: 1.1rem;
  color: #555;
}

.hero-benefits {
  list-style: none;
  padding: 0;
}

.hero-benefits li {
  padding: 0.5rem 0;
  font-size: 1.1rem;
}

.hero-benefits i {
  color: var(--color-exito);
  margin-right: 0.5rem;
}

.hero-image {
  position: relative;
  padding: 5px;
}

.floating-badge {
  position: absolute;
  top: -20px;
  left: 0;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.price-badge {
  background: white;
  padding: 0.7rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.old-price {
  display: block;
  text-decoration: line-through;
  color: #999;
  font-size: 1.2rem;
}

.new-price {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-exito);
}

.discount {
  display: block;
  background: var(--color-peligro);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

/* Botones */
.btn-primary {
  background-color: var(--color-boton_prim);
  border: none;
  color: var(--color-blanco);
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background-color: var(--color-acento-prim);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.pulse-animation {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12); }
50% { box-shadow: 0 10px 30px rgba(66, 103, 178, 0.42); }
100% { box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12); }
}

/* Secciones */
.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-negro);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
}

/* Beneficios */
.beneficios-section {
  background-color: white;
}

.benefit-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-boton), var(--color-acento));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.benefit-icon i {
  font-size: 2rem;
  color: white;
}

.benefit-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.benefit-card p {
  color: #666;
  margin: 0;
  font-size: 1rem;
}

/* Bonos */
.bonos-section {
  background: linear-gradient(135deg, #f5f7fa 0%, var(--color-fondo) 100%);
}

.bonus-timer {
  background: var(--color-peligro);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  display: inline-block;
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 1rem;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%,
  50%,
  100% {
    opacity: 1;
  }
  25%,
  75% {
    opacity: 0.7;
  }
}

.bonus-category {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-negro);
  border-bottom: 3px solid var(--color-acento);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.bonus-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  height: 100%;
  padding-top: 28px; /* compensa el alto del badge */
}

.bonus-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.bonus-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  background: var(--color-exito);
  color: white;
  padding: 0.2rem 1rem;
  border-radius: 25px;
  font-weight: 700;
  z-index: 10;
  font-size: 0.8rem;
}

.bonus-card img {
  width: 100%;
  height: 300px;
  object-fit: contain;
}

.bonus-content {
  padding: 1.0rem;
}

.bonus-content h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-negro);
}

.bonus-content p {
  color: #666;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.bonus-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 1rem;
}

.free-tag {
  background: var(--color-exito);
  color: white;
  padding: 0.3rem 0.5rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 12px;
}

.total-value {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Formulario */
.form-section {
  background: linear-gradient(135deg, var(--color-acento), #ff8c61);
  color: white;
}

.form-container {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.form-header i {
  color: var(--color-acento);
}

.form-header h2 {
  color: var(--color-negro);
}

.form-header p {
  color: #666;
}

.form-label {
  font-weight: 600;
  color: var(--color-negro);
}

.form-control {
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--color-acento);
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.btn-whatsapp {
  background-color: #25d366;
  border: none;
  color: white;
}

.btn-whatsapp:hover {
  background-color: #128c7e;
  color: white;
}

/* Testimonios */
.testimonios-section {
  background: white;
}

.testimonial-card {
  background: var(--color-fondo);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.testimonial-rating i {
  color: #ffd700;
  font-size: 1.2rem;
}

.testimonial-text {
  font-style: italic;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 60px;
  height: 60px;
  background: var(--color-acento);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.testimonial-author h5 {
  margin: 0;
  font-weight: 700;
  color: var(--color-negro);
}

/* Garantía */
.garantia-section {
  background: linear-gradient(135deg, #f5f7fa 0%, white 100%);
}

.garantia-badge {
  width: 70px;
  height: 70px;
  background: var(--color-exito);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.garantia-badge i {
  font-size: 3rem;
  color: white;
}

.garantia-list {
  list-style: none;
  padding: 0;
}

.garantia-list li {
  padding: 0.75rem 0;
  font-size: 1.1rem;
}

.garantia-list i {
  color: var(--color-exito);
  margin-right: 0.75rem;
  font-size: 1.2rem;
}

.lead {
  font-size: 1rem;
  font-weight: 300;
}

/* Final CTA */
.final-cta {
  background: linear-gradient(135deg, var(--color-negro), #333);
  color: white;
}

.final-cta h2 {
  color: white;
}

.btn-cta-final {
  font-size: 1.2rem;
  padding: 1.25rem 3rem;
}

.price-pack {

  font-size: 1rem !important;
}

/* Footer */
.footer {
  background-color: var(--color-negro);
  color: white;
}

.footer a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: white;
}

/* WhatsApp Flotante */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
  animation: bounce 2s infinite;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
  color: white;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    padding: 40px 0 30px;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .floating-badge {
    position: static;
    margin-top: 1rem;
    display: inline-block;
  }

  .form-container {
    padding: 2rem 1.5rem;
  }

  .bonus-card img {
    height: 250px;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    bottom: 20px;
    right: 20px;
  }
}

/* Animaciones adicionales */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.video-section {
    background-color: #f8f9fa;
}

.video-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

video {
    display: block;
    background-color: #000;
}

/* ============================================
   BOOTSTRAP CAROUSEL - DISEÑO PERSONALIZADO
   ============================================ */

.carousel-section {
  position: relative;
  width: 100%;
  margin: 90px auto 1rem auto;
  max-width: 1400px;
  padding: 0 15px;
}

#productCarousel {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* Imágenes del carousel */
.carousel-image {
  height: 600px;
  object-fit: contain;
  object-position: center;
}

/* Contenedor de caption personalizado */
.carousel-caption-custom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.7) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  padding: 3rem 2rem 3rem 2rem;
  text-align: center;
  color: white;
}

.carousel-caption-custom h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
  line-height: 1.2;
}

.carousel-caption-custom p {
  font-size: 1.2rem;
  margin-bottom: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* BOTONES DE NAVEGACIÓN (FLECHAS) PERSONALIZADOS */
.custom-carousel-control {
  width: 60px;
  opacity: 1;
  transition: all 0.3s ease;
}

.custom-carousel-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4267B2; /* Azul Facebook */
  font-size: 22px;
  transition: all 0.35s ease;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

/* HOVER EN AZUL - Como solicitaste */
.custom-carousel-control:hover .custom-carousel-icon {
  background: #4267B2; /* Azul Facebook en hover */
  color: white;
  transform: scale(1.15);
  box-shadow: 0 10px 35px rgba(66, 103, 178, 0.5);
}

.custom-carousel-control:focus .custom-carousel-icon {
  background: #3B5999; /* Azul más oscuro al hacer clic */
  color: white;
}

/* Posicionamiento de las flechas */
.carousel-control-prev {
  left: 30px;
}

.carousel-control-next {
  right: 30px;
}

/* INDICADORES (DOTS) PERSONALIZADOS */
.carousel-indicators {
  bottom: 30px;
  margin-bottom: 0;
}

.carousel-indicators [data-bs-target] {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  border: none;
  transition: all 0.3s ease;
  margin: 0 6px;
}

.carousel-indicators .active {
  width: 40px;
  border-radius: 7px;
  background-color: #4267B2; /* Azul Facebook */
  box-shadow: 0 0 20px rgba(66, 103, 178, 0.8);
}

/* Efecto de transición suave */
.carousel-item {
  transition: transform 0.8s ease-in-out;
}

/* Responsivo */
@media (max-width: 992px) {
  .carousel-image {
    height: 600px;
  }

  .carousel-caption-custom h3 {
    font-size: 2rem;
  }

  .carousel-caption-custom p {
    font-size: 1.1rem;
  }

  .custom-carousel-icon {
    width: 55px;
    height: 55px;
    font-size: 20px;
  }

  .carousel-control-prev {
    left: 20px;
  }

  .carousel-control-next {
    right: 20px;
  }
}

@media (max-width: 768px) {
  .carousel-section {
    margin-top: 90px;
  }

  .carousel-image {
    height: 500px;
  }

  .carousel-caption-custom {
    padding: 2rem 1.5rem 1.5rem 1.5rem;
  }

  .carousel-caption-custom h3 {
    font-size: 1.6rem;
  }

  .carousel-caption-custom p {
    font-size: 1rem;
  }

  .custom-carousel-icon {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  .carousel-control-prev {
    left: 15px;
  }

  .carousel-control-next {
    right: 15px;
  }
}

@media (max-width: 576px) {
  .carousel-image {
    height: 400px;
  }

  .carousel-caption-custom h3 {
    font-size: 1.4rem;
  }

  .carousel-caption-custom p {
    font-size: 0.95rem;
  }
}

/* ============================================
   CAROUSEL - CORRECCIÓN PARA MÓVILES
   ============================================ */

/* Tablets y pantallas medianas */
@media (max-width: 992px) {
  .carousel-caption-custom {
    padding: 2rem 1.5rem 5rem 1.5rem; /* Padding inferior aumentado */
  }

  .carousel-caption-custom h3 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
  }

  .carousel-caption-custom p {
    font-size: 1rem;
    line-height: 1.4;
  }
}

/* Móviles - CORRECCIÓN PRINCIPAL */
@media (max-width: 768px) {
  .carousel-caption-custom {
    padding: 1.5rem 1rem 3rem 1rem; /* AUMENTADO el padding inferior a 6rem */
  }

  .carousel-caption-custom h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
  }

  .carousel-caption-custom p {
    font-size: 0.9rem;
    line-height: 1.3;
    max-width: 90%;
  }

  /* Botones más pequeños pero bien posicionados */
  .custom-carousel-icon {
    width: 45px;
    height: 45px;
    font-size: 16px;
  }

  .carousel-control-prev {
    left: 10px;
  }

  .carousel-control-next {
    right: 10px;
  }
}

/* Móviles muy pequeños */
@media (max-width: 576px) {
  .carousel-caption-custom {
    padding: 1rem 0.8rem 3rem 0.8rem; /* Padding inferior aumentado */
  }

  .carousel-caption-custom h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    line-height: 1.1;
  }

  .carousel-caption-custom p {
    font-size: 0.85rem;
    line-height: 1.2;
    max-width: 95%;
  }

  .custom-carousel-icon {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .carousel-control-prev {
    left: 8px;
  }

  .carousel-control-next {
    right: 8px;
  }
}

/* Para pantallas MUY pequeñas (móviles en horizontal o muy antiguos) */
@media (max-width: 400px) {
  .carousel-caption-custom {
    padding: 0.8rem 0.5rem 5rem 0.5rem;
  }

  .carousel-caption-custom h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
  }

  .carousel-caption-custom p {
    font-size: 0.8rem;
    line-height: 1.1;
  }

  .custom-carousel-icon {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }
}
