
:root {
 
    --primary-color: #0A6B80;   
    --primary-dark: #23617F;    
    --accent-color: #3BB4A7;    
    --cta-color: #0D868E;       
    --highlight-color: #81F6C6; 
    --secondary-color: #eeeeee; 
    --text-color: #0A6B80;
    --border-color: #BDEFE6;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    color: var(--text-color);
    background-color: #fff;
}

a { color: var(--accent-color); }
a:hover { color: #000000; }
hr {
  border: none;
  height: 2px; 
  background-image: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0)); 
  margin: 2em 0;
}

main {
    padding: 20px;
    padding-top: 44px; 
}

section {
    max-width: 1200px;
    margin: 40px auto;
}

h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.turno-gif { text-align: center; margin: 10px 0 6px; }
.turno-gif a { text-decoration: none; }
.turno-gif img { width: 100px; height: 100px; display: inline-block; object-fit: contain; }

.turnos-banner {
    max-width: 1000px; 
    margin: 10px auto 20px; 
    padding: 0 12px; 
}
.turnos-banner img {
    display: block;
    width: 100%;      
    max-width: 100%; 
    height: auto;    
}

.static-content-banners {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 12px;
    text-align: center;
}
.static-content-banners img {
    display: inline-block;
    max-width: 100%;
    height: auto;
}


.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 0 1rem;
    min-height: 64px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.brand-title {
    font-size: 1.5rem;
    margin: .5rem;
}

.navbar-links ul {
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar-links li {
    list-style: none;
}

.navbar-links li a {
    display: block;
    text-decoration: none;
    color: white;
    padding: 1rem;
}

/* espaciado de iconos en el menú */
.navbar-links li a i {
    margin-right: 8px;
}

.navbar-links li:hover {
    background-color: #b1b0b0;
}


.navbar-links .turno-link {
    background-color: var(--cta-color);
}


.navbar-links .turno-link:hover {
    background-color: #ff7a79; 
}

.toggle-button {
    position: absolute;
    top: .9rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1100; /* por encima del menú desplegable */
}

.toggle-button .bar {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 10px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

/* animación hamburguesa -> X */
.toggle-button.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.toggle-button.active .bar:nth-child(2) {
    opacity: 0;
}
.toggle-button.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Responsive: menú hamburguesa superpuesto sin mover contenido */
@media (max-width: 768px) {
    .toggle-button { display: flex; }

    /* Oculta links en móvil hasta abrir */
    .navbar-links { display: none; }

    /* El ul sigue siendo columna en móvil */
    .navbar-links ul {
        flex-direction: column;
    }

    /* Menú abierto como overlay bajo la navbar fija */
    .navbar-links.active {
        display: block;
        position: fixed;
        top: 64px; /* igual a altura navbar */
        left: 0;
        right: 0;
        background: var(--primary-color);
        border-top: 1px solid var(--primary-dark);
        box-shadow: 0 8px 16px rgba(0,0,0,0.25);
        z-index: 1005;
    }

    .navbar-links.active ul li a {
        padding: 14px 18px;
        border-bottom: 1px solid var(--primary-dark);
    }
}


/* --- Hero Section --- */
.hero img {
    width: 100%;
    height: auto;
}

/* --- Sección de Turno --- */
.turno {
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: 12px;
}

.farmacia-card {
    width: 100%;
    max-width: 560px; /* un poquito más ancho */
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e7eef6;
    border-radius: 14px;
    padding: 22px 20px;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.08);
}

.button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: linear-gradient(90deg, var(--cta-color), var(--accent-color));
    color: white;
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(13, 134, 142, 0.22);
    transition: transform 0.06s ease, box-shadow 0.2s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 12px 20px rgba(3, 34, 36, 0.32); }

/* Disposición Home: Turno + Clima */
.turno-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.turno-col { width: 100%; }

@media (min-width: 960px) {
  .turno-layout { grid-template-columns: 1.15fr 1fr; align-items: start; }
  .turno-col.clima { order: 1; }
  .turno-col.hoy { order: 2; justify-self: end; }
}

/* Estética “Hoy de turno” dentro de Home */
.turno .farmacia-card h2 {
  text-align: center;
  margin: 0 0 8px;
  color: var(--primary-color);
}
.turno .farmacia-card h3 {
  text-align: center;
  margin: 6px 0 6px;
  font-size: 1.2rem;
  color: #1f2937;
}
.turno .farmacia-card p { text-align: center; margin: 2px 0; color: #4b5563; }
.turno .farmacia-card #countdown {
  display: block; /* permite centrar con margin auto */
  margin: 10px auto 12px;
      text-align: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fecaca;
}
.turno .farmacia-card .button { display: block; width: fit-content; margin-left: auto; margin-right: auto; }

.clima-card { max-width: none; margin: 0 auto; }
@media (min-width: 960px) {
  .clima-card iframe { height: 370px !important; }
}

/* Centrado de countdown también en "turnos" página */
.farmacia-hoy-card #countdown {
  display: block;
  margin: 8px auto 12px;
  align-self: center;
}

.product-grid .grid-container {

    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}


.product-grid .grid-container::-webkit-scrollbar {
    display: none;
}

.product-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


.product-grid .grid-container .product-card {
    flex: 0 0 280px; 
    scroll-snap-align: start;
}

.product-card img {
    max-width: 100%;
    height: 150px;
    object-fit: contain;
}

.savings-badge {
    display: inline-block;
    background-color: #ff4d4f;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95em;
    padding: 6px 14px;
    border-radius: 999px;
    margin: 0 auto 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}
.ver-mas {
  display: block; /* Para que ocupe todo el ancho disponible y margin: auto funcione */
  width: fit-content; /* El ancho se ajusta al contenido del texto */
  margin: 20px auto 0 auto; /* Centra el botón horizontalmente y le da margen superior */
  padding: 10px 15px; /* Espaciado interno */
  background-color: var(--accent-color);
  color: #ffffff;
  text-align: center;
  text-decoration: none; 
  font-weight: bold;
  border-radius: 5px; /* Bordes ligeramente redondeados */
  transition: background-color 0.3s ease; /* Transición suave para el hover */
}

.ver-mas:hover { background-color: var(--cta-color); }\n\n
.features {
    background-color: var(--secondary-color);
    padding: 30px 20px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.features-inner-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.features-inner-container h2 {
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: #fff;
    padding: 30px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(64,206,227,0.18);
}

.feature-icon {
    margin-bottom: 20px;
    background-color: var(--secondary-color); 
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
}


.static-content-banners a {
    display: block;
}

.static-content-banners img {
    width: 100%;
        margin: 20px auto;
    height: auto;
    border-radius: 8px; 
        box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.static-content-banners a:hover img {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* --- Footer --- */
/* --- Producto Detalle --- */
.product-detail-container {
  max-width: 1100px;
  margin: 20px auto 50px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.product-images img {
  width: 100%;
  display: block;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.social-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.social-share .share-label {
  font-weight: 600;
  color: #555;
}

.btn-share {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform .15s ease, box-shadow .15s ease, opacity .2s ease;
}
.btn-share i { font-size: 18px; margin-right: 0 !important; }
.btn-share:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.share-fb.btn-share { background: #1877F2; }
.share-wa.btn-share { background: #25D366; }

/* --- Ads Salcom --- */
.ads-salcom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; 
  align-items: stretch;
  gap: 16px; 
  padding: 0 5px; 
}

.ads-salcom a {
  display: block;
  flex: 1 1 220px; /* base responsiva; 4 en desktop si hay espacio */
  max-width: 280px; /* evita que crezcan demasiado en pantallas muy anchas */
  background: #fff;
  padding: 8px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.307);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease;
}

.ads-salcom a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.297);
}

.ads-salcom img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px; /* borde redondeado sutil sobre la imagen */
}

.share-tw.btn-share { background: #1DA1F2; }

.product-info h1 {
  font-size: 2rem;
  margin: 0 0 12px 0;
  color: var(--primary-color);
}

.price-section {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 16px 0 22px;
}
.product-price-offer { color: #e74c3c; font-weight: 700; font-size: 1.8rem; }
.product-price-old { color: #9aa0a6; text-decoration: line-through; font-size: 1rem; }
.product-price-normal { color: #333; font-weight: 700; font-size: 1.6rem; }

.whatsapp-button-detail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  padding: 10px 1px;
  border-radius: 6px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform .15s ease, box-shadow .15s ease;
}
.whatsapp-button-detail:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }

.description-short, .description-additional {
  background: #fff;
 
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.description-short p, .description-additional p { margin: 0; }

@media (max-width: 992px) {
  .product-detail-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .product-info h1 { font-size: 1.7rem; }
  .btn-share { width: 36px; height: 36px; }
}

@media (max-width: 600px) {
  .product-info h1 { font-size: 1.5rem; }
  .product-price-offer { font-size: 1.6rem; }
  .product-price-normal { font-size: 1.4rem; }
}
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 20px;
 /*   margin-top: 40px;  */
}

/* --- Producto Detalle: mejoras y overrides --- */
.product-info .price-section .product-price-offer { font-size: 2.2rem; color: var(--cta-color); }
.product-info .price-section .product-price-normal { font-size: 2rem; }
.product-info .price-section .product-price-old { font-size: 1.2rem; font-style: italic; color: var(--primary-dark); opacity: 0.7; }

.description-short p,
.description-additional p { text-align: justify; text-justify: inter-word; line-height: 1.6; }

@media (max-width: 600px) {
  .price-section { flex-direction: column; align-items: flex-start; }
  .whatsapp-button-detail { align-self: center; margin-top: 8px; margin-left: 0 !important; margin-right: 0 !important; display: inline-flex; }
}


@media (max-width: 768px) {
    .toggle-button {
        display: flex;
    }

    .navbar-links {
        display: none;
        width: 100%;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar-links ul {
        width: 100%;
        flex-direction: column;
    }

    .navbar-links li {
        text-align: center;
    }

    .navbar-links li a {
        padding: .5rem 1rem;
    }

    .navbar-links.active {
        display: flex;
    }
}


.product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    background-color: white;
    height: 100%; 
}

.product-card .card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
    padding-top: 15px;
}

.product-card h3 {
    font-size: 1.1em;
    margin: 0 0 10px 0;
    min-height: 44px;
}

.product-card .description {
    font-size: 0.9em;
    color: #666;
    flex-grow: 1; 
}

.price-container {
    margin: 15px 0;
    text-align: center;
}

.price-before {
    display: block;
    font-size: 0.95em;
    color: #d32f2f;
    font-style: italic;
    text-decoration: line-through;
    font-weight: 600;
}

.price-now {
    display: block;
    margin-top: 6px;
    font-size: 1.6em;
    font-weight: 800;
    color: var(--primary-color);
}

.price-normal {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.4em;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px;
    background-color: #25D366; 
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    margin-top: auto; 
}

.whatsapp-button:hover {
    background-color: #1EBE57;
}

.whatsapp-button svg {
    margin-right: 10px;
}

.carousel-wrapper {
    position: relative;
}

.scroll-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}

.scroll-arrow.left { left: -10px; }
.scroll-arrow.right { right: -10px; }

@media (max-width: 768px) {

    .product-grid .grid-container .product-card { flex-basis: 75%; }
}


.product-grid .grid-container { align-items: stretch; }
.product-card { height: auto; align-self: stretch; }
.whatsapp-button { box-sizing: border-box; justify-content: center; align-items: center; }
*, *::before, *::after { box-sizing: border-box; }



.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    max-width: 1100px;
    margin: 40px auto;
}

.product-images img {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.social-share {
    margin-top: 20px;
}

.social-share a {
    margin-left: 10px;
    font-weight: bold;
}

.product-info h1 {
    margin-top: 0;
    /* font-size: 2.5em; */
}

.price-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    padding: 20px;
    background-color: var(--secondary-color);
    border-radius: 8px;
}

.product-price-offer, .product-price-normal {
    font-size: 2em;
    font-weight: bold;
    color: var(--primary-color);
}

.product-price-old {
    font-size: 1.2em;
    text-decoration: line-through;
    color: #999;
}

.whatsapp-button-detail {
    margin-left: auto; 
    padding: 15px 25px;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.description-short {
    font-size: 1.2em;
    color: #555;
}

.description-additional {
    margin-top: 20px;
    line-height: 1.6;
}

.banner-section img {
    width: 100%;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .product-detail-container {
        grid-template-columns: 1fr; 
    }
}

.hoy-de-turno .farmacia-hoy-card {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background-color: #fdebd0; 
    padding: 20px;
    border-radius: 8px;
}
.farmacia-hoy-card .info {
    flex: 1;
    min-width: 250px;
}
.farmacia-hoy-card .mapa {
    flex: 1.5;
    min-width: 300px;
}
.farmacia-hoy-card .mapa iframe {
    width: 100%;
    height: 250px;
    border: none;
    border-radius: 8px;
}

.hoy-de-turno .farmacia-hoy-card {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background-color: #fdebd0;
    padding: 20px;
    border-radius: 8px;
}
.farmacia-hoy-card .info { flex: 1; min-width: 250px; }
.farmacia-hoy-card .mapa { flex: 1.5; min-width: 300px; }
.farmacia-hoy-card .mapa iframe {
    width: 100%;
    height: 250px;
    border: none;
    border-radius: 8px;
}

.lista-turnos {
    margin-top: 50px;
}
.turnos-list {
    list-style: none;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden; 
}
.turno-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}
.turno-item:last-child {
    border-bottom: none;
}
.turno-item:nth-child(even) {
    background-color: var(--secondary-color);
}
.turno-item .fecha {
    display: flex;
    align-items: center;
    min-width: 120px;
    border-right: 2px solid var(--primary-color);
    padding-right: 15px;
    margin-right: 15px;
}
.turno-item .fecha .dia-numero {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin-right: 10px;
}
.turno-item .fecha .dia-nombre {
    font-size: 0.9em;
    color: #666;
}
.turno-item .farmacia {
    font-size: 1.1em;
}
.turno-item .farmacia .asignada {
    font-weight: bold;
}
.turno-item .farmacia .no-asignada {
    color: #999;
    font-style: italic;
}


.nosotros-hero {
    text-align: center;
    padding: 80px 20px;
    background-color: var(--primary-color);
    color: white;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://static.vecteezy.com/system/resources/thumbnails/030/325/409/small_2x/pills-on-white-background-top-view-space-for-text-generative-ai-photo.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 0 0 40% 40% / 0 0 20px 20px; 
}
.nosotros-hero h1 {
    font-size: 3.5em;
    margin: 0;
    color: white;
    border: none;
}
.nosotros-hero .subtitle {
    font-size: 1.5em;
    font-weight: 300;
    opacity: 0.9;
}

.nosotros-mision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: -60px auto 40px auto;
    position: relative;
    z-index: 2;
}
.mision-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
}
.mision-card .icon {
    font-size: 3em;
    line-height: 1;
}
.mision-card h3 {
    font-size: 1.4em;
    margin: 15px 0;
}

.nosotros-servicios {
    text-align: center;
    max-width: 1100px;
    margin: 60px auto;
}
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.servicio-item {
    padding: 20px;
}
.servicio-icon {
    font-size: 3.5em;
    color: var(--primary-color);
}
.servicio-item h4 {
    font-size: 1.3em;
    margin: 10px 0;
}

.nosotros-ubicacion {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
    max-width: 1100px;
    margin: 60px auto;
    background-color: var(--secondary-color);
    padding: 40px;
    border-radius: 8px;
}
.ubicacion-mapa iframe {
    width: 100%;
    height: 350px;
    border: none;
    border-radius: 8px;
}
@media (max-width: 768px) {
    .nosotros-ubicacion {
        grid-template-columns: 1fr;
    }
}


/* --- Productos --- */

.productos-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.productos-header {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--secondary-color);
    border-radius: 8px;
    margin-bottom: 40px;
}
.productos-header h1 {
    margin: 0;
    font-size: 2.8em;
}
.productos-header p {
    font-size: 1.1em;
    color: #666;
}

.filtros-categoria {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}
.filtro-btn {
    padding: 10px 25px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    text-decoration: none;
    color: #555;
    font-weight: bold;
    background-color: white;
    transition: all 0.2s ease-in-out;
}
.filtro-btn:hover {
    background-color: var(--secondary-color);
    border-color: #aaa;
}
.filtro-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.product-gallery .grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-content: center;
}
  .fa-whatsapp {
  margin-right: 8px; 
}


.ps-section { padding: 0 12px; }
.ps-container { max-width: 1280px; margin: 0 auto; }
.ps-section-title { font-size: 2rem; font-weight: 700; text-align: center; margin: 0 0 28px; color: #1f2937; }

.ps-grid { display: grid; gap: 24px; grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 640px) { .ps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ps-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.ps-card { background: #fff; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.08); overflow: hidden; transition: transform .25s ease; cursor: pointer; }
.ps-card:hover { transform: scale(1.03); }
.ps-card-img { width: 100%; height: auto; 
    /* object-fit: none;  */
    display: block; }
.ps-card-body { padding: 16px; }
.ps-card-title { margin: 0; font-size: 1.15rem; 
    font-weight: 700; 
    text-align: center;
    color: #2c3e50; }

/* Modal */
.ps-modal-overlay { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 14px; background: rgba(0,0,0,0.7); z-index: 9999; }
.ps-hidden { display: none !important; }
.ps-modal { position: relative; width: 100%; max-width: 720px; max-height: 90vh; overflow-y: auto; background: #fff; border-radius: 12px; box-shadow: 0 10px 20px rgba(0,0,0,0.12); transform: scale(.96); opacity: 0; transition: transform .25s ease, opacity .25s ease; }
.ps-modal.ps-open { transform: scale(1); opacity: 1; }
.ps-modal-close {
  /* Posicionamiento */
  position: absolute;
  top: 10px;
  right: 12px;
  
  /* Estilo del círculo */
  width: 32px;
  height: 32px;
  background-color: #ffffff; /* Fondo blanco */
  border-radius: 50%;      /* Esto lo hace un círculo */
  
  /* Estilo de la "X" */
  color: #111827;           /* Color negro para la "X" */
  font-size: 20px;
  
  /* Centrado y otros */
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  line-height: 1; /* Asegura centrado vertical en algunos casos */
}

/* Efecto al pasar el mouse */
.ps-modal-close:hover {
  background-color: #f3f4f6; /* Un gris muy claro para el fondo */
  color: #000000;           /* La "X" se mantiene negra o se hace más oscura */
}
.ps-modal-img { width: 100%; height: 240px; object-fit: cover; border-top-left-radius: 12px; border-top-right-radius: 12px; display: block; }
@media (min-width: 768px) { .ps-modal-img { height: 320px; } }
.ps-modal-body { padding: 22px; }
.ps-modal-title { margin: 0 0 10px; font-size: 1.6rem; font-weight: 800; color: #111827; }
.ps-modal-desc { color: #4b5563; }
.ps-modal-footer { margin-top: 18px; text-align: center; }
.ps-modal-btn { display: inline-block; background: #2c3e50; color: #fff; text-decoration: none; font-weight: 700; padding: 10px 18px; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,0.12); transition: background .2s ease; }
.ps-modal-btn:hover { background: #34495e; }
.titulo-auspiciantes-elegante {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.5em; 
  color: #333;
  text-align: center;
  margin: 50px 0 30px 0;
  padding: 10px 0; 
  letter-spacing: 0.5px; 
  position: relative; 
}

.titulo-auspiciantes-elegante::after {
  content: '';
  display: block;
  width: 80px; 
  height: 3px; 
  background-color: var(--accent-color); 
  margin: 15px auto 0 auto; 
  border-radius: 2px;
}
.product-gallery .grid-container .product-card { flex: 0 0 280px; }
@media (max-width: 768px) {
  .product-gallery .grid-container .product-card { flex-basis: 75%; }
}
@media (max-width: 768px) {
  .filtros-categoria {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    gap: 8px;
    padding: 0 10px;
    margin: 16px 0 24px;
    justify-content: flex-start;
  }
  .filtros-categoria::-webkit-scrollbar { display: none; }
  .filtro-btn {
    flex: 0 0 auto; 
    padding: 8px 14px; 
    font-size: 0.95em;
    border-radius: 16px;
    scroll-snap-align: start;
  }
}

@media (max-width: 768px) {
  .product-gallery .grid-container { grid-template-columns: repeat(2, 1fr); gap: 5px; }
 
}

.filtros-categoria-mobile { display: none; margin-bottom: 20px; }
.filtros-categoria-mobile select { width: 100%; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 8px; background: #fff; }
@media (max-width: 768px) {
  .filtros-categoria { display: none; }
  .filtros-categoria-mobile { display: block; }
}

.product-info .price-section .product-price-offer { font-size: 2.2rem; color: #e74c3c; }
.product-info .price-section .product-price-normal { font-size: 2rem; }
.product-info .price-section .product-price-old { font-size: 1.2rem; font-style: italic; color: #9aa0a6; }

.description-short p,
.description-additional p { text-align: justify; text-justify: inter-word; line-height: 1.6; }

@media (max-width: 600px) {
  .price-section { flex-direction: column; align-items: flex-start; }
  .whatsapp-button-detail { align-self: center; margin-top: 8px; }
}

/* --- Farmacia de Hoy (card mejorada) --- */
.hoy-de-turno .farmacia-hoy-card {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 24px;
  padding: 24px;
  border: 1px solid #e8eef5;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 60%, #f6fbff 100%);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.08);
  position: relative;
  overflow: hidden;
}
.hoy-de-turno .farmacia-hoy-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--accent-color), var(--primary-color));
  border-radius: 6px;
}
.farmacia-hoy-card .info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.farmacia-hoy-card .info h3 {
  margin: 0 0 4px;
  font-size: 1.35rem;
  color: #1f2937;
}
.farmacia-hoy-card .info p {
  margin: 2px 0;
  color: #4b5563;
}
.farmacia-hoy-card #countdown {
  display: inline-block;
  margin: 8px 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fecaca;
}
.farmacia-hoy-card .button {
  align-self: flex-start;
  background: linear-gradient(90deg, var(--accent-color), #000000);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  box-shadow: 0 8px 16px rgba(64, 206, 227, 0.25);
  transition: transform 0.06s ease, box-shadow 0.2s ease, opacity 0.2s;
}
.farmacia-hoy-card .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(64, 206, 227, 0.3);
}
.farmacia-hoy-card .mapa {
  align-self: center;
}
.farmacia-hoy-card .mapa iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  min-height: 260px;
  border: 0;
  border-radius: 12px;
}
@media (max-width: 900px) {
  .hoy-de-turno .farmacia-hoy-card {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 16px;
  }
  .farmacia-hoy-card .mapa iframe {
    min-height: 220px;
    aspect-ratio: 16/10;
  }
}


.button-subscribe {
    background-color: #28a745;
    color: white !important;
    border-radius: 5px;
    padding: 10px 15px !important;
    margin-left: 15px;
}
.button-subscribe:hover {
    background-color: #218838 !important;
}


/* Estilos para el Pop-up de Instalación PWA */
.install-popup {
    display: none; 
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--secondary-color);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
}
.install-popup-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    max-width: 600px;
    margin: 0 auto;
}
.install-popup-logo {
    width: 60px;
    height: 60px;
    margin-right: 15px;
}
.install-popup-text {
    flex-grow: 1;
}
.install-popup-text strong {
    font-size: 1.1em;
}
.install-popup-buttons {
    display: flex;
    gap: 10px;
}
.install-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}
.dismiss-button {
    background-color: #ccc;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}
.install-popup.show {
    display: block;
}

/* === Producto Detalle · Layout final === */
.product-detail-container {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.08);
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 1100px;
  margin: 24px auto 40px;
}
.product-images {
  background: var(--secondary-color);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-images img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: #f6f8ff;
}
.product-info {
  min-width: 0;
}
@media (min-width: 992px) {
  .product-info {
    border-left: 1px solid #eef1f5;
    padding-left: 28px;
  }
}
.product-title {
  margin: 0 0 6px;
  font-size: 2rem;
  color: var(--primary-color);
}
.product-subtitle {
  margin: 0 0 8px;
  color: #6b7280;
  font-weight: 500;
}
.price-section {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 14px;
}
.product-price-offer { color: var(--cta-color); font-size: 2rem; font-weight: 800; }
.product-price-normal { color: var(--primary-color); font-size: 1.8rem; font-weight: 800; }
.product-price-old { color: var(--primary-dark); opacity: 0.7; text-decoration: line-through; font-size: 1.05rem; }
.whatsapp-button-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 8px;
  margin: 6px 0 14px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #22c55e;
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
}
.whatsapp-button-detail i { font-size: 18px; }

.product-accordion {
  margin-top: 10px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #eef1f5;
}
.product-accordion > summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-weight: 800;
  color: #1f2937;
  position: relative;
}
.product-accordion > summary::marker { display: none; }
.product-accordion > summary::after {
  content: "\f107";
  font-family: FontAwesome;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform .2s ease;
}
.product-accordion[open] > summary::after { transform: translateY(-50%) rotate(180deg); }
.product-accordion .accordion-content { padding: 0 16px 14px; color: #374151; line-height: 1.6; }

.share-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.share-row .share-title { color: #6b7280; font-weight: 700; }
.share-row .btn-share { width: 44px; height: 44px; }
.share-fb.btn-share { background: #1877F2; }
.share-wa.btn-share { background: #25D366; }

@media (max-width: 992px) {
  .product-detail-container { grid-template-columns: 1fr; padding: 18px; gap: 20px; }
  .product-info { border-left: 0; padding-left: 0; }
  .product-title { font-size: 1.7rem; }
}
@media (max-width: 520px) {
  .product-title { font-size: 1.55rem; }
  .product-price-offer, .product-price-normal { font-size: 1.6rem; }
}





/* === Turnos Page Refresh === */
.turnos-page {
  max-width: 1100px;
  margin: 0 auto 64px;
  padding: 32px 20px 80px;
  color: #0f3f4a;
}

.turnos-hero {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.turnos-hero__header h1 {
  margin: 0;
  font-size: 2.45rem;
  font-weight: 800;
  color: #0d5166;
}

.turnos-hero__header p {
  margin: 6px 0 0;
  font-size: 1rem;
  color: #5b6c78;
}

.turnos-hero__card {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(280px, 1fr);
  gap: 28px;
  padding: 28px;
  border-radius: 26px;
  border: 1px solid #e2ecf2;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcff 65%, #f2f9ff 100%);
  box-shadow: 0 28px 50px rgba(18, 74, 104, 0.12);
}

.turnos-hero__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.turnos-hero__heading {
  display: flex;
  align-items: center;
  gap: 16px;
}

.turnos-hero__emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: linear-gradient(145deg, #ccf7ec 0%, #93e2c7 100%);
  color: #096b58;
  font-size: 2.2rem;
  font-weight: 800;
  box-shadow: inset 0 3px 6px rgba(255, 255, 255, 0.6), 0 8px 16px rgba(8, 85, 73, 0.18);
}

.turnos-hero__titles {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.turnos-hero__name {
  margin: 0;
  font-size: 1.8rem;
  color: #0d5166;
}

.turnos-hero__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #e0f7ef;
  color: #0f775d;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.turnos-hero__details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #42535f;
  font-size: 0.98rem;
}

.turnos-hero__details li {
  position: relative;
  padding-left: 28px;
}

.turnos-hero__details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(145deg, #0aa378 0%, #0d6f8a 100%);
  box-shadow: 0 4px 10px rgba(12, 102, 124, 0.2);
}

.turnos-hero__timer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background: #fdeaea;
  border-radius: 18px;
  border: 1px solid rgba(219, 53, 67, 0.2);
  color: #b0252e;
  max-width: 240px;
  font-weight: 700;
}

.turnos-hero__timer-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.turnos-hero__timer-value {
  font-size: 1.4rem;
}

.turnos-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 12px 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0d8b9a 0%, #0a5f84 100%);
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 18px 30px rgba(9, 104, 124, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.turnos-hero__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 34px rgba(9, 104, 124, 0.28);
}

.turnos-hero__mapa iframe {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: 0;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.turnos-hero__empty {
  padding: 24px;
  border-radius: 16px;
  background: #f7fafc;
  border: 1px dashed #c7d8e2;
  color: #60717c;
}

.turnos-listado {
  margin-top: 40px;
}

.turnos-listado__title {
  margin: 0 0 18px;
  font-size: 1.9rem;
  color: #0d5166;
}

.turnos-listado__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.turnos-listado__item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 22px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid transparent;
  box-shadow: 0 12px 25px rgba(12, 78, 106, 0.08);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.turnos-listado__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(12, 78, 106, 0.12);
}

.turnos-listado__item--hoy {
  background: #e8fbf3;
  border-color: #9ce7c8;
}

.turnos-listado__fecha {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  gap: 4px;
}

.turnos-listado__dia-numero {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0d5166;
}

.turnos-listado__dia-nombre {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7a86;
}

.turnos-listado__contenido {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.turnos-listado__farmacia {
  font-size: 1.05rem;
  font-weight: 600;
  color: #11485c;
}

.turnos-listado__farmacia--sin {
  color: #9ba9b4;
  font-weight: 500;
}

.turnos-listado__badge {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(14, 135, 109, 0.12);
  color: #0e876d;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.turnos-listado__item--hoy .turnos-listado__badge {
  background: #0e876d;
  color: #ffffff;
}

.turnos-listado__chevron {
  font-size: 1.5rem;
  color: #9cb0bd;
}

.ads-salcom {
  margin: 56px 0 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.ads-salcom img {
  max-width: 220px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(18, 74, 104, 0.1);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.ads-salcom a:hover img {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(18, 74, 104, 0.16);
}

@media (max-width: 960px) {
  .turnos-hero__card {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .turnos-hero__mapa iframe {
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  .turnos-page {
    padding: 24px 16px 64px;
  }

  .turnos-hero__header h1 {
    font-size: 2rem;
  }

  .turnos-hero__card {
    padding: 20px;
    border-radius: 20px;
  }

  .turnos-listado__item {
    flex-wrap: wrap;
    gap: 16px;
  }

  .turnos-listado__chevron {
    margin-left: auto;
  }
}

