/* ================================================================
   EPROIN S.R.L. — Landing v3
   Diseño orgánico · Baloo Bhaijaan 2 + Montserrat
   Teal #4aa1a1 · Títulos #1a678f · Sin frameworks
   ================================================================ */

/* ---------- 1. VARIABLES ---------- */
:root {
  --teal:        #4aa1a1;
  --teal-dark:   #3a8888;
  --teal-light:  #edf7f7;
  --teal-xlight: #eef8f8;
  --navy:        #122b4f;
  --navy-deep:   #0d2240;
  --title-color: #1a678f;
  --ink:         #2d3e50;
  --ink-soft:    #637082;

  --bg-white:    #ffffff;
  --bg-soft:     #f5fafa;
  --line:        #d9eaea;

  --font-title:  'Baloo Bhaijaan 2', 'Segoe UI', sans-serif;
  --font-body:   'Montserrat', -apple-system, 'Segoe UI', sans-serif;

  --container:   1240px;
  --gutter:      clamp(28px, 5vw, 40px);
  --header-h:    90px;

  --radius-pill: 999px;
  --radius-lg:   24px;
  --radius-md:   16px;
  --radius-sm:   10px;

  --shadow-teal:       0 8px 28px -6px rgba(74, 161, 161, 0.45);
  --shadow-teal-hover: 0 18px 44px -8px rgba(74, 161, 161, 0.65);
  --shadow-card:       0 8px 32px -8px rgba(18, 43, 79, 0.12);
  --shadow-card-hover: 0 20px 50px -12px rgba(18, 43, 79, 0.22);
}

/* ---------- 2. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; padding: 0; margin: 0; }
p   { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-title);
  color: var(--title-color);
  line-height: 1.15;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* ---------- 3. TIPOGRAFÍA UTILITARIA ---------- */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.eyebrow--center { text-align: center; }
.eyebrow--light  { color: rgba(255,255,255,0.65); }

.section-title {
  font-family: var(--font-title);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--title-color);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.section-title--center { text-align: center; }
.section-title--light  { color: #fff; }

.section-lead {
  font-size: clamp(14px, 1.1vw, 16px);
  color: var(--ink-soft);
  max-width: 72ch;
  margin-bottom: 48px;
}
.section-lead--center { text-align: center; margin-inline: auto; }
.section-lead--light  { color: rgba(255,255,255,0.75); }

/* ---------- 4. BOTONES ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--teal);
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid var(--teal);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: box-shadow .25s ease, transform .2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover {
  box-shadow: var(--shadow-teal-hover);
  transform: translateY(-2px);
}
.btn:active { transform: translateY(0); }

/* Ghost / lineal */
.btn--ghost {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn--ghost:hover {
  background: transparent;
  box-shadow: var(--shadow-teal-hover);
  transform: translateY(-2px);
}

/* Ghost claro para fondos oscuros */
.btn--ghost-light {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,0.65);
}
.btn--ghost-light:hover {
  border-color: #ffffff;
  box-shadow: 0 12px 36px -8px rgba(255,255,255,0.2);
}

/* ---------- 5. WAVE BOTTOM ---------- */
.wave-bottom {
  display: block;
  line-height: 0;
  position: relative;
  z-index: 1;
  margin-top: -2px;
}
.wave-bottom svg {
  width: 100%;
  height: clamp(60px, 7vw, 110px);
  display: block;
}

/* ---------- 6. HEADER ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled {
  background: rgba(13, 34, 64, 0.95);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 24px;
}

.brand img { height: 58px; width: auto; }

.primary-nav { margin-left: auto; }
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
}
.primary-nav a {
  display: inline-block;
  padding: 8px 14px;
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 8px;
  transition: color .2s ease;
  position: relative;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  border-radius: 2px;
  transition: transform .25s ease;
}
.primary-nav a:hover::after,
.primary-nav a.is-active::after { transform: scaleX(1); }
.primary-nav a:hover,
.primary-nav a.is-active { color: #fff; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px; height: 40px;
  padding: 8px;
  margin-left: auto;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 7. HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  padding: calc(var(--header-h) + 60px) 0 0;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 768px) {
  .hero__bg img { object-position: center top; }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(10, 26, 50, 0.78) 0%,
    rgba(13, 34, 64, 0.90) 60%,
    rgba(26, 103, 143, 0.55) 100%
  );
}

/* Iconos sociales verticales */
.hero__social {
  position: absolute;
  left: clamp(12px, 2.5vw, 32px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero__social a {
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  color: rgba(255,255,255,0.85);
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.hero__social svg { width: 14px; height: 14px; }
.hero__social a:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  transform: translateY(-2px);
}
.hero__social-line {
  width: 1px;
  height: 54px;
  background: rgba(255,255,255,0.28);
  margin-top: 4px;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: clamp(80px, 12vw, 160px);
  padding-bottom: 110px;
  width: 100%;
}
.hero__kicker {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}
.hero__title {
  font-family: var(--font-title);
  font-size: clamp(54px, 10vw, 118px);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}
.hero__title span { color: var(--teal); }
.hero__lead {
  color: rgba(255,255,255,0.82);
  font-size: clamp(15px, 1.3vw, 18px);
  max-width: 60ch;
  margin: 0 auto 16px;
}
.hero__cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero .wave-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
}

/* ---------- 8. NOSOTROS ---------- */
.nosotros {
  background: var(--bg-white);
  padding: clamp(40px, 5vw, 70px) 0 0;
  position: relative;
  overflow: hidden;
  margin-top: -2px;
}

.nosotros__deco-drop {
  position: absolute;
  top: -80px;
  right: -140px;
  width: 450px;
  height: 520px;
  background: radial-gradient(ellipse at 50% 60%, rgba(74,161,161,0.07) 0%, transparent 70%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  pointer-events: none;
  z-index: 0;
}

.nosotros .container { position: relative; z-index: 1; }
.nosotros .eyebrow { margin-bottom: 36px; }

.nosotros__split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  margin-bottom: 64px;
}

.nosotros__headline {
  font-family: var(--font-title);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  color: var(--title-color);
  line-height: 1.15;
  margin-bottom: 28px;
}
.nosotros__headline em {
  font-style: normal;
  color: var(--teal);
  position: relative;
}
.nosotros__headline em::after {
  display: none;
}

.nosotros__closing {
  font-family: var(--font-title);
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 700;
  color: var(--teal-dark);
  border-left: 4px solid var(--teal);
  padding-left: 18px;
  line-height: 1.5;
  margin: 0;
}

.nosotros__right p {
  font-size: clamp(14px, 1.1vw, 16px);
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.nosotros__right strong { color: var(--ink); }

/* Contadores */
.nosotros__counters-wrap {
  padding-bottom: 84px;
}

.nosotros__counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.counter-card {
  background: var(--bg-white);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.counter-card::before {
  content: "";
  position: absolute;
  top: -50px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 130px;
  background: radial-gradient(ellipse, rgba(74,161,161,0.1) 0%, transparent 70%);
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  pointer-events: none;
}
.counter-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-teal);
  border-color: var(--teal);
}
.counter-card--featured {
  background: var(--teal);
  border-color: var(--teal);
}
.counter-card--featured::before {
  background: radial-gradient(ellipse, rgba(255,255,255,0.15) 0%, transparent 70%);
}
.counter-card--featured .counter-card__num,
.counter-card--featured .counter-card__label { color: #fff; }
.counter-card--featured:hover { box-shadow: var(--shadow-teal-hover); }

.counter-card__num {
  font-family: var(--font-title);
  font-size: clamp(38px, 4.5vw, 56px);
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  letter-spacing: -0.02em;
}
.counter-card__label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- 9. SERVICIOS ---------- */
.servicios {
  background: #edf7f7;
  padding: clamp(40px, 5vw, 70px) 0 clamp(10px, 2vw, 20px);
  position: relative;
  z-index: 2;
}

/* Carrusel */
.carousel {
  position: relative;
  margin-top: 0;
}

.carousel__viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.carousel__track {
  display: flex;
  transition: transform .5s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

/* Ocultar dots carousel en desktop (trabajos/nosotros) */
@media (min-width: 769px) {
  .trabajos__dots,
  .nosotros__dots { display: none !important; }
}

/* ---------- SERVICIOS — Marquee infinito de 7 tarjetas ---------- */
.servicios__marquee-wrap {
  width: 100%;
  overflow: hidden;
  padding: clamp(32px, 4vw, 52px) 0 clamp(16px, 2vw, 24px);
  position: relative;
}
.servicios__marquee-wrap::before,
.servicios__marquee-wrap::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.servicios__marquee-wrap::before {
  left: 0;
  background: linear-gradient(to right, #edf7f7 0%, transparent 100%);
}
.servicios__marquee-wrap::after {
  right: 0;
  background: linear-gradient(to left, #edf7f7 0%, transparent 100%);
}

.servicios__marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 44s linear infinite;
}
.servicios__marquee-wrap:hover .servicios__marquee-track {
  animation-play-state: paused;
}

/* Tarjeta de servicio */
.service-card {
  flex-shrink: 0;
  width: 290px;
  margin-right: 20px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.service-card__img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--navy) 100%);
  flex-shrink: 0;
}
.service-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.service-card:hover .service-card__img img {
  transform: scale(1.06);
}

.service-card__body {
  padding: 22px 22px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card__title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--title-color);
  margin-bottom: 10px;
  line-height: 1.25;
}

.service-card__text {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
}

/* Botones nav del carrusel (trabajos / nosotros) */
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  background: var(--bg-white);
  color: var(--teal);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s, transform .2s;
  z-index: 5;
  box-shadow: 0 4px 18px rgba(0,0,0,0.1);
}
.carousel__btn:hover {
  background: var(--teal);
  color: #fff;
  box-shadow: var(--shadow-teal);
  transform: translateY(-50%) scale(1.08);
}
.carousel__btn--prev { left: -26px; }
.carousel__btn--next { right: -26px; }

/* Dots (trabajos / nosotros) */
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}
.carousel__dot {
  height: 10px;
  width: 10px;
  border-radius: 5px;
  border: 2px solid var(--teal);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .25s, width .25s;
}
.carousel__dot.is-active {
  background: var(--teal);
  width: 30px;
}

/* ---------- 10. TRABAJOS ---------- */
.trabajos {
  background: var(--navy-deep);
  padding: clamp(130px, 16vw, 210px) 0 0;
  position: relative;
  z-index: 1;
  margin-top: clamp(-120px, -8vw, -60px);
  border-radius: 48px 48px 0 0;
}

/* Wrapper que es grid en desktop y carousel en mobile */
.trabajos__wrap {
  position: relative;
  padding-bottom: 70px;
}

.trabajos__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.trabajo-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: rgba(255,255,255,0.04);
}

.trabajo-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}
.trabajo-item:hover img { transform: scale(1.06); }

.trabajo-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,34,64,0.88) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity .35s ease;
}
.trabajo-item:hover .trabajo-item__overlay { opacity: 1; }

.trabajo-item__tag {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--teal);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

/* Botones mobile nav: ocultos en desktop */
.trabajos__mobile-nav {
  display: none;
}

/* ---------- 11. CLIENTES ---------- */
.clientes {
  background: var(--bg-white);
  padding: clamp(40px, 5vw, 70px) 0 0;
  position: relative;
  margin-top: -3px;
}

/* Marquee infinito (desktop) */
.clientes__marquee-wrap {
  width: 100%;
  overflow: hidden;
  padding: 44px 0 64px;
  position: relative;
}
.clientes__marquee-wrap::before,
.clientes__marquee-wrap::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 130px;
  z-index: 2;
  pointer-events: none;
}
.clientes__marquee-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-white) 0%, transparent 100%);
}
.clientes__marquee-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-white) 0%, transparent 100%);
}

.clientes__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.clientes__marquee-wrap:hover .clientes__track {
  animation-play-state: paused;
}

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

.cliente-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 230px;
  padding: 0 44px;
}
.cliente-logo {
  max-height: 62px;
  max-width: 160px;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: filter .3s ease, opacity .3s ease, transform .3s ease;
}
.cliente-logo-wrap:hover .cliente-logo {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.08);
}

/* Carrusel mobile (oculto en desktop) */
.clientes__carousel {
  display: none;
  position: relative;
  overflow: hidden;
  padding: 32px 0 64px;
}
.clientes__carousel-track {
  display: flex;
  transition: transform .4s ease;
}
.clientes__carousel-slide {
  flex: 0 0 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}
.clientes__carousel-slide img {
  max-height: 70px;
  max-width: 200px;
  filter: grayscale(100%);
  opacity: 0.6;
  margin: 0 auto;
}
.clientes__carousel .carousel__btn--prev { left: 8px; }
.clientes__carousel .carousel__btn--next { right: 8px; }

/* ---------- 12. INSTAGRAM ---------- */
.instagram {
  background: #eef8f8;
  padding: clamp(60px, 7vw, 100px) 0 0;
  position: relative;
}

.instagram__handle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--title-color);
  background: var(--bg-white);
  border: 2px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  margin: 0 auto 32px;
  width: fit-content;
  transition: border-color .2s, box-shadow .2s, color .2s;
}
.instagram__handle:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-teal);
  color: var(--teal);
}
.instagram__handle svg {
  color: var(--teal);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.instagram__row {
  padding-bottom: 70px;
}


/* ---------- 13. CONTACTO ---------- */
.contacto {
  background: var(--bg-white);
  padding: clamp(30px, 4vw, 60px) 0 clamp(80px, 10vw, 140px);
}

.contacto .section-title {
  max-width: 700px;
  margin-inline: auto;
  font-size: clamp(22px, 2.8vw, 36px);
  margin-bottom: 56px;
}

.contacto__layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}

.contacto__maps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.contacto__map-title {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 700;
  color: var(--title-color);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.contacto__map-title svg { color: var(--teal); }

.contacto__map-addr {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.contacto__map-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 2px solid var(--line);
}
.contacto__map-frame iframe { display: block; }

.contacto__info-title {
  font-family: var(--font-title);
  font-size: clamp(18px, 2vw, 24px);
  color: var(--title-color);
  margin-bottom: 32px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-list__item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--teal-light);
  border-radius: 50%;
  color: var(--teal);
  transition: background .2s, transform .2s;
}
.contact-list__item:hover .contact-icon {
  background: var(--teal);
  color: #fff;
  transform: scale(1.08);
}

.contact-list__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 2px;
}

.contact-list__item a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  transition: color .2s;
}
.contact-list__item a:hover { color: var(--teal); }

/* ---------- 14. FOOTER MINIMALISTA ---------- */
.site-footer {
  background: var(--navy-deep);
  position: relative;
}

.footer__wave-top { display: none; }

.footer__inner {
  background: var(--navy-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px var(--gutter) 24px;
  text-align: center;
}

.footer__logo {
  height: 80px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer__socials a {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.14);
  border-radius: 50%;
  color: rgba(255,255,255,0.78);
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.footer__socials svg { width: 17px; height: 17px; }
.footer__socials a:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  transform: translateY(-3px);
}

.footer__copy {
  font-size: 12px;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.06em;
  margin: 0;
}

/* ---------- 15. WHATSAPP FLOAT ---------- */
.wa-float-wrap {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.wa-float-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.wa-float-menu.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.wa-float-option {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 14px;
  padding: 11px 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.14);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: box-shadow .2s, transform .2s;
}
.wa-float-option:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  transform: translateX(-4px);
}
.wa-float-option__flag { font-size: 22px; line-height: 1; }
.wa-float-option strong { font-size: 13px; color: #25D366; }

.wa-float {
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 28px -6px rgba(37,211,102,0.55), 0 4px 12px rgba(0,0,0,0.15);
  transition: transform .2s ease, background .2s ease;
  position: relative;
}
.wa-float:hover { background: #1fb755; transform: translateY(-3px); }

.wa-float__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: wa-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.6); }
  70%  { box-shadow: 0 0 0 22px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- 16. SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- 17. RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .carousel__btn--prev { left: -12px; }
  .carousel__btn--next { right: -12px; }
  .contacto__layout { grid-template-columns: 1fr; }
  .contacto__maps   { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nosotros__split { grid-template-columns: 1fr; gap: 32px; }
  .nosotros__counters {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-inline: auto;
  }
  /* Trabajos: 2 columnas en tablet */
  .trabajos__inner { grid-template-columns: repeat(2, 1fr); }
  .contacto__maps { grid-template-columns: 1fr; }
  /* Instagram: 3 columnas en tablet */

}

@media (max-width: 768px) {
  /* Línea azul sobre nosotros en mobile */
  .nosotros { margin-top: -4px; }

  /* Counters nosotros: carousel en mobile */
  .nosotros__counters-wrap {
    overflow: hidden;
    padding-bottom: 60px;
  }
  .nosotros__counters {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 0 !important;
    max-width: none !important;
    margin-inline: 0 !important;
    transition: transform .4s ease;
    will-change: transform;
  }
  .counter-card { flex-shrink: 0; }
  .nosotros__dots { display: flex; margin-top: 20px; }
}

@media (max-width: 768px) {
  :root { --header-h: 86px; }

  /* Header mobile */
  .primary-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: rgba(13,34,64,0.97);
    backdrop-filter: blur(14px);
    padding: 16px 20px 28px;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform .35s cubic-bezier(0.25,0.8,0.25,1), opacity .35s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    margin-left: 0;
  }
  .primary-nav.is-open { transform: translateY(0); opacity: 1; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .primary-nav a {
    display: block;
    padding: 14px 18px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .primary-nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .site-header { background: rgba(13,34,64,0.96); backdrop-filter: blur(10px); }

  /* Hero */
  .hero { padding: calc(var(--header-h) + 40px) 0 0; min-height: 72vh; }
  .hero__content { padding-top: 230px; padding-bottom: 100px; padding-left: clamp(20px, 6vw, 40px); padding-right: clamp(20px, 6vw, 40px); }
  .hero__cta { flex-direction: column; align-items: center; }
  .hero__cta .btn { width: 100%; max-width: 300px; }
  .hero__title { margin-bottom: 10px; white-space: nowrap; }
  .hero__social {
    left: 50%; top: auto; bottom: 60px;
    transform: translateX(-50%);
    flex-direction: row;
  }
  .hero__social-line { display: none; }

  /* Servicios marquee — scroll manual en mobile */
  .servicios__marquee-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: auto;
  }
  .servicios__marquee-wrap::-webkit-scrollbar { display: none; }
  .servicios__marquee-wrap::before,
  .servicios__marquee-wrap::after { display: none; }
  .servicios__marquee-track { animation: none; }
  .servicios__marquee-track .service-card[aria-hidden="true"] { display: none; }
  /* Dots y botones (trabajos/nosotros) */
  .carousel__btn      { display: none !important; }
  .carousel__dots     { display: flex !important; }
  .carousel__viewport { overflow: hidden !important; }
  .carousel__track { gap: 0 !important; }

  /* Clientes: mostrar carousel mobile */
  .clientes__marquee-wrap { display: none; }
  .clientes__carousel { display: block; }

  /* Instagram: 3 columnas en mobile */


  /* Trabajos mobile: carousel */
  .trabajos__wrap {
    overflow: hidden;
    position: relative;
  }
  .trabajos__inner {
    display: flex !important;
    flex-wrap: nowrap;
    transition: transform .4s ease;
    will-change: transform;
  }
  .trabajo-item {
    flex-shrink: 0;
    min-height: 240px;
    aspect-ratio: 4 / 3;
  }
  .trabajos__dots { display: flex; margin-top: 20px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: clamp(40px, 12vw, 54px); }
  .nosotros__counters { max-width: 100%; }

}

/* ---------- 18. ACCESIBILIDAD ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
