/* ===========================
   Reset básico
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

header {
  background: rgba(251, 250, 250, 0.862);
  backdrop-filter: blur(18px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 20px;
  padding-bottom: 12px; /* O el valor que prefieras */
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 75px; /* Aumenta este valor para más espacio vertical */
}

header .logo img {
  display: block;
  margin: 0 auto;
  padding: 0; /* Sin padding extra */
  max-height: 80px; /* Ajusta este valor si quieres limitar el tamaño máximo */
}

.menu {
  display: flex;
  flex-direction: row;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  font-size: 1.08rem;
  /* Quita overflow-x y white-space */
}

/* Opcional: reduce el espacio entre ítems en móviles */
@media (max-width: 600px) {
  .menu {
    gap: 8px;
    font-size: 0.98rem;
  }
}

header .menu {
  list-style: none;
  display: inline-block;
  vertical-align: middle;
}

header .menu li {
  display: inline;
  margin: 0 10px;
}

header .menu li a {
  color: #333;
  text-decoration: none;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
}
header .menu li a::after {
  content: '';
  display: block;
  width: 0;
  height: 3px;
  background: #0099ff;
  border-radius: 2px;
  transition: width 0.2s;
  position: absolute;
  left: 0; bottom: 0;
}
header .menu li a:hover,
header .menu li a.active {
  color: #0099ff;
}
header .menu li a:hover::after,
header .menu li a.active::after {
  width: 100%;
}

#hero {
  --next-bg: none;
  position: relative;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--next-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
}

#hero.fade-bg::after {
  opacity: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  text-align: center;
}
#hero h1, #hero p {
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
#hero .btn {
  background: #1a3a6e; /* Azul oscuro del logo */
  color: #ffdd33;      /* Amarillo del logo */
  border: none;
  padding: 14px 38px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.15rem;
  cursor: pointer;
  text-decoration: none;
  margin-top: 32px; /* Más separación abajo del subtítulo */
  box-shadow: 0 2px 12px rgba(26,58,110,0.08);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

#hero .btn:hover {
  background: #0099ff; /* Rojo de la paleta */
  color: #fff;
  box-shadow: 0 4px 18px rgba(230,57,70,0.12);
}

.btn {
  background-color: #0099ff;
  color: #fff;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s ease;
  display: inline-block;
  margin-top: 20px;
}

.btn:hover {
  background-color: #005fa3;
}

.divider {
  width: 100%;
  height: 8px;
  border: none;
  margin: 0;
  background: linear-gradient(270deg, #0099ff, #005fa3, #0099ff, #00e1ff);
  background-size: 400% 100%;
  animation: divider-gradient 6s linear infinite;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,153,255,0.15);
  opacity: 0.95;
}

@keyframes divider-gradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

#servicios {
  padding: 60px 0;
  text-align: center;
}

#servicios h2 {
  font-size: 2em;
  margin-bottom: 40px;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: visible;
  padding: 32px 0;      /* Espacio arriba y abajo para los bordes en hover */
  /* No pongas max-width aquí */
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s cubic-bezier(.77,0,.18,1);
  overflow: visible !important;
  width: max-content;
  min-width: 100%;
}

.service {
  flex: 0 0 300px;
  background: #f4f4f4;
  padding: 20px;
  margin: 0 10px;
  border-radius: 5px;
  text-align: center;
  box-sizing: border-box;
  border: 2px solid transparent;
  transition: border 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
}

.service-content {
  transition: transform 0.3s;
  flex-grow: 1;
}

.service:hover {
  border: 2px solid #0099ff;
  box-shadow: 0 4px 16px rgba(230,57,70,0.10);
}

.service:hover .service-content {
  transform: scale(1.05);
}

.service img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 153, 255, 0.38); /* Fondo rojo transparente */
  color: rgba(0, 153, 255, 0.85); /* Flecha roja semitransparente */
  border: none;
  padding: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,153,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.carousel-btn:hover {
  background: rgba(0, 153, 255, 0.85); /* Fondo rojo sólido */
  color: #fff; /* Flecha blanca al pasar el mouse */
  box-shadow: 0 4px 18px rgba(0,153,255,0.25);
}

.carousel-btn svg {
  width: 28px;
  height: 28px;
  display: block;
}

.carousel-btn.left {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  position: absolute;
}

.carousel-btn.right {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  position: absolute;
}

#nosotros {
  padding: 60px 0;
  background: #fff;
  text-align: center;
}

#nosotros h2 {
  font-size: 2em;
  margin-bottom: 20px;
  text-transform: capitalize;
}

#nosotros p {
  font-size: 1.1em;
  color: #333;
  max-width: 900px;
  margin: 0 auto 20px;
  text-align: justify;
}

#contacto {
  padding: 60px 0;
  text-align: center;
}

#contacto h2 {
  font-size: 2em;
  margin-bottom: 20px;
}

#contacto form {
  max-width: 600px;
  margin: 0 auto;
}

#contacto input,
#contacto textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#contacto button {
  background: #0099ff;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

footer {
  background: #f4f4f4;
  color: #333;
  text-align: center;
  padding: 20px 0;
}

.footer-logo {
  height: 40px;
  display: inline-block;
  vertical-align: middle;
}

/* Logo pequeño en el footer */
.footer-logo-small {
  height: 45px;      /* Ajusta el alto según lo que se vea bien */
  width: auto;
  vertical-align: middle;
  margin-right: 05px;
  display: inline-block;
}
.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px; /* Menor separación entre logo, texto y logo */
  font-size: 1rem;
  width: 100%;
  flex-wrap: wrap;
  min-height: 60px;
}


.footer-text {
  text-align: center;
  /* Elimina flex: 1; y min-width para que el texto no se expanda */
}

/* Hero title and subtitle backgrounds personalizados */
#hero .hero-overlay {
  background: none !important; /* Quita el fondo general */
  padding: 0;
  
}

#hero h1, #hero p {
  display: inline-block;
  background: rgba(0, 0, 0, 0.65); /* Rojo semitransparente */
  padding: 0.5em 1.2em;
  border-radius: 8px;
  margin-bottom: 16px;
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(255,255,255,0.15);
}
#hero h1 {
  font-size: 3rem;
  margin-bottom: 16px;
}
#hero p {
  font-size: 1.5rem;
}

/* === Botones sociales flotantes solo logo, fácil de modificar === */
.social-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  display: flex;
  gap: 14px;
  z-index: 1000;
}
.logo-btn {
  display: inline-block;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  transition: transform 0.15s;
}
.logo-btn img {
  width: 32px;   /* Cambia aquí el tamaño si lo deseas */
  height: 32px;
  object-fit: contain;
  display: block;
  transition: transform 0.15s, filter 0.15s;
}
.logo-btn:hover img {
  transform: scale(1.12);
  filter: brightness(1.15);
}
.social-btn .icon-hover {
  opacity: 0;
}
.social-btn:hover .icon-default {
  opacity: 0;
}
.social-btn:hover .icon-hover {
  opacity: 1;
}

.footer-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 8px;
  display: inline-block;
  vertical-align: middle;
}
.footer-dev {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95em;
  color: #444;
}
.footer-dev-logo {
  width: 60px;
  height: auto;
}

.aspen-link {
  color: #222;
  font-weight: bold;
  text-decoration: underline;
  transition: color 0.2s;
}
.aspen-link:hover {
  color: #0099ff;
}

.container-servicios {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
  position: relative;
  overflow: visible !important;
}

/* SOBRE RA CONTROL - Imagen y texto lado a lado */
.about-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.about-img {
  flex: 1 1 320px;
  min-width: 260px;
  max-width: 400px;
}
.about-img img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  display: block;
}
.about-text {
  flex: 2 1 400px;
  min-width: 260px;
  }
.about-text h2 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 2rem;
  color: #222;
  text-transform: lowercase;
}
.about-text p {
  margin-bottom: 14px;
  color: #333;
  line-height: 1.6;
  font-size: 1.08rem;
}
@media (max-width: 900px) {
  .about-flex {
    flex-direction: column;
    gap: 24px;
    text-align: left;
  }
  .about-img, .about-text {
    max-width: 100%;
  }
}

/* SOBRE RA CONTROL - Fondo y relieve */
#nosotros.bg-alt {
  background: #f5f6fa;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border-radius: 18px;
  margin-top: 32px;
  margin-bottom: 32px;
  padding: 40px 0;
}

/* Fondo más oscuro y a todo el ancho para SOBRE RA CONTROL */
#nosotros.about-full {
  background: #e3e6ec; /* Gris más oscuro, puedes probar #d1d5db o #cfd8dc si quieres aún más oscuro */
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border-radius: 0;
  margin: 0;
  padding: 48px 0;
}
#nosotros .container {
  /* Mantén el centrado y el ancho máximo del contenido */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.service-hero {
  background: #f5f6fa;
  padding: 48px 0 32px 0;
}
.service-hero-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.service-hero-img {
  flex: 1 1 320px;
  min-width: 260px;
  max-width: 400px;
}
.service-hero-img img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  display: block;
}
.service-hero-text {
  flex: 2 1 400px;
  min-width: 260px;
}
.service-hero-text h1 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 2.2rem;
  color: #1a3a6e;
}
.service-hero-text p {
  margin-bottom: 24px;
  color: #333;
  line-height: 1.6;
  font-size: 1.15rem;
}
@media (max-width: 900px) {
  .service-hero-flex {
    flex-direction: column;
    gap: 24px;
    text-align: left;
  }
  .service-hero-img, .service-hero-text {
    max-width: 100%;
  }
}
.service-main {
  min-height: 600px;
  padding: 48px 0 32px 0;
  background: #f5f6fa;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: 80px; /* <-- Añade este margen para separar del header fijo */
}

/* Contenedor del carrusel e información del servicio */
.service-content-wrapper {
  display: flex;
  gap: 48px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  flex-wrap: wrap;
  align-items: center;
  }

/* Columna de imágenes del servicio */
.service-carousel {
  flex: 1 1 420px;
  min-width: 320px;
  max-width: 420px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}


.service-nav-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin: 40px 0 0 0;
}
.service-nav-btn {
  background: rgba(0, 153, 255, 0.18);
  color: rgba(0, 153, 255, 0.85);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.service-nav-btn:hover {
  background: rgba(0, 153, 255, 0.85);
  color: #fff;
}
.service-nav-btn svg {
  width: 28px;
  height: 28px;
  display: block;
}
.service-nav-label {
  font-size: 1.2rem;
  font-weight: bold;
  color: #1a3a6e;
  min-width: 120px;
  text-align: center;
}

.service-carousel-inner {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  background: #fff;
  margin-bottom: 18px;
}

.service-description p {
  line-height: 1.7;
  font-size: 1.15rem;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
  text-align: justify;
}
@media (max-width: 700px) {
  .service-description p {
    text-align: left;
  }
}

.service-description {
  background: linear-gradient(135deg, #fff 80%, #f5f6fa 100%);
  border-radius: 14px;
  padding: 36px 32px;
  box-shadow: 0 4px 24px rgba(0,153,255,0.07);
  max-width: 600px;
  width: 600px;
  margin-bottom: 24px;
  flex: 0 0 600px;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-description h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0099ff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0,153,255,0.08), 0 1px 0 #fff;
  position: relative;
  display: inline-block;
}
.service-description h1::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
   background: linear-gradient(90deg, #0099ff 0%, #005fa3 100%);
  border-radius: 2px;
  margin: 12px auto 0 auto;
}

@media (max-width: 900px) {
  .service-content-wrapper {
    flex-direction: column;
    gap: 32px;
    align-items: center;
  }
  .service-carousel,
  .service-description {
    max-width: 100%;
    flex: 0 0 100%;
  }
  .service-carousel-inner {
    height: 220px;
  }
  .service-carousel-inner img {
    height: 220px;
  }
  .service-description {
    padding: 24px 10px;
  }
}

.service-description {
  border-left: 6px solid #0099ff;
}
@media (max-width: 900px) {
  .service-description {
    border-left: none;
    border-top: 6px solid #0099ff;
  }
}

.service-carousel-inner img {
  width: 100%;
  height: 320px; /* o el alto que uses en los otros servicios */
  object-fit: cover; /* por defecto para las demás */
  border-radius: 12px;
  transition: opacity 0.4s;
  position: absolute;
  top: 0; left: 0;
  opacity: 0;
  z-index: 1;
}
.service-carousel-inner img.active {
  opacity: 1;
  z-index: 2;
}

.service-carousel-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.service-carousel-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0099ff;
  opacity: 0.3;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
}
.service-carousel-dot.active {
  opacity: 1;
  background: #0099ff;
}
/* Carrusel de marcas aliadas */
.brands-carousel-section {
  background: rgba(0,0,0,0.75);
  padding: 36px 0 28px 0;
  margin: 0;
  position: relative;
}

.brands-carousel-title {
  color: #0099ff;
  font-size: 1.25rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  text-shadow: 0 2px 12px rgba(0,153,255,0.10), 0 1px 0 #fff;
  background: linear-gradient(90deg, #0099ff 0%, #005fa3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brands-carousel-wrapper {
  overflow: hidden;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
}

.brands-carousel {
  display: flex;
  gap: 48px;
  animation: brands-scroll 32s linear infinite;
  will-change: transform;
}

.brands-carousel img {
  height: 54px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(1) brightness(2.2) contrast(0.7);
  opacity: 0.85;
  transition: filter 0.2s, opacity 0.2s;
  background: none;
  padding: 0;
  pointer-events: none; /* El hover se maneja en el contenedor */
}

.brands-carousel img:hover {
  filter: grayscale(0) brightness(1) contrast(1);
  opacity: 1;
  z-index: 2;
  animation-play-state: paused;
}

@keyframes brands-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 700px) {
  .brands-carousel-title {
    font-size: 0.98rem;
    padding: 0 8px;
  }
  .brands-carousel-wrapper {
    height: 54px;
  }
  .brands-carousel img {
    height: 32px;
    max-width: 80px;
    padding: 0 4px;
  }
  .brands-carousel {
    gap: 24px;
  }
}

.divider-svg {
  width: 100%;
  overflow: hidden;
  margin: 0;
  background: transparent;
}

.wave-divider {
  width: 100vw;
  min-width: 100vw;
  margin: 0;
  padding: 0;
  line-height: 0;
  position: relative;
  left: 50%;
  right: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: transparent;
  /* Sube la onda para que tape el borde inferior del hero */
  margin-top: -63px; /* Ajusta este valor según lo que necesites */
}

.wave-divider.wave-divider-flat {
  margin-top: 0;
}

.wave-divider svg {
  display: block;
  width: 100vw;
  min-width: 100vw;
  height: 80px;
  margin: 0;
  padding: 0;
}

.footer-logo-small,
.footer-logo-aspen {
  height: 56px;      /* Ajusta el tamaño según lo que se vea bien */
  width: auto;
  display: inline-block;
  vertical-align: middle;
}


.footer-logo-aspen {
  margin-left: 8px;
}

.footer-text {
  text-align: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;      /* Igual al height de .brands-carousel-wrapper */
  width: 140px;
  background: transparent;
  border-radius: 12px;
  transition: box-shadow 0.2s;
  cursor: pointer;
}

.brand-logo:hover img {
  filter: grayscale(0) brightness(1) contrast(1);
  opacity: 1;
  z-index: 2;
}

.brand-logo:hover {
  box-shadow: 0 2px 12px #0099ff44;
}

/* Menú desplegable para Servicios */
.menu .dropdown {
  position: relative;
}

.menu .dropdown:hover .dropdown-content,
.menu .dropdown:focus-within .dropdown-content {
  display: block;
}

.menu .dropdown-content li {
  display: block;
  width: 100%;
}

.menu .dropdown-content a {
  display: block;
  padding: 12px 24px;
  color: #222;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  border-radius: 4px;
}

.menu .dropdown-content a:hover {
  background: #0099ff;
  color: #fff;
}


.menu .dropdown .dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: #fff;
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0,153,255,0.10);
  border-radius: 8px;
  z-index: 100;
  padding: 8px 0;
}

header .menu li a.active,
header .menu li .dropbtn.active {
  color: #0099ff !important;
  font-weight: 600;
}

header .menu li a.active,
header .menu li .dropbtn.active {
  color: #0099ff !important;
  font-weight: 600;
  position: relative;
}

/* Línea azul bajo la opción activa */
header .menu li a.active::after,
header .menu li .dropbtn.active::after {
  content: '';
  display: block;
  width: 100%;
  height: 3px;
  background: #0099ff;
  border-radius: 2px;
  position: absolute;
  left: 0;
  bottom: 0;
}