
/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Estilo general */
body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f7fa;
}

/* Encabezado */
header {
  background: #14fc33; /* Verde profundo ecológico */
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: left;
}

header h1 {
  font-size: 1.8rem;
}

/* Menú */
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #80cbc4; /* Verde claro */
}

/* Secciones */
section {
  padding: 3rem 2rem;
  text-align: center;
}

section h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
  color: #004d40;

}
.logo span {
  display: none;
}

.logo img {
  height: 250px; /* Ajusta el tamaño si lo deseas */
  width: auto;
  display: block;
 } 


 
/* Botones */
button, .btn {
  background: #00796b;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
  display: inline-block; /* <-- Añade esta línea */
  text-decoration: none; /* <-- Asegura que no tenga subrayado */
  font-size: 1rem;
}

.centrar-boton {
  display: flex;
  justify-content: center;
  margin: 2rem 0; /* Espacio arriba y abajo del botón */
}

.hero-content p {
  margin-bottom: 1.2rem;
}

.hero-content .centrar-boton {
  margin-top: 1.2rem;
  margin-bottom: 0.6rem; /* La mitad del espacio original */
}
.servicios {
  padding-top: 0.0rem; /* Ajusta este valor según el espacio que desees */
}
button:hover, .btn:hover {
  background: #004d40;
}

/* Footer */
footer {
  background: #004d40;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
}

/* Sección Servicios */
.servicios {
  padding: 50px 20px;
  background: #f9f9f9;
  text-align: center;
}

.servicios h2 {
  font-size: 2.2em;
  margin-bottom: 30px;
  color: #333;
}

.servicios-categoria {
  margin-bottom: 50px;
}

.servicios-categoria h3 {
  font-size: 1.6em;
  margin-bottom: 20px;
  color: #00695c;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s ease-in-out;
}

.card:hover {
  transform: translateY(-5px);
}

.card h4 {
  margin-bottom: 15px;
  font-size: 1.2em;
  color: #444;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #009688;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.btn:hover {
  background: #00796b;
}

.ubicacion {
  padding: 50px 20px;
  text-align: center;
  background: #f5f7fa;
}

.ubicacion h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #333;
}

/* Header dividido en dos mitades */
.header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: #14fc33;
  color: #fff;
  padding: 0;
  min-height: 180px; /* Ajusta según el alto del logo */
}

/* Mitad izquierda: logo arriba, menú abajo */
.header-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
  padding: 1rem 2rem;
}

/* Logo */
.logo {
  margin-bottom: 1rem;
}
.logo img {
  height: 180px;
  width: auto;
  display: block;
}

/* Menú debajo del logo, en blanco */
.nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}
.nav a {
  color: #fff !important;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: color 0.3s;
}
.nav a:hover {
  color: #004d40 !important;
}

/* Mitad derecha: company-info centrado vertical y horizontal, texto negro */
.company-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #222;
  background: transparent;
  height: 100%;
  font-size: 1.2rem;
  text-align: center;
  padding: 1rem 2rem;
}
.company-info i {
  margin-right: 0.5em;
  color: #00796b;
}
/* Ajusta el alto para igualar logo y bloque de texto */
.header-left, .company-info {
  min-height: 180px; /* igual al min-height del header */
}

/* Responsive para móviles */
@media (max-width: 900px) {
  .header {
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .header-left, .company-info {
    min-height: 180px;
    padding: 1rem;
    align-items: center;
    text-align: center;
  }
  .nav ul {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
}

.map-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
}

/* Hacer que iframe ocupe bien el contenedor */
.map-container iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.ubicacion .direccion {
  font-size: 1.2em;
  font-weight: bold;
  color: #0066cc;
  margin-bottom: 20px;
  line-height: 1.6;
}

.map-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
}

.btn-instructivo {
  display: inline-block;
  margin: 15px 0 25px;
  padding: 12px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: white;
  background: #e63946; /* rojo llamativo */
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.15);
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-instructivo:hover {
  background: #b91c1c; /* rojo más oscuro */
  transform: scale(1.05);
}

.contacto {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
}

.contacto h2 {
  font-size: 2em;
  margin-bottom: 30px;
  color: #333;
}

.contacto-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.contacto-info p {
  margin: 10px 0;
  font-size: 1.1em;
  color: #444;
}

.contacto-info i {
  margin-right: 10px;
  color: #009688;
}

/* Formulario */
.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contacto-form input,
.contacto-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  width: 100%;
}

.contacto-form button {
  background: #009688;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1em;
  transition: background 0.3s;
}

.contacto-form button:hover {
  background: #00796b;
}

/* Responsive */
@media (max-width: 768px) {
  .contacto-container {
    grid-template-columns: 1fr;
  }
}

/* ==== HERO CON VIDEO DE FONDO ==== */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.35); /* mejora la lectura del texto */
  padding: 2rem;
  border-radius: 1rem;
  backdrop-filter: blur(2px);
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* Responsive: mostrar imagen de fondo si se desea en móviles */
@media (max-width: 768px) {
  .hero-video {
    display: none;
  }
  .hero {
    background: url('assets/images/header-fallback.jpg') center/cover no-repeat;
  }
}

/* ================================
   MAZECOCLEAN 2.0 - PALETA AQUA CLEAN
   ================================ */

/* Tipografía global */
body {
  font-family: 'Open Sans', sans-serif;
  color: #1E1E1E;
  background-color: #F0FDF9;
  margin: 0;
  padding: 0;
}

/* Encabezados */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', sans-serif;
  color: #00A896;
  margin-top: 0;
}

/* Enlaces y botones */
a {
  color: #02C39A;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #007F73;
}

.btn-primary {
  display: inline-block;
  background-color: #00A896;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn-primary:hover {
  background-color: #02C39A;
  transform: translateY(-2px);
}

/* Secciones */
section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero (con video) */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.35);
  padding: 2rem;
  border-radius: 1rem;
  backdrop-filter: blur(2px);
}

.hero-content h1 {
  font-size: 2.5rem;
  color: #FAFAFA;
}

.hero-content p {
  font-size: 1.2rem;
  color: #E0E0E0;
}

/* Footer */
footer {
  background-color: #00A896;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}
footer a {
  color: #FAFAFA;
}
footer a:hover {
  color: #D6FFF5;
}

/* Responsivo */
@media (max-width: 768px) {
  .hero-video {
    display: none;
  }
  .hero {
    background: url('assets/images/header-fallback.jpg') center/cover no-repeat;
  }
  .hero-content h1 {
    font-size: 1.8rem;
  }
}.horario-atencion {
  margin-top: 1.5rem;
  background-color: rgba(0, 150, 136, 0.1);
  border-left: 4px solid #009688;
  padding: 1rem;
  border-radius: 12px;
}

.horario-atencion h4 {
  color: #009688;
  margin-bottom: 0.5rem;
}

.horario-atencion p {
  margin: 0.2rem 0;
  color: #333;
}


.modal-content {
  position: relative;
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 1rem;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  animation: fadeZoomIn 0.4s ease;
}

.modal-content video,
.modal-content img {
  width: 100%;
  border-radius: 1rem;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #3cb371;
}

@keyframes fadeZoomIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
 
/* ============================
   MODAL MAZECOCLEAN (TIPS)
   Pegar al final de style.css
   ============================ */

.mc-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.72);
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.mc-modal-content {
  width: 100%;
  max-width: 720px;
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  position: relative;
  text-align: center;
  animation: mcFadeScale 0.35s ease;
}

.mc-tip-area {
  margin-bottom: 12px;
}

.mc-media {
  width: 100%;
  border-radius: 8px;
  max-height: 65vh;
  object-fit: contain;
  background: #000;
}

.mc-close {
  position: absolute;
  right: 12px;
  top: 10px;
  font-size: 1.4rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #333;
}

.mc-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}

.mc-btn {
  background: #00a896;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.mc-btn.small {
  padding: 6px 10px;
  font-size: 0.95rem;
}

.mc-link {
  background: none;
  border: none;
  color: #007a61;
  cursor: pointer;
  font-weight: 700;
  text-decoration: underline;
  padding: 0;
  margin-left: 6px;
}

.mc-end-msg {
  background: #f0fff9;
  color: #005d43;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 8px;
}

@keyframes mcFadeScale {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .mc-modal-content { padding: 12px; max-width: 92%; }
  .mc-btn.small { padding: 6px 8px; font-size: 0.88rem; }
}
/* --- Tip video emergente --- */
.tip-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  max-width: 90%;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 9999;
  padding: 10px;
}


/* --- Contenedor del video tip (centrado sobre el botón) --- */
#tipContainer {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  max-width: 90%;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 99999;
  padding: 10px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#tipContainer video {
  width: 100%;
  border-radius: 12px;
  display: block;
}

#tipContainer.show {
  display: block;
  opacity: 1;
  animation: fadeInTip 0.3s ease;
}

@keyframes fadeInTip {
  from { opacity: 0; transform: translate(-50%, -55%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

/* Si el video no carga o termina, muestra este mensaje */
.tip-message {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px;
  border-radius: 8px;
}
#tipContainer .tip-content {
  width: 100%;
  max-width: 80vw;
  max-height: 80vh;
  border-radius: 12px;
  display: block;
  object-fit: contain;
  background: #000;
}

.modal {
  display: flex;              /* 👈 clave */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65);
  justify-content: center;
  align-items: center;
  z-index: 1000;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-contenido {
  background: #ffffff;
  padding: 28px;
  border-radius: 12px;
  width: 450px;
  max-width: 90%;
  max-height: 80vh;
  overflow-y: auto;

  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  font-family: Arial, sans-serif;
}

.tabla-productos {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

/* Encabezados */
.tabla-productos th {
  background: #2ecc71;
  color: white;
  padding: 12px;
}

/* Celdas */
.tabla-productos td {
  padding: 10px 12px;
  border-bottom: 1px solid #ddd;
}

/* PRODUCTO */
.tabla-productos th:first-child,
.tabla-productos td:first-child {
  text-align: left;
  width: 70%;
}

/* PRECIO */
.tabla-productos th:last-child {
  text-align: center;
}

.tabla-productos td:last-child {
  text-align: center;
  width: 30%;
  white-space: nowrap;
}

/* hover */
.tabla-productos tr:hover {
  background: #f3f3f3;
  cursor: pointer;
}

.tabla-productos tr.active {
  background: #dff7e5;
}

.tabla-productos tr:hover {
  background: #eefaf3;
  transform: scale(1.01);
  transition: all 0.15s ease;
}

.modal.show {
  opacity: 1;
  pointer-events: all;
}

#descripcion {
  text-align: justify;
  line-height: 1.7;
  margin-top: 10px;
}

.modal-contenido h2 {
  font-weight: bold;
  letter-spacing: 0.5px;
}

.modal-contenido {
  transform: scale(0.95);
  transition: transform 0.2s ease;
}




