/* ============================
   PALETA DE COLORES DEL LOGO
   ============================ */
:root {
  --verde-logo: #7A8767;
  --beige-logo: #C4B79E;
  --gris-texto: #4A4A4A;
  --fondo-claro: #FFFFFF;
  --fondo-suave: #F6F5F3;
}

/* ============================
   ESTILOS BASE
   ============================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--gris-texto);
  background-color: var(--fondo-claro);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* ============================
   TOP BAR
   ============================ */
.top-bar {
  background: var(--verde-logo);
  color: #ffffff;
  font-size: 0.85rem;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.4rem 0;
}

.top-bar-hours {
  font-weight: 500;
}

/* ============================
   HEADER Y LOGO
   ============================ */
.main-header {
  background: var(--fondo-claro);
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  gap: 1rem;
}

/* Logo imagen (horizontal del logo) */
.logo {
  display: block;
  max-width: 360px;
}

.logo img {
  width: 100%;
  height: auto;
}

/* Navegación */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.nav-link {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  background: var(--beige-logo);
  color: #ffffff;
}

/* ============================
   MENÚ DESPLEGABLE (FARMACIA)
   ============================ */

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background: none;
  border: none;
  font-size: 0.9rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--gris-texto);
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropbtn:hover {
  background: var(--beige-logo);
  color: #ffffff;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #ffffff;
  min-width: 190px;
  border-radius: 0.7rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid #e5e5e5;
  z-index: 50;
  overflow: hidden;
}

.dropdown-content a {
  padding: 0.7rem 1rem;
  display: block;
  color: var(--gris-texto);
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-content a:hover {
  background: var(--beige-logo);
  color: #ffffff;
}

/* Mostrar menú al pasar el ratón */
.dropdown:hover .dropdown-content {
  display: block;
}

/* ============================
   HERO ANCHO (TEXTO IZQUIERDA – CONSEJO DERECHA)
   ============================ */

.hero {
  background: var(--fondo-suave);
  padding: 0.5rem 0 1rem; /* hero muy compacto para que se vea el carrusel */
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;  /* ← MÁS ANCHO A LA IZQUIERDA */
  gap: 2.2rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  margin-bottom: 0.6rem;
  color: var(--verde-logo);
}

.hero-text p {
  font-size: 1rem;
  max-width: 550px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1rem 0 0.8rem;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  font-size: 0.95rem;
}

/* TARJETA DEL CONSEJO (parte derecha más estrecha) */
.hero-side {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: #ffffff;
  border-radius: 1.2rem;
  padding: 1.4rem;
  border: 1px solid #e5e5e5;
  max-width: 360px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.hero-card h2 {
  font-size: 1.1rem;
  margin-top: 0;
  color: var(--verde-logo);
}

/* TAG */
.hero-card-tag {
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: var(--beige-logo);
  color: #ffffff;
  font-size: 0.75rem;
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr; /* pasa a una sola columna */
    gap: 1.2rem;
  }

  .hero {
    padding: 1rem 0 1.2rem;
  }

  .hero-side {
    justify-content: flex-start; /* queda debajo alineado a la izquierda */
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 0.8rem 0;
  }

  .hero-card {
    max-width: 100%;
  }
}


/* ============================
   SECCIONES GENERALES
   ============================ */
.section {
  padding: 3rem 0;
}

.section-alt {
  background: #eeeae3;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.section-header h2 {
  margin-bottom: 0.6rem;
  color: var(--verde-logo);
}

/* Grid tarjetas */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

/* Tarjetas */
.card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.4rem;
  border: 1px solid #e5e5e5;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Promos */
.promo-card {
  position: relative;
}

.promo-badge {
  position: absolute;
  top: -0.8rem;
  left: 1.4rem;
  background: var(--verde-logo);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
}

.promo-footer {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: #777777;
}

/* ============================
   NOTICIAS / CONSEJOS (2 COLUMNAS)
   ============================ */
.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
}

.column h2 {
  margin-top: 0;
  color: var(--verde-logo);
}

.mini-card {
  background: #ffffff;
  border-radius: 0.9rem;
  padding: 1rem 1.2rem;
  border: 1px solid #e5e5e5;
  margin-bottom: 1rem;
}

.mini-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.mini-card p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.mini-card-meta {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* ============================
   FOOTER
   ============================ */
.footer {
  background: var(--verde-logo);
  color: #ffffff;
  padding-top: 2.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  font-size: 0.9rem;
}

.footer h3,
.footer h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.footer a {
  color: #fdf5e6;
}

/* ============================
   CARRUSEL DE OFERTAS (NUEVO MÁS BAJO)
   ============================ */

.carousel-section {
  width: 100%;
  background: var(--fondo-claro);
  padding: 1.5rem 0 2rem;
}

.carousel-container {
  position: relative;
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid #e2e2e2;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* Hacemos el carrusel más bajo */
.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
}

.carousel-slide {
  min-width: 100%;
  height: 500px;              /* ← ALTURA FINAL (AJUSTABLE) */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Las imágenes se recortan suavemente sin distorsión */
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* ← recorta suavemente sin deformar */
  display: block;
}

/* Botones */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--verde-logo);
  color: #fff;
  border: none;
  padding: 0.4rem 0.8rem;
  font-size: 1.4rem;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s;
  opacity: 0.8;
}

.carousel-btn:hover {
  background: var(--beige-logo);
}

.carousel-btn.prev {
  left: 0.8rem;
}

.carousel-btn.next {
  right: 0.8rem;
}

/* Responsive móvil */
@media (max-width: 768px) {
  .carousel-slide {
    height: 160px;     /* carrusel más pequeño en móviles */
  }

  .carousel-btn {
    font-size: 1.1rem;
    padding: 0.3rem 0.6rem;
  }
}

/* ICONOS EN LA CABECERA */
.icon-btn {
  font-size: 1.3rem;
  padding: 0.35rem 0.6rem;
  border-radius: 50%;
  transition: 0.3s;
}

.icon-btn:hover {
  background: var(--beige-logo);
  color: #fff;
}

/* PÁGINA DE CONSEJOS */
.page-header {
  background: var(--fondo-suave);
  padding: 2.5rem 0;
  text-align: center;
}

.page-header h1 {
  margin: 0;
  color: var(--verde-logo);
  font-size: 2rem;
  font-weight: 600;
}

.page-header p {
  margin-top: 0.5rem;
  color: #555;
  font-size: 1rem;
}

.advice-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.advice-card {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid #e5e5e5;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.advice-card h2 {
  margin-top: 0;
  color: var(--verde-logo);
  font-size: 1.2rem;
}

.advice-card p {
  font-size: 0.95rem;
  color: #555;
}

.advice-link {
  display: inline-block;
  margin-top: 0.6rem;
  color: var(--verde-logo);
  font-weight: 600;
  transition: 0.2s;
}

.advice-link:hover {
  color: var(--beige-logo);
}

/* ICONOS EN LA CABECERA */
.icon-btn {
  font-size: 1.3rem;
  padding: 0.35rem 0.6rem;
  border-radius: 50%;
  transition: 0.3s;
}

.icon-btn:hover {
  background: var(--beige-logo);
  color: #fff;
}

/* PÁGINA DE CONSEJOS */
.page-header {
  background: var(--fondo-suave);
  padding: 2.5rem 0;
  text-align: center;
}

.page-header h1 {
  margin: 0;
  color: var(--verde-logo);
  font-size: 2rem;
  font-weight: 600;
}

.page-header p {
  margin-top: 0.5rem;
  color: #555;
  font-size: 1rem;
}

.advice-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.advice-card {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid #e5e5e5;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.advice-card h2 {
  margin-top: 0;
  color: var(--verde-logo);
  font-size: 1.2rem;
}

.advice-card p {
  font-size: 0.95rem;
  color: #555;
}

.advice-link {
  display: inline-block;
  margin-top: 0.6rem;
  color: var(--verde-logo);
  font-weight: 600;
  transition: 0.2s;
}

.advice-link:hover {
  color: var(--beige-logo);
}
/* ============================
   LOGO CENTRADO Y MENÚ DEBAJO
   ============================ */

.header-content {
  display: flex;
  flex-direction: column;      /* LOGO ARRIBA — MENÚ DEBAJO */
  align-items: center;
  padding: 0.6rem 0 0.9rem;
  gap: 0.4rem;
  width: 100%;
}

.header-logo-container {
  width: 100%;
  display: flex;
  justify-content: center;     /* CENTRA EL LOGO */
  margin-bottom: 0.3rem;
}

.logo img {
  max-width: 360px;
  height: auto;
}

/* Menú centrado */
.main-nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

/* Iconos Instagram / Email */
.icon-btn {
  font-size: 1.3rem;
  padding: 0.35rem 0.6rem;
  border-radius: 50%;
  transition: 0.3s;
}

.icon-btn:hover {
  background: var(--beige-logo);
  color: #fff;
}

/* Ajustes responsive */
@media (max-width: 768px) {
  .main-nav {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .logo img {
    max-width: 260px;
  }
}

/* ============================
   INTRODUCCIÓN CÁLIDA
   ============================ */
.intro-block {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
}

/* ============================
   EQUIPO – TARJETAS
   ============================ */
.team-section {
  padding-top: 1rem;
}

.team-member {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  align-items: center;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 2rem;
}

.team-photo img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 1rem;
  border: 3px solid var(--beige-logo);
}

.team-info {
  flex: 1;
}

.team-name {
  margin-top: 0;
  color: var(--verde-logo);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.team-info p {
  margin: 0;
  line-height: 1.6;
  color: #555;
}

/* Responsive */
@media (max-width: 768px) {
  .team-member {
    flex-direction: column;
    text-align: center;
  }

  .team-photo img {
    width: 140px;
    height: 140px;
  }
}
/* ============================
   PÁGINA FARMACIA ABIERTA
   ============================ */

.section-title {
  text-align: center;
  color: var(--verde-logo);
  font-size: 1.7rem;
  margin-bottom: 1.5rem;
}

.horario-box {
  background: #fff;
  padding: 1.5rem;
  border-radius: 1rem;
  max-width: 500px;
  margin: 0 auto;
  border: 1px solid #e5e5e5;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.horario-box p {
  margin: 0.4rem 0;
  font-size: 1.05rem;
  color: #444;
}

/* GUARDIAS */
.guardia-block .section-description {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: #555;
}

.guardia-list {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.guardia-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid #e5e5e5;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.guardia-card h3 {
  margin-top: 0;
  color: var(--verde-logo);
}

/* UBICACIÓN */
.ubicacion-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
}

.ubicacion-info p {
  font-size: 1rem;
  color: #555;
}

.ubicacion-map iframe {
  border-radius: 1rem;
  border: 1px solid #ddd;
}

/* Responsive */
@media (max-width: 768px) {
  .ubicacion-grid {
    grid-template-columns: 1fr;
  }
}

.main-nav .dropdown {
  margin: 0 0.3rem;
}

/* ICONO DE EMAIL SVG */
.email-icon {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

/* Misma estética que Instagram */
.icon-btn {
  padding: 0.25rem 0.4rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hover con color beige del logo */
.icon-btn:hover {
  background: var(--beige-logo);
  transition: 0.2s;
}

/* (Opcional) convertir el icono a blanco en hover */
.icon-btn:hover img {
  filter: brightness(0) invert(1);
}

.main-nav .dropdown {
  margin: 0 0.2rem;
}

/* ============================
   BUSCADOR INTELIGENTE
   ============================ */

.search-section {
  background: #f8f7f4;
  padding: 1.8rem 0 2.2rem;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}

.search-container {
  max-width: 900px;
}

.search-header {
  text-align: center;
  margin-bottom: 1.2rem;
}

.search-header h2 {
  margin: 0;
  color: var(--verde-logo);
  font-size: 1.6rem;
}

.search-header p {
  margin: 0.4rem 0 0;
  color: #666;
  font-size: 0.95rem;
}

/* Caja del buscador */
.search-box {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

#search-input {
  flex: 1;
  min-width: 220px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid #d4d4d4;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#search-input:focus {
  border-color: var(--verde-logo);
  box-shadow: 0 0 0 2px rgba(122, 135, 103, 0.25);
}

/* Resultados */
.search-results {
  margin-top: 0.5rem;
}

.search-result-item {
  background: #ffffff;
  border-radius: 0.9rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid #e5e5e5;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.03);
  margin-bottom: 0.6rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.search-result-item:hover {
  transform: translateY(-1px);
  border-color: var(--beige-logo);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.search-result-title {
  margin: 0;
  font-weight: 600;
  color: var(--verde-logo);
  font-size: 0.98rem;
}

.search-result-category {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 0.1rem;
}

.search-result-description {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  color: #555;
}

/* Mensajes vacíos / info */
.search-results-empty {
  font-size: 0.9rem;
  color: #777;
  padding: 0.3rem 0.1rem;
}

/* Responsive */
@media (max-width: 600px) {
  .search-box {
    flex-direction: column;
    align-items: stretch;
  }

  #search-button {
    width: 100%;
  }
}
/* BOTÓN DE BUSCAR con icono */
#search-button {
  background: var(--verde-logo);
  color: #fff;
  border: none;
  padding: 0.65rem 1.4rem;
  font-size: 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;              /* espacio entre icono y texto */
  font-family: inherit;
}

/* Icono de la lupa dentro del botón */
#search-button .search-icon {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
  /* hacemos la lupa blanca para que contraste con el verde */
  filter: brightness(0) invert(1);
}

#search-button:hover {
  background: var(--beige-logo);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

#search-button:active {
  transform: translateY(0);
  box-shadow: none;
}
/* BOTÓN FLOTANTE WHATSAPP */
.whatsapp-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 120;
  background: var(--verde-logo);
  border-radius: 999px;
  padding: 0.6rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.whatsapp-float:hover {
  background: var(--beige-logo);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.whatsapp-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Móvil */
@media (max-width: 600px) {
  .whatsapp-float {
    right: 1rem;
    bottom: 1rem;
    padding: 0.5rem;
  }

  .whatsapp-icon {
    width: 22px;
    height: 22px;
  }
}
/* ============================
   MAPA EN FOOTER
   ============================ */

.footer-map {
  margin-top: 1.8rem;
}

.footer-map h4 {
  margin: 0 0 0.4rem;
}

.footer-map-text {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  color: #f5f5f5;
}

.footer-map-frame {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.footer-map-frame iframe {
  display: block;
  width: 100%;
  height: 230px;
}

/* Responsive: que no quede tan alto en móvil */
@media (max-width: 600px) {
  .footer-map-frame iframe {
    height: 200px;
  }
}
.footer-map-link {
  color: #fff;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-map-link:hover {
  color: var(--beige-logo);
}
@media (max-width: 600px) {
  #search-button {
    width: 100%;
  }
}
/* ==========================================
   MICROINTERACCIONES SUAVES (GLOBAL)
   ========================================== */
@media (prefers-reduced-motion: no-preference) {

  /* Transiciones suaves en elementos interactivos */
  .nav-link,
  .dropbtn,
  .btn,
  .icon-btn,
  .whatsapp-float,
  #search-button,
  .card,
  .promo-card,
  .mini-card,
  .advice-card,
  .team-member,
  .search-result-item,
  .hero-card {
    transition:
      background-color 0.25s ease,
      color 0.25s ease,
      border-color 0.25s ease,
      box-shadow 0.25s ease,
      transform 0.18s ease;
  }

  /* Navegación: ligero movimiento y realce */
  .nav-link:hover,
  .dropbtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  /* Botones principales (incluye buscar) */
  .btn:hover,
  #search-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  }

  /* Iconos de cabecera e iconos flotantes */
  .icon-btn:hover,
  .whatsapp-float:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  }

  /* Tarjetas generales (servicios, promos, consejos, equipo…) */
  .card:hover,
  .promo-card:hover,
  .mini-card:hover,
  .advice-card:hover,
  .search-result-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-color: var(--beige-logo);
  }

  /* Tarjeta del héroe (consejo farmacéutico) */
  .hero-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
  }

  /* Miembros del equipo: zoom suave de foto */
  .team-member:hover .team-photo img {
    transform: scale(1.03);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  }

  /* Campo de búsqueda: microinteracción al pasar el ratón */
  #search-input:hover {
    box-shadow: 0 0 0 2px rgba(122, 135, 103, 0.15);
  }

  /* Animación de entrada suave para el hero y cabecera de página */
  @keyframes fade-up-soft {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero,
  .page-header {
    animation: fade-up-soft 0.5s ease-out;
  }
}

/* Accesibilidad: foco visible en elementos clicables */
.nav-link:focus-visible,
.dropbtn:focus-visible,
.btn:focus-visible,
.icon-btn:focus-visible,
.whatsapp-float:focus-visible,
.search-result-item:focus-visible {
  outline: 2px solid var(--beige-logo);
  outline-offset: 3px;
  border-radius: 999px;
}
/* ============================
   CITA ASESORÍA DERMOCOSMÉTICA
   ============================ */

.cita-dermo-section {
  background: #f8f7f4;
}

.cita-dermo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
  align-items: flex-start;
}

/* Bloques principales (dos columnas de igual peso) */
.cita-dermo-block {
  background: #ffffff;
  border-radius: 1.1rem;
  padding: 1.6rem 1.8rem;
  border: 1px solid #e5e5e5;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

.cita-dermo-block h2 {
  margin-top: 0;
  color: var(--verde-logo);
  font-size: 1.4rem;
  margin-bottom: 0.7rem;
}

.cita-dermo-block p {
  font-size: 0.96rem;
  color: #555;
  line-height: 1.7;
}

/* Recuadro de qué analiza el dermoanalizador */
.cita-dermo-highlight {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  background: #f3f1eb;
}

.cita-dermo-highlight h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--verde-logo);
}

.cita-dermo-highlight ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.93rem;
}

/* Beneficios en formato “pill” */
.cita-dermo-benefits {
  margin-top: 1.3rem;
}

.cita-dermo-benefits h3 {
  margin-bottom: 0.6rem;
  font-size: 1rem;
  color: var(--verde-logo);
}

.cita-dermo-benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.benefit-pill {
  background: #f6f5f1;
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
}

/* Tarjeta de imagen del analizador / cabina */
.cita-dermo-image-card {
  margin-top: 1.3rem;
}

.cita-dermo-image-placeholder {
  background: #e7e3d8;
  border-radius: 1rem;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 0.9rem;
  text-align: center;
  padding: 0 1rem;
}

.cita-dermo-image-text {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: #555;
}

/* BLOQUE DE CONTACTO */
.cita-dermo-contact h2 {
  margin-bottom: 0.7rem;
}

.contact-cards {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.contact-card {
  background: #f6f5f1;
  border-radius: 0.9rem;
  padding: 0.8rem 1rem;
  font-size: 0.92rem;
}

.contact-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  color: var(--verde-logo);
}

/* CTA explicativa dentro del bloque de contacto */
.cita-dermo-cta {
  margin-top: 1.4rem;
  padding: 1rem 1.1rem;
  background: #f3f1eb;
  border-radius: 0.9rem;
}

.cita-dermo-cta h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1rem;
  color: var(--verde-logo);
}

.cita-dermo-cta ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.93rem;
}

/* Nota final */
.cita-dermo-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #6b7280;
  background: #f8f7f4;
  border-radius: 0.7rem;
  padding: 0.7rem 0.8rem;
}

/* Responsive */
@media (max-width: 900px) {
  .cita-dermo-grid {
    grid-template-columns: 1fr;
  }

  .cita-dermo-block {
    padding: 1.4rem 1.3rem;
  }

  .cita-dermo-image-placeholder {
    height: 160px;
  }
}

@media (max-width: 600px) {
  .cita-dermo-highlight,
  .cita-dermo-cta {
    padding: 0.8rem 0.9rem;
  }

  .benefit-pill {
    font-size: 0.88rem;
  }
}
.cita-dermo-image img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  animation: zoom 0.3s ease;
}

@keyframes zoom {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
/* ====== SECCIÓN FARMACIA ABIERTA: MAPA + ICONOS ====== */

.farmacia-abierta {
  padding: 4rem 0;
}

.farmacia-abierta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: stretch;
}

/* Columna del mapa */
.map-wrapper {
  flex: 1 1 320px;
  min-height: 320px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
  background: #f3f7f4;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Columna de información */
.map-info {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.map-info h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.map-intro {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 0.5rem;
}

/* Bloques con icono */
.map-block {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: #f7fbf8;
  border: 1px solid #e0efe6;
}

.map-block + .map-block {
  margin-top: 0.5rem;
}

.map-block-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
}

.map-block-header h3 {
  font-size: 1rem;
  margin: 0;
}

.map-block p {
  margin: 0;
  line-height: 1.5;
}

.map-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* Lista "cómo llegar" */
.map-howto {
  margin: 0.25rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.95rem;
}

.map-howto li {
  margin-bottom: 0.25rem;
}

/* Botón "Cómo llegar" */
.btn-mapa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  background: #1e8b4d;        /* ajusta al verde corporativo de tu web */
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-mapa:hover {
  background: #16693a;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

/* Responsive: stack en móvil */
@media (max-width: 768px) {
  .farmacia-abierta-inner {
    flex-direction: column;
  }

  .map-wrapper {
    min-height: 260px;
  }

  .map-info h2 {
    font-size: 1.6rem;
  }
}
