/* =========================
  Importación de fuentes
========================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* =========================
  Variables CSS
========================= */
:root {
  --primary: #058545;
  --secondary: #f4cb1e;
  --accent: #eafaf1;
  --white: #fff;
  --text: #222;
  --soft-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  --radius: 1rem;
  --gradient: linear-gradient(120deg, #058545 0%, #6bcf86 100%);
}

/* =========================
  Tipografía y colores base
========================= */
body, p, footer, .footer-nosotros, .footer-productos {
  font-family: 'Poppins', sans-serif !important;
}

body {
  background-color: #f8f8f8;
  color: #333;
  margin: 0;
  padding: 0;
}

p {
  /* Asegura que solo los párrafos usen 'Poppins' */
}

h1, h2, h3 {
  font-weight: 700;
  margin-bottom: 20px;
}

h1 {
  font-size: 48px;
  text-transform: uppercase;
  color: var(--primary);
}

h2, .seccion-info h2, .product-section h2, .contenido-ozono h2,
.franja-datos h2, .aplicaciones-ozono h2, .testimonios-ozono h2 {
  font-size: 36px;
  font-weight: 700;
  color: #378D11;
  text-align: center;
  margin-bottom: 16px;
  text-transform: uppercase;
}

h3, .product-card h3, .beneficio h3 {
  font-size: 24px;
  color: #378D11;
  margin-bottom: 10px;
  font-weight: 700;
}

.titulo-producto, .titulo-ozono {
  position: relative;
  font-size: 48px;
  font-weight: 800;
  text-align: center;
  background: linear-gradient(90deg, #058545, #f4cb1e, #058545);
  background-size: 200% auto;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 50px auto 30px;
  letter-spacing: 1.2px;
  animation: brilloDegradado 5s infinite linear;
}

.titulo-producto::before,
.titulo-producto::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, #f4cb1e, #058545);
  margin: 12px auto;
  border-radius: 4px;
  animation: expand-line 1.2s ease-in-out;
}

/* =========================
  Encabezado y Navegación
========================= */
.encabezado-principal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background-color: #378D11;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.navbar-nav .nav-link {
  color: white;
  font-weight: 500;
  padding: 8px 16px;
  transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
  color: var(--secondary);
}

/* =========================
  Botones generales
========================= */
.btn-more,
.read_more,
.sub_btn {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 30px;
  background-color: var(--secondary);
  color: #378D11;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.btn-more:hover,
.read_more:hover,
.sub_btn:hover {
  background-color: #378D11;
  color: #fff;
}

/* =========================
  Sección Hero (quienes somos)
========================= */
.hero-nosotros {
  background-color: #fff;
  color: #378D11;
  padding: 20px 0 10px;
  text-align: center;
  position: relative;
  scroll-margin-top: 150px;
}

.hero-nosotros .container {
  flex-direction: column;
  align-items: flex-start;
}

.hero-text {
  margin-left: 0;
  margin-top: 20px;
}

/* =========================
  Sección Info
========================= */
.seccion-info {
  padding: 60px 0 40px 0;
  background-color: #fff;
}

.seccion-info p {
  text-align: justify;
  font-size: 17px;
  line-height: 1.8;
  color: #444;
}

.seccion-info p strong {
  color: #378D11;
}

.seccion-info .row {
  align-items: center;
  margin: 60px 0;
}

/* Bloques de información */
.info-block {
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 30px;
}

.info-block.reverse {
  flex-direction: row-reverse;
}

.info-img {
  flex: 0 0 320px;
  max-width: 380px;
  margin: 0 32px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.info-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.info-content h2 {
  margin-bottom: 10px;
}

.icono-info {
  font-size: 2.5rem;
  color: #2e8b57;
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* =========================
  Cards de Productos
========================= */
.product-section {
  padding: 140px 20px 80px 20px; /* Ajusta según el alto de tu header */
  text-align: center;
}

.product-section h2 {
  margin-top: 120px;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.product-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  width: 320px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.product-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 15px;
}

.product-card p {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
}

/* =========================
  Imágenes destacadas
========================= */
.imagen-producto,
.img-biocida-ampliada,
.seccion-info .col-md-6,
.seccion-info .imagen-producto {
  width: 100% !important;
  max-width: 100% !important;
  height: auto;
  margin: 20px 0 0 0;
  padding: 0 15px;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.img-biocida-ampliada {
  object-fit: cover;
}

/* =========================
  Footer
========================= */
footer,
.footer-nosotros,
.footer-productos {
  background-color: #378D11;
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.footer-nosotros {
  background: #2e8b57;
  padding: 18px 0;
  margin-top: 40px;
}

footer p,
.footer-nosotros p,
.footer-productos p {
  margin: 0;
  font-size: 16px;
}

/* =========================
  Tarjeta de contacto
========================= */
.contact-card p {
  font-size: 16px;
  color: #333;
  margin: 10px 0;
  text-align: center;
}

/* =========================
  Banner y contenido de Ozono
========================= */
.banner-ozono {
  background: #fff;
  color: var(--primary);
  text-align: center;
  padding: 3rem 1rem 1.5rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--soft-shadow);
  margin-top: 200px;
  margin-bottom: 40px;
}

.banner-ozono p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
  color: #fff;
  opacity: 0.95;
}

.contenido-ozono,
.aplicaciones-ozono,
.testimonios-ozono {
  max-width: 1100px;
  margin: 2.5rem auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  padding: 2rem 1.5rem;
}

.aplicaciones-ozono {
  max-width: 900px;
  padding: 2rem;
}

.testimonios-ozono {
  max-width: 900px;
  margin: 3rem auto;
  background: #eafaf1;
}

.beneficios-ozono {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.beneficio {
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  padding: 1.5rem;
  text-align: center;
  flex: 1 1 240px;
  transition: transform 0.2s;
}

.beneficio:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

.beneficio i {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.beneficio h3 {
  font-size: 18px;
  color: var(--secondary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.beneficio p {
  font-size: 15px;
  color: #444;
}

/* =========================
  Franja de datos
========================= */
.franja-datos {
  background: #fff;
  color: #fff;
  padding: 2.5rem 1rem;
  margin: 2.5rem 0 2rem 0;
  text-align: center;
  border-radius: var(--radius);
}

.cuadros-datos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.dato {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 1.5rem 2rem;
  min-width: 180px;
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 600;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  margin: 0.5rem;
  border: 2px solid var(--accent);
}

.dato:hover {
  background: rgba(255,255,255,0.22);
  transform: scale(1.05);
}

.dato strong {
  font-size: 2rem;
  display: block;
  color: #7bc043;
}

/* =========================
  Aplicaciones de Ozono
========================= */
.aplicaciones-ozono ul {
  list-style: none;
  padding: 0;
}

.aplicaciones-ozono li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.8rem;
  font-size: 16px;
  color: #333;
}

.aplicaciones-ozono li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* =========================
  Testimonios
========================= */
.testimonios-lista {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

blockquote {
  background: #fff;
  border-left: 5px solid var(--primary);
  border-radius: 0.5rem;
  padding: 1.2rem 1.5rem;
  font-style: italic;
  box-shadow: var(--soft-shadow);
  color: #333;
}

blockquote span {
  display: block;
  margin-top: 1rem;
  font-weight: 500;
  color: var(--secondary);
  font-style: normal;
}

/* =========================
  Iconos decorativos
========================= */
.icono-info {
  font-size: 50px;
  color: var(--secondary);
  margin-bottom: 20px;
}

/* =========================
  Efectos y animaciones
========================= */
@keyframes brilloDegradado {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes expand-line {
  0% { width: 0; opacity: 0; }
  100% { width: 60px; opacity: 1; }
}

/* =========================
  Ajustes responsive
========================= */
html {
  scroll-behavior: smooth;
}

@media (max-width: 991px) {
  .info-img {
   margin: 0 0 20px 0;
   max-width: 100%;
  }
}

@media (max-width: 900px) {
  .beneficios-ozono,
  .cuadros-datos {
   flex-direction: column;
   gap: 1rem;
  }
  .contenido-ozono,
  .aplicaciones-ozono,
  .testimonios-ozono {
   padding: 1.2rem 0.7rem;
  }
}

@media (max-width: 767px) {
  .contactanos .mapa,
  .contacto .mapa,
  .contactanos .contact-info,
  .contacto .contact-info {
   width: 100%;
   margin: 0 0 20px 0;
  }
  .contactanos .mapa,
  .contacto .mapa {
   order: 2;
   min-height: 250px;
  }
  .contactanos .contact-info,
  .contacto .contact-info {
   order: 1;
  }
}

/* =========================
  Fin del CSS organizado
========================= */


/* Asegurarse de que el botón de cerrar sea visible y accesible */
.modal-header .close {
  color: #333; /* Asegura que la "X" sea visible */
  font-size: 30px;
  font-weight: bold;
  border: none;
  background: none;
  position: absolute;
  top: 10px;
  right: 15px;
  opacity: 1;
  z-index: 10; /* Asegura que esté por encima de otros elementos */
}

/* Cambiar color cuando el mouse pase por encima */
.modal-header .close:hover {
  color: #f00; /* Cambiar a rojo, por ejemplo */
}

.modal-content {
  position: relative;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  pointer-events: auto;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.3rem;
  outline: 0;
}
