/* ============================================================
   YENDO VERDE — CSS MEJORADO
   ============================================================ */

/* ── Fuentes ──────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Nunito:wght@300;400;500;600;700&display=swap');

/* ── Variables ────────────────────────────────────────────── */
:root {
  --color-primary:      #0a3d24;
  --color-primary-dark: #061710;
  --color-secondary:    #14b87a;
  --color-accent:       #70e8a0;
  --color-bg:           #f3f8f4;
  --color-bg-alt:       #e8f2ec;
  --color-neutral-900:  #111e16;
  --color-neutral-600:  #4a6358;
  --color-neutral-200:  #deeee5;
  --color-neutral-100:  #ffffff;

  --radius-sm: 0.75rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2.5rem;

  --shadow-soft: 0 10px 36px rgba(10, 61, 36, 0.11);
  --shadow-hard: 0 22px 58px rgba(6, 23, 16, 0.20);
  --shadow-card: 0 4px 20px rgba(10, 61, 36, 0.09);

  --transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset ────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  background: var(--color-bg);
  color: var(--color-neutral-900);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

section { padding: clamp(4.5rem, 9vw, 8rem) 0; }

.contenedor,
.wrapper { width: min(1180px, 92%); margin: 0 auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
}

#main-content { display: block; }

/* ── Loader ───────────────────────────────────────────────── */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  gap: 0.8rem;
  padding: 2rem;
}

.loader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  width: 240px;
  height: 240px;
  max-width: 76vw;
  max-height: 76vw;
  object-fit: contain;
  animation: pulse-logo 2s ease-in-out infinite;
}

@keyframes pulse-logo {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.04); opacity: 0.9; }
}

.loader-title {
  margin: 0;
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
  opacity: 0.7;
}

.loader-track {
  width: min(360px, 80vw);
  height: 4px;
  border-radius: 999px;
  background: rgba(0,0,0,0.07);
  overflow: hidden;
}

.loader-bar {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, #70e8a0, #14b87a, #0a3d24);
  background-size: 200% 100%;
  animation: loader-flow 1.6s ease infinite;
  border-radius: 999px;
}

.loader-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  opacity: 0.6;
}

@keyframes loader-flow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ── Sticky Nav ───────────────────────────────────────────── */
#sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(6, 23, 16, 0.96);
  backdrop-filter: blur(14px);
  padding: 0.9rem clamp(1.5rem, 6vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.28);
}

#sticky-nav.visible {
  transform: translateY(0);
}

.sticky-nav__brand {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sticky-nav__links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: clamp(1.4rem, 3vw, 2.6rem);
}

.sticky-nav__links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
}

.sticky-nav__links a:hover { color: var(--color-accent); }

/* ── Header ───────────────────────────────────────────────── */
header {
  position: relative;
  min-height: 100vh;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

header .background-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.85) saturate(1.1);
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      rgba(6, 23, 16, 0.92) 0%,
      rgba(10, 61, 36, 0.72) 50%,
      rgba(14, 80, 48, 0.38) 100%);
  z-index: 1;
}

header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--color-bg), transparent);
  z-index: 2;
}

header .contenedor {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  padding: clamp(2rem, 3.5vw, 3.5rem) clamp(1.8rem, 6vw, 5rem);
}

/* ── Menu ─────────────────────────────────────────────────── */
.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: min(1180px, 92%);
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.menu p { display: none; }

nav { display: block; }

nav .lista {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: clamp(1.6rem, 3.2vw, 3rem);
  align-items: center;
  justify-content: center;
}

nav .lista a {
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.05em;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

nav .lista a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.menu-icon {
  display: none;
  padding: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18);
  cursor: pointer;
  transition: background 0.3s ease;
}

.menu-icon img {
  width: 26px;
  display: block;
  filter: invert(1) brightness(1.7);
}

.menu-icon:hover { background: rgba(255,255,255,0.15); }

/* ── Titular ──────────────────────────────────────────────── */
.titular {
  margin-top: auto;
  padding-bottom: clamp(5rem, 11vw, 9rem);
  max-width: clamp(24rem, 62vw, 58rem);
  align-self: flex-start;
  width: min(1180px, 92%);
  margin-left: clamp(1.8rem, 6vw, 5rem);
  margin-right: auto;
  position: relative;
  z-index: 3;
}

.titular::before {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--color-accent);
  margin-bottom: 1.4rem;
  border-radius: 2px;
}

.titular h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3.4rem, 7.5vw, 6rem);
  line-height: 1.0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #fff;
  font-weight: 800;
}

.titular h2 {
  margin-top: 1.2rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 300;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

/* ── Section Headings ─────────────────────────────────────── */
.titulo-sobre-nosotros,
.titulo-servicios,
.titulo-clientes,
.titulo-porque-elegirnos,
#formulario-de-contacto h3 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  text-align: center;
  margin-bottom: clamp(2.4rem, 4.5vw, 3.8rem);
  position: relative;
  padding-bottom: 1.2rem;
}

.titulo-sobre-nosotros::after,
.titulo-servicios::after,
.titulo-clientes::after,
.titulo-porque-elegirnos::after,
#formulario-de-contacto h3::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
  border-radius: 2px;
}

/* ── Scroll Animations ────────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

[data-animate][data-delay="1"] { transition-delay: 0.1s; }
[data-animate][data-delay="2"] { transition-delay: 0.2s; }
[data-animate][data-delay="3"] { transition-delay: 0.3s; }
[data-animate][data-delay="4"] { transition-delay: 0.4s; }
[data-animate][data-delay="5"] { transition-delay: 0.5s; }
[data-animate][data-delay="6"] { transition-delay: 0.6s; }
[data-animate][data-delay="7"] { transition-delay: 0.7s; }
[data-animate][data-delay="8"] { transition-delay: 0.8s; }

/* ── Sección: Sobre Nosotros ──────────────────────────────── */
#quienes-somos {
  background: var(--color-neutral-100);
  position: relative;
}

.contenedor-quienes-somos {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.contenedor-parrafo-y-boton {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.contenedor-parrafo-y-boton p {
  font-size: 1.05rem;
  color: var(--color-neutral-600);
  margin: 0 0 1.1rem;
  line-height: 1.75;
}

.nosotros-col-izq { grid-column: 1 / 2; }
.nosotros-col-der { grid-column: 2 / 3; }

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--color-neutral-200);
  padding-top: clamp(3rem, 6vw, 5rem);
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-neutral-200);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: var(--color-secondary);
}

.stat-number-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.15rem;
}

.stat-number {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.stat-suffix {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--color-secondary);
}

.stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-neutral-600);
}

/* ── Video Yendo Verde ────────────────────────────────────── */
.video-full-width {
  background: var(--color-primary-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.video-full-width .inline-video {
  width: min(1200px, 92vw);
  border-radius: var(--radius-xl);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
  display: block;
  margin: 0 auto;
}

/* ── Servicios ────────────────────────────────────────────── */
#card-area {
  background: var(--color-bg-alt);
  text-align: center;
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.box-area {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.2rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.box {
  position: relative;
  min-height: 380px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  isolation: isolate;
  background: var(--color-primary-dark);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.box:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hard);
}

.box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  filter: brightness(0.85);
}

.box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 23, 16, 0.0) 25%,
    rgba(8, 36, 22, 0.82) 100%
  );
  z-index: 0;
  transition: opacity 0.4s ease;
}

.box:hover img { transform: scale(1.1); }
.box:hover::before { opacity: 1.1; }

.card-num {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  background: rgba(6, 23, 16, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(112, 232, 160, 0.3);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  color: #fff;
  text-align: left;
}

.card-overlay h3 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1rem, 1.9vw, 1.3rem);
  line-height: 1.3;
  font-weight: 700;
}

.view-more {
  align-self: flex-start;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid rgba(255,255,255,0.55);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.view-more:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* ── Modal ────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 23, 16, 0.65);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 92%);
  max-height: 88vh;
  overflow-y: auto;
  padding: clamp(2rem, 4.5vw, 3rem);
  border-radius: var(--radius-xl);
  background: var(--color-neutral-100);
  box-shadow: var(--shadow-hard);
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal__title {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  color: var(--color-primary-dark);
  line-height: 1.25;
  padding-right: 2.5rem;
}

.modal__body {
  color: var(--color-neutral-600);
  font-size: 0.98rem;
  white-space: pre-line;
  line-height: 1.72;
}

.modal__close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-neutral-200);
  color: var(--color-neutral-900);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 300;
  transition: background 0.3s ease, transform 0.3s ease;
}

.modal__close:hover {
  background: var(--color-neutral-200);
  transform: rotate(90deg) scale(1.1);
}

.modal--open {
  opacity: 1;
  pointer-events: auto;
}

.modal--open .modal__backdrop { opacity: 1; }

.modal--open .modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal--service .modal__dialog {
  background: linear-gradient(168deg, #0a3d24 0%, #0d5232 55%, #187a4e 100%);
  color: #fff;
}

.modal--service .modal__title,
.modal--service .modal__body { color: #fff; }

.modal--service .modal__body { color: rgba(255,255,255,0.82); }

.modal--service .modal__close {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.modal--service .modal__close:hover {
  background: rgba(255,255,255,0.22);
}

.modal--feedback .modal__dialog {
  border: 1.5px solid rgba(20, 184, 122, 0.22);
}

/* ── YouTube Lazy ─────────────────────────────────────────── */
.yt-lite {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-color: #101010;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow-soft);
  display: block;
}

.yt-lite::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,16,16,0.04) 0%, rgba(16,16,16,0.42) 100%);
  transition: opacity 0.3s ease;
}

.yt-lite:hover::after { opacity: 0.2; }

.yt-lite__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 2;
}

.yt-lite__play::before {
  content: "";
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 14px 28px rgba(0,0,0,0.28);
  transition: transform 0.3s ease;
}

.yt-lite:hover .yt-lite__play::before { transform: scale(1.1); }

.yt-lite__play::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 22px solid var(--color-primary);
  margin-left: 6px;
}

.yt-lite iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.yt-lite.yt-lite--activated {
  cursor: unset;
  background: none;
  box-shadow: none;
}

.yt-lite.yt-lite--activated::after,
.yt-lite.yt-lite--activated .yt-lite__play { display: none; }

/* ── Nuestros Clientes ────────────────────────────────────── */
#nuestros-clientes {
  background: var(--color-neutral-100);
}

.owl-carousel .owl-item img {
  width: clamp(80px, 18vw, 130px);
  height: auto;
  margin: 0 auto;
  filter: grayscale(100%) brightness(1.2);
  transition: filter 0.35s ease, transform 0.35s ease;
}

.owl-carousel .owl-item:hover img {
  filter: grayscale(0%) brightness(1);
  transform: translateY(-5px);
}

.owl-theme .owl-dots {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 2rem;
}

.owl-theme .owl-dots .owl-dot span {
  background: rgba(10,61,36,0.2);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transition: background 0.3s ease, transform 0.3s ease;
}

.owl-theme .owl-dots .owl-dot.active span {
  background: var(--color-secondary);
  transform: scale(1.3);
}

/* ── ¿Por Qué Nos Eligen? ─────────────────────────────────── */
#porque-nos-eligen {
  background: var(--color-bg);
  position: relative;
}

.contenedor-porque {
  display: grid;
  gap: clamp(1.8rem, 3.5vw, 2.6rem);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.porque-singular-enfoque,
.porque-singular-tecnologia,
.porque-singular-compromiso {
  background: var(--color-neutral-100);
  border-radius: var(--radius-xl);
  padding: clamp(2.2rem, 4.5vw, 3rem);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s ease;
  border: 1px solid var(--color-neutral-200);
  position: relative;
  overflow: hidden;
}

.porque-singular-enfoque::before,
.porque-singular-tecnologia::before,
.porque-singular-compromiso::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 4px 0 0 4px;
}

.porque-singular-enfoque::before {
  background: linear-gradient(180deg, #0a3d24, #14b87a);
}

.porque-singular-tecnologia::before {
  background: linear-gradient(180deg, #0a3a6b, #1a9dd9);
}

.porque-singular-compromiso::before {
  background: linear-gradient(180deg, #2d6a4f, #70e8a0);
}

.porque-singular-enfoque:hover,
.porque-singular-tecnologia:hover,
.porque-singular-compromiso:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hard);
}

.imagen-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}

.porque-singular-enfoque .imagen-wrapper {
  background: linear-gradient(135deg, #0a3d24, #14b87a);
}

.porque-singular-tecnologia .imagen-wrapper {
  background: linear-gradient(135deg, #0a3a6b, #1a9dd9);
}

.porque-singular-compromiso .imagen-wrapper {
  background: linear-gradient(135deg, #2d6a4f, #70e8a0);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.titulo-eleginos {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.3;
}

.porque-singular-enfoque p,
.porque-singular-tecnologia p,
.porque-singular-compromiso p {
  color: var(--color-neutral-600);
  font-size: 0.98rem;
  line-height: 1.72;
  margin: 0;
}

/* ── Contacto ─────────────────────────────────────────────── */
#formulario-de-contacto {
  background: var(--color-neutral-100);
  padding-bottom: clamp(5rem, 9vw, 8rem);
}

#formulario-de-contacto form {
  width: min(1000px, 92%);
  margin: 0 auto;
  background: var(--color-neutral-100);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-hard);
  padding: clamp(2.5rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
  border: 1px solid var(--color-neutral-200);
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-col h3 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  text-align: left;
  padding-bottom: 1rem;
  border-bottom: none;
  margin-bottom: 0;
}

.contact-info-col h3::after { display: none; }

.contact-tagline {
  font-size: 1rem;
  color: var(--color-neutral-600);
  line-height: 1.65;
  margin: 0;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.92rem;
  color: var(--color-neutral-600);
  font-weight: 500;
}

.contact-detail-item i {
  width: 36px;
  height: 36px;
  background: var(--color-bg-alt);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.input-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.3rem 1.8rem;
  align-items: start;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-field--full { grid-column: 1 / -1; }

.input-group label {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-neutral-600);
}

.input-group input,
.input-group textarea {
  width: 100%;
  border: 1.5px solid var(--color-neutral-200);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  font-family: 'Nunito', sans-serif;
  background: var(--color-bg);
  color: var(--color-neutral-900);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.input-group textarea {
  min-height: 130px;
  resize: vertical;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: var(--color-secondary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(20, 184, 122, 0.15);
  background: #fff;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

.btn {
  width: fit-content;
  padding: 0.9rem 2.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.input-group input.btn {
  border: none;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  color: #fff;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 36px rgba(10, 61, 36, 0.3);
}

.btn:active {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(10, 61, 36, 0.28);
}

/* Social Links */
.social-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-neutral-200);
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.social-links a:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  transform: translateY(-3px);
}

.social-links a:hover img {
  filter: brightness(0) invert(1) !important;
}

.social-links img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(40%) sepia(67%) saturate(500%) hue-rotate(105deg) brightness(92%) contrast(93%);
}

#formulario-de-contacto form p {
  font-size: 0.82rem;
  color: rgba(21, 38, 33, 0.45);
  margin: 0;
  grid-column: 1 / -1;
}

/* ── WhatsApp flotante ────────────────────────────────────── */
#whatsapp {
  position: fixed;
  bottom: clamp(20px, 4vw, 30px);
  right: clamp(20px, 4vw, 30px);
  z-index: 1500;
}

#whatsapp a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(56px, 6vw, 66px);
  height: clamp(56px, 6vw, 66px);
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 18px 38px rgba(18,140,126,0.38);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

#whatsapp a:hover {
  transform: translateY(-5px) scale(1.06);
  box-shadow: 0 26px 46px rgba(18,140,126,0.4);
}

#whatsapp img {
  width: clamp(30px, 4vw, 36px);
  height: clamp(30px, 4vw, 36px);
}

/* ── Accesibilidad ────────────────────────────────────────── */
.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;
}

/* ── Media Queries ────────────────────────────────────────── */
@media (max-width: 1000px) {
  #formulario-de-contacto form {
    grid-template-columns: 1fr;
  }

  .contact-info-col h3 {
    text-align: center;
  }

  .contact-info-col h3::after { display: block; }

  .contact-detail { flex-direction: row; flex-wrap: wrap; gap: 0.7rem; }
  .social-links { justify-content: center; }
}

@media (max-width: 900px) {
  header .menu {
    position: relative;
    justify-content: flex-end;
  }

  header nav {
    position: absolute;
    top: calc(100% + 0.8rem);
    right: 0;
    width: clamp(260px, 72vw, 360px);
    background: rgba(6, 23, 16, 0.97);
    backdrop-filter: blur(16px);
    border-radius: 18px;
    padding: 1.4rem 1.6rem;
    display: none;
    box-shadow: var(--shadow-hard);
    border: 1px solid rgba(255,255,255,0.08);
  }

  header nav .lista {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .menu-icon { display: block; }

  .titular { padding-bottom: 4.5rem; }

  .contenedor-parrafo-y-boton {
    grid-template-columns: 1fr;
  }

  .nosotros-col-izq,
  .nosotros-col-der { grid-column: 1 / -1; }

  .box-area {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sticky-nav__links { display: none; }
}

@media (max-width: 768px) {
  .loader-overlay { display: none !important; }

  header .background-video { display: none; }

  header {
    background-image: url('imagen_bienvenidos_movil.jpg.jpg');
    background-size: cover;
    background-position: center;
  }

  .stats-row { grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
}

@media (max-width: 680px) {
  section { padding: clamp(3.5rem, 10vw, 4.5rem) 0; }

  header .contenedor {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(1.5rem, 5vw, 2.5rem);
  }

  header .menu {
    width: 100%;
    margin: 0;
    padding: 0;
    justify-content: space-between;
  }

  header {
    min-height: 100svh;
  }

  .titular h1 { font-size: clamp(2.6rem, 13vw, 3.8rem); }
  .titular h2 { font-size: 0.98rem; }

  .box { min-height: 300px; }
  .box-area { grid-template-columns: 1fr; }

  .input-group { grid-template-columns: 1fr; }

  .form-actions { justify-content: stretch; }

  .btn {
    width: 100%;
    text-align: center;
    justify-self: stretch;
  }

  .stats-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  #whatsapp { bottom: 16px; right: 16px; }
}

@media (max-width: 480px) {
  .modal__dialog {
    padding: 1.6rem;
    border-radius: var(--radius-lg);
  }

  .modal__title {
    font-size: 1.15rem;
    padding-right: 2rem;
  }
}

/* ── Reduced motion ───────────────────────────────────────── */
@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;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }
}
