body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  background: #fafafa;
  color: #222;
}
html {
  scroll-behavior: smooth;
}
.nav-logo {
  cursor: pointer;
}

.nav-logo:hover {
  opacity: 0.85;
}
:root {
  --green: #5f6f52;
  --light-green: #a9b7a2;
  --yellow: #f4c542;
  --text: #222;
  --green-off: #556f53;
}
.section {
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.nav-logo img {
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.4s ease;
}

.site-header.scrolled .nav-logo img {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.nav-claim p {
  font-size: 14px;
  color: white;
}
.site-header {
  position: fixed; /* 🔥 en lugar de absolute */
  top: 0;
  left: 0;
  width: 100%;

  background: transparent;
  transition: all 0.3s ease;

  z-index: 1000;
}
.site-header.scrolled {
  background: var(--green);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 12px 0;
}
/* HERO */
.hero {
  display: flex;
  align-items: center;
  position: relative;
  color: white;
  padding-top: 0;
  min-height: 80vh; /* dejamos el mayor */
  height: 100vh;

  background: 
    linear-gradient(
      to bottom,
      rgba(60, 80, 60, 0.9) 0%,
      rgba(60, 80, 60, 0.6) 30%,
      rgba(60, 80, 60, 0.0) 70%
    ),
    url('../assets/images/hero.jpg') center/cover no-repeat;
}
.site-header.scrolled .nav-claim p {
  opacity: 0.9;
}
.site-header.scrolled {
  backdrop-filter: blur(8px);
}
.nav-logo img {
  height: 60px;
  width: auto;
  display: block;
}

.nav-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 8px;

  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle img {
  height: 24px;
  display: block;
}

.nav-toggle:hover {
  background: rgba(255,255,255,0.1);
  transform: scale(1.1);
  opacity: 0.8;
}
.mobile-menu {
  position: absolute;
  top: 100%;
  right: 0;

  width: 260px; /* 🔥 ya no gigante */

  background: white;
  padding: 20px;
  border-radius: 12px;

  display: none;
  flex-direction: column;
  gap: 16px;

  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.mobile-menu a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
}

.mobile-menu a:hover {
  color: var(--green);
}
.mobile-menu.active {
  display: flex;
}
.menu-title {
  font-weight: 700;
  margin-bottom: 10px;
}

h1, h2, h3 {
  margin: 0 0 16px;
}

p {
  margin: 0 0 12px;
  line-height: 1.5;
}

h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -1px;
}

h2 {
  font-size: 32px;
  font-weight: 600;
}

h3 {
  font-size: 20px;
  font-weight: 600;
}

p {
  font-size: 15px;
  color: #555;
}

.section {
  padding: 100px 0;
}

.hero-text h1 {
  font-size: 42px;
  max-width: 600px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 80vh;
  padding-top: 120px;
}
.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 400px; /* 🔥 controla el tamaño */
  height: auto;
  opacity: 0.95;
}
.hero-image img {
  max-width: 350px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}
.hero-text {
  max-width: 600px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(60, 80, 60, 0.6); /* verde overlay */
  z-index: -1;
}
.hero-text h1 {
  font-size: 48px;
  max-width: 700px;
  color: white;
}
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-indicator::before {
  content: "";
  width: 24px;
  height: 40px;
  border: 2px solid white;
  border-radius: 20px;
  display: block;
  position: relative;
}

.scroll-indicator::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: white;
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollAnim 1.5s infinite;
}

@keyframes scrollAnim {
  0% { opacity: 0; transform: translate(-50%, 0); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 120px;

  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0),
    rgba(0,0,0,0.5)
  );
}
.infraestructura-top {
  display: flex;
  gap: 40px;
  align-items: center;
}
.clientes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.cliente {
  background: white;
  padding: 28px;
  border-radius: 16px;

  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cliente p:first-of-type {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  font-style: italic;
  position: relative;
}
.cliente p:first-of-type::before {
  content: "“";
  font-size: 40px;
  position: absolute;
  left: -10px;
  top: -10px;
  color: var(--green);
  opacity: 0.3;
}
.cliente p:last-of-type {
  margin-top: 16px;
  font-size: 14px;
  color: #777;
}

.cliente p:last-of-type strong {
  display: block;
  color: #222;
  font-weight: 600;
}
.contacto .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contacto {
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 0;
}
.contacto-info{
  max-width: 400px;
  padding-right: 40px;
  border-right: 1px solid #e5e5e5;
  padding-right: 40px;
}
.contacto-mapa {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 768px) {
  .contacto {
    grid-template-columns: 1fr;
  }

  .contacto-info {
    border-right: none;
    padding-right: 0;
  }
  .hero-right {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-left {
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-logo {
    margin: 0 auto 20px;
  }
}
.section.contacto {
  padding-bottom: 80px;
}

.contacto-mapa figure {
  margin: 20px 0 0;
}
.contacto-mapa img {
  width: 100%;
  max-width: 500px; /* 🔥 clave */
  height: auto;

  display: block;
}
.contacto a[href^="tel"] {
  font-weight: 600;
}

.contacto a {
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
}

.contacto a:hover {
  text-decoration: underline;
}
.product-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.tab {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  padding: 10px 0;
  cursor: pointer;
  color: #777;
  position: relative;
}
.tab:hover {
  color: #111;
}
.tab.active {
  color: #111;
  font-weight: 600;
}

.tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #111;
}
.tab.active::after {
  background: var(--yellow);
}
.tab {
  transition: color 0.2s ease;
}
.product-card {
  width: 180px;
  flex: 0 0 auto; /* 🔥 clave */
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 12px;
  background: white;
}
.product-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 20px 0;

  scroll-snap-type: x mandatory;
  user-select: none;
}
.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1; /* 🔥 cuadrado */
  object-fit: cover;
  border-radius: 8px;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.product-carousel::-webkit-scrollbar {
  height: 6px;
}

.product-carousel::-webkit-scrollbar-track {
  background: transparent;
}

.product-carousel::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.whatsapp-button {
  position: fixed;
  bottom: 74px;
  right: 54px;

  background: #25D366;
  color: white;

  padding: 18px 22px;
  border-radius: 999px;

  font-weight: 600;
  text-decoration: none;

  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  z-index: 100;

  display: flex;
  align-items: center;
  gap: 8px;
}

.whatsapp-button {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-button {
  gap: 10px;
  font-size: 18px;
}

.whatsapp-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}
.whatsapp-button img {
  height: 25px;
  width: 25px;
}
@media (max-width: 768px) {
  .whatsapp-button {
    bottom: 24px; /* lo regresas */
    padding: 14px 16px;
  }

  .whatsapp-button span {
    display: none; /* solo icono en móvil 🔥 */
  }
}
.certificaciones {
  text-align: center;
}

.cert-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem; /* espacio entre logos */
  margin-bottom: 1rem;
  flex-wrap: wrap; /* por si en móvil se bajan */
}

.cert-logos img {
  height: 60px; /* controla tamaño uniforme */
  object-fit: contain;
  opacity: 0.85;
  transition: all 0.3s ease;
}

.cert-logos img:hover {
  opacity: 1;
  transform: scale(1.05);
}
.infra-text h2{
  font-style: italic;
}

.infra-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* clave para que se vea pro */
  border-radius: 12px; /* opcional pero nice */
}
.infra-img {
  width: 100%;
  max-width: 500px; /* ajusta según diseño */
  overflow: hidden;
}

.infra-img img {
  filter: brightness(0.95) contrast(1.05);
}
.infra-video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* igual que imagen */
  border-radius: 12px;
  display: block;
}

.infra-video {
  will-change: transform;
}

.infraestructura-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 40px;
}

/* .certificaciones {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: center;
}
*/
.capacidades {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 70px; /* pequeño offset visual */
}
.capacidades ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.capacidades li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
}
@media (max-width: 768px) {
  .infraestructura-top,
  .infraestructura-bottom {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .certificaciones {
    align-items: center;
    text-align: center;
  }
}

.capacidades ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.capacidades li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.capacidades img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.capacidades span {
  font-weight: 600;
  color: var(--green);
}

.capacidades li {
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
}

@media (max-width: 1024px) {
  .capacidades {
    padding-left: 20px;
  }
}

@media (max-width: 768px) {
  .capacidades {
    padding-left: 0;
  }
}

.site-footer {
  background: var(--green); /* más oscuro que todo */
  color: white;

  padding: 20px 0;
  text-align: center;
  font-size: 13px;

  border-top: 1px solid rgba(255,255,255,0.1);
}
.site-footer p {
  margin: 4px 0;
  opacity: 0.85;
  color: rgba(255,255,255,0.9);
}


.retail-logos {
  background: #f1f1f1; /* gris suave */
  border: 1px solid #e0e0e0;

  border-radius: 12px;
  padding: 24px 32px;

  margin-top: 40px;
  text-align: center;
}

.retail-logos-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;

  margin-bottom: 12px;
}

.retail-logos-grid img {
  height: 35px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  transition: 1s ease;
}
.retail-logos-grid img:hover {
  opacity: 1;
  transform: scale(1.5);
  transition: .5s ease;
}

.clientes {
  background: #eef2ec; /* pale green / gris verdoso */
  padding: 0; /* importante para controlar bien el header */
}
.clientes-header {
  background: var(--green);
  padding: 60px 20px;
  text-align: center;
}

.clientes-header h2 {
  color: white;
  font-style: italic; /* como tu referencia */
  font-weight: 700;
}
.clientes-header h3{
  color:white;
  font-weight:200;
  font-style: italic;
}
.clientes .container {
  padding-top: 40px;
  padding-bottom: 80px;
}

.cliente {
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.cliente-foto {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;

  border-radius: 50%;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #eaeaea; /* opcional mientras cargas fotos reales */
}
.cliente-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 🔥 clave */
}
.cliente-foto {
  border: 4px solid white;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.cliente {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.cliente:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
/* =========================
   RESPONSIVE GLOBAL FIXES
========================= */

/* 📱 TABLET */
@media (max-width: 1024px) {

  .infraestructura-top {
    flex-direction: column;
    text-align: center;
  }

  .infraestructura-bottom {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .capacidades {
    justify-content: center;
    padding-left: 0;
  }

  .clientes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}


/* 📱 MOBILE */
@media (max-width: 768px) {

  /* HEADER */
  .nav-claim {
    display: none;
  }
  .hero-image img {
    max-width: 220px;
    margin-bottom: 20px;
  }

  .nav-logo img {
    height: 50px;
  }

  /* HERO */
  .hero {
    min-height: 60vh;
    text-align: center;
  }
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text {
    margin: 0 auto;
  }
  .hero-text h1 {
    font-size: 32px;
  }
  

  /* TEXTOS */
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 26px;
  }

  h3 {
    font-size: 18px;
  }

  p {
    font-size: 14px;
  }

  /* SECCIONES */
  .section {
    padding: 60px 0;
  }

  /* CLIENTES */
  .clientes-grid {
    grid-template-columns: 1fr;
  }

  /* RETAIL LOGOS */
  .retail-logos-grid {
    flex-direction: column;
    gap: 20px;
  }

  .retail-logos-grid img {
    height: 30px;
  }

  /* PRODUCT TABS */
  .product-tabs {
    overflow-x: auto;
    white-space: nowrap;
  }

  .tab {
    flex: 0 0 auto;
  }

  /* CONTACTO */
  .contacto .container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

}


/* 📱 MOBILE PEQUEÑO */
@media (max-width: 480px) {
  .section {
    padding: 50px 0;
  }

  .whatsapp-button {
    right: 16px;
    bottom: 16px;
    padding: 12px;
  }
  .hero-top {
    /* padding: 40px 0 20px; */
    flex: unset;
  }
  .hero-left h1 {
    font-size: 26px;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 20px;
  }
  .hero-cta {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 80%;
    padding: 12px;
    margin:auto;
    font-size: 14px;
  }

  .hero-bottom {
    flex: unset;
    padding: 40px 0;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-number {
    font-size: clamp(90px,3vw,130px)
  }

  .stat-text {
    font-size: clamp(80px,2.5vw,120px);
  }

  .stat-map img {
    height: 78px;
  }

}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================
   HERO NUEVO
========================= */

.hero-new {
  min-height: 100vh; /* 🔥 respeta el header */
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
  margin-bottom: 0;
  margin-top: 0;
}

/* TOP (80%) */
.hero-top {
  flex:4;
  background: url('../assets/texturas/bg.png');
  background-size: 700px;
  background-repeat: repeat;
  display: flex;
  align-items: center;
  min-height: 0; /* 🔥 evita bugs de flex en zoom */
}

/* GRID */
.hero-grid {
  display: grid;
  grid-template-columns: 40% 60%;
  align-items: center;
  gap: 40px;
}

/* LEFT */
.hero-left {
  color: white;
}

.hero-logo {
  width: 160px;
  /* margin-bottom: 20px; */
  margin:auto;
}

.hero-left h1 {
  font-size: 42px;
  margin-bottom: 16px;
  color: var(--green-off);
}

.hero-subtitle {
  font-size: 18px;
  margin-bottom: 24px;
}

/* CTA */
.hero-cta {
  display: flex;
  gap: 16px;
}

.btn {
  padding: 14px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
}

.btn-green {
  background: var(--green);
  color: white;
}

.btn-green:hover {
  background: #4c5a43;
}

.btn-yellow {
  background: #f6bd04;
  color: #222;
}

.btn-yellow:hover {
  background: #e0aa00;
}
.hero-right {
  display: flex;
  align-items: flex-end; /* 🔥 esto la empuja abajo */
}

/* RIGHT */
.hero-right img {
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
  display: block;
}

/* BOTTOM (20%) */
.hero-bottom {
  flex: 4;
  background: var(--green);
  display: flex;
  align-items: center;
  min-height: 120px;
}

/* STATS */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

/* ITEM */
.stat {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
}

/* NUMBER */
.stat-number {
  font-size: 42px;
  font-weight: 700;
  color: #f6bd04;
}

/* TEXT */
.stat-text {
  font-size: 14px;
  max-width: 120px;
}

/* MAP */
.stat-map img {
  height: 50px;
  width: auto;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    text-align: center;
  }

  .stat {
    flex-direction: column;
  }

}

.contacto-form {
  background: white;
  padding: 30px;
  border-radius: 12px;

  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  max-width: 500px;
}

.contacto-form h2 {
  margin-bottom: 10px;
}

.contacto-form p {
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 13px;
  margin-bottom: 6px;
  color: #555;
}

.form-group input,
.form-group textarea {
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
}

.contacto-form button {
  width: 100%;
  margin-top: 10px;
}

.form-success {
  margin-top: 15px;
  color: green;
  font-weight: 600;
}

/* =========================
   INFRA FULL VIDEO
========================= */

.infra-full {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  color: white;
}

/* VIDEO */
.infra-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 100%;
  height: 100%;
  object-fit: cover;

  z-index: 0;
}

/* OVERLAY (clave para legibilidad) */
.infra-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* CONTENIDO */
.infra-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
}

/* TEXTO */
.infra-content h2 {
  font-size: 42px;
  margin-bottom: 16px;
  color: white;
}

.infra-content p {
  color: #ddd;
  margin-bottom: 24px;
}

/* CAPACIDADES sobre fondo oscuro */
.infra-content .capacidades span {
  color: #fff;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .infra-content h2 {
    font-size: 28px;
  }
}