body {
  font-family: 'Poppins', 'Lato', sans-serif;
}
body {
  font-weight: 700; /* negrita en todo */
}
/* 🔹 Forzar que todo ocupe el 100% del ancho de la pantalla */
html, body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

/* 🔹 Asegurar que el header y main también se peguen a los lados */
header, main, footer {
  width: 100% !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}


:root {
  --accent: #0077b6;
  --muted: #6b7280;
  --bg: #f2f6fa;
  --card-bg: #ffffff;
}

/* ===== BASE ===== */
/* ===== FONDO GENERAL ===== */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: linear-gradient(180deg, #e0f7f3 0%, #f8fffd 100%);
  color: #222;
}

/* ===== HEADER ===== */
header.card {
  background: linear-gradient(90deg, #00bfa5 0%, #009688 100%);
  color: white;
  padding: 15px 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Contenedor superior */
header .container.top {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100%;
  gap: 10px;
}

/* 🔹 Menú de opciones arriba */
nav.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  width: 100%;
}

/* ===== LOGO ===== */
/* ===== HEADER Y LOGO ===== */
header {
  display: flex;
  justify-content: space-between; /* logo a la izq, opciones a la der */
  align-items: center;
  padding: 10px 20px;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Logo alineado a la izquierda */
header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

header .logo img {
  height: 55px;
  width: auto;
  border-radius: 6px;
  object-fit: contain;
}

header .logo strong {
  font-size: 1.4rem;
  letter-spacing: 1px;
  display: block;
}

header .logo .muted {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* ===== ESPACIADO GENERAL PARA SECCIONES ===== */
section {
  max-width: 1100px;
  margin: 60px auto;  /* más separación arriba y abajo */
  padding: 0 30px;    /* espacio a los lados */
}

/* Si tienes una clase general tipo .container también puedes reforzarla */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Ajuste visual entre banner y siguiente sección */

.banner {
  overflow: visible; /* 👈 deja pasar elementos flotantes como el menú */
}


/* ===== NAVEGACIÓN ===== */
nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: 0.3s;
  font-size: 1rem;
}

nav a:hover {
  color: #e0f7fa;
  text-shadow: 0 0 6px rgba(255,255,255,0.6);
}


nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* ===== HERO ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  padding: 30px 0;
  align-items: start;
}

.card {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
}

h1 {
  margin: 0 0 10px;
  font-size: 28px;
  color: #222;
}

p.lead {
  margin: 0;
  color: var(--muted);
}

.cta {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.3s ease, transform 0.2s ease;
}

.cta:hover {
  background: #0096c7;
  transform: translateY(-2px);
}

/* ===== PRODUCTOS ===== */
#productos {
  text-align: center;
  padding: 40px 20px;
}

#productos h2 {
  font-size: 1.8em;
  margin-bottom: 30px;
  color: #004d40;
}

#productos .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  justify-content: center;
}

.card.product {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  max-width: 240px;
  margin: 0 auto;
}

.card.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 12px rgba(0,0,0,0.12);
}

/* === 💊 IMÁGENES DE PRODUCTO GRANDES Y CLARAS === */
.card.product img {
  width: 100%;
  height: 210px; /* ajusta alto del recuadro de imagen */
  object-fit: cover; /* llena el espacio sin deformarse */
  border-radius: 12px;
  transition: transform 0.3s ease;
}

/* Pequeño efecto hover para hacerlo más pro */
.card.product:hover img {
  transform: scale(1.05);
}


.card.product .info {
  padding: 12px;
  text-align: left;
}

.etiqueta {
  display: inline-block;
  background: #e0f2f1;
  color: #00796b;
  font-size: 0.75em;
  padding: 3px 8px;
  border-radius: 5px;
  margin-bottom: 6px;
}

.info h3 {
  font-size: 1em;
  margin: 6px 0;
  color: #212121;
  line-height: 1.3em;
}

.marca {
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.75em;
  color: #616161;
  margin-bottom: 8px;
}

.precios {
  margin: 8px 0;
}

.precios .anterior {
  text-decoration: line-through;
  color: #9e9e9e;
  margin-right: 6px;
  font-size: 0.85em;
}

.precios .actual {
  color: #2e7d32;
  font-weight: bold;
  font-size: 1.05em;
}

.btn {
  background: #2e7d32;
  color: white;
  border: none;
  padding: 8px 10px;
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9em;
  transition: background 0.3s;
}

.btn:hover {
  background: #1b5e20;
}



/* ===== FOOTER ===== */
footer {
  margin-top: 22px;
  padding: 18px 0;
  color: var(--muted);
  text-align: center;
}

/* ===== FORM ===== */
input, textarea {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
}

button.cta {
  cursor: pointer;
  border: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
  }
  nav {
    display: none;
  }
  .container {
    padding: 16px;
  }
}

/* ===== SECCIÓN NOSOTROS ===== */
#nosotros {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  padding: 60px 20px;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
  scroll-margin-top: 90px;
}

#nosotros.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Títulos */
#nosotros h2 {
  font-size: 2.4rem;
  color: #0077b6;
  margin-bottom: 25px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Subtítulos */
#nosotros h3 {
  font-size: 1.6rem;
  color: #0096c7;
  margin-top: 30px;
  margin-bottom: 10px;
}

/* Párrafos */
#nosotros p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 20px;
  text-align: justify;
}

/* ===== CUADROS DE NOSOTROS ===== */
.nosotros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.nosotros-item {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nosotros-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.nosotros-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.nosotros-item .texto {
  padding: 14px 18px;
  text-align: center;
}

/* ===== CLASE GENERAL ===== */
.oculto {
  display: none !important;
}

/* === ESTILOS BANNER === */
/* === BANNER FARMACÉUTICO === */
/* 🎯=== BANNER PRINCIPAL ===*/
.banner {
  position: relative;
  max-width: 900px;
  height: 420px; /* tamaño original */
  margin: 0 auto; /* pegado arriba */
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 🎞️ Slides */
.slides {
  display: flex;
  transition: transform 0.8s ease-in-out;
}

/* 🎬 Cada slide */
.slide {
  min-width: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 20px;
  filter: brightness(0.88);
}

/* 📝 Texto sobre el banner */
.slide .texto {
  position: absolute;
  bottom: 35px;  /* subido para que se vea */
  left: 25px;    /* alineado más a la izquierda */
  background: rgba(0, 150, 136, 0.75);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  max-width: 380px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.slide .texto h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.slide .texto p {
  margin: 4px 0 0;
  font-size: 0.85rem;
  line-height: 1.2;
}

/* 🔹 Flechas de navegación */
.flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 150, 136, 0.85);
  color: white;
  border: none;
  font-size: 1.8rem;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.flecha:hover {
  background: #00bfa5;
  transform: translateY(-50%) scale(1.1);
}

.flecha.izq {
  left: 15px;
}

.flecha.der {
  right: 15px;
}

/* 🔹 Animación automática opcional */
@keyframes slide {
  0%, 33%   { transform: translateX(0); }
  34%, 66%  { transform: translateX(-100%); }
  67%, 100% { transform: translateX(-200%); }
}




/* ===== MENÚ DE CATEGORÍAS FARMACÉUTICAS ===== */
.menu {
  display: flex;
  align-items: center;
  gap: 0.5cm; /* 💡 separación precisa de 1 cm */
  position: relative;
  font-family: Arial, sans-serif;
}

#btnCategorias {
  background: none;
  border: none;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  font-size: 15px;
}

/* --- FIX: que la barra de categorías se vea encima del banner --- */
#barraCategorias {
  position: absolute;
  top: 60px; /* ajusta si está muy arriba o abajo */
  left: 40px;
  background: #ffffff;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  padding: 5px 0;
  width: 180px;
  z-index: 999999 !important;
}

header, .menu, nav, body {
  position: relative;
  z-index: 1;
}

.banner {
  position: relative;
  z-index: 0 !important; /* 🔥 esto pone el banner detrás */
  overflow: hidden;
}

#barraCategorias a {
  color: black;
  text-decoration: none;
}

#barraCategorias a:hover {
  color: #007bff; /* azul al pasar el mouse */
}
#barraCategorias li a {
  display: block;
  width: 100%;
  padding: 8px 12px;
  color: black;
  text-decoration: none;
}

#barraCategorias li a:hover {
  background-color: #f0f0f0;
}



#barraCategorias ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#barraCategorias li {
  padding: 8px 12px;
  font-size: 14px;
  color: #003366;
  cursor: pointer;
}

#barraCategorias li:hover {
  background-color: #e8f5e9;
}

.oculto {
  display: none;
}


.btn-maps {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  background-color: #006837;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  transition: background 0.2s;
}

.btn-maps:hover {
  background-color: #004d29;
}

/* 🔥 Quita el espacio entre el banner y el texto siguiente */
.banner {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

section {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

main, .container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* === 🌍 EXPANDE TODO A PANTALLA COMPLETA === */
html, body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Quita el límite de ancho */
.container, section {
  max-width: 100% !important;
  margin: 0 !important;
  padding-left: 3%;
  padding-right: 3%;
}

/* === 🛒 AJUSTE DE PRODUCTOS COMO INKAFARMA === */
#productos {
  background: #f8fffd;
  padding: 50px 4%;
}

#productos .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* ahora pueden entrar hasta 5 */
  gap: 18px;
  justify-content: center;
}

/* Ajuste visual de las tarjetas */
.card.product {
  max-width: none; /* permite crecer horizontalmente */
  margin: 0;
}

.card.product {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

.card.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 12px rgba(0,0,0,0.12);
}


.buscador {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.buscador input {
  width: 260px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
}

.buscador button {
  background-color: #28ffc9;
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.buscador button:hover {
  background-color: #0ed5f8;
}



/* === HEADER PRINCIPAL === */
header {
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
}

.logo img {
  height: 60px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.menu a,
.menu button {
  background: none;
  border: none;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.menu a:hover,
.menu button:hover {
  color: #007bff;
}

/* --- buscador debajo y centrado --- */
.buscador {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.buscador input {
  width: 60%;
  max-width: 400px;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 8px 0 0 8px;
}

.buscador button {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-left: none;
  background-color: #007bff;
  color: white;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
}

/* --- responsive --- */
@media (max-width: 768px) {
  .menu a:not(:first-child) {
    display: none; /* solo deja Categorías visible */
  }

  .menu {
    justify-content: center;
  }

  .buscador input {
    width: 80%;
  }
}

.grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  gap: 25px !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}
