/* 🎨 Variables de color */
:root {
  --green: #1f7a3a;
  --green-dark: #166534;
  --gray-light: #f9fafb;
  --gray: #e5e7eb;
  --black: #111827;
  --white: #fff;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: var(--gray-light);
  color: var(--black);
  line-height: 1.6;
}

/* ====== HEADER ====== */
.site-header {
  background-color: var(--white);
  border-bottom: 2px solid var(--green);
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.logo img {
  height: 90px;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

/* ===== NAVBAR ===== */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-weight: 500;
  font-size: 1rem;
}

.main-nav a {
  color: #333;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: var(--green);
}

/* ===== DROPDOWN MENÚ ===== */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 220px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 0.5rem 0;
  z-index: 100;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* --- Submenús (nivel 2 y 3) --- */
.sub-dropdown {
  position: relative;
}

.sub-dropdown-content {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  background-color: #fff;
  min-width: 200px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
  padding: 0.5rem 0;
  border-radius: 8px;
}

.sub-dropdown:hover .sub-dropdown-content {
  display: block;
}

/* --- Estilo de enlaces del menú --- */
.dropdown-content a,
.sub-dropdown-content a {
  display: block;
  padding: 0.5rem 1rem;
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
}

.dropdown-content a:hover,
.sub-dropdown-content a:hover {
  background-color: var(--green);
  color: #fff;
}

/* ===== CATÁLOGO ===== */
.catalogo {
  padding: 60px 5%;
  background-color: var(--white);
  text-align: center;
}

.catalogo h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 30px;
}

.catalogo .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  justify-items: center;
}

.card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background-color: var(--gray-light);
  border-bottom: 1px solid var(--gray);
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 12px 0 6px;
  color: var(--black);
}

.card p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 8px;
}

.card .price {
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--green);
  color: #fff;
  padding: 18px 20px;
  text-align: center;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.logo-banner img {
  max-width: 200px;
  height: auto;
  transition: transform 0.3s ease;
}

.logo-banner img:hover {
  transform: scale(1.05);
}

.social-links {
  list-style: none;
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.social-links a {
  color: #fff;
  font-size: 20px;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #d9d9d9;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .catalogo .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .catalogo .grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .logo-banner img {
    max-width: 180px;
  }
}
/* ===== BANNER ===== */
.banner {
  background: var(--green);
  color: var(--white);
  padding: 40px;
  border-radius: 16px;
  margin: 30px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.banner h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.banner p {
  font-size: 18px;
  opacity: 0.9;
}

/* ===== SLIDER ===== */
.slider {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.slider .slide img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--white);
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ===== BOTONES ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-green {
  background: var(--green);
  color: var(--white);
}

.btn-green:hover {
  background: var(--green-dark);
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
}

.btn-blue:hover {
  background: var(--blue-dark);
}
/* === HERO BANNER === */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero .swiper-slide {
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 3rem; /* tamaño base */
  font-weight: 700;
  text-align: center;
  z-index: 2;
  padding: 1rem 2rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35); /* fondo suave para contraste */
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px); /* efecto elegante */
  max-width: 80%;
  line-height: 1.2;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* llena sin deformarse */
}

.hero .swiper-slide {
  position: relative;
  background-size: cover; /* llena el espacio completo */
  background-position: center center;
}

/* Ajuste responsive */
@media (max-width: 768px) {
  .hero-text {
    font-size: 2rem;
    padding: 0.8rem 1.2rem;
  }
}

.hero-btn {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #09a600;
    color: #fff;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.hero-btn:hover {
    background-color: #078800;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Productos placeholder */
#productos {
    padding: 80px 20px;
    text-align: center;
}
/* Ajustes para las flechas del banner */
.swiper-button-next,
.swiper-button-prev {
    color: #fff;
    transition: color 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: #09a600; /* tu color principal */
}


/* === CONTROLES DEL BANNER === */
.swiper-button-next,
.swiper-button-prev {
  color: #fff !important;
  width: 45px;
  height: 45px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: rgba(9, 166, 0, 0.7); /* Verde principal con transparencia */
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 22px;
}
.swiper-button-next,
.swiper-button-prev {
  z-index: 10 !important;
}
.productos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-items: center;
}

@media (max-width: 1024px) {
  .productos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .productos-grid {
    grid-template-columns: 1fr;
  }
}
.footer-col.contact-banner {
  text-align: left;
  align-items: flex-start;
  justify-content: flex-start;
}

.footer-col.contact-banner .fields p,
.footer-col.contact-banner h3 {
  text-align: left;
  margin-left: 0;
}
.banner {
  position: relative;
  width: 100%;
  height: 100vh; /* Puedes ajustar: 100vh = alto de la pantalla */
  overflow: hidden;
}

.banner video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Hace que el video se recorte para cubrir todo el área */
  z-index: 1;
}

.banner-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  padding: 0 1rem;
}
.banner {
  background: url("../images/logooriginal.jpg") center/cover no-repeat;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Toma todo el alto de la pantalla */
}

main {
  flex: 1; /* El contenido ocupa el espacio disponible */
}

/* Footer verde fijo al fondo */
.site-footer {
  background-color: #138035; /* 💚 tu verde corporativo */
  color: white;
  padding: 30px 0;
  text-align: center;
}
.card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.02);
}

.tech-table {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.95);
  width: 100%;
  height: 100%;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  overflow-y: auto;
}

.card:hover .tech-table {
  display: block;
}

.tech-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.tech-table th {
  text-align: left;
  color: #007f3f;
  padding-right: 10px;
}
.fichas-tecnicas {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 2rem;
}

.ficha-tecnica {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 2rem;
  transition: transform 0.2s ease;
}

.ficha-tecnica:hover {
  transform: scale(1.02);
}

.ficha-imagen img {
  width: 250px;
  height: auto;
  border-radius: 0.5rem;
  object-fit: contain;
}

.ficha-info {
  flex: 1;
}

.ficha-info h2 {
  color: #004d00;
  margin-bottom: 0.5rem;
}

.codigo {
  color: #555;
  margin-bottom: 1rem;
}

.tabla-propiedades {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.tabla-propiedades th,
.tabla-propiedades td {
  border: 1px solid #ccc;
  padding: 0.5rem 1rem;
  text-align: left;
}

.tabla-propiedades th {
  background-color: #f4f4f4;
  width: 40%;
}
/* Fichas de adhesivos más compactas y en una sola columna */
.ficha-adhesivo {
  display: grid;
  grid-template-columns: 130px 1fr; /* imagen + texto/tabla */
  align-items: start;
  gap: 0.4rem; /* espacio más corto */
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.4rem; /* menos separación entre fichas */
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Imagen un poco más grande */
.ficha-adhesivo img {
  width: 120px;
  height: auto;
  border-radius: 4px;
  object-fit: contain;
}

/* Texto compacto */
.ficha-adhesivo h3 {
  margin: 0;
  font-size: 1rem;
  color: #004f2d;
}

.ficha-adhesivo p {
  font-size: 0.8rem;
  margin: 0.15rem 0;
  line-height: 1.2;
}

/* Tabla técnica pequeña y ajustada */
.ficha-adhesivo table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  margin-top: 0.3rem;
}

.ficha-adhesivo td, .ficha-adhesivo th {
  border: 1px solid #ddd;
  padding: 2px 4px;
}

.ficha-adhesivo th {
  background: #f9f9f9;
  font-weight: 600;
}
/* --- FIX FILTROS EN CELULAR --- */
.filtros-contenedor {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.filtros-contenedor select,
.filtros-contenedor input,
.filtros-contenedor button {
    width: 100%;         /* Ocupan el ancho del celular */
    max-width: 100%;
    box-sizing: border-box;
}

/* Evita que nada se salga lateralmente */
* {
    max-width: 100%;
}
/* ===== FIX DEFINITIVO PARA SUBMENÚS EN CELULAR ===== */
@media (max-width: 768px) {

  /* Los dropdowns se apilan verticalmente */
  .dropdown-content,
  .sub-dropdown-content {
      position: relative !important;
      left: 0 !important;
      top: 0 !important;
      width: 100% !important;
      min-width: unset !important;
      padding-left: 10px;
      border-radius: 6px;
      box-shadow: none;
  }

  /* Evitar que los niveles anidados salgan de pantalla */
  .sub-dropdown-content {
      margin-left: 10px;
  }

  /* Enlaces del menú responsivos */
  .dropdown-content a,
  .sub-dropdown-content a {
      white-space: normal !important; /* rompe líneas largas */
      padding: 10px 12px;
  }

  /* Asegurar que NADA haga overflow horizontal */
  .main-nav,
  .dropdown,
  .dropdown-content,
  .sub-dropdown-content {
      max-width: 100% !important;
      overflow-x: hidden !important;
  }
}
/* Permitir scroll para menús largos */
.sidebar, .filtros, .menu-categorias {
    overflow-y: auto !important;
    max-height: 100vh;
    overscroll-behavior: contain;
}

/* Para evitar que un submenu se cierre automáticamente */
.menu-categorias ul {
    display: block !important;
    position: relative;
    overflow: visible !important;
}
.consumible-grupo {
    border: 1px solid #ccc;
    padding: 20px;
    margin: 25px 0;
    border-radius: 12px;
    background: #f9f9f9;
}

.img-consumible {
    width: 200px;
    margin-bottom: 15px;
}

.tabla-consumibles {
    width: 100%;
    border-collapse: collapse;
}

.tabla-consumibles th,
.tabla-consumibles td {
    border-bottom: 1px solid #ddd;
    padding: 10px;
}
.btn-seleccionar {
    padding: 8px 14px;
    background: #1b3d6d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

.btn-seleccionar:hover {
    background: #123257;
}

.btn-seleccionar.seleccionado {
    background: #2ecc71 !important;
    color: white;
}
.grapas-section {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.grapa-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.titulo-grapa {
  font-size: 22px;
  margin-bottom: 10px;
  color: #333;
}

.grapa-imagen {
  text-align: center;
  margin-bottom: 15px;
}

.grapa-imagen img {
  max-width: 180px;
  border-radius: 8px;
}

.tabla-grapas {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.tabla-grapas th {
  background: #eaeaea;
  padding: 10px;
  text-align: left;
  font-weight: bold;
  border-bottom: 2px solid #ccc;
}

.tabla-grapas td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.btn-seleccionar {
  padding: 6px 12px;
  background: #0a7cff;
  border: none;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

.btn-seleccionar:hover {
  background: #005fcc;
}
.grapas-section {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.grapa-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.titulo-grapa {
  font-size: 22px;
  margin-bottom: 10px;
  color: #333;
}

.grapa-imagen {
  text-align: center;
  margin-bottom: 15px;
}

.grapa-imagen img {
  max-width: 180px;
  border-radius: 8px;
}

.tabla-grapas {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.tabla-grapas th {
  background: #eaeaea;
  padding: 10px;
  text-align: left;
  font-weight: bold;
  border-bottom: 2px solid #ccc;
}

.tabla-grapas td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.btn-seleccionar {
  padding: 6px 12px;
  background: #00C853;
  border: none;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

.btn-seleccionar:hover {
  background: #005fcc;
}
.about-section h1 {
  letter-spacing: -1px;
}

.about-section img {
  border-radius: 1rem;
}

.about-section .text-success {
  color: #1faa59 !important; /* Verde suave profesional */
}

.about-section p {
  font-size: 1.05rem;
  line-height: 1.65;
}
/* Sección general */
.about-section {
  background-color: #f7f9fb;
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Contenedor del título */
.about-section .section-title {
  margin-bottom: 60px;
}

/* Título */
.about-section h1 {
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

/* Texto introductorio */
.about-section .intro-text {
  max-width: 740px;
  line-height: 1.7;
  font-size: 1.1rem;
}

/* Imagen */
.about-section img {
  max-height: 420px;
  object-fit: cover;
  width: 100%;
  border-radius: 14px;
}

/* Texto Historia */
.about-section h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

/* Cartas de Misión y Visión */
.about-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  padding: 40px;
  transition: all .25s ease;
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.1);
}

/* Mejorar legibilidad */
.about-section p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #4b5563;
}
.about-section {
  background-color: #f9fafb;
  padding: 80px 0; /* márgenes verticales grandes */
}

.about-section .container {
  max-width: 1000px; /* centra y limita el ancho */
  margin: 0 auto;
}

.section-title {
  margin-bottom: 60px;
}

.about-section p,
.about-section h1,
.about-section h2 {
  text-align: center; /* centra los textos */
}

.about-section img {
  display: block;
  margin: 0 auto 30px auto; /* centra la imagen */
  max-width: 85%;
  border-radius: 14px;
  object-fit: cover;
}

.about-card {
  background: white;
  border-radius: 14px;
  padding: 35px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.about-card p {
  text-align: center;
}
.about-cards-row {
  display: flex;
  gap: 25px;
  justify-content: center;
  margin-top: 40px;
}

.about-cards-row .about-card {
  flex: 1;
  min-width: 280px;
}
.grapa-card {
  margin-bottom: 40px;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fff;
}

.grapa-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

/* Imagen a la izquierda */
.grapa-imagen img {
  max-width: 140px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.titulo-grapa {
  margin: 0;
  font-size: 1.8rem;
  color: #217e41;
}

/* Tabla */
.tabla-grapas {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.tabla-grapas th,
.tabla-grapas td {
  padding: 10px 12px;
  border-bottom: 1px solid #ddd;
}

.tabla-grapas th {
  text-align: left;
  background: #f8f8f8;
}

.btn-seleccionar {
  background: #198754;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-seleccionar:hover {
  background: #146c43;
}
.grapa-contenido-horizontal {
    display: flex;
    gap: 25px;
    padding: 20px;
    align-items: flex-start;
}

.grapa-imagen img {
    width: 180px;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

.grapa-tabla-contenedor {
    flex: 1;
}
.grapa-contenido-horizontal {
    display: flex;
    gap: 25px;
    padding: 20px;
    align-items: center;   /* ← CENTRA verticalmente imagen + tabla */
}
.grapa-imagen {
    display: flex;
    align-items: center;
}
