body {
    font-family: 'Segoe UI', sans-serif;
    /* Fondo principal: Gris azulado muy suave y neutro */
    background-color: #ECEFF1; 
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.containerSD {
    max-width: 900px;
    margin: auto;
    background-color: #FFFFFF; /* Contenido: Blanco puro */
    padding: 30px;
    border-radius: 12px;
    margin-top: 15px;
    /* Sombra sutil para destacarlo */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); 
    border: 1px solid #CFD8DC; /* Borde muy claro */
}

h1 {
    font-size: 28px;
    margin-bottom: 20px;
    /* Título principal: Azul oscuro YZA */
    color: #020E45; 
    text-align: center;
}

.filtersSD {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

input[type="text"], select {
    padding: 12px;
    font-size: 14px;
    border: 1px solid #6690e4; 
    border-radius: 8px;
    flex: 1;
    min-width: 200px;
    color: #000000;
    background-color: #ffffff;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

input[type="text"]:focus,
select:focus {
    outline: none;
    /* Borde y sombra en tono Azul medio de Contraste */
    border-color: #5C6BC0; 
    box-shadow: 0 0 0 3px rgba(92, 107, 192, 0.3); 
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#resultCount {
    font-size: 14px;
    color: #555555;
    margin-bottom: 15px;
}




table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

thead {
  background-color: #74afea;
}

th, td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #dee2e6;
}

td a {
  color: #007bff;
  text-decoration: none;
}

td a:hover {
  text-decoration: underline;
}

.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
}
.copy-btn img:hover {
  filter: brightness(0.8);
}


.fade-in {
  animation: fadeIn 0.4s ease-in-out;
}

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

@media (max-width: 600px) {
  th, td {
    font-size: 14px;
    padding: 8px;
  }

  h1 {
    font-size: 20px;
  }
}
.pagination {
  margin-top: 20px;
  text-align: center;
}

.pagination button {
  background-color: #007bff;
  color: white;
  border: none;
  margin: 0 4px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.pagination button.active {
  background-color: #0056b3;
  font-weight: bold;
}

.pagination button:hover {
  background-color: #0056b3;
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #323232;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 1000;
}
.toast.show {
  opacity: 1;
}

#noResults {
  opacity: 0;
  transition: opacity 0.5s ease;
}

#noResults.visible {
  opacity: 1;
}

#loader p {
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

tr {
  animation: fadeIn 0.4s ease;
}

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

/* ESTILOS PARA EL BOTÓN DE WHATSAPP 
.whatsapp-button {
  display: inline-block;
  background-color: #25D366; 
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 20px; 
  transition: background-color 0.3s ease;
}

.whatsapp-button:hover {
  background-color: #1DA851; 
}
*/

/*Estilos generales del boton whatsapp*/
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  animation: breathe 2s ease-in-out infinite;
}

/*Estilos solo al icono whatsapp*/
.whatsapp-btn i {
  color: #fff;
  font-size: 24px;
  animation: beat 2s ease-in-out infinite;
  text-decoration: none;
}

/*Estilos con animation contorno respirando*/
@keyframes breathe {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

/*Estilos de animacion del icono latiendo*/
@keyframes beat {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* ========================================================================= */
/* RECURSOS DEL BANNER */
/* ========================================================================= */


.hero-link {
  display: block;  overflow: hidden;
  max-width: 100vw;
}

.hero-link {
  display: inline-block;
  overflow: hidden;
  text-decoration: none;
}
@media (max-width: 767.98px) {
  .hero-link {
    width: 100%;
    max-width: 100%;
  }
}

/* ========================================================================= */
/* BANNER () */
/* ========================================================================= */

.hero-link {
    display: block; 
    overflow: hidden;
    text-decoration: none;
    /* max-width: 100vw; no es necesario si el body tiene padding: 0 */
    max-width: 100%; 
}

.hero-banner {
    /* Usamos 100% porque el contenedor (hero-link) y el body cubren el ancho completo */
    width: 100%;
    max-width: 100%;
    
    /* Esta es la clave de la altura: 25% de 100% de ancho */
    padding-top: 25%; 
    
    background-image: url('https://image.farmaciasyza.mx/lib/fe2f117171640675761075/m/1/88fc56a5-e452-4887-8b2c-2d9efb5b7f87.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-radius: 0px;
}

/* Efecto hover solo en dispositivos con puntero (Mantener) */
@media (hover: hover) {
    .hero-link:hover .hero-banner {
        transform: scale(1.03);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }
}

/* Versión mobile (Mantener) */
@media (max-width: 767.98px) {
    .hero-banner {
        /* La altura vertical de mobile (115%) es mucho mayor que en desktop (25%) */
        background-image: url('https://image.farmaciasyza.mx/lib/fe2f117171640675761075/m/1/58936c24-b063-4aef-83f4-e8745b096b69.png');
        padding-top: 45%; 
        border-radius: 0px; 
        width: 100%;
        background-size: cover; 
        background-repeat: no-repeat;
        background-position: center;
    }
}

