/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Tipografía base */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background-color: #fff;
  line-height: 1.6;
}

/* Enlaces */
a {
  color: #d12c2c;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Encabezado (Header) */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #003366;
  padding: 10px 20px;
  position: relative;
}
header .img.logo {
  height: 50px; /* o el tamaño que prefieras */
  margin-left: 20px; /* separación desde el borde izquierdo */
  display: block;
}

header .menu ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
header .menu ul li a {
  color: #fff;
  font-weight: 500;
  padding: 8px 4px;
}
header .menu ul li a:hover {
  border-bottom: 2px solid #fff;
}
header .menu ul li a.active {
  border-bottom: 2px solid #ffcc00;
}

/* Botón menú hamburguesa (toggle) - visible en móvil */
.menu-toggle {
  display: none;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
}

/* Ajustes para móvil: mostrar toggle, ocultar menú */
@media (max-width: 768px) {
  .menu {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  header {
    justify-content: space-between;
  }
}

/* Menú desplegable móvil activo */
.menu.mobile-active {
  display: block;
  position: absolute;
  top: 60px;
  right: 0;
  background-color: #003366;
  width: 100%;
}
.menu.mobile-active ul {
  flex-direction: column;
  align-items: flex-start;
}
.menu.mobile-active ul li {
  width: 100%;
}
.menu.mobile-active ul li a {
  display: block;
  width: 100%;
  padding: 12px 20px;
  border-bottom: 1px solid #004c99;
}

/* Header fijo */
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #003366;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 0;

  height: 100px; /* AÑADE ESTA LÍNEA */
  display: flex;           /* CENTRADO VERTICAL */
  align-items: center;     /* CENTRADO VERTICAL */
}

/* Separar contenido del header fijo */
body {
  padding-top: 100px;
}

/* Hero */

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(2px);
}
.hero .hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.hero {
  background-image: url("img/fondo-fumigador.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  padding: 120px 20px;
  color: white;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.6); /* oscurece */
  backdrop-filter: blur(2px); /* desenfoque */
  z-index: -1;
}

.btn.btn-cta {
  background-color: #d12c2c;
  color: #fff;
  padding: 12px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.btn.btn-cta:hover {
  background-color: #a50000;
}

/* Sección Introducción */
.intro {
  padding: 40px 20px;
  background-color: #f9f9f9;
  text-align: center;
}
.intro h2 {
  font-size: 1.8rem;
  color: #003366;
  margin-bottom: 20px;
}
.intro p {
  max-width: 800px;
  margin: 0 auto 15px auto;
  font-size: 1rem;
}

/* Sección Plagas Destacadas */
.plagas-destacadas {
  padding: 40px 20px;
  background-color: #fff;
}
.plagas-destacadas h2 {
  text-align: center;
  font-size: 1.8rem;
  color: #003366;
  margin-bottom: 30px;
}
.grid-plagas{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:20px;
  align-items:stretch;              /* todas la misma altura visual */
}

.plaga-card{
  position:relative;
  width:220px;                      /* antes 180px */
  height:240px;                     /* antes 180px → deja sitio al texto */
  background:#f1f1f1;
  border-radius:8px;
  overflow:hidden;
  text-align:center;
  transition:transform .3s;
  isolation:isolate;                /* evita filtrados raros al hover */
}

.plaga-front,
.plaga-back{
  position:absolute;
  inset:0;                          /* ocupa todo el recuadro */
  box-sizing:border-box;
}

.plaga-front{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.plaga-front img{
  width:60px; height:60px; margin-bottom:10px;
}

.plaga-front h3{ font-size:1.1rem; color:#333; }

/* Cara trasera (hover) con layout estable */
.plaga-back{
  background-color:#003366;
  color:#fff;
  padding:14px;
  display:grid;
  grid-template-rows:auto 1fr auto; /* título / texto (se estira) / botón */
  gap:8px;
  text-align:center;
  opacity:0;
  transition:opacity .3s;
}

.plaga-card:hover .plaga-back{ opacity:1; }

.plaga-back h4{
  font-size:1.05rem;
  margin:0;
}

.plaga-back p{
  font-size:.92rem;
  line-height:1.35;
  margin:0;
  overflow-wrap:anywhere;           /* por si aparece alguna palabra larga */
}

.plaga-back .btn,
.plaga-back .btn.btn-secondary{
  margin-top:auto;                  /* botón siempre pegado abajo */
}
.btn.btn-secondary {
  background-color: #d12c2c;
  color: #fff;
  padding: 8px 12px;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 4px;
}
.btn.btn-secondary:hover {
  background-color: #a50000;
}

/* Sección Llamada a la Acción (CTA) */
.cta-banner {
  padding: 40px 20px;
  background: linear-gradient(90deg, #003366, #005580);
  color: #fff;
  text-align: center;
}
.cta-banner h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}
.cta-banner p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}
.cta-banner .btn-cta {
  background-color: #ffcc00;
  color: #003366;
}
.cta-banner .btn-cta:hover {
  background-color: #e6b800;
}

/* Sección Blog Preview */
.blog-preview {
  padding: 40px 20px;
  background-color: #f9f9f9;
}
.blog-preview h2 {
  text-align: center;
  font-size: 1.8rem;
  color: #003366;
  margin-bottom: 30px;
}
.blog-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.post-resumen {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 4px;
  width: 300px;
}
.post-resumen h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.post-resumen p {
  font-size: 0.95rem;
  margin-bottom: 5px;
}
.post-date {
  font-size: 0.8rem;
  color: #666;
}

/* Footer */
footer {
  background-color: #003366;
  color: #ccc;
  text-align: center;
  padding: 20px 10px;
}
footer a {
  color: #fff;
  font-size: 0.9rem;
}
footer a:hover {
  text-decoration: underline;
}
footer p {
  margin: 5px 0;
}

/* Botones flotantes individuales (WhatsApp, Tel, Form) */
.btn-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 1001;
  transition: transform 0.2s;
}
.btn-float img {
  width: 28px;
  height: 28px;
}
.btn-float:hover {
  transform: scale(1.1);
}
.btn-float.call {
  bottom: 80px;
  background-color: #007bff;
}
.btn-float.form {
  bottom: 140px;
  background-color: #d12c2c;
}

/* Botones flotantes agrupados (Empleo, Presupuesto, Chat) */
.floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column-reverse;
  gap: 15px;
  z-index: 10001;
}
.floating-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.floating-button img {
  width: 30px;
  height: 30px;
}
.floating-button.red {
  background-color: #d32f2f;
}
.floating-button.blue {
  background-color: #1976d2;
}
.floating-button.green {
  background-color: #4caf50;
}

/* Cuadro de chat */
#chat-box {
  position: fixed;
  bottom: 100px;
  right: 85px;
  width: 280px;
  background-color: #fff; /* esto ya lo tienes */
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 10001;
  font-family: sans-serif;
  border: 1px solid #ccc; /* AÑADE ESTO PARA QUE SE DISTINGA DEL FONDO */
}

.hidden {
  display: none;
}
.chat-header {
  background-color: #003366;
  color: #fff;
  padding: 10px;
  font-weight: bold;
  border-radius: 10px 10px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-body {
  padding: 10px;
}
.chat-body ul {
  padding-left: 15px;
  margin: 0;
}
.chat-body li {
  margin-bottom: 8px;
  background: #f2f2f2;
  padding: 8px;
  border-radius: 5px;
}
#close-chat {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

/* Responsividad adicional */
@media (max-width: 992px) {
  .grid-plagas {
    gap: 15px;
  }
  .plaga-card {
    width: 45%;
  }
}
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .intro p {
    font-size: 0.95rem;
  }
  .grid-plagas {
    flex-direction: column;
    align-items: center;
  }
  .plaga-card {
    width: 80%;
    margin-bottom: 15px;
  }
  .blog-grid {
    flex-direction: column;
    align-items: center;
  }
  .post-resumen {
    width: 90%;
  }
  /* Opcional: reducir tamaño de botones flotantes en móvil */
  .btn-float, .floating-button {
    width: 45px;
    height: 45px;
  }
  .floating-button img {
    width: 24px;
    height: 24px;
  }
}
/* Botón para abrir el asistente virtual */
#botonAbrirAsistente {
  position: fixed;
  bottom: 100px; /* ajustado para estar encima */
  right: 85px;   /* igual que el chat-box */
  width: 50px;
  height: 50px;
  background-color: #003366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 1100; /* MÁS ALTO QUE LOS DEMÁS */
}

#botonAbrirAsistente img {
  width: 28px;
  height: 28px;
}

/* Estilo adicional si quieres que no esté oculto al inicio */
#botonAbrirAsistente.hidden {
  display: none;
}
#btnChat {
  position: fixed;
  bottom: 200px; /* MÁS ARRIBA para no solaparse */
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #003366; /* azul oscuro */
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1003; /* por encima de todo */
  cursor: pointer;
}
#btnChat img {
  width: 28px;
  height: 28px;
}

#btnChat img {
  width: 28px;
  height: 28px;
}
#asistenteVirtual {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  width: 280px;
  font-family: 'Segoe UI', sans-serif;
  z-index: 1001;
  overflow: hidden;
}

.asistente-header {
  background-color: #003366;
  color: #fff;
  padding: 10px 12px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  font-size: 0.95rem;
}

.btn-cerrar {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  margin-left: auto;
}
.chat-btn {
  display: block;
  width: 100%;
  padding: 8px;
  margin: 8px 0;
  background-color: #f2f2f2;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
  font-size: 0.95rem;
}
.chat-btn:hover {
  background-color: #e0e0e0;
}
.respuesta-bot {
  background-color: #eaf4ff;
  border-left: 3px solid #003366;
  padding: 6px 10px;
  margin: 10px 0;
  border-radius: 5px;
  font-size: 0.9rem;
}
.asistente-body {
  padding: 12px 16px;
}
.chat-container {
  position: fixed;
  bottom: 20px;
  right: 90px;
  width: 320px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  flex-direction: column;
  z-index: 9999;
  overflow: hidden;
}

.chat-header {
  background: #003366;
  color: #fff;
  padding: 10px 15px;
  font-weight: bold;
  font-size: 0.95rem;
}

.chat-body {
  padding: 10px;
  height: 260px;
  overflow-y: auto;
  font-size: 0.9rem;
}

.chat-input-area {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-top: 1px solid #ccc;
}

.chat-input-area input[type="text"] {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.chat-input-area input[type="file"] {
  font-size: 0.85rem;
}

.chat-input-area button {
  background-color: #d12c2c;
  color: white;
  border: none;
  padding: 8px;
  border-radius: 5px;
  cursor: pointer;
}

.chat-message {
  margin-bottom: 10px;
}
.chat-message.user { text-align: right; color: #333; }
.chat-message.bot { text-align: left; color: #003366; font-weight: 500; }
.seccion-servicios {
  padding: 40px;
  background-color: #f8f8f8;
  text-align: center;
}

.seccion-servicios h1 {
  font-size: 2em;
  margin-bottom: 10px;
  color: #002f5f;
}
/* Sección de cuadrícula de servicios */.cuadricula-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
}

.servicio-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.servicio-box:hover {
  transform: translateY(-5px);
  border-color: #d6001c;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.servicio-box img {
  max-width: 80px;
  margin-bottom: 15px;
}

.servicio-box h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #111;
}

.servicio-box p {
  font-size: 0.95rem;
  color: #333;
}
.banner-servicios {
  background: linear-gradient(to right, #003366, #005999);
  color: white;
  padding: 100px 20px 80px;
  text-align: center;
  margin-top: 60px;
}

.contenido-banner h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

.contenido-banner p {
  font-size: 1.2rem;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.6;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}
.encabezado-servicios {
  background-color: #05457A; /* o el azul que uses */
  padding: 40px 20px;        /* ajusta el espacio interior si quieres */
  margin: 0;                 /* elimina márgenes exteriores */
  border: none;
}

.encabezado-servicios * {
  margin: 0;
  padding: 0;
}
.contenido-blog {
  max-width: 960px;
  margin: 60px auto;
  padding: 0 20px;
  font-family: 'Segoe UI', sans-serif;
}

.contenido-blog h1 {
  font-size: 2em;
  margin-bottom: 10px;
  color: #002b55;
  text-align: center;
}

.intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #444;
}

.entrada-blog {
  border-bottom: 1px solid #ccc;
  padding: 20px 0;
}

.entrada-blog h2 {
  color: #c70039;
  font-size: 1.5em;
}

.fecha {
  color: #666;
  font-size: 0.9em;
}

.resumen {
  margin: 10px 0;
}

.leer-mas {
  color: #002b55;
  text-decoration: none;
  font-weight: bold;
}

.leer-mas:hover {
  text-decoration: underline;
}
.entrada-blog {
  background: #f4f6f9;
  padding: 40px 0;
  font-family: 'Segoe UI', sans-serif;
}

.container-blog {
  max-width: 900px;
  margin: auto;
  background: white;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.container-blog h1 {
  color: #C70039;
  font-size: 32px;
  margin-bottom: 8px;
}

.container-blog .fecha-blog {
  font-size: 14px;
  color: #888;
  margin-bottom: 20px;
  font-style: italic;
}

.container-blog h2 {
  color: #002D62;
  margin-top: 30px;
  font-size: 22px;
}

.container-blog p {
  font-size: 16px;
  margin-bottom: 16px;
  color: #333;
}

.container-blog ul {
  margin-left: 25px;
  padding-left: 15px;
  margin-bottom: 20px;
}

.container-blog li {
  margin-bottom: 8px;
}

.container-blog img {
  width: 100%;
  max-width: 650px;
  border-radius: 10px;
  margin: 30px auto;
  display: block;
  box-shadow: 0 0 8px rgba(0,0,0,0.15);
}

.btn-volver-blog {
  display: inline-block;
  margin-top: 30px;
  text-decoration: none;
  color: white;
  background-color: #C70039;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-volver-blog:hover {
  background-color: #a6002f;
}
.contacto {
  max-width: 600px;
  margin: 60px auto;
  padding: 40px 30px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  font-family: 'Segoe UI', sans-serif;
}

.contacto h1 {
  text-align: center;
  color: #002d5c;
  font-size: 2rem;
  margin-bottom: 10px;
}

.contacto p {
  text-align: center;
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 30px;
}

.formulario-contacto form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.formulario-contacto label {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.formulario-contacto input,
.formulario-contacto textarea {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #ccd6dd;
  font-size: 1rem;
  background-color: #f9f9f9;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.formulario-contacto input:focus,
.formulario-contacto textarea:focus {
  border-color: #002d5c;
  background-color: #fff;
  outline: none;
}

.formulario-contacto button {
  background-color: #d70040;
  color: white;
  padding: 14px;
  border: none;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.formulario-contacto button:hover {
  background-color: #a0002e;
  transform: scale(1.02);
}
body.contacto-bg {
  background-image: url('../img/fondo-contacto.png'); /* Usa tu ruta real aquí */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.contacto {
  margin-top: 100px;
}
body.fondo-contacto {
  background: linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)),
              url("../img/fondo-contacto.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.nosotros {
  max-width: 900px;
  margin: 80px auto;
  padding: 20px;
  font-family: Arial, sans-serif;
  line-height: 1.7;
}

.nosotros h1, .nosotros h2 {
  color: #002d62;
  text-align: center;
  margin-bottom: 16px;
}

.nosotros p, .nosotros ul {
  margin-bottom: 24px;
  font-size: 1rem;
  color: #333;
}

.nosotros ul {
  list-style: none;
  padding: 0;
}

.nosotros ul li::before {
  content: "✔ ";
  color: #d70040;
  font-weight: bold;
}
.sucursales {
  max-width: 900px;
  margin: 80px auto;
  padding: 20px;
  font-family: Arial, sans-serif;
  line-height: 1.7;
}

.sucursales h1, .sucursales h2 {
  text-align: center;
  color: #002d62;
  margin-bottom: 20px;
}

.sucursales p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 10px;
  text-align: center;
}

.mapa {
  display: block;
  margin: 0 auto 40px auto;
  width: 100%;
  max-width: 700px;
  height: 300px;
  border: 1px solid #ccc;
  border-radius: 10px;
}
.plagas {
  max-width: 1100px;
  margin: 100px auto;
  padding: 20px;
  font-family: Arial, sans-serif;
}

.plagas h1 {
  text-align: center;
  color: #002d62;
  margin-bottom: 10px;
}

.plagas p {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 30px;
}

.plaga {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.plaga img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.plaga h2 {
  margin-top: 0;
  color: #d70040;
}

.btn-centro {
  text-align: center;
  margin-top: 40px;
}

.btn-solicite {
  background-color: #d70040;
  color: white;
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-solicite:hover {
  background-color: #a0002e;
}
.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* o 'center' si lo quieres completamente centrado */
  padding-left: 30px; /* separación del borde izquierdo */
  height: 100%;
}

.logo img {
  height: 450px !important;/* AUMENTA EL TAMAÑO AQUÍ */
  width: auto !important;
}
  
/* === Sección de Testimonios === */
#testimonios {
  background-color: #f8f8f8;
  padding: 50px 20px;
  text-align: center;
  color: #002d5c;
}

#testimonios h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #002d5c;
}

.testimonio {
  background-color: white;
  border-left: 5px solid #d70040;
  margin: 20px auto;
  padding: 20px;
  max-width: 700px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.testimonio p {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.5;
}

/* === Sección de Certificaciones === */
.certificaciones {
  padding: 40px 0;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  border-top: 1px solid #ddd;
  padding-top: 40px;
}


.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #002d62;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-size: 14px;
  z-index: 9999;
  max-width: 90%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-banner a {
  color: #ffd700;
  font-weight: bold;
  text-decoration: underline;
}

.cookie-banner button {
  background-color: #ffd700;
  color: #002d62;
  border: none;
  padding: 8px 16px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}
.carousel img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

.card-servicio {
  max-width: 300px;
  overflow: hidden;
  box-sizing: border-box;
}

.cookie-banner button:hover {
  background-color: #ffcc00;
}

.servicios-carousel {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 40px 20px;
  background-color: #f9f9f9;
  flex-wrap: wrap;
  text-align: center;
}

.servicio img {
  width: 100px;
  height: auto;
  object-fit: contain;
  margin-bottom: 10px;
}

.servicio h3 {
  font-size: 16px;
  color: #cc0000;
  font-weight: bold;
}
.swiper {
  width: 90%;
  padding: 30px 0;
}
.swiper-slide {
  background: #fff;
  border-radius: 16px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  min-height: 420px; /* altura mínima uniforme */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


.swiper-slide img {
  width: 100%;
  height: 220px;         /* altura fija para evitar desajustes */
  object-fit: cover;     /* recorta sin deformar */
  border-radius: 12px;
  margin-bottom: 10px;
}

.swiper-button-next,
.swiper-button-prev {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #004080;
  color: white !important;
  font-size: 22px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 24px;
  color: white;
  font-weight: bold;
}

.swiper-button-next::after {
  content: "›";
}

.swiper-button-prev::after {
  content: "‹";
}

.swiper-button-next {
  right: -16px;
}

.swiper-button-prev {
  left: -16px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: #0066cc;
  transform: translateY(-50%) scale(1.1);
.swiper-slide h3 {
  margin: 10px 0 5px;
  font-size: 18px;
  color: #003366;
  font-weight: bold;
}

.swiper-slide p {
  font-size: 14px;
  color: #444;
  margin-bottom: 10px;
}

.swiper-slide a {
  color: #cc0000;
  font-weight: bold;
  text-decoration: none;
}

.swiper-slide a:hover {
  text-decoration: underline;
}
}
/* --- BOTÓN VISITAR BLOG --- */
.boton-blog {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 40px;
}

.boton-blog button {
  background-color: #cc0000;
  color: white;
  border: none;
  padding: 10px 25px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.boton-blog button:hover {
  background-color: #990000;
}

/* ======== MENÚ RESPONSIVE ======== */

/* Estilo general del nav */
nav.menu {
  display: none;
  flex-direction: column;
  background-color: #003366; /* color de fondo igual que cabecera */
  position: absolute;
  top: 100%;
  right: 0;
  width: 220px;
  z-index: 9999;
  padding: 10px 0;
  border-radius: 0 0 0 10px;
}

/* Cuando se activa el menú móvil */
nav.menu.mobile-active {
  display: flex;
}

/* Ocultar el botón hamburguesa en escritorio */
@media (min-width: 768px) {
  nav.menu {
    display: flex !important;
    flex-direction: row;
    position: static;
    background-color: transparent;
    width: auto;
    padding: 0;
  }

  .menu-toggle {
    display: none;
  }
}
@media (min-width: 768px) {
  nav.menu {
    display: block !important;
    position: static !important;
    background-color: transparent !important;
  }

  nav.menu ul {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end;
    gap: 20px;
  }

  nav.menu li {
    margin: 0;
  }

  .menu-toggle {
    display: none;
  }
}
/* ESTILO PARA ESCRITORIO */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  nav.menu {
    display: block !important;
    position: static !important;
    background-color: transparent !important;
    width: auto;
    padding: 0;
  }

  nav.menu ul {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
  }

  nav.menu li {
    margin: 0;
    padding: 0;
  }

  nav.menu li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
  }
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
@media screen and (min-width: 1024px) {
  .contenedor-certificaciones {
    gap: 30px;
    justify-content: space-around;
  }
}
@media (max-width: 768px) {
  .formulario-contacto {
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .certificaciones,
  .contenedor-certificaciones {
    flex-direction: column;
    align-items: center;
  }

  .contenedor-certificaciones img {
    max-width: 90%;
    height: auto;
  }
}
/* Para pantallas grandes (escritorio) */
@media (min-width: 769px) {
  .contenedor-certificaciones img {
    max-width: 200px; /* Ajusta el tamaño */
    height: auto;
  }

  .contenedor-certificaciones {
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 40px;
  }
}
/* ===== Encabezado editorial ===== */
.post-eyebrow{
  display:flex; justify-content:space-between; align-items:center;
  gap:16px; padding:12px 16px;
  background: linear-gradient(90deg,#0a3a6b 0%, #0b4a93 60%, #0b559f 100%);
  color:#fff; border-radius:10px;
  box-shadow:0 6px 18px rgba(0,0,0,.07);
  margin:4px 0 18px 0;
}
.post-eyebrow__brand{
  display:flex; align-items:center; gap:10px;
  font-weight:700; letter-spacing:.3px; font-size:.95rem;
  text-transform:uppercase;
}
.post-eyebrow__brand svg{ width:18px; height:18px; fill:#ffd34d; }

.post-eyebrow__meta{
  display:flex; align-items:center; flex-wrap:wrap; gap:10px;
  font-size:.9rem; opacity:.95;
}
.post-eyebrow__meta .dot{
  width:5px; height:5px; border-radius:50%; background:#ffffff66; display:inline-block;
}

/* Opcional: compactar el título bajo el eyebrow */
.container-blog > h1{
  margin-top:6px;
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  line-height:1.25;
  color:#c70039;
}

/* Botones consistentes (misma altura en todos) */
.btn{
  --btn-h: 44px;
  display:inline-flex; align-items:center; justify-content:center;
  min-height: var(--btn-h); padding: 0 18px;
  border-radius: 8px; font-size: 15px; font-weight: 600;
  text-decoration:none; cursor:pointer; border:1.5px solid transparent;
  transition: transform .05s, box-shadow .2s, background .2s, color .2s;
}
.btn:active{ transform: translateY(1px); }
.btn.btn--danger{ background:#d12c2c; color:#fff; border-color:#c42525; }
.btn.btn--danger:hover{ background:#b82222; }
.btn.btn--outline{ background:#fff; color:#0b4a93; border-color:#0b4a93; }
.btn.btn--outline:hover{ background:#0b4a93; color:#fff; }

@media (max-width: 700px){
  .banner-urgente__wrap{ grid-template-columns: 1fr; }
  .banner-urgente__ctas{ justify-content: flex-start; }
}

/* Variantes */
.btn--danger{
  background:#d12c2c; color:#fff; border:1px solid #c42525;
  box-shadow:0 6px 14px rgba(209,44,44,.15);
}
.btn--danger:hover{ background:#b82222; }

.btn--outline{
  background:#fff; color:#0b4a93; border:1.5px solid #0b4a93;
}
.btn--outline:hover{ background:#0b4a93; color:#fff; }

/* Responsive fino */
@media (max-width:700px){
  .post-eyebrow{ flex-direction:column; align-items:flex-start; gap:8px; }
  .cta-bar{ gap:10px; }
}
/* Contenedor post (asegura buen ancho en PC) */
.container-blog{
  max-width: 960px;
  margin: 28px auto;
  padding: 0 20px;
}
.container-blog img{
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* Eyebrow en desktop: más limpio y alineado */
@media (min-width: 900px){
  .post-eyebrow{
    padding: 14px 18px;
  }
  .post-eyebrow__brand{ font-size: 1rem; }
  .post-eyebrow__meta{ margin-left: auto; }
}
/* ===============================
   PÁGINAS DE PLAGAS (ENCAPSULADO)
   .plagas = wrapper en <section>
   =============================== */

/* Tarjeta de contenido */
.plagas .container-blog {
  max-width: 980px;
  margin: 28px auto 40px;
  padding: 28px 32px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

/* Tipografías dentro de la tarjeta (no globales) */
.plagas h1 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.25;
  margin: 0 0 12px;
  color: #b30000;
  font-weight: 800;
}

.plagas h2 {
  font-size: clamp(20px, 2.2vw, 26px);
  margin: 28px 0 12px;
  color: #0b2d55;
  border-bottom: 2px solid #eef2f7;
  padding-bottom: 6px;
  font-weight: 750;
}

.plagas h3 {
  font-size: clamp(18px, 2vw, 20px);
  margin: 22px 0 8px;
  color: #213a5b;
  font-weight: 700;
}

.plagas p {
  margin: 0 0 16px;
  color: #374151;
}

.plagas .meta-info,
.plagas .fecha-blog {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 18px;
}

/* Imágenes internas del contenido (no afecta al logo/menu) */
.plagas .container-blog img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 16px 0;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.plagas figure { margin: 0; }
.plagas figcaption {
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  margin-top: 6px;
}

/* Listas */
.plagas ul {
  margin: 14px 0 18px;
  padding-left: 22px;
}
.plagas ul li {
  margin: 8px 0;
  line-height: 1.6;
}

/* Grid de dos columnas para imágenes/textos */
.plagas .grid-2 {
  display: grid;
  gap: 18px;
}
@media (min-width: 768px) {
  .plagas .grid-2 { grid-template-columns: 1fr 1fr; }
}

/* Barra de CTAs bajo el contenido */
.plagas .cta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

/* Botón “Volver a Identificación” */
.plagas .btn-volver-plagas {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b30000;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 0;
}
.plagas .btn-volver-plagas:hover { text-decoration: underline; }

/* Botones consistentes con el resto del sitio */
.plagas .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, filter .15s ease, background .2s ease;
}

.plagas .btn:hover { transform: translateY(-1px); filter: brightness(.98); }

.plagas .btn--danger {
  background: #c81d25;   /* rojo marca */
  color: #fff;
}
.plagas .btn--danger:hover { background: #a3171d; }

.plagas .btn--outline {
  color: #0b2d55;        /* azul cabecera */
  background: transparent;
  border-color: #0b2d55;
}
.plagas .btn--outline:hover {
  background: #0b2d55;
  color: #fff;
}

/* Banner inferior de servicio urgente */
.plagas .cta-banner {
  margin: 40px 0 0;
  padding: 34px 18px;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, #0a3b66, #062c4d);
  border-top: 1px solid rgba(255,255,255,.08);
}

.plagas .cta-banner h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 800;
}

.plagas .cta-banner p {
  margin: 0 0 18px;
  color: #e5e7eb;
}

.plagas .cta-banner .btn-cta {
  background: #ffd029;   /* amarillo CTA de tu web */
  color: #0b2d55;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: 12px;
  display: inline-flex;
}
.plagas .cta-banner .btn-cta:hover { filter: brightness(.95); }
/* FONDO HEADER DIFUMINADO */
 /* HERO con fondo difuminado detrás del texto */
/* === HERO con fondo difuminado compatible iOS/Android === */
.hero{
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 100px 16px;       /* deja aire para el header fijo */
  background: transparent;   /* nada aquí: la imagen va en ::before */
  color: #fff;
  overflow: hidden;
}

/* Capa con la foto (debajo) */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: url("../img/fondo-fumigador.jpg") center/cover no-repeat;
  -webkit-filter: blur(2px);   /* prefijo p/Android WebKit */
  filter: blur(2px);
  transform: scale(1.02);      /* compensa recorte del blur */
  will-change: transform, filter;
  backface-visibility: hidden; /* fuerza composición GPU */
  z-index: 0;
}

/* Capa oscura para legibilidad (encima de la foto) */
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.50);
  z-index: 1;
}

/* Contenido arriba de todo */
.hero .hero-content{
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 960px;
  padding: 0 12px;
}

.hero .hero-content h1{
  margin: 0 0 10px;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.hero .hero-content p{
  margin: 0 0 18px;
  font-size: clamp(16px, 2.3vw, 20px);
  opacity: .95;
}

.hero .btn.btn-cta{
  background:#dc2626;
  color:#fff;
  border:none;
  padding: 12px 20px;
  border-radius:10px;
  font-weight:700;
  text-decoration:none;
  display:inline-block;
}

@media (max-width: 768px){
  .hero{ min-height: 360px; padding: 90px 16px; }
}

/* Fallback: si el blur no existe, muestra la foto sin blur */
@supports not (filter: blur(2px)) {
  .hero::before{
    -webkit-filter: none;
    filter: none;
    transform: none;
  }
}

/* ==== Certificaciones (alineadas, sin saltos y con poco espacio) ==== */
.certificaciones{
  padding: 24px 0;
  background: #fff;
  border-top: 1px solid #ddd;
}

/* Contenedor flexible centrado */
.contenedor-certificaciones{
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;      /* centrado horizontal */
  gap: 22px;                    /* controla el espacio ENTRE logos */
}

/* Si usas <figure> elimina sus márgenes por defecto */
.contenedor-certificaciones figure{ margin: 0; }

/* Fuerza alto uniforme del gráfico, sin deformar */
.contenedor-certificaciones img{
  display: block;               /* quita espacios fantasma */
  height: 60px;                 /* AJUSTA el alto visual del logo */
  width: auto;
  object-fit: contain;
}

/* En móvil un pelín más compacto si quieres */
@media (max-width:600px){
  .contenedor-certificaciones{ gap: 16px; }
  .contenedor-certificaciones img{ height: 54px; }
}
/* ===== Sobre Nosotros ===== */
.container-narrow{ max-width: 980px; margin: 0 auto; padding: 0 20px; }
.center{ text-align:center; }
.text-muted{ color:#5f6b7a; }
.max-650{ max-width: 650px; margin: 0 auto; }
.mt-lg{ margin-top: 34px; }

/* Hero superior */
.about-hero{
  position: relative;
  background: linear-gradient(180deg, #0a3b66, #062c4d);
  color:#fff;
  padding: 80px 20px 70px;
  margin-top: 0; /* header fijo ya tiene padding-top en el body */
}
.about-hero__inner{
  max-width: 980px; margin: 0 auto; text-align:center;
}
.about-hero h1{
  font-size: clamp(28px, 4.2vw, 40px);
  margin: 0 0 8px;
  font-weight: 800;
}
.about-hero p{
  font-size: clamp(15px, 2.2vw, 18px);
  opacity: .95;
}

/* Tarjetas/contendores */
.card{
  background:#fff; border:1px solid #e6ebf0; border-radius:14px;
  padding: 20px 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

/* Grid 2 columnas */
.about-grid2{
  display:grid; gap:18px; margin-top: 18px;
}
@media (min-width: 820px){
  .about-grid2{ grid-template-columns: 1fr 1fr; }
}

/* Lista con ticks */
.tick-list{ margin: 6px 0 0 0; padding-left: 0; list-style: none; }
.tick-list li{
  padding-left: 28px; position: relative; margin: 8px 0; line-height: 1.5;
}
.tick-list li::before{
  content:"✔"; color:#d12c2c; position:absolute; left:0; top:0; font-weight:700;
}

/* Valores */
.values-grid{
  display:grid; gap:16px; margin-top:14px;
}
@media (min-width: 680px){
  .values-grid{ grid-template-columns: repeat(4, 1fr); }
}
.value{
  background:#0b2d55; color:#fff; border-radius:14px; padding:18px 14px; text-align:center;
}
.value__icon{ font-size:28px; margin-bottom:6px; }
.value h3{ font-size:18px; margin: 4px 0 6px; }
.value p{ font-size:14px; opacity:.95; }

/* Timeline */
.timeline{
  max-width: 760px; margin: 10px auto 0; padding-left: 0; list-style: none;
  border-left: 3px solid #e6ebf0;
}
.timeline li{
  position: relative; padding: 12px 12px 12px 16px; margin-left: 12px; color:#374151;
}
.timeline li::before{
  content: ""; position: absolute; left: -9px; top: 16px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #d12c2c; box-shadow: 0 0 0 4px #fff;
}
.timeline__year{
  display:inline-block; min-width: 64px; font-weight: 800; color:#0b2d55; margin-right:8px;
}

/* Logos certificaciones (alineados y compactos) */
.logos-wrap{
  display:flex; gap:22px; justify-content:center; align-items:center;
  flex-wrap:wrap; margin-top: 14px;
}
.logos-wrap img{
  display:block; height:60px; width:auto; object-fit:contain;
}

/* CTA final */
.cta{
  margin: 26px 0 40px; display:flex; gap:14px; align-items:center; justify-content:space-between;
}
.cta h3{ margin:0 0 4px; color:#0b2d55; }
.cta p{ margin:0; color:#374151; }
.cta .btn{ white-space:nowrap; }
@media (max-width:700px){
  .cta{ flex-direction:column; text-align:center; }
}
