@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #006B43;
  --primary-light: #00A366;
  --primary-dark: #004D2F;
  --accent: #1AE880;
  --dark: #0a0a0a;
  --dark-mid: #141A17;
  --carbon: #1E2420;
  --gray-dark: #3A3F3C;
  --gray-mid: #6B706D;
  --gray-light: #B8BDB9;
  --gray-pale: #E8EDEA;
  --off-white: #F2F5F3;
  --light: #f4f4f4;
  --white: #ffffff;
  --section-alt: #D4DDD8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Barlow', sans-serif;
  scroll-behavior: smooth;
  color: var(--dark);
  background-color: var(--white);
}

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2.5rem;
  z-index: 1000;
  transition: top 0.4s ease-in-out, background-color 0.4s ease-in-out, box-shadow 0.4s;
}

#navbar.scrolled {
  background-color: var(--primary-dark);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

#navbar.hide {
  top: -100px;
}

.logo {
  width: 100px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.3s;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links li a:hover::after {
  width: 100%;
}

.nav-links li a:hover {
  color: var(--accent);
}

.nav-links.show {
  background-color: var(--primary-dark);
}

/* ─── HERO ─── */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: white;
  text-align: center;
}

.carousel-container1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.carousel-track1 {
  display: flex;
  width: calc(100%);
  animation: scrollCarousel 30s linear infinite;
}

.carousel-track1 img {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  flex-shrink: 0;
}

.filtro {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    160deg,
    rgba(0, 30, 18, 0.85) 0%,
    rgba(0, 77, 47, 0.65) 50%,
    rgba(0, 20, 12, 0.9) 100%
  );
  z-index: 1;
}

/* subtle noise texture overlay */
.filtro::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.3;
  pointer-events: none;
}

@keyframes scrollCarousel {
  0%   { transform: translateX(0%); }
  100% { transform: translateX(-200%); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem 3rem;
  border-radius: 1.5rem;
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #D4EDE3;
  font-weight: 400;
}

/* ─── HERO BUTTON ─── */
.button {
  position: relative;
  width: 11rem;
  height: 3.2rem;
  cursor: pointer;
  border: none;
  background: none;
  backdrop-filter: blur(10px);
  border-radius: 10px;
}

.button svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.border {
  width: 100%;
  height: 100%;
  stroke: var(--accent);
  stroke-width: 2px;
  fill: rgba(26, 232, 128, 0.05);
  rx: 1em;
  ry: 1em;
  stroke-dasharray: 25;
  transition: fill 0.25s;
  animation: 4s linear infinite stroke-animation;
}

.button:hover .border {
  fill: rgba(26, 232, 128, 0.12);
}

.button:focus .border {
  transition: fill 0.25s 7.75s;
  fill: #0000;
}

@keyframes stroke-animation {
  0%  { stroke-dashoffset: 100; }
  to  { stroke-dashoffset: 0; }
}

.txt-upload {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-shadow: 0 0 10px black;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.txt-upload::after { content: ""; }

.button:focus .rect { stroke-dasharray: 50; }
.button:focus .border { stroke: #ffffff00; }
.button:focus .txt-upload { opacity: 0; transition: opacity 0.25s 8s; }
.button:focus .txt-upload::after {
  animation: 0.66666s anim step-end forwards, 1.33333s 0.6666s anim2 linear infinite alternate;
}

@keyframes anim {
  0%  { content: "i"; }
  50% { content: "in"; }
  to  { content: "ing"; }
}
@keyframes anim2 {
  0%  { content: "ing"; }
  33% { content: "ing."; }
  66% { content: "ing.."; }
  to  { content: "ing..."; }
}

.loading {
  width: 100%;
  height: 100%;
  stroke: #0055d4;
  stroke-width: 2px;
  fill: none;
  rx: 1em;
  ry: 1em;
  stroke-dasharray: 0 100;
}
.button:focus .loading {
  transition: stroke 0.5s 7.5s, stroke-dasharray 8s 0.5s ease-out;
  stroke: #08ca08;
  stroke-dasharray: 100 0;
}
.done { fill: none; stroke: #000; stroke-dasharray: 0 100; }
.button:focus .done-cloud {
  transition: stroke-dasharray 0.75s 8.5s ease-out;
  stroke-dasharray: 100 0;
}
.button:focus .done-check {
  transition: stroke-dasharray 0.5s 9.2s ease-out;
  stroke: #08ca08;
  stroke-dasharray: 100 0;
}

/* ─── SECTION DIVIDER ─── */
.section-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  background: var(--off-white);
}

.section-divider.inv {
  background: var(--section-alt);
}

.section-divider svg {
  display: block;
  width: 100%;
}

/* ─── SECTIONS ─── */
.section {
  padding: 5rem 2rem;
  text-align: center;
  background-color: var(--off-white);
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-light), var(--primary-dark));
  opacity: 0.4;
}

/* Hero (oscuro) → Nosotros (off-white) */
#nosotros {
  background: linear-gradient(to bottom, #f2f5f3 0%, var(--off-white) 18%);
}

/* Nosotros (off-white) → Servicios (section-alt) */
#servicios {
  background: linear-gradient(to bottom, var(--off-white) 0%, var(--section-alt) 18%);
}

/* Servicios (section-alt) → Galería (carbon) */
.seccion-galeria {
  background: linear-gradient(to bottom, #d4ddd8 0%, #004d2f 50%, rgb(7 81 53) 100%);
}

/* Galería (carbon) → Clientes (section-alt) */
#clientes-carousel {
  background: linear-gradient(to bottom, #065134 0%, #b1b9b4 25%);
}

/* Clientes (section-alt) → Contacto (off-white) */
#contacto {
  background: linear-gradient(to bottom, #b1b9b4 0%, var(--off-white) 18%);
}

#mg { margin-bottom: 30px; }

.und {
  text-align: center;
  margin-bottom: 50px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  letter-spacing: 0.1em;
  color: var(--primary-dark);
  position: relative;
  display: inline-block;
}

.und::after {
  content: '';
  display: block;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  margin: 0.4rem auto 0;
  border-radius: 2px;
}

.bg-light {
  background-color: var(--section-alt);
}

.bg-light::before {
  background: linear-gradient(to bottom, var(--accent), var(--primary-light));
}

/* ─── CARDS ─── */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background-color: var(--white);
  border: 1px solid rgba(0,107,67,0.12);
  border-top: 3px solid var(--primary);
  padding: 2.2rem 2rem;
  width: 300px;
  border-radius: 12px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-top-color 0.35s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,163,102,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0, 77, 47, 0.18);
  border-top-color: var(--accent);
}

.card:hover::before {
  opacity: 1;
}

/* ─── Card con link a imagen ─── */
.card-linked {
  cursor: pointer;
}

.card-ver-foto {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-light);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.3s, transform 0.3s;
}

.card-linked:hover .card-ver-foto {
  opacity: 1;
  transform: translateX(0);
}

/* ─── CARD ICON ─── */
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(0, 107, 67, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: var(--primary);
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card:hover .card-icon {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.08);
}

h3 {
  margin-bottom: 16px;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

/* ─── NOSOTROS accent blocks ─── */
#nosotros .und {
  display: block;
  text-align: center;
}

/* ─── NOSOTROS CARDS ─── */
.nosotros-card {
  max-width: 750px;
  margin: 0 auto 2rem;
  background: var(--white);
  border-radius: 14px;
  border-left: 5px solid var(--primary-light);
  padding: 2rem 2.2rem 2rem 1.8rem;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s, transform 0.3s;
  display: grid;
  grid-template-columns: 52px 1fr;
  column-gap: 1.4rem;
  align-items: start;
}

.nosotros-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.11);
  transform: translateX(4px);
}

/* Ícono: col 1, ocupa solo la primera fila */
.nosotros-card .nosotros-icon {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  margin-top: 2px;
}

/* Título: col 2, fila 1 */
.nosotros-card h3 {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  margin-bottom: 8px;
}

/* Párrafos: col 2, filas siguientes */
.nosotros-card .sep {
  grid-column: 2;
  margin: 4px 0 0;
}

.nosotros-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nosotros-icon svg {
  width: 26px;
  height: 26px;
}

/* Misión — verde esmeralda */
.nosotros-card.mision {
  border-left-color: var(--primary-light);
}
.nosotros-card.mision .nosotros-icon {
  background: rgba(0, 163, 102, 0.12);
  color: var(--primary-light);
}
.nosotros-card.mision h3 {
  color: var(--primary);
}

/* Visión — verde accent */
.nosotros-card.vision {
  border-left-color: var(--accent);
}
.nosotros-card.vision .nosotros-icon {
  background: rgba(26, 232, 128, 0.12);
  color: #0fa85a;
}
.nosotros-card.vision h3 {
  color: #0a7a40;
}

/* Valores — verde oscuro */
.nosotros-card.valores {
  border-left-color: var(--primary-dark);
}
.nosotros-card.valores .nosotros-icon {
  background: rgba(0, 77, 47, 0.1);
  color: var(--primary-dark);
}
.nosotros-card.valores h3 {
  color: var(--primary-dark);
}

.nosotros-body {
  flex: 1;
}

/* ─── GALLERY ─── */
.seccion-galeria {
  padding: 4rem 2rem;
  text-align: center;
}

.seccion-galeria .und {
  color: var(--off-white);
}

.titulo-galeria {
  margin-bottom: 1.5rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  letter-spacing: 0.1em;
  color: #d4ede3;
  display: inline-block;
  position: relative;
}

.titulo-galeria::after {
  content: '';
  display: block;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  margin: 0.4rem auto 0;
  border-radius: 2px;
}

.galeria-externa {
  display: flex;
  flex-direction: column;
  align-items: left;
  width: 100%;
  overflow: hidden;
}

.galeria-listado {
  display: flex;
  gap: 1rem;
  transition: transform 0.5s ease;
  max-width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 1rem 0 1.5rem;
}

.galeria-listado::-webkit-scrollbar {
  display: none;
}

.producto {
  background: transparent;
  border-radius: 12px;
  width: 320px;
  flex-shrink: 0;
  padding: 0.5rem;
}

.imagen-cuadrada {
  position: relative;
  cursor: pointer;
  transition: transform 0.35s ease;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--gray-dark);
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.imagen-cuadrada img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.4s ease;
}

.imagen-cuadrada::after {
  content: '🔍';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 77, 47, 0.5);
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.imagen-cuadrada:hover img {
  transform: scale(1.06);
  filter: brightness(0.85);
}

.imagen-cuadrada:hover::after {
  opacity: 1;
}

.imagen-cuadrada:active {
  transform: scale(1.03);
  z-index: 2;
}

.galeria-controles {
  margin-top: 1.5rem;
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.flecha {
  font-size: 1.5rem;
  border: 2px solid var(--primary-light);
  background: none;
  cursor: pointer;
  color: var(--off-white);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.2s;
}

.flecha:hover {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1);
}

.contador {
  color: var(--gray-light);
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 50px;
  text-align: center;
}

/* ─── CLIENTS ─── */
#clientes-carousel {
  padding: 4rem 0 3rem;
  overflow: hidden;
}

#clientes-carousel .und {
  display: block;
  text-align: center;
  margin-bottom: 2rem;
}

.carousel-wrapper {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: inline-block;
  white-space: nowrap;
  animation: scroll 30s linear infinite;
}

.cliente {
  display: inline-block;
  width: 180px;
  text-align: center;
  margin: 0 50px;
  opacity: 0.75;
  transition: opacity 0.3s, transform 0.3s;
}

.cliente:hover {
  opacity: 1;
  transform: scale(1.08);
}

.cliente img {
  width: 200px;
  height: auto;
  transition: filter 0.3s ease;
}

.cliente p {
  font-size: 14px;
  margin-top: 8px;
}

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

/* ─── CONTACT ─── */

.contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid rgba(0,107,67,0.12);
  padding: 1rem 1.5rem;
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.25s;
}

.contact-item:hover {
  box-shadow: 0 6px 20px rgba(0,107,67,0.14);
  border-color: var(--primary-light);
  transform: translateX(4px);
}

.contact-item a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--dark);
  gap: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  width: 100%;
}

.contact-item img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.contact-item p {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  text-align: left;
}

.sp { text-align: left; }
.sp1 { margin-bottom: 15px; }

.sep {
  font-weight: 300;
  margin: 10px;
  text-align: left;
  line-height: 1.7;
  color: var(--gray-dark);
}

/* ─── MODAL ─── */
.modal-imagen {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  justify-content: center;
  align-items: center;
  z-index: 999;
  backdrop-filter: blur(6px);
}

.modal-imagen.abierto {
  display: flex;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.imagen-ampliada {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 0 60px rgba(0, 163, 102, 0.2);
  z-index: 2;
  animation: imgScale 0.3s ease;
}

@keyframes imgScale {
  from { transform: scale(0.9); }
  to   { transform: scale(1); }
}

.cerrar-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 1.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  z-index: 3;
  cursor: pointer;
  color: white;
  transition: background 0.3s;
  backdrop-filter: blur(4px);
}

.cerrar-modal:hover {
  background: rgba(255,255,255,0.2);
}

.modal-fondo {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ─── FOOTER ─── */
footer {
  background-color: var(--dark-mid);
  color: white;
  padding: 2.5rem 2rem;
  border-top: 3px solid var(--primary);
}

.ftund {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1.5rem;
}

.footer-left, .footer-right {
  flex: 1;
  min-width: 250px;
}

.footer-left p {
  font-size: 0.85rem;
  color: var(--gray-light);
  line-height: 1.6;
}

.footer-right p {
  margin-bottom: 0.6rem;
}

.footer-right a {
  display: block;
  color: var(--primary-light);
  text-decoration: none;
  margin-bottom: 0.3rem;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-right a:hover {
  color: var(--accent);
}

.imglogo {
  width: 375px;
  margin-bottom: 10px;
}

/* ─── HAMBURGER ─── */
.hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  margin-left: auto;
}

/* ─── AOS OVERRIDES ─── */
[data-aos="fade-up"] {
  transition-duration: 600ms !important;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .hero h1 { font-size: 4.5rem; }

  .navbar { flex-wrap: wrap; padding: 0.8rem 1.2rem; }

  .hamburger { display: block; }

  #nav-menu { width: 100%; }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: var(--primary-dark);
    margin-top: 1rem;
    padding: 1rem;
    border-top: none;
    border-radius: 0 0 10px 10px;
    animation: fadeIn 0.3s ease-in-out;
  }

  .nav-links.show { display: flex; }

  .nav-links li { margin: 0.5rem 0; }

  .nosotros-card { padding: 1.2rem 1rem; column-gap: 0.8rem; }

  .contact-item { padding: 0.8rem 1rem; }

  .imglogo { width: 240px; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* ═══════════════════════════════════════════════
   MODO OSCURO — prefers-color-scheme: dark
   Se activa automáticamente cuando el sistema
   del dispositivo está en modo oscuro.
═══════════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {

  /* ── Paleta redefinida ── */
  :root {
    --off-white:   #141A17;   /* fondo de secciones → casi negro verdoso */
    --section-alt: #1A2420;   /* fondo alternativo → carbón verdoso */
    --white:       #1E2923;   /* fondo de cards/items → verde muy oscuro */
    --light:       #1A2420;
    --gray-pale:   #2A3530;
    --gray-light:  #8A9490;
    --gray-mid:    #6B706D;
    --gray-dark:   #C8D0CC;   /* texto secundario → claro para leer */
    --dark:        #E8EDEA;   /* texto principal → casi blanco */
  }

  /* ── Body ── */
  body {
    background-color: var(--off-white);
    color: #E8EDEA;
  }

  /* ── Secciones con gradiente ── */
  #nosotros {
    background: linear-gradient(to bottom, #0d1f18 0%, var(--off-white) 18%);
  }
  #servicios {
    background: linear-gradient(to bottom, var(--off-white) 0%, var(--section-alt) 18%);
  }
  .seccion-galeria {
    background: linear-gradient(to bottom, var(--section-alt) 0%, #0a1410 22%);
  }
  #clientes-carousel {
    background: linear-gradient(to bottom, #0a1410 0%, var(--section-alt) 22%);
  }
  #contacto {
    background: linear-gradient(to bottom, var(--section-alt) 0%, var(--off-white) 18%);
  }

  /* ── Títulos de sección (.und) ── */
  .und {
    color: #D4EDE3;
  }

  /* Títulos h3 dentro de cards y nosotros */
  h3 {
    color: #A8D5BF;
  }
  .nosotros-card.mision h3 { color: #5FD4A0; }
  .nosotros-card.vision h3  { color: var(--accent); }
  .nosotros-card.valores h3 { color: #7EC8A4; }

  /* ── Párrafos y texto corrido ── */
  .sep {
    color: #B0BDB8;
  }

  /* texto genérico dentro de secciones */
  .section p,
  #nosotros p,
  #servicios p,
  #contacto p {
    color: #B0BDB8;
  }

  /* ── Cards de servicios ── */
  .card {
    background-color: var(--white);
    border-color: rgba(0, 163, 102, 0.25);
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  }
  .card-icon {
    background: rgba(0, 163, 102, 0.15);
    color: var(--accent);
  }

  /* ── Cards de Nosotros ── */
  .nosotros-card {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  }
  .nosotros-card.mision .nosotros-icon {
    background: rgba(0, 163, 102, 0.18);
    color: #5FD4A0;
  }
  .nosotros-card.vision .nosotros-icon {
    background: rgba(26, 232, 128, 0.15);
    color: var(--accent);
  }
  .nosotros-card.valores .nosotros-icon {
    background: rgba(0, 163, 102, 0.12);
    color: #7EC8A4;
  }

  /* ── Items de contacto ── */
  .contact-item {
    background: var(--white);
    border-color: rgba(0, 163, 102, 0.2);
  }
  .contact-item a {
    color: #D4EDE3;
  }
  .contact-item a span {
    color: #D4EDE3;
  }

  /* Íconos de contacto: mismo tratamiento que logos de clientes */
  .contact-item img {
    filter: brightness(0) invert(1) opacity(0.75);
  }
  .contact-item:hover img {
    filter: brightness(0) invert(1) opacity(1);
  }

  /* ── Logos de clientes ── */
  .cliente img {
    filter: brightness(0) invert(1) opacity(0.7);
  }
  .cliente:hover img {
    filter: brightness(0) invert(1) opacity(1);
  }

  /* ── Menú mobile desplegado ── */
  .nav-links li a {
    color: #E8EDEA;
  }

  /* ── Separador de sección ── */
  .section-divider {
    background: var(--off-white);
  }
  .section-divider.inv {
    background: var(--section-alt);
  }

  /* ── Flechas de galería ── */
  .flecha {
    color: #D4EDE3;
    border-color: #5FD4A0;
  }
  .flecha:hover {
    background: var(--primary-light);
    color: #ffffff;
    border-color: var(--primary-light);
  }

  /* ── Contador de galería ── */
  .contador {
    color: #B0BDB8;
  }
}