/* =========================================================================
   Farmacia Álvaro Jiménez — Lucena (Córdoba)
   Dirección artística : BOTICA ANDALUZA HISTÓRICA (desde 1904)
   -------------------------------------------------------------------------
   Ancrée sur la vraie photo d'intérieur du site : boiseries sculptées sombres,
   albarelos (pots de botica en céramique bleu-blanc) sur les étagères.
   - Archétype  : botica de bois + céramique andalouse
   - Palette    : caoba (bois) + añil azulejo (céramique) + verde hoja (logo)
   - Fonts      : Piazzolla (display serif) / Asap (body)
   - SIGNATURE  : CENEFA DE AZULEJOS — bande de carreaux andalous (SVG) en
                  séparateur de sections + cadre céramique des 7 catégories.
   Anti-footprint : AUCUNE classe CSS custom. On ne cible que des classes
   Bootstrap natives, des ids sémantiques et des pseudo-éléments.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Piazzolla:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Asap:wght@400;500;600;700&display=swap');

:root {
  /* --- Palette botica ---------------------------------------------------- */
  --bs-primary: #5a3222;        /* caoba — le bois des boiseries */
  --bs-primary-rgb: 90, 50, 34;
  --bs-secondary: #2d5da6;      /* añil — la céramique des albarelos */
  --bs-secondary-rgb: 45, 93, 166;
  --bs-success: #6da544;        /* verde hoja — la feuille du logo */
  --bs-success-rgb: 109, 165, 68;

  --bs-body-bg: #f7f0e3;        /* blanco cal */
  --bs-body-color: #3a2a20;
  --bs-emphasis-color: #2a1a12;
  --bs-border-color: #e2d5bf;

  --bs-body-font-family: 'Asap', system-ui, sans-serif;
  --bs-body-font-size: 1.03rem;
  --bs-body-line-height: 1.68;

  --bs-link-color: #2d5da6;
  --bs-link-color-rgb: 45, 93, 166;
  --bs-link-hover-color: #5a3222;

  /* Teintes de travail */
  --cal: #f7f0e3;
  --cal-2: #fdf9f0;
  --caoba: #5a3222;
  --caoba-dark: #33190f;
  --caoba-soft: #8a5b3c;
  --anil: #2d5da6;
  --anil-dark: #1e3f75;
  --anil-soft: #e6edf8;
  --hoja: #6da544;
  --oro: #c9873f;

  /* Ombres double-couche (chaudes, jamais de shadow-sm brut) */
  --lift-1: 0 1px 2px rgba(51, 25, 15, .10), 0 10px 24px -12px rgba(51, 25, 15, .30);
  --lift-2: 0 2px 4px rgba(51, 25, 15, .12), 0 22px 44px -20px rgba(51, 25, 15, .42);

  /* ---------------------------------------------------------------------- */
  /*  SIGNATURE : l'azulejo andalou, dessiné en SVG (motif 40×40)            */
  /*  étoile à 8 branches añil sur fond cal + diamants verts aux angles      */
  /* ---------------------------------------------------------------------- */
  --azulejo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' fill='%23fdf9f0'/%3E%3Cpath d='M20 7l3.2 6.6 7-2.8-2.8 7L34 21l-6.6 3.2 2.8 7-7-2.8L20 34l-3.2-6.6-7 2.8 2.8-7L6 21l6.6-3.2-2.8-7 7 2.8z' fill='%232d5da6'/%3E%3Ccircle cx='20' cy='20.5' r='3.4' fill='%23fdf9f0'/%3E%3Ccircle cx='20' cy='20.5' r='1.5' fill='%236da544'/%3E%3Cpath d='M0 0l4.5 4.5L0 9zM40 0l-4.5 4.5L40 9zM0 40l4.5-4.5L0 31zM40 40l-4.5-4.5L40 31z' fill='%236da544'/%3E%3Cpath d='M20 0l4 4-4 4-4-4zM20 40l4-4-4-4-4 4zM0 20l4 4 4-4-4-4zM40 20l-4 4-4-4 4-4z' fill='%23c9873f' opacity='.55'/%3E%3C/svg%3E");
}

/* ============================ BASE ======================================= */

body {
  font-family: var(--bs-body-font-family);
  color: var(--bs-body-color);
  background-color: var(--cal);
  /* Atmosphère : halos chauds (bois) + froid (céramique), jamais un aplat */
  background-image:
    radial-gradient(1100px 620px at 88% -8%, rgba(45, 93, 166, .10), transparent 60%),
    radial-gradient(900px 520px at 4% 4%, rgba(201, 135, 63, .12), transparent 62%),
    radial-gradient(800px 800px at 50% 118%, rgba(90, 50, 34, .08), transparent 60%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, .navbar-brand, .display-1, .display-4, .display-5, .display-6 {
  font-family: 'Piazzolla', Georgia, serif;
  font-weight: 700;
  letter-spacing: -.012em;
  color: var(--caoba-dark);
}

h1 { line-height: 1.08; }
h2 { line-height: 1.16; }

p { margin-bottom: 1rem; }

a { text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--caoba); }

::selection { background: var(--anil); color: #fff; }

:focus-visible {
  outline: 3px solid var(--anil);
  outline-offset: 3px;
  border-radius: 3px;
}

section { position: relative; }

/* ================= SIGNATURE : LA CENEFA DE AZULEJOS ===================== */
/* Bande de carreaux en séparateur. Posée en ::before sur les sections clés,
   et en bandeau autonome via #cenefa. Le carreau est le motif SVG ci-dessus. */

#cenefa,
#productos::before,
#la-farmacia::before,
#contacto::before {
  content: '';
  display: block;
  width: 100%;
  height: 40px;
  background-image: var(--azulejo);
  background-repeat: repeat-x;
  background-size: 40px 40px;
  box-shadow: inset 0 1px 0 rgba(51, 25, 15, .16), inset 0 -1px 0 rgba(51, 25, 15, .16);
}

#productos::before,
#la-farmacia::before,
#contacto::before {
  position: absolute;
  top: 0;
  left: 0;
}

#cenefa { height: 40px; }

/* Eyebrow de section : petit carreau + libellé en capitales espacées */
#kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: 'Asap', sans-serif;
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--anil);
  margin-bottom: .85rem;
}

#kicker::before {
  content: '';
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background-image: var(--azulejo);
  background-size: 18px 18px;
  border: 1px solid rgba(45, 93, 166, .35);
  transform: rotate(45deg);
}

/* ============================ BOUTONS ==================================== */

.btn {
  font-family: 'Asap', sans-serif;
  font-weight: 700;
  letter-spacing: .02em;
  border-radius: 2px;           /* céramique : arêtes nettes, pas de pilule */
  padding: .72rem 1.5rem;
  transition: transform .22s cubic-bezier(.34, 1.56, .64, 1), box-shadow .22s ease, background-color .22s ease;
  cursor: pointer;
}

.btn-lg { padding: .9rem 2rem; font-size: 1.03rem; }

.btn-primary {
  --bs-btn-bg: var(--caoba);
  --bs-btn-border-color: var(--caoba);
  --bs-btn-hover-bg: #46251a;
  --bs-btn-hover-border-color: #46251a;
  --bs-btn-active-bg: #331a12;
  --bs-btn-color: #fdf9f0;
  --bs-btn-hover-color: #fdf9f0;
  box-shadow: var(--lift-1);
}

.btn-secondary {
  --bs-btn-bg: var(--anil);
  --bs-btn-border-color: var(--anil);
  --bs-btn-hover-bg: var(--anil-dark);
  --bs-btn-hover-border-color: var(--anil-dark);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  box-shadow: var(--lift-1);
}

.btn-outline-primary {
  --bs-btn-color: var(--caoba);
  --bs-btn-border-color: rgba(90, 50, 34, .45);
  --bs-btn-hover-bg: var(--caoba);
  --bs-btn-hover-border-color: var(--caoba);
  --bs-btn-hover-color: #fdf9f0;
}

.btn-outline-light {
  --bs-btn-border-color: rgba(253, 249, 240, .5);
  --bs-btn-hover-bg: #fdf9f0;
  --bs-btn-hover-color: var(--caoba-dark);
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--lift-2); }
.btn:active { transform: translateY(0); }

/* ======================= TOPBAR + NAVBAR ================================= */

#topbar {
  background: var(--caoba-dark);
  color: rgba(253, 249, 240, .88);
  font-size: .84rem;
  letter-spacing: .02em;
  border-bottom: 3px solid var(--anil);
}

#topbar a { color: rgba(253, 249, 240, .88); }
#topbar a:hover { color: #fff; }
#topbar i { color: var(--oro); }

#topnav {
  background: rgba(253, 249, 240, .92);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--bs-border-color);
  box-shadow: 0 1px 0 rgba(51, 25, 15, .05);
}

.navbar-brand { display: flex; align-items: center; gap: .7rem; }

#brand-name {
  font-family: 'Piazzolla', serif;
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1.05;
  color: var(--caoba-dark);
}

#brand-sub {
  display: block;
  font-family: 'Asap', sans-serif;
  font-weight: 600;
  font-size: .62rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--anil);
}

#topnav .nav-link {
  font-family: 'Asap', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  color: var(--caoba-dark);
  position: relative;
  padding: .5rem .9rem;
}

#topnav .nav-link::after {
  content: '';
  position: absolute;
  left: .9rem;
  right: .9rem;
  bottom: .18rem;
  height: 3px;
  background-image: var(--azulejo);
  background-size: 12px 12px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}

#topnav .nav-link:hover::after { transform: scaleX(1); }
#topnav .nav-link:hover { color: var(--anil); }

/* ============================== HERO ===================================== */
/* Composition : bandeau bois + panneau cal encadré d'azulejos, sello posé.   */

#hero {
  background:
    linear-gradient(180deg, rgba(51, 25, 15, .92), rgba(90, 50, 34, .88)),
    url('/images/farmacia-02.png') center 30% / cover no-repeat;
  color: #fdf9f0;
  padding: 4.5rem 0 5.5rem;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--azulejo);
  background-size: 76px 76px;
  opacity: .07;
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  background-image: var(--azulejo);
  background-repeat: repeat-x;
  background-size: 40px 40px;
  box-shadow: inset 0 1px 0 rgba(51, 25, 15, .2);
}

#hero h1, #hero-title { color: #fdf9f0; }

#hero-title {
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  font-weight: 800;
  text-wrap: balance;
}

/* Le 1er vers du H1 (« Farmacia Álvaro Jiménez: ») en italique añil-clair */
#hero-title i {
  display: block;
  font-style: italic;
  font-weight: 600;
  color: #9dc0ee;
  font-size: .62em;
  letter-spacing: 0;
  margin-bottom: .35rem;
}

#hero-lead {
  color: rgba(253, 249, 240, .9);
  font-size: 1.06rem;
  max-width: 34ch;
}

#hero-lead b { font-weight: 600; color: #fff; }

#hero-addr {
  font-family: 'Asap', sans-serif;
  font-size: .92rem;
  color: rgba(253, 249, 240, .82);
}

#hero-addr i { color: var(--oro); }
#hero-addr a { color: rgba(253, 249, 240, .82); }
#hero-addr a:hover { color: #fff; }

/* Le sello (vrai tampon du site) — posé en médaillon incliné */
#sello {
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .45));
  transform: rotate(-7deg);
}

/* ============================ VALORES ==================================== */
/* Bandeau añil : les 3 icônes d'origine (calidad / servicio / confianza)     */

#valores {
  background: linear-gradient(180deg, var(--anil), var(--anil-dark));
  color: #fff;
  padding: 3rem 0;
}

#valores::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--azulejo);
  background-size: 64px 64px;
  opacity: .06;
  pointer-events: none;
}

#valores h2, #valores p { color: #fff; position: relative; }

#valores-title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
}

#valores-lead { color: rgba(255, 255, 255, .9); }

/* Les icônes d'origine sont BLANCHES : on les laisse sur un disque añil
   translucide cerclé de blanc — jamais sur un fond clair (invisibles). */
#valor-ico {
  width: 82px;
  height: 82px;
  object-fit: contain;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  padding: 16px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .07), var(--lift-1);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), background .3s ease;
}

.col:hover > #valor-ico { background: rgba(255, 255, 255, .2); }

.col:hover > #valor-ico, .col-6:hover > #valor-ico { transform: translateY(-4px) scale(1.04); }

#valor-text {
  font-size: .93rem;
  color: rgba(255, 255, 255, .9);
  position: relative;
}

/* ========================== NUESTROS PRODUCTOS =========================== */
/* Mosaïque : les 7 catégories en carreaux céramique encadrés d'azulejo.      */

#productos { padding: 5.5rem 0 5rem; }

#prod-title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: .04em;
}

#prod-lead { max-width: 22ch; font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
#prod-intro { max-width: 62ch; }

/* La tuile-carreau : cadre blanc + liseré añil, comme un azulejo posé */
#tile {
  display: block;
  position: relative;
  background: var(--cal-2);
  border: 6px solid #fdf9f0;
  outline: 1px solid rgba(45, 93, 166, .38);
  outline-offset: 4px;
  box-shadow: var(--lift-1);
  overflow: hidden;
  transition: transform .32s cubic-bezier(.22, 1, .36, 1), box-shadow .32s ease, outline-color .32s ease;
}

#tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--lift-2);
  outline-color: var(--anil);
}

#tile img {
  width: 100%;
  /* height:auto est INDISPENSABLE : les attributs width/height de next/image
     posent une hauteur explicite, et aspect-ratio est ignoré si height != auto. */
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform .55s cubic-bezier(.22, 1, .36, 1), filter .4s ease;
}

#tile:hover img { transform: scale(1.07); filter: saturate(1.08); }

/* Bandeau-légende : plaque de céramique añil en bas du carreau */
#tile h2, #tile h3 {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: .85rem .6rem;
  font-family: 'Asap', sans-serif;
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .16em;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(30, 63, 117, .0), rgba(30, 63, 117, .92) 42%);
  transition: background .32s ease;
}

#tile:hover h2, #tile:hover h3 { background: linear-gradient(180deg, rgba(30, 63, 117, .35), rgba(45, 93, 166, .97) 42%); }

/* ============================ LA FARMACIA ================================ */
/* La page « depuis 1904 » : colonne éditoriale + vrai intérieur en cadre.    */

#la-farmacia {
  padding: 5.5rem 0 5rem;
  background:
    linear-gradient(180deg, rgba(253, 249, 240, .8), rgba(247, 240, 227, .3));
}

#anio {
  display: block;   /* bloc : sinon le #kicker inline vient chevaucher le millésime */
  clear: both;
  font-family: 'Piazzolla', serif;
  font-weight: 800;
  font-style: italic;
  font-size: clamp(3.4rem, 9vw, 6.2rem);
  line-height: .9;
  color: var(--caoba);
  -webkit-text-stroke: 0;
  opacity: .95;
}

#anio small {
  display: block;
  font-family: 'Asap', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: .17em;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--anil);
  margin-top: .5rem;
}

#farmacia-title { font-size: clamp(1.6rem, 3vw, 2.35rem); }

#farmacia-text p { font-size: 1.05rem; }

#farmacia-frame {
  border: 10px solid #fdf9f0;
  box-shadow: var(--lift-2);
  outline: 1px solid rgba(90, 50, 34, .35);
  outline-offset: 7px;
}

#farmacia-frame img { display: block; width: 100%; height: auto; }

/* Le visuel d'origine farmacia-01.png (1080×440) comporte des zones
   transparentes à droite : on recadre sur la partie utile (à gauche). */
#la-farmacia #farmacia-frame img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: left center;
}

/* ===================== ENTÊTE DE PAGE (#page-head) ======================= */

#page-head {
  padding: 3.5rem 0 2rem;
  background: linear-gradient(180deg, rgba(45, 93, 166, .07), transparent);
  border-bottom: 1px solid var(--bs-border-color);
}

#page-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }

#page-head .breadcrumb { margin-bottom: 1rem; }
#page-head .breadcrumb a { color: var(--anil); }
#page-head .breadcrumb-item + .breadcrumb-item::before { color: var(--caoba-soft); }

.pagination { --bs-pagination-color: var(--caoba); --bs-pagination-active-bg: var(--anil); --bs-pagination-active-border-color: var(--anil); }
.page-link { border-radius: 2px !important; margin: 0 .15rem; }

/* ======================= BLOG (couche ajoutée) =========================== */

#blog { padding: 5rem 0; }

#art-card {
  background: var(--cal-2);
  border: 1px solid var(--bs-border-color);
  border-radius: 3px;
  box-shadow: var(--lift-1);
  overflow: hidden;
  height: 100%;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease, border-color .3s ease;
}

#art-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--lift-2);
  border-color: rgba(45, 93, 166, .45);
}

/* Filet d'azulejo en tête de carte article */
#art-card::before {
  content: '';
  display: block;
  height: 6px;
  background-image: var(--azulejo);
  background-size: 12px 12px;
}

#art-card .card-img-top { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
#art-card .card-title { font-size: 1.06rem; line-height: 1.3; }
#art-card .card-text { font-size: .93rem; color: #6a5748; }

.badge { border-radius: 2px; font-family: 'Asap', sans-serif; letter-spacing: .06em; font-weight: 700; }

#cat-chip {
  background: var(--anil-soft) !important;
  color: var(--anil-dark) !important;
  border: 1px solid rgba(45, 93, 166, .28);
}

/* ======================= SHOP (couche ajoutée) =========================== */

#shop-band {
  background: linear-gradient(135deg, var(--caoba-dark), var(--caoba));
  color: #fdf9f0;
  padding: 4.5rem 0;
  overflow: hidden;
}

#shop-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--azulejo);
  background-size: 88px 88px;
  opacity: .08;
  pointer-events: none;
}

/* Sur le bandeau caoba, l'eyebrow añil serait illisible : on passe à l'or. */
#shop-band #kicker { color: var(--oro); position: relative; }
#shop-band #kicker::before { border-color: rgba(201, 135, 63, .55); }

#shop-band h2, #shop-band h3 { color: #fdf9f0; position: relative; }
#shop-band p { color: rgba(253, 249, 240, .84); position: relative; }

#shop-cat {
  display: block;
  background: rgba(253, 249, 240, .07);
  border: 1px solid rgba(253, 249, 240, .18);
  border-radius: 3px;
  padding: 1.15rem 1rem;
  color: #fdf9f0;
  text-align: center;
  position: relative;
  transition: background .28s ease, transform .28s cubic-bezier(.34, 1.56, .64, 1), border-color .28s ease;
}

#shop-cat:hover {
  background: rgba(45, 93, 166, .3);
  border-color: rgba(157, 192, 238, .6);
  transform: translateY(-4px);
  color: #fff;
}

#shop-cat i { font-size: 1.5rem; color: var(--oro); display: block; margin-bottom: .45rem; }

#prod-card {
  background: var(--cal-2);
  border: 1px solid var(--bs-border-color);
  border-radius: 3px;
  box-shadow: var(--lift-1);
  height: 100%;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease;
}

#prod-card:hover { transform: translateY(-5px); box-shadow: var(--lift-2); }
#prod-card img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; padding: 1rem; }

#price { font-family: 'Piazzolla', serif; font-weight: 800; font-size: 1.35rem; color: var(--caoba); }
#price-old { text-decoration: line-through; color: #9c8a7a; font-size: .95rem; }

/* ============================= CONTACTO ================================== */

#contacto { padding: 5.5rem 0 5rem; }

#contacto-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }

/* Les coordonnées en plaques de céramique */
#coord {
  background: var(--cal-2);
  border: 1px solid var(--bs-border-color);
  border-left: 5px solid var(--anil);
  border-radius: 3px;
  padding: 1.4rem 1.5rem;
  box-shadow: var(--lift-1);
  transition: transform .28s ease, box-shadow .28s ease, border-left-color .28s ease;
}

#coord:hover { transform: translateY(-3px); box-shadow: var(--lift-2); border-left-color: var(--oro); }
#coord h2 { font-size: 1.3rem; margin: 0; }
#coord a { color: var(--caoba-dark); }
#coord a:hover { color: var(--anil); }
#coord i { color: var(--anil); font-size: 1.35rem; }

#mapa {
  border: 8px solid #fdf9f0;
  box-shadow: var(--lift-2);
  outline: 1px solid rgba(45, 93, 166, .35);
  outline-offset: 5px;
  filter: saturate(.85);
}

/* ============================== FOOTER =================================== */

#site-footer {
  background: var(--caoba-dark);
  color: rgba(253, 249, 240, .74);
  padding-top: 3.5rem;
  position: relative;
}

#site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background-image: var(--azulejo);
  background-repeat: repeat-x;
  background-size: 40px 40px;
}

#site-footer { padding-top: 5.5rem; }

#site-footer h5 {
  color: #fdf9f0;
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-family: 'Asap', sans-serif;
  font-weight: 700;
  margin-bottom: 1.1rem;
}

#site-footer a { color: rgba(253, 249, 240, .74); }
#site-footer a:hover { color: var(--oro); }
#site-footer i { color: var(--oro); }

#site-footer hr { border-color: rgba(253, 249, 240, .16); opacity: 1; }

#footer-copy { font-size: .82rem; color: rgba(253, 249, 240, .55); }

#footer-logo { filter: brightness(0) invert(1); opacity: .9; }

#footer-inst { background: rgba(253, 249, 240, .95); border-radius: 3px; padding: .5rem .8rem; }

/* ============================ SEO (order-last) =========================== */
/* Le bloc SEO est HAUT dans le source, affiché EN BAS via .order-last.       */

#seo {
  background: rgba(253, 249, 240, .6);
  border-top: 1px solid var(--bs-border-color);
  padding: 2.5rem 0;
  font-size: .88rem;
  color: #6a5748;
}

#seo h2 { font-size: 1rem; color: var(--caoba); margin-bottom: .6rem; }

/* ============================ ARTICLE ==================================== */

#article-body { font-size: 1.06rem; max-width: 72ch; }
#article-body h2 { font-size: 1.5rem; margin: 2.2rem 0 .9rem; padding-left: .8rem; border-left: 5px solid var(--anil); }
#article-body h3 { font-size: 1.2rem; margin: 1.6rem 0 .7rem; color: var(--caoba); }
#article-body img { max-width: 100%; height: auto; border: 6px solid #fdf9f0; box-shadow: var(--lift-1); }
#article-body table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; }
#article-body th { background: var(--anil); color: #fff; font-family: 'Asap', sans-serif; }
#article-body th, #article-body td { border: 1px solid var(--bs-border-color); padding: .6rem .8rem; }
#article-body tbody tr:nth-child(odd) { background: rgba(253, 249, 240, .7); }
#article-body blockquote {
  border-left: 5px solid var(--oro);
  background: var(--cal-2);
  padding: 1rem 1.2rem;
  font-style: italic;
  margin: 1.4rem 0;
}

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

@media (max-width: 991.98px) {
  #hero { padding: 3.5rem 0 4.5rem; }
  #topnav .nav-link::after { display: none; }
  #sello { display: none; }
}

@media (max-width: 575.98px) {
  #productos, #la-farmacia, #contacto { padding: 3.5rem 0 3rem; }
  #anio { font-size: 3.2rem; }
  #tile h2, #tile h3 { font-size: .74rem; letter-spacing: .1em; }
}

/* ============================ A11Y / MOTION ============================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  #tile:hover, #art-card:hover, #prod-card:hover, .btn:hover, #coord:hover { transform: none; }
}
