/* Farmacia Alvaro Jimenez Gomez - theme-alphega/css/style.css
   Modern responsive pharmacy CSS - brand color #00569d (Alphega blue) */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #333;
  background: #f8f9fa;
  min-width: 320px;
}
a { color: #00569d; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: #1a1a1a; }
h1 { font-size: 2.1rem; margin: 0 0 0.8em; color: #00569d; }
h2 { font-size: 1.45rem; margin: 1.6em 0 0.6em; color: #00569d; }
h3 { font-size: 1.15rem; margin: 1.4em 0 0.5em; }
p { margin: 0 0 0.9em; }
ul, ol { padding-left: 1.4em; margin: 0 0 0.9em; }
li { margin-bottom: 0.3em; }
hr { border: 0; border-top: 1px solid #e2e6eb; margin: 24px 0; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === Header === */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e2e6eb;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.site-header .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}
.site-header .brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.site-header .brand img {
  height: 56px;
  max-width: 220px;
  width: auto;
}
.site-header .brand-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: #00569d;
  letter-spacing: -0.01em;
}
.site-header .brand-text small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: #666;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
  justify-content: flex-end;
}
.main-nav a {
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1a1a1a;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover {
  background: #eaf1f8;
  color: #00569d;
  text-decoration: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-actions a.btn {
  padding: 9px 18px;
  background: #00569d;
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
}
.header-actions a.btn:hover {
  background: #003e74;
  text-decoration: none;
}

/* === Breadcrumb === */
.breadcrumb {
  background: #fff;
  border-bottom: 1px solid #e2e6eb;
  padding: 10px 0;
  font-size: 0.88rem;
  color: #666;
}
.breadcrumb a {
  color: #00569d;
  margin-right: 4px;
}
.breadcrumb span {
  color: #1a1a1a;
  font-weight: 500;
}

/* === Main content === */
main { padding: 30px 0 50px; }
main.container, .container > main { background: #fff; }
.categoria-content,
.home-content {
  background: #fff;
  padding: 32px 30px 36px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  margin-top: 16px;
  margin-bottom: 24px;
}

/* === Hero banner === */
.hero {
  background: linear-gradient(135deg, #00569d 0%, #0073d1 100%);
  color: #fff;
  padding: 60px 30px;
  border-radius: 12px;
  margin: 16px 0 32px;
  text-align: center;
}
.hero h1 {
  color: #fff;
  font-size: 2.4rem;
  margin: 0 0 12px;
}
.hero p {
  font-size: 1.15rem;
  margin: 0 auto 18px;
  max-width: 720px;
  opacity: 0.95;
}
.hero .cta {
  display: inline-block;
  background: #fff;
  color: #00569d;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 10px;
}
.hero .cta:hover {
  background: #f2f7fc;
  text-decoration: none;
}

/* === Stats / features row === */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin: 28px 0 32px;
}
.stat-card {
  background: #fff;
  border: 1px solid #e2e6eb;
  border-radius: 10px;
  padding: 24px 22px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,86,157,0.10);
}
.stat-card .num {
  display: block;
  font-size: 2.3rem;
  font-weight: 800;
  color: #00569d;
  margin-bottom: 6px;
}
.stat-card .label {
  font-size: 0.95rem;
  color: #555;
  font-weight: 500;
}

/* === Category tile grid (homepage) === */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 22px 0 36px;
}
.cat-card {
  background: #fff;
  border: 1px solid #e2e6eb;
  border-radius: 10px;
  padding: 22px 20px;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  display: block;
  color: #1a1a1a;
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,86,157,0.13);
  border-color: #00569d;
  text-decoration: none;
}
.cat-card .icon {
  font-size: 2.6rem;
  display: block;
  margin: 0 auto 14px;
  color: #00569d;
}
.cat-card h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: #00569d;
}
.cat-card p {
  font-size: 0.88rem;
  color: #666;
  margin: 0;
}

/* === Product grid (placeholder thumbnails) === */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin: 22px 0 32px;
}
.prod-card {
  background: #fff;
  border: 1px solid #e2e6eb;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  transition: box-shadow 0.15s;
}
.prod-card:hover {
  box-shadow: 0 4px 14px rgba(0,86,157,0.10);
}
.prod-card .prod-img {
  width: 100%;
  aspect-ratio: 1/1;
  background: #f0f4f8;
  border-radius: 6px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aabac6;
  font-size: 0.85rem;
}
.prod-card .prod-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}
.prod-card .prod-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 4px;
  min-height: 2.6em;
}
.prod-card .prod-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: #00569d;
}

/* === Section blocks (used in category pages) === */
section.bloque,
section.intro,
section.marcas,
section.ayuda {
  margin: 24px 0;
  padding-top: 4px;
}
section.intro p {
  font-size: 1.05rem;
  color: #444;
}
section.marcas {
  background: #f2f7fc;
  border-left: 4px solid #00569d;
  padding: 18px 22px;
  border-radius: 0 8px 8px 0;
}
section.marcas h2 { margin-top: 0; font-size: 1.2rem; }
section.ayuda {
  background: #fef9e7;
  border-left: 4px solid #f5b800;
  padding: 18px 22px;
  border-radius: 0 8px 8px 0;
}
section.ayuda h2 { margin-top: 0; font-size: 1.2rem; color: #856404; }

/* === Footer === */
.site-footer {
  background: #1a2433;
  color: #cfd6dd;
  margin-top: 60px;
  padding: 40px 0 24px;
  font-size: 0.92rem;
}
.site-footer .footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}
.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 14px;
  letter-spacing: 0.02em;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li {
  margin-bottom: 7px;
}
.site-footer a {
  color: #cfd6dd;
  transition: color 0.15s;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: none;
}
.site-footer .footer-bottom {
  border-top: 1px solid #2a3849;
  padding-top: 16px;
  text-align: center;
  font-size: 0.85rem;
  color: #8fa0b5;
}
.site-footer .footer-bottom a {
  color: #8fa0b5;
  margin: 0 6px;
}
.site-footer .social {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.site-footer .social img {
  width: 28px;
  height: 28px;
}
.site-footer .payments {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.site-footer .payments img {
  height: 26px;
  width: auto;
}

/* === Buttons / links === */
.btn {
  display: inline-block;
  padding: 10px 22px;
  background: #00569d;
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  text-decoration: none;
}
.btn:hover {
  background: #003e74;
  color: #fff;
  text-decoration: none;
}
.btn-outline {
  background: #fff;
  color: #00569d;
  border: 2px solid #00569d;
}
.btn-outline:hover {
  background: #eaf1f8;
}

/* === Responsive === */
@media (max-width: 860px) {
  .site-header .container {
    gap: 12px;
  }
  .main-nav {
    order: 3;
    flex: 1 1 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-top: 6px;
  }
  .main-nav a {
    font-size: 0.88rem;
    padding: 6px 10px;
  }
  .hero {
    padding: 40px 22px;
  }
  .hero h1 { font-size: 1.7rem; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }
  .categoria-content,
  .home-content {
    padding: 22px 18px;
  }
}
@media (max-width: 520px) {
  body { font-size: 15px; }
  .site-header .brand img { height: 44px; }
  .main-nav a { font-size: 0.82rem; }
  .stat-card { padding: 18px 14px; }
  .stat-card .num { font-size: 1.9rem; }
}
