:root {
    --electric-blue: #00ffff;
    --accent-purple: #a78bfa;
    --purple-dark:   #7c3aed;
    --purple-soft:   #c084fc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-align: center !important;
}

body {
    background-color: black;
    color: white;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

/* TÍTULOS - colores planos alternados sin degradado */
h1, h3, h5 {
    color: var(--electric-blue);
    font-weight: 800;
    letter-spacing: 0.5px;
}

h2, h4, h6 {
    color: var(--accent-purple);
    font-weight: 800;
    letter-spacing: 0.5px;
}

.section {
    padding: 100px 0;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}

.section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.72);
    z-index: 1;
}

.section > .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.global-background {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;                    /* evita que la img se salga */
  pointer-events: none;
}

.bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;                   /* o contain si no quieres recortes */
  object-position: center;
  transform: translateY(0);
  will-change: transform;
}

/* Parallax sutil con scroll-driven (si lo quieres mantener) */
@media (min-width: 992px) {  /* opcional: solo desktop */
  .bg-image {
    animation: parallax-img 1s linear infinite paused;
    animation-timeline: scroll(root block);
    animation-range: 0% 100%;
  }
}

@keyframes parallax-img {
  to {
    transform: translateY(-12%);
  }
}
/* Navbar */
.navbar {
    background-color: black !important;
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.12);
}

.nav-link {
    color: white !important;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--electric-blue) !important;
}

/* Cards */
.card {
    background-color: rgba(20, 20, 20, 0.94);
    border: 1px solid var(--electric-blue);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.15);
    transition: all 0.35s ease;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 35px rgba(0, 255, 255, 0.25);
}

.card-img-top {
    height: 240px;
    object-fit: cover;
}

.card-title {
    color: var(--electric-blue);
}

/* Loader */
#loader {
    position: fixed;
    inset: 0;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease;
}

#loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.tire {
    width: 180px;
    animation: rotate 2.2s linear infinite;
}

/* WhatsApp float button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--electric-blue);
    color: black;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 34px;
    z-index: 1000;
    box-shadow: 0 0 30px var(--electric-blue);
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 0 40px var(--electric-blue);
}

/* Footer */
footer {
    background: black;
    border-top: 1px solid var(--electric-blue);
    padding: 60px 0 40px;
}

footer a {
    color: white;
    font-size: 2rem;
    margin: 0 20px;
    transition: all 0.3s;
}

footer a:hover {
    color: var(--electric-blue);
    transform: translateY(-6px);
}

/* Formularios */
.form-control {
    background-color: rgba(30,30,30,0.92);
    border: 1px solid var(--electric-blue);
    color: white;
    text-align: left; /* importante para inputs */
}

.form-control:focus {
    border-color: var(--electric-blue);
    box-shadow: 0 0 10px rgba(0,255,255,0.35);
    outline: none;
}

.btn-primary {
    background: var(--electric-blue);
    border: none;
    color: black;
    font-weight: 600;
    padding: 12px 40px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #00e0e0;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,255,255,0.4);
}

/* Mejora legibilidad textos largos */
p, li, .card-text, small, label {
    max-width: 80ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Campos de formulario legibles */
textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"] {
    text-align: left !important;
}


/* ==============================================
   REELS GRID - CYBERPUNK NEON STYLE
   ============================================== */

.reels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2.5rem;
  padding: 2rem 0;
}

.grid-item {
  position: relative;
  border-radius: 1.2rem;
  overflow: hidden;
  background: #0a0a15;
  box-shadow: 0 8px 30px rgba(0, 255, 255, 0.15);
  transition: all 0.4s ease;
}

.grid-item:hover {
  transform: translateY(-12px);
  box-shadow: 0 15px 40px rgba(0, 255, 255, 0.3);
}

/* Ajustes para el embed de Instagram */
.grid-item .instagram-media {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  background: transparent !important;
}

/* Neon border glow en hover */
.grid-item::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 1.2rem;
  pointer-events: none;
  background: 
    linear-gradient(#000, #000) padding-box,
    conic-gradient(
      from 90deg at 50% 50%,
      var(--electric-blue),
      var(--accent-purple),
      var(--purple-dark),
      var(--electric-blue)
    ) border-box;
  -webkit-mask: 
    linear-gradient(#fff 0 0) padding-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.6s ease;
  box-shadow: 
    0 0 25px 6px var(--electric-blue),
    0 0 50px 12px var(--accent-purple);
  z-index: 1;
}

.grid-item:hover::before {
  opacity: 0.92;
  animation: borderPulse 3s ease-in-out infinite;
}

@keyframes borderPulse {
  0%, 100% { opacity: 0.92; }
  50%      { opacity: 1; box-shadow: 0 0 40px 15px var(--electric-blue); }
}

/* Responsive */
@media (max-width: 992px) {
  .reels-grid {
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  .reels-grid {
    grid-template-columns: 1fr;
  }
}

/* ==============================================
   WHATSAPP FLOTANTE CON MÚLTIPLES CONTACTOS
   ============================================== */

.whatsapp-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.whatsapp-main {
  background: var(--electric-blue);
  color: black;
  border: none;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  font-size: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 30px var(--electric-blue);
  cursor: pointer;
  transition: all 0.3s ease;
}

.whatsapp-main:hover {
  transform: scale(1.12);
  box-shadow: 0 0 40px var(--electric-blue);
}

.whatsapp-options {
  position: absolute;
  bottom: 90px;                /* justo encima del botón principal */
  right: 0;
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid var(--electric-blue);
  border-radius: 16px;
  overflow: hidden;
  width: 260px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.35s ease;
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.25);
}

.whatsapp-options.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.whatsapp-agent {
  display: flex;
  flex-direction: column;
  padding: 14px 20px;
  color: white;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 255, 255, 0.15);
  transition: all 0.25s ease;
}

.whatsapp-agent:last-child {
  border-bottom: none;
}

.whatsapp-agent:hover {
  background: rgba(0, 255, 255, 0.15);
  color: var(--electric-blue);
}

.agent-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--electric-blue);
}

.agent-number {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 4px;
}

/* Icono principal con pulse sutil (opcional) */
.whatsapp-main i {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Responsive - en móviles más pequeño */
@media (max-width: 576px) {
  .whatsapp-container {
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-main {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }
  
  .whatsapp-options {
    width: 240px;
    bottom: 80px;
  }
}

/* ==============================================
   WHATSAPP DROPDOWN - Estilo cyberpunk/neon
   ============================================== */

.whatsapp-wrapper {
  position: relative;
  display: inline-block;
}

.whatsapp-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--electric-blue);
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-trigger:hover {
  color: #00e0e0;
  transform: scale(1.15);
  text-shadow: 0 0 15px var(--electric-blue);
}

/* Dropdown */
.whatsapp-dropdown {
  position: absolute;
  bottom: 100%;               /* Aparece hacia arriba */
  right: 50%;
  transform: translateX(50%);
  background: rgba(20, 20, 20, 0.96);
  border: 1px solid var(--electric-blue);
  border-radius: 12px;
  width: 220px;
  padding: 8px 0;
  margin-bottom: 15px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(50%) translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.25);
  z-index: 1000;
}

.whatsapp-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(50%) translateY(0);
}

/* Opciones */
.whatsapp-option {
  display: block;
  padding: 12px 20px;
  color: white;
  text-decoration: none;
  transition: all 0.25s ease;
  border-bottom: 1px solid rgba(0, 255, 255, 0.12);
}

.whatsapp-option:last-child {
  border-bottom: none;
}

.whatsapp-option:hover {
  background: rgba(0, 255, 255, 0.18);
  color: var(--electric-blue);
}

.whatsapp-option strong {
  color: var(--electric-blue);
  font-weight: 600;
  display: block;
}

.whatsapp-option small {
  opacity: 0.8;
  font-size: 0.85rem;
  display: block;
  margin-top: 3px;
}

/* Responsive - en móviles más ancho y centrado */
@media (max-width: 576px) {
  .whatsapp-dropdown {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
  }

  .whatsapp-dropdown.show {
    transform: translateX(-50%) translateY(0);
  }
}

/* ==============================================
   CUSTOM FILE UPLOAD - CYBERPUNK NEON STYLE
   ============================================== */

.custom-file-upload-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
    max-width: 400px; /* ajusta según necesites */
}

.custom-file-input {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.custom-file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 20, 20, 0.9);
    border: 2px solid var(--electric-blue);
    border-radius: 12px;
    color: var(--electric-blue);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 14px 24px;
    cursor: pointer;
    transition: all 0.35s ease;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.25);
    text-shadow: 0 0 8px var(--electric-blue);
    overflow: hidden;
    position: relative;
}

.custom-file-label:hover {
    background: rgba(0, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 0 30px var(--electric-blue),
                0 0 50px rgba(167, 139, 250, 0.4);
}

.custom-file-label::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    background: conic-gradient(
        from 90deg at 50% 50%,
        var(--electric-blue),
        var(--accent-purple),
        var(--purple-dark),
        var(--electric-blue)
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.custom-file-label:hover::before {
    opacity: 0.8;
}

/* Feedback lista de archivos */
.file-list {
    background: rgba(10, 10, 30, 0.7);
    border: 1px solid var(--accent-purple);
    border-radius: 10px;
    padding: 10px;
    max-height: 150px;
    overflow-y: auto;
    color: var(--purple-soft);
    font-size: 0.95rem;
}

.file-list p {
    margin: 5px 0;
    word-break: break-all;
}

.file-list strong {
    color: var(--electric-blue);
}

.form-control::placeholder,
textarea.form-control::placeholder {
    color: #00ffff !important;           /* Electric blue neón - o usa var(--electric-blue) */
    opacity: 0.75;                       /* Semi-transparente para vibe cyberpunk */
}

/* ==============================================
   CARRUSEL CYBERPUNK NEÓN - Moderno y Touch-Friendly
   ============================================== */

.carousel-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 3rem auto;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--electric-blue);
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.2);
}

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* suave en iOS */
  scrollbar-width: none; /* oculta scrollbar en Firefox */
}

.carousel::-webkit-scrollbar {
  display: none; /* oculta scrollbar en Chrome/Safari */
}

.carousel-slide {
  flex: 0 0 100%;
  position: relative;
  scroll-snap-align: center;
  height: 70vh; /* ajusta según quieras (o usa min-height) */
  min-height: 500px;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.6s ease;
}

.carousel-slide:hover img {
  transform: scale(1.06);
}

.slide-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: var(--electric-blue);
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-size: 1.4rem;
  font-weight: 700;
  text-shadow: 0 0 15px var(--electric-blue);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.carousel-slide:hover .slide-caption {
  opacity: 1;
}

/* Flechas */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 255, 255, 0.15);
  color: var(--electric-blue);
  border: 2px solid var(--electric-blue);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-prev {
  left: 1.5rem;
}

.carousel-next {
  right: 1.5rem;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: var(--electric-blue);
  color: black;
  box-shadow: 0 0 30px var(--electric-blue);
  transform: translateY(-50%) scale(1.15);
}

/* Dots (indicadores) */
.carousel-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 10;
}

.carousel-dot {
  width: 14px;
  height: 14px;
  background: rgba(167, 139, 250, 0.4);
  border: 2px solid var(--accent-purple);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--electric-blue);
  border-color: var(--electric-blue);
  box-shadow: 0 0 20px var(--electric-blue);
  transform: scale(1.4);
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-slide {
    height: 60vh;
    min-height: 400px;
  }

  .carousel-prev, .carousel-next {
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
  }

  .slide-caption {
    font-size: 1.1rem;
    padding: 0.6rem 1.2rem;
  }
}

.testimonials-carousel-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 4rem auto 2rem;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--electric-blue);
  box-shadow: 0 0 50px rgba(0, 255, 255, 0.18);
  background: rgba(10, 10, 20, 0.85);
  padding: 2rem;
}

.testimonials-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.testimonials-carousel::-webkit-scrollbar {
  display: none;
}

.testimonial-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 1rem;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  border: 2px solid var(--accent-purple);
  box-shadow: 0 10px 40px rgba(167, 139, 250, 0.25);
  transition: all 0.4s ease;
}

.video-wrapper:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 60px rgba(0, 255, 255, 0.35),
              0 0 50px var(--electric-blue);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.testimonial-content {
  text-align: center;
  max-width: 700px;
}

.testimonial-content h4 {
  color: var(--electric-blue);
  font-size: 1.8rem;
  margin: 0 0 0.5rem;
  text-shadow: 0 0 15px var(--electric-blue);
}

.client-role {
  color: var(--purple-soft);
  font-size: 1.1rem;
  margin: 0 0 1rem;
  opacity: 0.9;
}

.testimonial-text {
  color: white;
  font-size: 1.2rem;
  line-height: 1.7;
  font-style: italic;
  max-width: 80ch;
  margin: 0 auto;
}

/* Flechas y dots (reutilizamos estilo similar al carrusel anterior) */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 255, 255, 0.2);
  color: var(--electric-blue);
  border: 2px solid var(--electric-blue);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 2.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-prev { left: 1rem; }
.carousel-next { right: 1rem; }

.carousel-prev:hover,
.carousel-next:hover {
  background: var(--electric-blue);
  color: black;
  box-shadow: 0 0 35px var(--electric-blue);
  transform: translateY(-50%) scale(1.15);
}

.carousel-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.2rem;
  z-index: 10;
}

.carousel-dot {
  width: 14px;
  height: 14px;
  background: rgba(167, 139, 250, 0.5);
  border: 2px solid var(--accent-purple);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--electric-blue);
  border-color: var(--electric-blue);
  box-shadow: 0 0 25px var(--electric-blue);
  transform: scale(1.5);
}

/* Responsive */
@media (max-width: 992px) {
  .testimonials-carousel-wrapper {
    padding: 1.5rem;
  }
  .video-wrapper {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .testimonial-slide {
    gap: 1.5rem;
  }
  .carousel-prev, .carousel-next {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain; /* o contain si no quieres crop */
  border-radius: 12px;
}

.video-wrapper {
  aspect-ratio: 16 / 9;          /* mantiene proporción 16:9 */
  background: rgba(0,0,0,0.5);   /* fondo negro mientras carga */
}