/*
Theme Name: Salitre Osuna
Theme URI: https://farmaciasalitre.es
Author: Farmacia I+ Salitre
Description: Tema de la oficina de farmacia I+ Salitre, Plaza del Salitre 6, Osuna. Catálogo, mostrador y páginas legales. Compatible con el catálogo de productos.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: salitre-osuna
*/

:root {
  --ink: #1c1916;
  --muted: #6b645c;
  --line: #e4ddd2;
  --paper: #f7f4ef;
  --white: #ffffff;
  --azulejo: #1e3f66;
  --azulejo-deep: #16324f;
  --albero: #c4a15a;
  --clay: #a34b32;
  --clay-hover: #8b3d28;
  --pad: 20px;
  --max: 1080px;
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azulejo); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--clay); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }

.skip-link {
  position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100;
}
.skip-link:focus { left: 8px; }

.container, .woo-page {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}
@media (max-width: 620px) {
  .container, .woo-page { width: min(100% - 32px, var(--max)); }
}

.topbar {
  background: var(--azulejo-deep);
  color: #f3efe6;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  flex-wrap: wrap;
}
.topbar a { color: #f3efe6; text-decoration: none; }
.topbar-meta { display: flex; gap: 16px; flex-wrap: wrap; }

.site-header {
  background: rgba(247, 244, 239, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--azulejo); color: #fff;
  font-family: var(--serif); font-weight: 650;
}
.brand-text strong { display: block; font-size: 16px; letter-spacing: 0.01em; }
.brand-text small { color: var(--muted); font-size: 12px; }

.nav-primary ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.nav-primary a { color: var(--ink); text-decoration: none; font-size: 15px; }
.nav-primary a:hover { color: var(--clay); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 12px; }

.btn, .button, button.button, a.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 0; font-weight: 650; text-decoration: none; cursor: pointer;
  font-family: var(--sans);
}
.btn-clay, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt {
  background: var(--clay) !important; color: #fff !important;
}
.btn-clay:hover, .woocommerce a.button.alt:hover { background: var(--clay-hover) !important; color: #fff !important; }
.btn-line { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.cart-link { text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 650; }
.cart-count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px;
  border-radius: 999px; background: var(--azulejo); color: #fff; font-size: 12px; margin-left: 4px;
}

.hero {
  padding: 72px 0 48px;
}
.eyebrow { letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px; color: var(--clay); font-weight: 650; margin-bottom: 12px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 14ch; }
.hero p.lead { max-width: 58ch; color: var(--muted); font-size: 1.1rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.section { padding: 56px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
.card h3 { font-size: 1.25rem; }
.page-hero { padding: 48px 0 12px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.4em; font-size: 1.5rem; }
.legal-wrap { max-width: 760px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { border-bottom: 1px solid var(--line); text-align: left; padding: 10px 12px; font-size: 15px; }

.site-footer { background: var(--azulejo-deep); color: #efeae2; padding: 48px 0 20px; margin-top: 24px; }
.site-footer a { color: #efeae2; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer h3 { color: #fff; font-size: 1.05rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.legal-row { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 16px; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.legal-row ul { display: flex; gap: 14px; flex-wrap: wrap; }

.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 18px; display: none; box-shadow: 0 10px 30px rgba(28,25,22,.08);
  max-width: 720px; margin-inline: auto;
}
.cookie-bar.is-visible { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

.map-frame { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.map-frame iframe { width: 100%; height: 420px; border: 0; }

.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; background: #fff;
}

@media (max-width: 860px) {
  .grid-3, .footer-grid { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-flex; }
  .nav-primary { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 18px; }
  .nav-primary.is-open { display: block; }
  .nav-primary ul { flex-direction: column; gap: 10px; }
  .header-inner { position: relative; }
  .btn-hide-sm { display: none; }
}
