
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #0c0020 0%, #1b0042 50%, #0c0020 100%);
  color: white;
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* Animaciones globales */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header con animación */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  background-color: rgba(27, 0, 66, 0.9);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.5s ease;
  box-sizing: border-box;
}

header.scrolled {
  background-color: rgba(11, 0, 51, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 15px 40px;
}

.logo {
  width: 200px;
  height: auto;
  transition: transform 0.3s ease;
  margin-right: auto;
}

.logo:hover {
  transform: scale(1.05);
}

/* Navegación principal (Desktop) */
nav {
  display: flex;
  gap: 25px;
  margin-left: 30px;
  position: relative;
  right: 5%;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding: 5px 0;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #7c3aed;
  transition: width 0.3s ease;
}

nav a:hover {
  color: #b794f4;
}

nav a:hover::after {
  width: 100%;
}

/* Menú Hamburguesa (Mobile) */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  position: relative;
}

.hamburger-line {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* LENGUAJE O IDIOMAS */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 20px;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.language-option:hover {
  background: rgba(255,255,255,0.1);
}

.language-option.active {
  font-weight: 600;
}

/* Hero Section video */
.hero {
  width: 100%;
  height: 92vh; /* Ocupa toda la altura visible */
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: none;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  /* Gradiente mejorado */
  background: linear-gradient(to top,
  rgba(27, 0, 66, 0.7) 0%,
  rgba(124, 58, 237, 0.3) 80%,
  rgba(27, 0, 66, 0.7) 100%); /* Añadida parada final similar al inicio */
}

/* Contenedor de partículas para el video */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

/* Versión Móvil */
@media (max-width: 767px) {
  .hero {
    height: 0;
    padding-top: 56.25%; /* Relación 16:9 */
    margin: 80px 0 0 0;
    background: #0c0020;
  }

  .hero-video-bg,
  .hero-video-bg video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .hero-video-bg video {
    transform: none;
    min-width: unset;
    min-height: unset;
  }

  /* Mantenemos el overlay en móviles con los mismos valores */
  .video-overlay {
    display: block; /* Aseguramos que sea visible */
    background: linear-gradient(to top, 
                rgba(27, 0, 66, 0.7) 0%, 
                rgba(124, 58, 237, 0.3) 100%);
  }

  .particle {
    opacity: 0.7;
  }
}

/* Ajuste para pantallas muy anchas */
@media (min-width: 1920px) {
  .hero-video-bg video {
    width: 100%;
    height: auto;
  }
}
/* ESTA LINEA MARCA EL FIN DEL VIDEO PARA RESPONSIVE DESIGN*/

.hero-content-section {
  padding: 100px 5%;
  background: linear-gradient(135deg, #0c0020 0%, #1b0042 100%);
  position: relative;
}

.hero-content-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  row-gap: 60px;
  align-items: center;
  grid-template-areas: 
    "text heading"
    "buttons buttons";
}

.hero-content-container > p {
  grid-area: text;
  margin-bottom: 90px;
}

.hero-content-container > h1 {
  grid-area: heading;
}

.hero-content-container h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1.1;
  text-transform: uppercase;
  color: white;
  text-align: right;
  margin: 0;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hero-content-container h1 strong {
  font-weight: 900;
  background: linear-gradient(90deg, #8a2be2, #6d28d9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  position: relative;
  padding-bottom: 10px;
}

.hero-content-container h1 strong::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #8a2be2, #6d28d9);
}

.hero-content-section p {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin: 0 auto 2rem;
  position: relative;
  font-style: italic;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards 0.6s;
}


/* Quote Section */
.quote-block {
  position: relative;
  padding: 50px 0 120px; /* Aumenté el padding para mejor difuminado */
  background: linear-gradient(
    to bottom,
    #4a00a0 0%,
    #3a0180 30%,
    #2c0164 60%,
    #1a0038 90%
  );
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
  -webkit-mask-image: linear-gradient(
    to bottom,
    black 0%,
    black 85%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    black 0%,
    black 85%,
    transparent 100%
  );
}

.quote-block.animated {
  opacity: 1;
  transform: translateY(0);
}

.quote-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1450px;
  margin: 0 auto 0px;
}

.quote-content {
  flex: 1;
  padding-right: 20px;
}

.quote-content h2 {
  font-size: 30px;
  color: #fff;
}

.quote-content p {
  position: relative; /* ¡IMPORTANTE! Necesario para el posicionamiento absoluto del ::before */
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.6rem;
  font-style: italic;
  line-height: 1.8;
  max-width: 800px;
  padding-top: 30px; /* Espacio reservado para la línea */
  margin-left: 12%; /* Igual que el left de ::before para alineación */
}

.quote-content p::before {
  content: '';
  position: absolute;
  left: 0; /* Ahora 0 porque usamos margin-left en el párrafo */
  top: 15px; /* Valor fijo en px (antes 15%) */
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #b094df, #a855f7, transparent);
  background-size: 200% auto;
  animation: shine 3s linear infinite;
  /* Eliminamos right y margin para evitar comportamientos fluidos */
  transform: translateX(0); /* Bloquea la posición */
}

.quote-content p span {
  color: #FFFFFF; /* Un blanco más brillante para que destaque */
  font-weight: 600; /* Un grosor de letra seminegrita */
}

.image-frame {
  flex: 1;
  padding-right: 40px;
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease 0.2s;
}

.quote-block.animated .image-frame {
  opacity: 1;
  transform: translateX(0);
}

.quote-container blockquote {
  flex: 1;
  font-size: 4.1rem;
  font-weight: 900;
  -webkit-text-stroke: 2px #fff; /* Borde blanco para simular grosor */
  text-stroke: 2px #fff; /* Para navegadores modernos */
  text-transform: uppercase;
  line-height: 1.3;
  margin: 0;
  padding-left: 40px;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease 0.4s;
  color: #fff;
}

.quote-block.animated blockquote {
  opacity: 1;
  transform: translateX(0);
}

/* Demo Container */
.demo-container {
  text-align: center;
  margin-top: 100px;
  margin-bottom: 80px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.6s;
}

.quote-block.animated .demo-container {
  opacity: 1;
  transform: translateY(0);
}

.demo-container p {
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.btn-demo {
  padding: 15px 35px;
  background: linear-gradient(45deg, #8a2be2, #6a0dad);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  display: inline-block;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;

}

.btn-demo:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 20px rgba(138, 43, 226, 0.6);
}

/* Estilos para el título SERVICIOS */

.services-heading {
  text-align: center;
  color: #fff;
  font-size: 2.2rem;
  margin-top: 0px;
  position: relative;
  padding-bottom: 15px;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Conservamos el subrayado animado (opcional) */
.services-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7c3aed, #a855f7, transparent);
  background-size: 200% auto;
  animation: shine 3s linear infinite;
}

@keyframes shine {
  0% { background-position: -120px 0; }
  100% { background-position: 120px 0; }
}


/* DOBLAJE SECCIÓN - Versión ajustada */
.dubbing-section {
  position: relative;
  width: calc(100% - 80px); /* Igual que services-grid (100% - padding) */
  max-width: 1900px; /* Igual que services-grid */
  height: 600px; /* Misma altura que los service-items */
  margin: 50px auto; /* Margen consistente con el grid de servicios */
  overflow: hidden;
  border-radius: 12px; /* Igual que service-item */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5); /* Mismo shadow */
}

.dubbing-bg {
  position: absolute;
  width: 100%;
  height: 160%;
  object-fit: cover;
  z-index: 1;
}

.dubbing-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom, 
    rgba(12, 0, 32, 0.2) 0%, 
    rgba(27, 0, 66, 0.7) 100%
  ); /* Mismo gradiente que service-overlay */
  z-index: 2;
}

.dubbing-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px; /* Mismo padding que service-text */
}

.dubbing-content h2 {
  font-size: 4rem; /* Igual que service-text h2 */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px; /* Ajustado a 4px como service-text */
  margin-bottom: 15px; /* Igual que service-text */
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.8); /* Mismo shadow */
}

.languages {
  font-size: 1.3rem; /* Igual que service-text h3 */
  font-weight: 300;
  letter-spacing: 1.5px; /* Igual que h3 */
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8); /* Mismo shadow */
}

/* Efectos hover para consistencia */
.dubbing-section:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.dubbing-section:hover .dubbing-bg {
  transform: scale(1.08);
}

.dubbing-section:hover .dubbing-overlay {
  background: rgba(12, 0, 32, 0.5);
}


/* Servicios con animaciones */
.services-section {
  padding: 10px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columnas para escritorio */
  gap: 30px;
  max-width: 1900px;
  margin: 0 auto;
  padding: 0 40px;
}

.service-item {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.45, 0.45, 0.95);
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom, 
    rgba(12, 0, 32, 0.2) 0%, 
    rgba(27, 0, 66, 0.7) 100%
  );
  z-index: 2;
  transition: opacity 0.4s ease;
}

.service-text {
    position: relative;
    z-index: 3;
    height: 89%;
    overflow: hidden;
    padding: 30px;
    text-align: center;

    /* --- Centrado con Flexbox --- */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    /* --- Ajuste para subir el texto --- */
    padding-bottom: 50px; /* Puedes cambiar este valor si lo necesitas */
}

.service-text h2 {
    font-size: 2.8rem;
    letter-spacing: 4px;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.8);
    font-weight: 700;
    line-height: 1.2;

    /* --- Margen ajustado --- */
    margin-bottom: 15px;
}

.service-text h3 {
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
    text-align: center;
    
    /* --- Margen eliminado --- */
    margin-bottom: 0;
}


.service-item:nth-child(1) .service-text h3 {
  font-size: 1.3rem;
  
  margin-top: 0;

}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.service-item:hover .service-bg {
  transform: scale(1.08);
}

.service-item:hover .service-overlay {
  background: rgba(12, 0, 32, 0.5);
}

/* 1. Asegúrate de que el wrapper sea el punto de referencia */
.gradient-wrapper {
  position: relative; /* Muy importante para que funcione el posicionamiento */
  /* Los demás estilos como el background: linear-gradient se quedan igual */
}

/* 2. Estilos para el nuevo contenedor de partículas */
#particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* Lo pone en el fondo, justo encima del degradado */
}

/* 3. Asegura que el contenido de tus secciones esté por encima */
.clients-section,
.contact-section {
  position: relative;
  z-index: 1; /* Pone el contenido por encima de las partículas (z-index: 0) */
  background: none; /* Confirma que no tenga fondo para que se vea lo de atrás */
}

.clients-section.animated {
  opacity: 1;
  transform: translateY(0);
}

.clients-section h2 {
  font-size: 2.5rem;
  text-transform: uppercase;
  margin-bottom: 50px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.2s;
}

.clients-section.animated h2 {
  opacity: 1;
  transform: translateY(0);
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.client {
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
}

.clients-section.animated .client {
  opacity: 1;
  transform: translateY(0);
}

.clients-section.animated .client:nth-child(1) { transition: all 0.6s ease 0.4s; }
.clients-section.animated .client:nth-child(2) { transition: all 0.6s ease 0.5s; }
.clients-section.animated .client:nth-child(3) { transition: all 0.6s ease 0.6s; }
.clients-section.animated .client:nth-child(4) { transition: all 0.6s ease 0.7s; }

.client:hover {
  transform: translateY(-5px) scale(1.02);
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Contact Section con animación */
.contact-section {
  padding: 100px 50px;
  text-align: center;
  background: none; /* <-- CAMBIO IMPORTANTE */
  /* El resto de tus estilos (animaciones, etc.) se quedan igual */
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
  overflow: hidden; /* Contiene el degradado */
}


.contact-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 400px; /* Altura del difuminado */
  background: linear-gradient(
    to bottom, 
    rgba(0, 0, 0, 0) 0%, 
    rgba(0, 0, 0, 0.8) 100%, 
    rgba(0, 0, 0, 1) 100%
  );
  z-index: 0; /* Se coloca DETRÁS del contenido (partículas tienen z-index: -1) */
  pointer-events: none;
}

.contact-section.animated {
  opacity: 1;
  transform: translateY(0);
}

.contact-section h2 {
  font-size: 2.5rem;
  text-transform: uppercase;
  margin-bottom: 50px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.2s;
}

.contact-section.animated h2 {
  opacity: 1;
  transform: translateY(0);
}


.contact-section.animated {
  opacity: 1;
  transform: translateY(0);
}

.contact-form {
  position: relative;
  z-index: 2; /* Mayor que el degradado */
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #fff;
  font-family: 'Inter', sans-serif;
}

.form-group input,
.form-group textarea {
  width: 94%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: 'Inter', sans-serif;
  transition: border 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4a90e2;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.error-message {
  color: #ff6b6b;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: none;
}

.submit-btn {
  background-color: #4a90e2;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.3s ease;
  width: 100%;
  margin-top: 1rem;
}

.submit-btn:hover {
  background-color: #3a7bc8;
}

.form-confirmation {
  display: none;
  background: rgba(46, 125, 50, 0.2);
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  text-align: center;
  border-left: 4px solid #2e7d32;
}

.form-confirmation p {
  color: #a5d6a7;
  margin: 0;
  font-weight: 500;
}


.contact-section.animated .contact-info:nth-child(1) { transition: all 0.6s ease 0.4s; }
.contact-section.animated .contact-info:nth-child(2) { transition: all 0.6s ease 0.5s; }
.contact-section.animated .contact-info:nth-child(3) { transition: all 0.6s ease 0.6s; }

.contact-info:hover {
  transform: translateY(-5px) scale(1.02);
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}


/* --------------- AYUDAS ADICIONALES DEL FORMULARIO DE CONTACTO -------------- */
/* Mejoras para el formulario */
.help-text {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Estilos para el estado de carga */
.submit-btn {
  position: relative;
}

.loading-spinner {
  display: none;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

.is-loading .btn-text {
  visibility: hidden;
}

.is-loading .loading-spinner {
  display: block;
}

/* Mejoras de accesibilidad */
[aria-invalid="true"] {
  border-color: #ff6b6b !important;
}

/* Animación suave para mensajes */
.form-confirmation {
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----------------------- Efecto de partículas para el fondo ---------------- */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.particle {
  position: absolute;
  background-color: rgba(124, 58, 237, 0.5);
  border-radius: 50%;
  pointer-events: none;
}

/* --------------------   CLIENTES --------------------------------------------- */

.clients-section {
  padding: 4rem 2rem;
  color: #fff;
  text-align: center;
  overflow: hidden; /* evita desbordes indeseados */
}

.clients-section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.client-carousel {
  display: flex;
  overflow-x: auto;
  gap: 2rem;
  padding: 1rem;
  justify-content: center;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.client-carousel::-webkit-scrollbar {
  display: none;
}

.client-carousel img {
  max-height: 100px; /* Tamaño ideal para móvil y escritorio */
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  scroll-snap-align: center;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.2));
  transition: transform 0.3s ease;
}

.client-logo:nth-child(3) img {
  max-height: 100px; /* o el tamaño que necesites */
  width: auto;
  object-fit: contain;
}

/* Estilos del footer */
.main-footer {
  background: #000000;
  padding: 2.5rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 10;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.social-links {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

/* Cambios clave para los enlaces sociales */
.social-links a {
  display: inline-flex;
  padding: 12px; /* Aumenta el área clickeable */
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icon {
  width: 24px;
  height: 24px;
  color: #fff;
  transition: inherit; /* Hereda la transición del contenedor */
  pointer-events: none; /* Evita conflictos con el área clickeable */
}

.social-links a:hover .social-icon {
  color: #4a90e2;
  transform: translateY(-2px);
}

.copyright p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin: 0;
  font-family: 'Inter', sans-serif;
}

.copyright span {
  color: #fff;
  font-weight: 500;
}

/* Mejora para dispositivos táctiles */
@media (max-width: 768px) {
  .social-links a {
    padding: 16px; /* Área aún más grande en móviles */
  }
}

/* Efecto hover para dispositivos con mouse */
@media (hover: hover) {
  .social-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
  }
}


/* =============================================
   RESPONSIVE DESIGN (VERSION DE DISPOSITIVO MOVILES - MOBILE FIRST APPROACH
   ============================================= */

/* Dispositivos móviles (hasta 767px) */
@media (max-width: 767px) {
  /* Estilos base */
  body {
    font-size: 14px;
    overflow-x: hidden;
  }

  /* Header */
  header {
    padding: 15px 20px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .logo {
    max-height: 40px;
    width: auto;
    margin-right: 0;
  }

  /* Menú Hamburguesa */
  .hamburger-btn {
    display: block;
    z-index: 1001;
  }

  .hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: rgba(27, 0, 66, 0.98);
    flex-direction: column;
    justify-content: flex-start; /* Cambiado de center a flex-start */
    align-items: center;
    gap: 30px;
    transition: right 0.4s ease;
    z-index: 1000;
    padding-top: 80px; /* Reducido para subir el contenido */
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  }

  nav.active {
    right: 0;
  }

  nav a {
    font-size: 1.2rem;
    padding: 10px 20px;
    white-space: nowrap;
  }

  .language-switcher {
    margin-left: 0;
    margin-top: 20px;
  }

  /* Hero Section */
  .hero {
    aspect-ratio: 9/16;
    margin-top: 70px;
  }

  .hero-video-bg {
    top: 0;
  }

  .hero-video-bg video {
    object-fit: cover;
  }

  .hero-content-section {
    padding: 60px 20px;
  }

  .hero-content-container {
    grid-template-columns: 1fr;
    grid-template-areas: 
      "heading"
      "text"
      "buttons";
    gap: 30px;
  }

  .hero-content-container h1 {
    text-align: center;
    font-size: 2.5rem;
  }

  .hero-content-container > p {
    margin-bottom: 30px;
    text-align: center;
  }

  /* Quote Section */
  .quote-block {
    padding: 60px 20px;
  }

  .quote-container {
    flex-direction: column;
  }

  .quote-content {
    padding-right: 0;
    margin-bottom: 30px;
  }

  .quote-content h3 {
    font-size: 1.5rem;
    text-align: center;
  }

@media (max-width: 768px) {
.quote-content p {
    text-align: left; /* Alineación izquierda como en escritorio */
    font-size: 1.2rem; /* Tamaño ligeramente mayor para mejor lectura */
    margin-left: 10%; /* Margen reducido para adaptarse a pantallas pequeñas */
    margin-right: 10%; /* Margen simétrico */
    padding-top: 20px; /* Espacio ajustado */
    width: 80%; /* Ancho controlado */
  }

  .quote-content p::before {
    left: 1%; /* Mismo margen que el párrafo */
    width: 80px; /* Ancho ajustado */
    top: 10px; /* Posición vertical refinada */
  }
}

  .quote-container blockquote {
    font-size: 1.8rem;
    padding-left: 0;
    border-left: none;
    border-top: 3px solid #7c3aed;
    padding-top: 20px;
    text-align: center;
    margin-top: 30px;
  }

  .demo-container {
    margin-top: 60px;
    margin-bottom: 40px;
  }

  .services-heading {
    font-size: 1.8rem;
    margin-top: 60px;
  }

  /* Doblaje Section RESPONSIVE DESIGN DISEÑO PARA MOVIL */
 @media (max-width: 767px) {
  .dubbing-section {
    height: 50vh; /* Ajuste de altura */
    position: relative;
  }

  .dubbing-bg {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cubrir todo el espacio */
    object-position: center;
  }

  .dubbing-overlay {
    background: linear-gradient(to bottom, 
      rgba(12, 0, 32, 0.3) 0%, 
      rgba(27, 0, 66, 0.8) 100%);
  }

  .dubbing-content {
    padding: 20px;
    width: 90%;
  }

  .dubbing-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .languages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

}

  /* Servicios Grid */
  .services-grid {
    grid-template-columns: 1fr;
    margin: 50px auto;
    gap: 20px;
  }

  .service-item {
    height: 300px;
  }

  .service-text h2 {
    font-size: 2rem;
    letter-spacing: 2px;
  }

  /* Clients Section */
  .clients-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .client-carousel {
    justify-content: flex-start;
    padding: 1rem 0;
  }

  .client-carousel img {
    max-height: 80px;
  }

  /* Contact Section */
  .contact-section {
    padding: 60px 20px;
  }

  .contact-section h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .contact-form {
    padding: 1.5rem;
  }

  /* Footer */
  .main-footer {
    padding: 2rem 0;
  }

  .social-links {
    gap: 1rem;
  }
}

/* Tabletas (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Header */
  header {
    padding: 15px 30px;
  }

  nav {
    gap: 15px;
  }

  /* Hero Section */
  .hero-content-container h1 {
    font-size: 3.5rem;
  }

  /* Quote Section */
  .quote-block {
    padding: 80px 40px;
  }

  .quote-container blockquote {
    font-size: 2rem;
  }

  /* Doblaje Section */
  .dubbing-content h2 {
    font-size: 3.5rem;
  }

  .languages {
    font-size: 1.2rem;
  }

  /* Servicios Grid */
  .services-grid {
    gap: 30px;
  }

  .service-item {
    height: 350px;
  }

  /* Clients Section */
  .client-carousel {
    justify-content: center;
  }
}

/* Pequeños ajustes para pantallas muy pequeñas */
@media (max-width: 480px) {
  .hero-content-container h1 {
    font-size: 2rem;
  }

  .dubbing-content h2 {
    font-size: 2rem;
  }

  .service-text h2 {
    font-size: 1.8rem;
  }

  .contact-form {
    padding: 1rem;
  }
}

/* Ajustes para cuando el menú está abierto */
body.menu-open {
  overflow: hidden;
}

/* Mejoras para el menú móvil */
@media (max-width: 767px) {
  nav a {
    position: relative;
    padding: 12px 0;
  }

  nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #7c3aed;
    transition: width 0.3s ease;
  }

  nav a:hover::after {
    width: 60%;
  }

  .language-switcher {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .language-separator {
    display: none;
  }

  .language-option {
    padding: 8px 15px;
  }
}

/* Ajustes para el video en móviles */
@media (max-width: 767px) {
  .hero-video-bg video {
    object-position: center top;
  }
}

/* Mejoras de accesibilidad para móviles */
@media (max-width: 767px) {
  [aria-label="Menú"] {
    font-size: 0; /* Oculta el texto del botón para solo mostrar el icono */
  }

  .hamburger-btn {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hamburger-line {
    width: 25px;
    height: 2px;
    background-color: white;
    margin: 3px 0;
    transition: all 0.3s ease;
  }
}

/* Ajustes para el formulario en móviles */
@media (max-width: 767px) {
  .form-group input, 
  .form-group textarea {
    padding: 10px;
  }

  .submit-btn {
    padding: 12px 20px;
  }
}

/* Corrección para el carrusel de clientes en móviles */
@media (max-width: 767px) {
  .client-carousel {
    gap: 2rem; /* Espacio entre logos */
    padding: 1rem 1.5rem; /* Padding lateral */
    scroll-padding: 1.5rem; /* Para el snap scroll */
  }

  .client-logo {
    min-width: 120px; /* Ancho mínimo para cada logo */
    padding: 0 15px; /* Espacio interno */
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
  }

  .client-logo img {
    max-height: 60px; /* Altura uniforme */
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  }
}
/* Ajuste fino para tablets en modo vertical */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dubbing-section {
    height: 70vh;
  }
}



/* PARTICULAS DE VIDEO */

/* Animación para las partículas */
@keyframes float {
  0%, 100% { 
    transform: translateY(0) translateX(0); 
    opacity: 0.5; 
  }
  50% { 
    transform: translateY(-20px) translateX(10px); 
    opacity: 0.8; 
  }
}

/* Estilos para las partículas */
.particle {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(0.5px);
  animation: float 15s ease-in-out infinite;
  z-index: 3;
}

/* Variaciones de tamaño y animación para diversidad */
.particle:nth-child(odd) {
  background-color: rgba(183, 148, 244, 0.6); /* Color morado claro */
  animation-duration: 18s;
}

.particle:nth-child(3n) {
  background-color: rgba(124, 58, 237, 0.5); /* Color morado principal */
  animation-duration: 12s;
}

.particle:nth-child(4n) {
  background-color: rgba(255, 255, 255, 0.8); /* Blanco más brillante */
  animation-duration: 20s;
}


        
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: linear-gradient(45deg, #8a2be2, #6a0dad);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
            z-index: 999;
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px);
            transition: all 0.4s ease;
            border: none;
            cursor: pointer;
        }

        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .back-to-top:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 20px rgba(138, 43, 226, 0.6);
        }

        .back-to-top svg {
            width: 24px;
            height: 24px;
            fill: white;
        }

       
        @media (max-width: 767px) {
            .back-to-top {
                bottom: 20px;
                right: 20px;
                width: 50px;
                height: 50px;
            }
            
            .back-to-top svg {
                width: 20px;
                height: 20px;
            }
        }

