:root {
  --azul: #0f2f57;
  --dorado: #d4af37;
  --negro: #111111;
  --texto: #3f4a59;
  --blanco: #ffffff;
  --fondo: #f7f7f5;
  --borde: #ececec;
  --sombra: 0 14px 35px rgba(17, 17, 17, 0.07);
  --radio: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--negro);
  background: var(--blanco);
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
h1, h2, h3 { overflow-wrap: break-word; }
a { color: inherit; }
button, input, select { font: inherit; }

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- HERO ---------- */
.hero {
  aspect-ratio: 16 / 9;
  position: relative;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,.0) 0%,
    rgba(0,0,0,.20) 46%,
    rgba(0,0,0,.03) 100%
  ),
  url("img/fondo.png") center/cover no-repeat;
}
.hero-content {
  width: 100%;
  padding: 0 48px 150px;
}
.hero-texto {
  max-width: 560px;
  color: var(--blanco);
}
.hero-tag, .section-tag {
  display: inline-block;
  color: #111;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
}
.hero h1 {
  margin: 10px 0 22px;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -.045em;
  font-weight: 800;
  max-width: 750px;
}
.btn-hero, .btn-servicio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 30px;
  border-radius: 10px;
  background: var(--dorado);
  color: #111;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(212,175,55,.22);
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn-hero:hover, .btn-servicio:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(212,175,55,.3); }

/* =========================================================
   DIVISIÓN ENTRE SECCIONES
   ========================================================= */

.seccion-blanca,
.seccion-clara,
.clientes {
  background: var(--blanco);
}

.seccion-dividida {
  position: relative;
}

.seccion-dividida::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1000px, 80%);
  height: 5px;
  transform: translateX(-50%);
  background: red;
  background: linear-gradient(
    90deg,
    transparent,
    var(--dorado),
    transparent
  );
  opacity: .45;
}

.nosotros { padding: 120px 0 125px; }
.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.nosotros-info h2, .servicios h2, .vacantes h2, .contacto h2 {
  margin: 12px 0 24px;
  font-size: clamp(2.6rem, 4.5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.nosotros-info p, .servicios-intro p, .contacto p {
  max-width: 620px;
  color: var(--texto);
  font-size: 1.05rem;
}
.nosotros-cards { display: grid; gap: 24px; }
.info-card {
  padding: 34px;
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}
.info-card h3 { margin: 0 0 14px; font-size: 1.5rem; }
.info-card p, .info-card li { color: var(--texto); }
.info-card ul { margin: 0; padding-left: 20px; }
.servicios {
  padding: 95px 0 100px;
}

/* =========================================================
   GALERÍA DE SERVICIOS
   ========================================================= */

.galeria-servicio {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 45px auto 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Ventana que contiene las imágenes */
.galeria-viewport {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
}

/* Cada imagen */
.galeria-item {
  display: none;
  margin: 0;
  width: 100%;
  height: 500px;
  border-radius: 22px;
  overflow: hidden;
}

/* Imagen que se está mostrando */
.galeria-item.activa {
  display: block;
}

/* Imagen */
.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* =========================================================
   FLECHAS
   ========================================================= */

.galeria-flecha {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;

  border: none;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.95);
  color: #111;

  font-size: 24px;
  font-weight: 600;

  cursor: pointer;

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.galeria-flecha:hover {
  transform: scale(1.08);
  background: #D4AF37;
}

.galeria-flecha:active {
  transform: scale(0.96);
}


/* =========================================================
   INDICADORES
   ========================================================= */

.galeria-indicadores {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;

  margin-top: 18px;
}

.indicador {
  width: 8px;
  height: 8px;

  padding: 0;
  border: none;
  border-radius: 50%;

  background: #d5d5d5;

  cursor: pointer;

  transition:
    width 0.2s ease,
    background 0.2s ease;
}

.indicador.activo {
  width: 24px;
  border-radius: 10px;
  background: #D4AF37;
}


/* =========================================================
   BOTÓN DE COTIZACIÓN
   ========================================================= */

.servicio-cta {
  text-align: center;
  margin-top: 38px;
}

.servicio-cta p {
  margin-bottom: 20px;
}

.btn-servicio {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 16px 30px;

  border-radius: 10px;

  background: #D4AF37;
  color: #111;

  font-weight: 700;
  text-decoration: none;

  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.18);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-servicio:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(212, 175, 55, 0.25);
}


/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 768px) {

  .galeria-servicio {
    gap: 10px;
  }

  .galeria-flecha {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .galeria-item {
    height: 360px;
  }

}

/* ---------- VACANTES ---------- */
.vacantes { padding: 115px 0 125px; }
.vacantes-container { max-width: 900px; }
.vacantes-header { margin-bottom: 36px; }
.vacantes-header p { color: var(--texto); }
  
.vacante-item {
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--blanco);
  box-shadow: var(--sombra);
}
.vacante-titulo {
  width: 100%;
  min-height: 92px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  color: var(--negro);
  text-align: left;
  font-size: 1.55rem;
  font-weight: 700;
  cursor: pointer;
}
.vacante-icono { color: var(--dorado); font-size: 1.8rem; line-height: 1; }
.vacante-contenido {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  transition: max-height .35s ease, padding .35s ease;
}
.vacante-item.activo .vacante-contenido { max-height: 900px; padding-bottom: 30px; }
.vacante-datos p { margin: 5px 0; color: var(--texto); }
.vacante-contenido h3 { margin: 24px 0 8px; font-size: 1rem; }
.vacante-contenido ul { color: var(--texto); }
.vacante-botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn-whatsapp, .btn-cv, .btn-secundario {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-cv { background: var(--azul); color: #fff; }
.btn-whatsapp:hover, .btn-cv:hover, .btn-secundario:hover { transform: translateY(-2px); }

/* ---------- CONTACTO ---------- */
.contacto { padding: 105px 0 115px; background: #D4AF37; }
.contacto-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr auto;
  gap: 50px;
  align-items: end;
}
.contacto-linea { display: block; padding: 10px 0; text-decoration: none; border-bottom: 1px solid var(--borde); }
.contacto-linea strong, .contacto-linea span { display: block; }
.contacto-linea span { color: #fff;}
.contacto-acciones { display: flex; flex-direction: column; gap: 10px; }
.btn-secundario { border: 1px solid #d9d9d9; color: var(--negro); background: var(--blanco); }

/* ---------- FOOTER ---------- */
.footer { padding: 28px 0; background: #101010; color: #d8d8d8; font-size: .88rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.footer p { margin: 0; }
.footer a { color: #fff; text-decoration: none; }

/* ---------- WHATSAPP FLOTANTE ---------- */
.whatsapp-flotante {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.whatsapp-flotante-btn {
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(0,0,0,.15);
  transition: transform .2s ease, opacity .2s ease;
}
.whatsapp-cotizaciones { background: var(--azul); }
.whatsapp-rh { background: #3b3b3b; }
.whatsapp-flotante-btn:hover { transform: translateX(-4px); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 850px) {
  /* aspect-ratio + min-height ensanchaba el hero más que la pantalla; en móvil se desactiva */
  .hero { aspect-ratio: auto; min-height: 680px; }
  .hero-content { padding-bottom: 60px; }
  .nosotros-grid, .contacto-grid { grid-template-columns: 1fr; gap: 45px; }
  .contacto-acciones { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 600px) {
  /* Ajustes para pantallas de celular */
  .nosotros-grid,
  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .nosotros-cards {
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
  }

  .nosotros-info,
  .nosotros-cards,
  .servicios-intro,
  .vacantes-container,
  .contacto-datos {
    min-width: 0;
  }

  .container {
    width: calc(100% - 32px);
    max-width: 1120px;
    margin-inline: auto;
  }

  /* Conserva aquí las demás reglas móviles que ya tenías */

  .hero { min-height: 650px; background-position: 63% center; }
  /* El .container ya deja 16px a cada lado; quitamos los 48px extra del escritorio */
  .hero-content { padding: 0 0 42px; }
  .hero h1 { font-size: clamp(2.2rem, 10.5vw, 3.4rem); }
  .nosotros, .servicios, .vacantes, .contacto { padding: 80px 0; }
  .nosotros-info h2, .servicios h2, .vacantes h2, .contacto h2 { font-size: clamp(1.8rem, 8vw, 2.45rem); }
  .galeria-servicio {
  display: flex;
  width: 100%;
  min-width: 0;
  gap: 8px;
}

.galeria-viewport {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
}

.galeria-flecha {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  font-size: 18px;
}
  .galeria-item { height: 260px; }
  .vacante-titulo { min-height: 78px; padding: 0 20px; font-size: 1.2rem; }
  .vacante-contenido { padding-left: 20px; padding-right: 20px; }
  .vacante-item.activo .vacante-contenido { padding-bottom: 22px; }
  .vacante-botones { flex-direction: column; }
  .btn-whatsapp, .btn-cv, .btn-servicio, .btn-secundario { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .whatsapp-flotante { right: 12px; bottom: 12px; }
  .whatsapp-flotante-btn { padding: 8px 14px; font-size: .8rem; }
  /* Espacio para que los botones flotantes no tapen el pie de página */
  .footer { padding-bottom: 110px; }
  .contacto-linea span { overflow-wrap: anywhere; }
}

/* =========================================================
   EMPRESAS QUE CONFÍAN EN ARES
   ========================================================= */

.clientes {
  padding: 110px 0 150px;
  background: var(--blanco);
  overflow: hidden;
}


/* ---------------------------------------------------------
   ENCABEZADO
   --------------------------------------------------------- */

.clientes-encabezado {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 55px;
}

.clientes-etiqueta {
  display: inline-block;
  margin-bottom: 14px;

  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;

  color: #D4AF37;
}

.clientes-encabezado h2 {
  margin: 0 0 18px;

  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -.035em;

  color: #111;
}

.clientes-encabezado p {
  margin: 0;

  font-size: 16px;
  line-height: 1.7;

  color: #666;
}


/* ---------------------------------------------------------
   CARRUSEL
   --------------------------------------------------------- */

.clientes-carrusel {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 10px 0;
}


/* ---------------------------------------------------------
   DESVANECIMIENTO EN LOS EXTREMOS
   --------------------------------------------------------- */

.clientes-carrusel::before,
.clientes-carrusel::after {
  content: "";
  position: absolute;

  top: 0;
  bottom: 0;

  width: 120px;

  z-index: 2;
  pointer-events: none;
}

.clientes-carrusel::before {
  left: 0;

  background:
    linear-gradient(
      90deg,
      #f8f8f7 0%,
      rgba(248, 248, 247, 0) 100%
    );
}

.clientes-carrusel::after {
  right: 0;

  background:
    linear-gradient(
      270deg,
      #f8f8f7 0%,
      rgba(248, 248, 247, 0) 100%
    );
}


/* ---------------------------------------------------------
   TRACK PRINCIPAL
   --------------------------------------------------------- */

.clientes-track {
  display: flex;
  align-items: center;

  width: max-content;

  animation:
    movimientoClientes 24s linear infinite;

  will-change: transform;
}


/* ---------------------------------------------------------
   CADA GRUPO DE 3 LOGOS
   --------------------------------------------------------- */

.clientes-grupo {
  display: flex;
  align-items: center;

  gap: 30px;

  flex-shrink: 0;

  padding-right: 30px;
}


/* ---------------------------------------------------------
   TARJETAS DE LOGOS
   --------------------------------------------------------- */

.cliente-logo {
  width: 250px;
  height: 130px;

  flex: 0 0 250px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  box-sizing: border-box;

  background: #fff;

  border: 1px solid #e7e7e7;
  border-radius: 18px;

  box-shadow:
    0 8px 30px rgba(0, 0, 0, .045);

  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.cliente-logo:hover {
  transform: translateY(-4px);

  box-shadow:
    0 14px 35px rgba(0, 0, 0, .09);
}


/* ---------------------------------------------------------
   IMÁGENES DE LOS CLIENTES
   --------------------------------------------------------- */

.cliente-logo img {
  max-width: 100%;
  max-height: 90px;

  width: auto;
  height: auto;

  object-fit: contain;

  display: block;
}


/* ---------------------------------------------------------
   ANIMACIÓN CONTINUA
   --------------------------------------------------------- */

@keyframes movimientoClientes {

  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }

}


/* ---------------------------------------------------------
   PAUSAR AL PASAR EL MOUSE
   --------------------------------------------------------- */

.clientes-carrusel:hover .clientes-track {
  animation-play-state: paused;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 768px) {

  .clientes {
    padding: 80px 0;
  }

  .clientes-encabezado {
    margin-bottom: 40px;
    padding: 0 20px;
  }

  .clientes-carrusel::before,
  .clientes-carrusel::after {
    width: 60px;
  }

  .clientes-grupo {
    gap: 20px;
    padding-right: 20px;
  }

  .cliente-logo {
    width: 210px;
    height: 115px;

    flex-basis: 210px;
  }

  .cliente-logo img {
    max-height: 78px;
  }

}
/* Enlace al aviso de privacidad en Vacantes */
.vacantes-privacidad {
    margin-top: 12px;
    font-size: 14px;
    color: #6b6b6b;
}

.vacantes-privacidad a {
    color: #D4AF37;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.vacantes-privacidad a:hover {
    color: #0B0B0B;
    text-decoration: underline;
}