:root {
  /* Paleta de colores base del sitio */
  --primary: #1a1a1a; /* Color principal oscuro */
  --primary-light: #333; /* Versión más clara del primario */
  --secondary: #ad060d; /* Color secundario para acentos */
  --secondary-dark: #ad060d; /* Versión más oscura del secundario */
  --accent: #e31837; /* Color acento (usado opcionalmente) */
  --light: #f8f9fa; /* Color de fondo claro */
  --dark: #212529; /* Color de texto oscuro */
  --gray: #6c757d; /* Gris para subtítulos o texto secundario */
  --white: #ffffff; /* Blanco puro */
  --transition: all 0.3s ease; /* Efecto de transición suave */
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra ligera */
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1); /* Sombra más intensa */
  --radius: 8px; /* Borde redondeado estándar */
  --radius-lg: 12px; /* Borde redondeado grande */
}

/* Reset y estilos base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* Incluye padding y border en el cálculo del tamaño */
}

html {
  scroll-behavior: smooth; /* Desplazamiento suave al navegar */
}

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
  overflow-x: hidden; /* Evita scroll horizontal */
}

/*Encabezados y elementos principales*/
h1,
h2,
h3,
h4 {
  font-family: "Oswald", sans-serif;
  line-height: 1.2;
  text-transform: uppercase;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/*Contenedores y secciones*/
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  z-index: 1;
}

/*Este h2 es porque todos los h2 de la section-title son black y este tiene que ser white*/
#lighth2 {
  color: var(--light);
}

.section-title p {
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--secondary);
  margin: 1.5rem auto;
}

.btn {
  display: inline-block;
  padding: 0.8rem 0.8rem;
  background-color: var(--secondary);
  color: var(--white);
  font-weight: 500;
  border-radius: var(--radius);
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  border: 2px solid transparent;
  text-align: center;
}

.btn:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--secondary);
  color: var(--white);
}

.btn-outline:hover {
  background-color: var(--secondary);
  color: var(--white);
}

/* Encabezado y navegacion */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #000;
  /*background-color: rgba(26, 26, 26, 0.95);*/
  backdrop-filter: blur(10px); /* Difumina el fondo */
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

/*.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}*/

.logo img {
  height: 80px;
}

.nav-list {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--white);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  position: fixed; /* Lo mantiene fijo en la pantalla */
  top: 20px; /* Distancia desde arriba */
  right: 20px; /* Distancia desde la derecha */
  z-index: 1001;
  display: none;
  font-size: 1.5rem;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
}

/* Seccion Hero */
.hero {
  /*background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../img/car.avif');*/
  background-size: cover;
  background-position: center;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-top: 80px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 800px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

/* Servicios */
.services {
  background-color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-img {
  height: 220px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
  transform: scale(1.1);
}

.service-buttons {
  display: flex;
  gap: 0.5rem; /* Espacio entre botones */
  flex-wrap: wrap; /* Para responsive */
  margin-top: auto; /* Esto empuja el bloque de botones al final */
}

/* Estilo para el botón "Ver Demo" */
.btn-watch-overlay {
  background: rgba(0, 0, 0, 0.6);
  padding: 10px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  border: 2px solid transparent;
  align-items: center;
  gap: 5px;
  background-color: transparent;
  border-color: var(--secondary);
  color: var(--black);
}

.btn-watch-overlay:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  color: var(--white);
}

.service-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.5rem;
}

.content-text {
  flex-grow: 1; /* Ocupa el espacio disponible y empuja los botones hacia abajo */
}

.service-content .content-text h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.service-content .content-text p {
  color: var(--gray);
  margin-bottom: 1.5rem;
}

/* Galleria */
.gallery {
  background-color: var(--light);
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 250px;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--white);
  transform: translateY(100%);
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

/* Testimonios */
.testimonials {
  background-color: var(--white);
}

.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial {
  background-color: var(--light);
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
  display: none;
}

.testimonial.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.testimonial p {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial p::before,
.testimonial p::after {
  content: '"';
  font-size: 2rem;
  color: var(--secondary);
  opacity: 0.5;
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.slider-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--gray);
  opacity: 0.5;
  transition: var(--transition);
  cursor: pointer;
}

.slider-dot.active {
  background-color: var(--secondary);
  opacity: 1;
  transform: scale(1.2);
}

/* Contacto */
.contact {
  background-color: var(--primary);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background-color: var(--secondary);
  opacity: 0.1;
  z-index: 0;
  clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-icon {
  color: var(--secondary);
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--secondary);
  color: var(--white);
  transform: translateY(-3px);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  border: none;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.2);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}

.contact-form select option {
  color: var(--dark);
}
.btn-container {
  display: flex;
  justify-content: space-around;
}

.whatsapp-btn {
  background: #25d366;
  color: white;
}

.whatsapp-btn:hover {
  background: #128c7e;
}

.email-btn {
  background: #d44638;
  color: white;
}

.email-btn:hover {
  background: #b03629;
}

/* Sección de Pagos */
.payment-section {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 3rem 0;
  margin-bottom: 1rem;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.payment-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 1rem;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  z-index: 1;
}

.payment-icon {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.payment-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.payment-card h4 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.payment-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.payment-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.payment-security i {
  color: var(--secondary);
}

/* Botón Ver QR */
.show-qr-btn {
  margin-top: 12px;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
  border: 2px solid transparent;
  align-items: center;
  background-color: transparent;
  border-color: var(--secondary);
  color: var(--black);
}

.show-qr-btn:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  color: var(--white);
}

/* Modal Responsivo */
.qr-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  padding: 20px;
}

.modal-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90vw;
  max-height: 90vh;
}

.qr-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 80vh;
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Botón cerrar */
.close-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 36px;
  height: 36px;
  background: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.close-btn:hover {
  transform: scale(1.1);
  background: #f0f0f0;
}

/* Pie de pagina */
footer {
  background-color: #000;
  /*background-color: var(--dark);*/
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
}

.copyright {
  color: var(--gray);
  font-size: 0.9rem;
}

/* WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: var(--transition);
  font-size: 1.8rem;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
  background-color: #128c7e;
}

.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  overflow: hidden;
}

.modal-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 900px; /* Ancho máximo */
  aspect-ratio: 16/9; /* Relación de aspecto (ajusta según tus videos) */
}

#modalVideo {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  outline: none;
  background: #000;
}

.close-modal {
  position: absolute;
  top: -15px;
  right: -15px;
  color: white;
  background: var(--secondary);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  z-index: 2;
}

/* Botón de llamada en el header */
.call-btn {
  background-color: #27ae60; /* Verde */
  color: white;
  padding: 8px 16px;
  border-radius: 50px;
  white-space: nowrap;
}

.call-btn:hover {
  background-color: #219653;
}

/* Botón de llamada en hero */
.call-hero-btn {
  background-color: var(--secondary); /* Rojo */
  color: white;
  font-weight: 600;
  padding: 12px 20px;
  font-size: 17px;
}

.call-hero-btn:hover {
  background-color: #c0392b;
}

/* Responsive para diferentes pantallas */

@media (min-width: 1200px) {
  .qr-image {
    max-width: 300px;
  }
}

@media (max-width: 992px) {
  .nav-list {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: var(--transition);
    z-index: 999;
  }

  .nav-list.active {
    left: 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-btns {
    flex-direction: column;
  }
  .call-btn {
    position: absolute;
    right: 70px; /* Espacio para el botón hamburguesa */
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 12px;
    font-size: 14px;
  }

  .call-hero-btn {
    padding: 10px 18px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .call-btn {
    position: absolute;
    right: 70px; /* Espacio para el botón hamburguesa */
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 12px;
    font-size: 14px;
  }

  .call-hero-btn {
    width: 100%;
    margin-top: 10px;
    justify-content: center;
  }

  /* Modal en móviles */
  .modal-content {
    width: 95vw; /* Ocupa casi todo el ancho */
    max-width: none;
    aspect-ratio: 9/16; /* Vertical (ideal para móviles) */
    max-height: 80vh; /* Evita que se salga de la pantalla */
  }

  #modalVideo {
    object-fit: cover; /* Ajusta el video al contenedor */
  }

  .close-modal {
    top: -10px;
    right: -5px;
    background: #e74c3c; /* Rojo para mejor visibilidad */
    width: 25px;
    height: 25px;
    font-size: 14px;
  }

  .qr-image {
    padding: 10px;
    max-width: 85vw;
  }

  .close-btn {
    width: 30px;
    height: 30px;
    top: -10px;
    right: -10px;
  }
}
