/* ============================================================
   ROGEL FOTOGRAFÍA — Hoja de estilos
   Colores y tipografías centralizados abajo (:root).
   No necesitas cambiar nada aquí para editar textos o fotos.
   ============================================================ */

:root {
  --negro:      #111111;
  --navy:       #12344D;
  --dorado:     #C9A227;
  --gris:       #D9D9D9;
  --tenue:      #9AA3AB;
  --blanco:     #FFFFFF;
  --gris-campo: #F4F4F4;
  --borde:      #D9D9D9;
  --logo-gris:  #B0B6BC;

  --fuente-titulo: "Montserrat", system-ui, sans-serif;
  --fuente-texto:  "Inter", system-ui, sans-serif;

  --ancho-max: 1328px;   /* ancho del contenido en pantallas grandes */
  --pad-lat:   56px;     /* separación lateral en escritorio */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--fuente-texto);
  color: var(--negro);
  background: var(--blanco);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

h1, h2, h3 { font-family: var(--fuente-titulo); font-weight: 700; margin: 0; }

/* contenedor centrado con padding lateral */
.contenido {
  width: 100%;
  max-width: var(--ancho-max);
  margin: 0 auto;
  padding-left: var(--pad-lat);
  padding-right: var(--pad-lat);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fuente-titulo);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 16px 32px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn--dorado { background: var(--dorado); color: var(--negro); }
.btn--dorado:hover { background: #d9b53a; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(201,162,39,.35); }
.btn--linea { background: transparent; color: var(--blanco); border-color: var(--blanco); }
.btn--linea:hover { background: var(--blanco); color: var(--negro); transform: translateY(-2px); }
.btn--ancho { width: 100%; }
.btn:active { transform: translateY(0); }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  background: var(--negro);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.marca { display: flex; align-items: center; gap: 12px; }
.marca__logo {
  width: 40px; height: 40px;
  background: var(--dorado);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fuente-titulo); font-weight: 700; font-size: 18px;
  color: var(--negro);
  flex-shrink: 0;
  border-radius: 8px;
}
.marca__nombre { color: var(--blanco); font-family: var(--fuente-titulo); font-weight: 700; font-size: 18px; letter-spacing: 1px; line-height: 1.1; }
.marca__sub    { color: var(--dorado); font-size: 10px; letter-spacing: 3px; }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__link  { color: var(--blanco); font-size: 13px; letter-spacing: 1px; transition: color .2s; }
.nav__link:hover, .nav__link.activo { color: var(--dorado); }

.nav__cta { padding: 12px 22px; font-size: 12px; }
.nav__cta--movil { display: none; }

.nav__toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav__toggle span { display: block; height: 2px; background: var(--blanco); transition: .25s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  background: var(--negro);
  overflow: hidden;
}
/* imagen de fondo con zoom lento */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../assets/imagenes/hero.jpg") center / cover no-repeat;
  z-index: 0;
  animation: kenburns 22s ease-in-out infinite alternate;
}
/* degradado oscuro encima */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, #111111EE 0%, #11111166 100%);
  z-index: 2;
}
/* video de fondo opcional (ver LEEME.md). Si existe, tapa la imagen. */
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hero__inner { position: relative; z-index: 3; padding-top: 120px; padding-bottom: 120px; }

@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09); } }

/* ---------- Hero estilo Vioo (inicio) ---------- */
.hero-v {
  background:
    radial-gradient(1100px 560px at 50% -12%, rgba(18,52,77,.6), transparent 62%),
    var(--negro);
  overflow: hidden;
}
.hero-v__inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 48px; text-align: center;
  padding-top: 88px; padding-bottom: 88px;
}
.hero-v__texto { max-width: 900px; animation: heroTextIn .7s ease both; }
.hero-v__title {
  color: var(--blanco);
  font-size: 58px; line-height: 1.08; letter-spacing: -.5px;
  margin-bottom: 22px;
}
.rot { color: var(--dorado); display: inline-block; transition: opacity .3s ease, transform .3s ease; }
.rot.cambiando { opacity: 0; transform: translateY(10px); }
.hero-v__title .punto { color: var(--dorado); }
.hero-v__sub {
  color: var(--gris); font-size: 18px; line-height: 1.5;
  max-width: 600px; margin: 0 auto 28px;
}
.hero-v__botones { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

.hero-v__galeria {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  width: 100%; min-height: 400px;
}
.hero-v__blob {
  position: absolute; z-index: 0;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,.28), transparent 68%);
  filter: blur(10px);
}
.hero-v__slot { animation: heroCardIn .8s ease both; }
.hero-v__slot--1 { animation-delay: .05s; margin-right: -44px; }
.hero-v__slot--2 { animation-delay: .18s; }
.hero-v__slot--3 { animation-delay: .31s; margin-left: -44px; }
.hero-v__card {
  width: 300px; height: 380px;
  border-radius: 18px;
  background-size: cover; background-position: center;
  box-shadow: 0 30px 60px rgba(0,0,0,.55);
  position: relative; z-index: 2;
  transition: transform .3s ease, box-shadow .3s ease;
}
.hero-v__card--1 { transform: rotate(-6deg); }
.hero-v__card--2 { transform: translateY(-24px) scale(1.05); z-index: 3; }
.hero-v__card--3 { transform: rotate(6deg); }
.hero-v__card:hover { transform: translateY(-10px) scale(1.06) rotate(0deg); z-index: 4; box-shadow: 0 36px 72px rgba(0,0,0,.6); }

@keyframes heroTextIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes heroCardIn { from { opacity: 0; transform: translateY(46px); } to { opacity: 1; transform: none; } }
.hero__content { max-width: 680px; }
.hero__title {
  color: var(--blanco);
  font-size: 54px;
  line-height: 1.09;
  margin-bottom: 24px;
}
.hero__sub {
  color: var(--gris);
  font-size: 18px;
  line-height: 1.5;
  max-width: 520px;
  margin-bottom: 28px;
}
.hero__buttons { display: flex; flex-wrap: wrap; gap: 16px; }

/* ============================================================
   BARRA DE MÉTRICAS
   ============================================================ */
.metricas { background: var(--navy); }
.metricas__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 36px;
  padding-bottom: 36px;
}
.metrica__valor { color: var(--dorado); font-family: var(--fuente-titulo); font-weight: 700; font-size: 30px; }
.metrica__label { color: var(--gris); font-size: 11px; letter-spacing: 1px; margin-top: 6px; }

/* ============================================================
   SERVICIOS
   ============================================================ */
.servicios { background: var(--blanco); padding: 80px 0; }
.seccion-head { text-align: center; margin-bottom: 48px; }
.eyebrow { color: var(--dorado); font-size: 13px; letter-spacing: 2px; display: block; margin-bottom: 12px; }
.seccion-title { color: var(--negro); font-size: 36px; }

/* Carrusel de servicios (4 visibles + flechas, sin huecos) */
.svc-slider { position: relative; }
.servicios__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 4px 36px;
}
.servicios__track::-webkit-scrollbar { display: none; }
.servicios__track .card {
  flex: 0 0 calc((100% - 72px) / 4);
  scroll-snap-align: start;
}

.slider__flecha {
  position: absolute;
  top: calc(50% - 40px);
  transform: translateY(-50%);
  z-index: 5;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--negro); color: var(--blanco);
  border: 0; font-size: 24px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(17,17,17,.3);
  transition: background .25s ease, color .25s ease, transform .25s ease, opacity .25s ease;
}
.slider__flecha:hover { background: var(--dorado); color: var(--negro); transform: translateY(-50%) scale(1.12); }
.slider__flecha--prev { left: -16px; }
.slider__flecha--next { right: -16px; }
.slider__flecha[disabled] { opacity: .2; pointer-events: none; }
.card {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,17,17,.8) 0%, rgba(17,17,17,.18) 46%, transparent 70%);
  transition: background .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(17,17,17,.3); }
.card:hover::after { background: linear-gradient(to top, rgba(17,17,17,.86) 0%, rgba(17,17,17,.3) 55%, rgba(201,162,39,.14) 100%); }
.card__label {
  position: relative; z-index: 2;
  color: var(--blanco);
  font-family: var(--fuente-titulo); font-weight: 700; font-size: 20px;
  text-align: center;
  padding: 0 16px 26px;
  text-shadow: 0 2px 14px rgba(0,0,0,.55);
}

/* ============================================================
   CÓMO FUNCIONA (mockup de teléfono + pasos)
   ============================================================ */
.como { background: #F7F7F7; padding: 80px 0; overflow: hidden; }
.como__inner { display: flex; align-items: center; gap: 64px; }

.como__visual { flex: 1 1 44%; position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
.como__blob {
  position: absolute; z-index: 0; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 400px; height: 400px;
  background: #F3E7CE;
  border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%;
}

.como__pasos { flex: 1 1 56%; display: flex; flex-direction: column; gap: 28px; }
.como__title { font-size: 34px; color: var(--negro); }
.como__title .punto { color: var(--dorado); }
.paso { display: flex; gap: 18px; align-items: flex-start; }
.paso__icon {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 12px;
  background: var(--navy); display: flex; align-items: center; justify-content: center;
}
.paso__icon svg { width: 24px; height: 24px; stroke: var(--dorado); fill: none; }
.paso__t { font-size: 18px; color: var(--negro); margin-bottom: 4px; }
.paso__d { font-size: 15px; color: var(--tenue); line-height: 1.5; }

/* Teléfono */
.telefono {
  position: relative; z-index: 2;
  width: 280px; height: 566px;
  background: #111; border-radius: 42px; padding: 12px;
  box-shadow: 0 34px 72px rgba(0,0,0,.28);
}
.telefono__notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 22px; background: #111; border-radius: 0 0 14px 14px; z-index: 3;
}
.telefono__pantalla { background: #fff; border-radius: 32px; height: 100%; overflow: hidden; display: flex; flex-direction: column; }
.tel__top { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 8px; }
.tel__marca { font-family: var(--fuente-titulo); font-weight: 700; font-size: 12px; letter-spacing: 1px; color: var(--negro); display: flex; align-items: center; gap: 6px; }
.tel__logo { background: var(--dorado); color: var(--negro); width: 20px; height: 20px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 10px; }
.tel__menu { width: 18px; height: 2px; background: #111; box-shadow: 0 6px 0 #111, 0 -6px 0 #111; }
.tel__match {
  margin: 8px 12px; padding: 20px 16px; border-radius: 16px;
  background: linear-gradient(160deg, #C9A227, #a2801c); color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
}
.tel__check { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.tel__match-t { font-family: var(--fuente-titulo); font-weight: 700; font-size: 16px; }
.tel__match-s { font-size: 11px; opacity: .92; line-height: 1.35; }
.tel__perfil { margin-top: 8px; background: #fff; border-radius: 10px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; width: 100%; }
.tel__avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); flex-shrink: 0; }
.tel__perfil-txt { font-size: 10px; color: var(--negro); text-align: left; line-height: 1.35; }
.tel__resumen { padding: 12px 18px; display: flex; flex-direction: column; gap: 7px; }
.tel__resumen-t { font-family: var(--fuente-titulo); font-weight: 700; color: var(--dorado); font-size: 13px; margin-bottom: 2px; }
.tel__fila { font-size: 11px; color: #444; }
.tel__fila b { color: var(--negro); }
.tel__btn { margin-top: 10px; background: var(--dorado); color: var(--negro); font-family: var(--fuente-titulo); font-weight: 700; font-size: 12px; text-align: center; padding: 11px; border-radius: 999px; }

/* ============================================================
   BANDA CTA
   ============================================================ */
.cta {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  background-image: linear-gradient(#111111CC, #111111CC), url("../assets/imagenes/cta.jpg");
  background-size: cover;
  background-position: center;
}
.cta__inner { padding-top: 56px; padding-bottom: 56px; }
.cta__content { max-width: 760px; }
.cta__title { color: var(--blanco); font-size: 38px; line-height: 1.16; margin-bottom: 20px; }
.cta__sub   { color: var(--gris); font-size: 16px; line-height: 1.5; max-width: 620px; margin-bottom: 24px; }

/* ============================================================
   CLIENTES
   ============================================================ */
.clientes { background: var(--blanco); padding: 56px 0; text-align: center; }
.clientes__title { color: var(--tenue); font-size: 13px; letter-spacing: 2px; margin-bottom: 32px; }
.clientes__logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 48px; }
.clientes__logo { color: var(--logo-gris); font-family: var(--fuente-titulo); font-weight: 700; font-size: 18px; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contacto { background: var(--negro); padding: 80px 0; }
.contacto__inner { display: flex; gap: 56px; align-items: flex-start; }
.contacto__left { width: 440px; flex-shrink: 0; }
.contacto__title { color: var(--blanco); font-size: 34px; line-height: 1.1; margin: 12px 0 16px; }
.contacto__desc  { color: var(--gris); font-size: 15px; line-height: 1.55; margin-bottom: 28px; }

.info-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.info-row__icon {
  width: 38px; height: 38px; flex-shrink: 0;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
}
.info-row__icon svg { width: 18px; height: 18px; stroke: var(--dorado); fill: none; }
.info-row__t { color: var(--blanco); font-family: var(--fuente-titulo); font-weight: 700; font-size: 13px; }
.info-row__v { color: var(--gris); font-size: 13px; }
.info-row__v:hover { color: var(--dorado); }

/* Formulario */
.form {
  background: var(--blanco);
  flex: 1 1 0;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-radius: 18px;
}
.form__row { display: flex; gap: 16px; }
.form__field { flex: 1 1 0; display: flex; flex-direction: column; gap: 6px; }
.form__label { color: var(--negro); font-family: var(--fuente-titulo); font-weight: 700; font-size: 12px; letter-spacing: 1px; }
.form__input, .form__select, .form__textarea {
  font-family: var(--fuente-texto);
  font-size: 14px;
  color: var(--negro);
  background: var(--gris-campo);
  border: 1px solid var(--borde);
  padding: 12px 14px;
  width: 100%;
  border-radius: 10px;
  transition: border-color .2s ease, background .2s ease;
}
.form__input::placeholder, .form__textarea::placeholder { color: var(--tenue); }
.form__select { color: var(--tenue); }
.form__select:valid { color: var(--negro); }
.form__textarea { min-height: 90px; resize: vertical; }
.form__input:focus, .form__select:focus, .form__textarea:focus {
  outline: none; border-color: var(--dorado); background: var(--blanco);
}
.form__input.invalido, .form__select.invalido, .form__textarea.invalido {
  border-color: #c62828;
  background: #fff5f5;
}
.form__error { color: #c62828; font-size: 12px; line-height: 1.4; }
.form__aviso { font-size: 13px; margin: 0; display: none; }
.form__aviso--ok  { color: #2e7d32; display: block; }
.form__aviso--err { color: #c62828; display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--negro); border-top: 1px solid var(--navy); }
.footer__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-top: 28px; padding-bottom: 28px;
}
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__logo {
  width: 32px; height: 32px; background: var(--dorado);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fuente-titulo); font-weight: 700; font-size: 14px; color: var(--negro);
  border-radius: 7px;
}
.footer__name { color: var(--blanco); font-family: var(--fuente-titulo); font-weight: 700; font-size: 14px; letter-spacing: 1px; }
.footer__copy { color: var(--tenue); font-size: 12px; }

/* ============================================================
   HERO DE 2 COLUMNAS (Servicios y Nosotros)
   ============================================================ */
.hero2 { background: var(--negro); }
.hero2__inner { display: flex; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero2__left { flex: 1 1 46%; }
.hero2__title { color: var(--blanco); font-size: 42px; line-height: 1.12; margin: 12px 0 16px; }
.hero2__desc { color: var(--gris); font-size: 16px; line-height: 1.6; margin-bottom: 8px; }
.hero2__media { flex: 1 1 54%; align-self: stretch; min-height: 400px; background-size: cover; background-position: center; border-radius: 18px; }

.features { display: flex; flex-direction: column; gap: 12px; margin: 8px 0 4px; }
.feature { display: flex; align-items: center; gap: 10px; color: var(--blanco); font-size: 15px; }
.feature svg { width: 18px; height: 18px; stroke: var(--dorado); fill: none; flex-shrink: 0; }

/* ============================================================
   GALERÍA (página de servicio)
   ============================================================ */
.galeria { background: var(--blanco); padding: 64px 0; text-align: center; }
.galeria__title { color: var(--negro); font-size: 30px; margin-bottom: 24px; }
.galeria__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.galeria__img { height: 200px; background-size: cover; background-position: center; border-radius: 14px; transition: transform .25s ease; }
.galeria__img:hover { transform: scale(1.03); }

/* ============================================================
   PORTAFOLIO
   ============================================================ */
.pf-head { background: var(--negro); text-align: center; padding: 56px 0 32px; }
.pf-head__title { color: var(--blanco); font-size: 40px; }
.pf-head__sub { color: var(--tenue); font-size: 15px; margin-top: 8px; }
.pf-filtros { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.pf-filtro {
  font-family: var(--fuente-titulo); font-weight: 700; font-size: 12px; letter-spacing: 1px;
  color: var(--gris); background: transparent; border: 1px solid #333; padding: 10px 18px; cursor: pointer;
  border-radius: 999px;
  transition: background .2s, color .2s, border-color .2s;
}
.pf-filtro:hover { border-color: var(--dorado); color: var(--blanco); }
.pf-filtro.activo { background: var(--dorado); color: var(--negro); border-color: var(--dorado); }

.pf-grid { background: var(--blanco); padding: 40px 0 64px; }
.pf-grid__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pf-item { height: 210px; background-size: cover; background-position: center; overflow: hidden; border-radius: 14px; }
.pf-item { transition: transform .3s ease, box-shadow .3s ease; }
.pf-item:hover { transform: scale(1.03); box-shadow: 0 14px 30px rgba(17,17,17,.22); }
.pf-vacio { grid-column: 1 / -1; text-align: center; color: var(--tenue); padding: 40px 0; }

/* ============================================================
   VALORES (Nosotros)
   ============================================================ */
.valores { background: var(--blanco); padding: 64px 0; text-align: center; }
.valores__title { color: var(--negro); font-size: 32px; margin-bottom: 40px; }
.valores__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: left; }
.valor { background: #F7F7F7; padding: 28px; display: flex; flex-direction: column; gap: 14px; border-radius: 16px; transition: transform .25s ease, box-shadow .25s ease; }
.valor:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(17,17,17,.12); }
.valor__icon { width: 48px; height: 48px; background: var(--navy); display: flex; align-items: center; justify-content: center; border-radius: 12px; }
.valor__icon svg { width: 22px; height: 22px; stroke: var(--dorado); fill: none; }
.valor__t { color: var(--negro); font-size: 18px; }
.valor__d { color: var(--tenue); font-size: 14px; line-height: 1.5; }

/* ============================================================
   CARRUSEL DE INDUSTRIAS (Experiencia)
   ============================================================ */
.expertise { background: var(--blanco); padding: 80px 0; }

.carrusel { position: relative; margin-top: 44px; }
.carrusel__escenario { position: relative; min-height: 520px; }

.carrusel__foto {
  width: 66%;
  height: 520px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  background-color: var(--gris);
  transition: opacity .25s ease;
}
.carrusel__tarjeta {
  position: absolute;
  right: 0; top: 60px;
  width: 42%; height: 400px;
  background: var(--negro);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 40px;
  border-radius: 6px;
  box-shadow: 0 28px 64px rgba(0,0,0,.4);
}
.carrusel__titulo {
  font-family: var(--fuente-titulo); font-weight: 700; font-size: 42px;
  color: var(--blanco); text-align: center; transition: opacity .25s ease;
}
.carrusel__titulo .punto { color: var(--dorado); }
.carrusel__etiqueta {
  color: var(--tenue); font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  transition: opacity .25s ease;
}
.carrusel.cambiando .carrusel__foto,
.carrusel.cambiando .carrusel__titulo,
.carrusel.cambiando .carrusel__etiqueta { opacity: 0; }

.carrusel__flecha {
  position: absolute; top: 260px; transform: translateY(-50%);
  z-index: 5; width: 46px; height: 62px;
  background: var(--negro); color: var(--blanco); border: 0; cursor: pointer;
  font-size: 24px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  transition: background .2s ease, transform .2s ease;
}
.carrusel__flecha:hover { background: var(--navy); transform: translateY(-50%) scale(1.06); }
.carrusel__flecha--prev { left: 0; }
.carrusel__flecha--next { right: 0; }

/* ============================================================
   BANNER Y MAPA (Contacto)
   ============================================================ */
.ct-banner { background: var(--navy); text-align: center; padding: 56px 0; }
.ct-banner__title { color: var(--blanco); font-size: 38px; }
.ct-banner__sub { color: var(--gris); font-size: 16px; margin-top: 12px; }
.mapa { height: 320px; background-size: cover; background-position: center; background-color: var(--navy); }

/* ============================================================
   ANIMACIONES Y MEJORAS
   ============================================================ */

/* Nav: sombra al hacer scroll */
.nav { transition: box-shadow .3s ease; }
.nav.scrolled { box-shadow: 0 8px 30px rgba(0,0,0,.45); }

/* Nav links: subrayado animado */
.nav__link { position: relative; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px;
  background: var(--dorado); transition: right .25s ease;
}
.nav__link:hover::after, .nav__link.activo::after { right: 0; }

/* Palabra rotativa del hero */
.rotador { color: var(--dorado); display: inline-block; transition: opacity .3s ease, transform .3s ease; }
.rotador.cambiando { opacity: 0; transform: translateY(10px); }

/* Aparición al hacer scroll (solo con JS: clase .anim en <html>) */
.anim :is(
  .hero__content, .metrica, .seccion-head, .card, .cta__content,
  .clientes__title, .marquee, .contacto__left, .form,
  .hero2__left, .hero2__media, .galeria__title, .galeria__img,
  .valores__title, .valor, .pf-item, .ct-banner__title, .ct-banner__sub, .mapa,
  .como__visual, .paso, .como__title
) {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.anim :is(
  .hero__content, .metrica, .seccion-head, .card, .cta__content,
  .clientes__title, .marquee, .contacto__left, .form,
  .hero2__left, .hero2__media, .galeria__title, .galeria__img,
  .valores__title, .valor, .pf-item, .ct-banner__title, .ct-banner__sub, .mapa,
  .como__visual, .paso, .como__title
).is-in {
  opacity: 1;
  transform: none;
}

/* Escalonado dentro de rejillas */
.anim .servicios__track .card:nth-child(2) { transition-delay: .08s; }
.anim .servicios__track .card:nth-child(3) { transition-delay: .16s; }
.anim .servicios__track .card:nth-child(4) { transition-delay: .24s; }
.anim .valores__grid .valor:nth-child(2) { transition-delay: .08s; }
.anim .valores__grid .valor:nth-child(3) { transition-delay: .16s; }
.anim .valores__grid .valor:nth-child(4) { transition-delay: .24s; }
.anim .galeria__grid .galeria__img:nth-child(2) { transition-delay: .08s; }
.anim .galeria__grid .galeria__img:nth-child(3) { transition-delay: .16s; }
.anim .galeria__grid .galeria__img:nth-child(4) { transition-delay: .24s; }
.anim .metricas__inner .metrica:nth-child(2) { transition-delay: .08s; }
.anim .metricas__inner .metrica:nth-child(3) { transition-delay: .16s; }
.anim .metricas__inner .metrica:nth-child(4) { transition-delay: .24s; }
.anim .metricas__inner .metrica:nth-child(5) { transition-delay: .32s; }
.anim .como__pasos .paso:nth-child(3) { transition-delay: .08s; }
.anim .como__pasos .paso:nth-child(4) { transition-delay: .16s; }
.anim .como__pasos .paso:nth-child(5) { transition-delay: .24s; }

/* Marquesina de logos de clientes */
.marquee {
  overflow: hidden; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; align-items: center; gap: 64px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Botón flotante de WhatsApp (lo inserta main.js) */
.wa-flotante {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  animation: waPop .4s ease both, waPulse 2.6s ease-in-out 1s infinite;
  transition: transform .2s ease;
}
.wa-flotante:hover { transform: scale(1.08); }
.wa-flotante svg { width: 30px; height: 30px; fill: #fff; }
@keyframes waPop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(0,0,0,.3), 0 0 0 0 rgba(37,211,102,.45); }
  50%      { box-shadow: 0 8px 24px rgba(0,0,0,.3), 0 0 0 12px rgba(37,211,102,0); }
}

/* ---------- Slideshow de servicios (página Servicios) ---------- */
.svc { position: relative; }

.svc__flecha {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 46px; height: 62px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: var(--blanco);
  border: 1px solid #3a3a3a;
  font-size: 26px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .2s ease;
}
.svc__flecha:hover { background: var(--dorado); color: var(--negro); border-color: var(--dorado); transform: translateY(-50%) scale(1.06); }
.svc__flecha--prev { left: 10px; }
.svc__flecha--next { right: 10px; }

.svc__dots { display: flex; justify-content: center; gap: 10px; padding: 0 0 30px; }
.svc__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #3a3a3a; border: 0; padding: 0; cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}
.svc__dot:hover { background: #666; }
.svc__dot.activo { background: var(--dorado); transform: scale(1.4); }

/* transición escalonada del contenido del slide */
.svc .hero2__title, .svc .hero2__desc, .svc .feature, .svc .svc__btn {
  transition: opacity .5s ease, transform .5s ease;
}
.svc .hero2__desc { transition-delay: .06s; }
.svc .feature:nth-child(1) { transition-delay: .12s; }
.svc .feature:nth-child(2) { transition-delay: .17s; }
.svc .feature:nth-child(3) { transition-delay: .22s; }
.svc .feature:nth-child(4) { transition-delay: .27s; }
.svc .feature:nth-child(5) { transition-delay: .32s; }
.svc .svc__btn { transition-delay: .38s; }
.svc .hero2__media { transition: opacity .45s ease, transform .45s ease; }

.svc.cambiando :is(.hero2__title, .hero2__desc, .feature, .svc__btn) {
  opacity: 0; transform: translateY(18px);
  transition-duration: .22s; transition-delay: 0s;
}
.svc.cambiando .hero2__media {
  opacity: 0; transform: translateX(calc(var(--sx, 46px) * -1)) scale(.985);
  transition-duration: .22s; transition-delay: 0s;
}

/* Accesibilidad: menos movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .anim :is(
    .hero__content, .metrica, .seccion-head, .card, .cta__content,
    .clientes__title, .marquee, .contacto__left, .form,
    .hero2__left, .hero2__media, .galeria__title, .galeria__img,
    .valores__title, .valor, .pf-item, .ct-banner__title, .ct-banner__sub, .mapa
  ) { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1080px) {
  :root { --pad-lat: 32px; }
  .servicios__track .card { flex-basis: calc((100% - 48px) / 3); }
  .hero__title { font-size: 44px; }
  .galeria__grid { grid-template-columns: repeat(2, 1fr); }
  .pf-grid__inner { grid-template-columns: repeat(3, 1fr); }
  .valores__grid { grid-template-columns: repeat(2, 1fr); }
  .hero2__title { font-size: 34px; }
  .hero-v__title { font-size: 46px; }
}

@media (max-width: 860px) {
  /* menú móvil */
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--negro);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 0;
    border-top: 1px solid var(--navy);
    display: none;
  }
  .nav__links.abierto { display: flex; }
  .nav__link { width: 100%; padding: 14px var(--pad-lat); }
  .nav__cta--esc { display: none; }
  .nav__cta--movil { display: inline-flex; margin: 8px var(--pad-lat) 12px; }

  .contacto__inner { flex-direction: column; align-items: stretch; }
  .contacto__left { width: 100%; }

  .servicios__track .card { flex-basis: calc((100% - 24px) / 2); }
  .metricas__inner { justify-content: flex-start; gap: 28px 40px; }
  .metrica { width: calc(50% - 20px); }

  .seccion-title { font-size: 28px; }
  .cta__title { font-size: 30px; }

  .hero2__inner { flex-direction: column; align-items: stretch; gap: 32px; }
  .hero2__media { min-height: 280px; }
  .pf-grid__inner { grid-template-columns: repeat(2, 1fr); }
  .pf-head__title { font-size: 30px; }
  .ct-banner__title { font-size: 28px; }

  .svc__flecha { top: auto; bottom: 200px; transform: none; }
  .svc__flecha:hover { transform: scale(1.06); }

  .carrusel__escenario { min-height: 0; }
  .carrusel__foto { width: 100%; height: 320px; }
  .carrusel__tarjeta { position: static; width: 100%; height: auto; min-height: 170px; margin-top: -36px; border-radius: 0 0 14px 14px; }
  .carrusel__titulo { font-size: 32px; }
  .carrusel__flecha { top: 160px; }

  .hero-v__title { font-size: 38px; }
  .hero-v__card { width: 240px; height: 300px; }
  .hero-v__slot--1 { margin-right: -30px; }
  .hero-v__slot--3 { margin-left: -30px; }
  .hero-v__galeria { min-height: 320px; }

  .como__inner { flex-direction: column; gap: 44px; }
  .como__visual { min-height: 0; }
}

@media (max-width: 540px) {
  :root { --pad-lat: 20px; }
  .hero { min-height: 520px; }
  .hero__title { font-size: 34px; }
  .hero__sub { font-size: 16px; }
  .hero__buttons .btn { flex: 1 1 100%; }

  .servicios__track { gap: 14px; }
  .servicios__track .card { flex-basis: calc((100% - 14px) / 2); }
  .slider__flecha { width: 38px; height: 38px; font-size: 20px; }
  .slider__flecha--prev { left: -8px; }
  .slider__flecha--next { right: -8px; }
  .svc__flecha { width: 36px; height: 48px; font-size: 21px; }
  .svc__flecha--prev { left: 4px; }
  .svc__flecha--next { right: 4px; }
  .card__label { font-size: 16px; padding-bottom: 18px; }
  .form__row { flex-direction: column; }
  .footer__inner { flex-direction: column; text-align: center; }
  .metrica { width: 100%; }
  .clientes__logos { gap: 24px 32px; }

  .galeria__grid { grid-template-columns: 1fr; }
  .pf-grid__inner { grid-template-columns: 1fr; }
  .valores__grid { grid-template-columns: 1fr; }

  .carrusel__foto { height: 240px; }
  .carrusel__flecha { top: 120px; width: 40px; height: 54px; }
  .carrusel__titulo { font-size: 26px; }
  .expertise { padding: 60px 0; }

  .hero-v__inner { padding-top: 60px; padding-bottom: 60px; gap: 40px; }
  .hero-v__title { font-size: 32px; }
  .hero-v__sub { font-size: 16px; }
  .hero-v__botones .btn { flex: 1 1 100%; }
  .hero-v__card { width: 135px; height: 188px; }
  .hero-v__card--2 { transform: translateY(-14px) scale(1.04); }
  .hero-v__slot--1 { margin-right: -28px; }
  .hero-v__slot--3 { margin-left: -28px; }
  .hero-v__galeria { min-height: 250px; }
}
