/* ============================================================
   STYLES — llenoporfavor (rediseno 2026)
   Tokens: ver tokens.css (cargado antes que este fichero).
   Brand: #c97a2b (naranja Ocre) | Display: Inter | Body: Inter
   ============================================================ */

/* Base reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; line-height: 1.5; tab-size: 4; scroll-padding-top: 140px; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; }

body {
  font-family: var(--f-body);
  background-color: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
/* Warm top gradient + dotted texture, applied site-wide (the home hero look). */
body::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 480px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(201,122,43,.10) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(180deg, var(--brand-softer) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 50%, transparent 100%);
}

/* ===================== FONT FAMILIES ===================== */
.font-sans     { font-family: var(--f-body); }
.font-mono     { font-family: var(--f-mono); }
.font-body     { font-family: var(--f-body); }
.font-headline { font-family: var(--f-display); font-optical-sizing: auto; font-variation-settings: 'SOFT' 50, 'WONK' 0; letter-spacing: -.01em; }
.font-display  { font-family: var(--f-display); font-optical-sizing: auto; font-variation-settings: 'SOFT' 50, 'WONK' 0; letter-spacing: -.01em; }

/* ===================== COLORS ===================== */
/* Backgrounds */
.bg-white                    { background-color: #fff; }
.bg-gray-50                  { background-color: #f9fafb; }
.bg-gray-100                 { background-color: #f3f4f6; }
.bg-gray-900                 { background-color: var(--ink); }
.bg-green-50                 { background-color: var(--green-soft); }
.bg-green-50\/50             { background-color: rgba(236,253,245,.5); }
.bg-green-600                { background-color: var(--green); }
.bg-green-700                { background-color: var(--green-deep); }

.bg-surface                  { background-color: var(--bg); }
.bg-surface-container-lowest { background-color: var(--bg); }
.bg-surface-container-low    { background-color: var(--bg-2); }
.bg-surface-container        { background-color: var(--bg-3); }
.bg-surface-container-high   { background-color: var(--brand-soft); }
.bg-surface-container-highest{ background-color: var(--brand-tint); }
.bg-primary                  { background-color: var(--brand); }
.bg-primary-container        { background-color: var(--brand-deep); }
.bg-secondary                { background-color: var(--brand-deep); }
.bg-secondary-container      { background-color: var(--brand-tint); }
.bg-ink                      { background-color: var(--ink); }
.bg-brand                    { background-color: var(--brand); }
.bg-brand-soft               { background-color: var(--brand-soft); }
.bg-brand-softer             { background-color: var(--brand-softer); }
.bg-brand-tint               { background-color: var(--brand-tint); }

/* Text */
.text-gray-300       { color: #d1d5db; }
.text-gray-400       { color: #9ca3af; }
.text-gray-500       { color: var(--muted-2); }
.text-gray-600       { color: var(--muted); }
.text-gray-700       { color: var(--ink-2); }
.text-gray-900       { color: var(--ink); }
.text-green-700      { color: var(--green-deep); }
.text-green-800      { color: var(--green-deep); }
.text-white          { color: #fff; }

.text-on-surface         { color: var(--ink); }
.text-on-surface-variant { color: var(--muted); }
.text-primary            { color: var(--brand); }
.text-secondary          { color: var(--brand-deep); }
.text-on-primary         { color: #fff; }
.text-on-secondary       { color: #fff; }
.text-on-secondary-container { color: var(--brand-deep); }
.text-outline            { color: var(--muted-2); }
.text-outline-variant    { color: var(--line); }
.text-ink                { color: var(--ink); }
.text-ink-2              { color: var(--ink-2); }
.text-muted              { color: var(--muted); }
.text-muted-2            { color: var(--muted-2); }
.text-brand              { color: var(--brand); }
.text-brand-deep         { color: var(--brand-deep); }

/* Borders */
.border-gray-100      { border-color: var(--line-2); }
.border-gray-200      { border-color: var(--line); }
.border-gray-300      { border-color: #d1d5db; }
.border-gray-800      { border-color: var(--ink-2); }
.border-outline-variant { border-color: var(--line); }
.border-outline       { border-color: var(--muted-2); }
.border-primary       { border-color: var(--brand); }
.border-secondary     { border-color: var(--brand-deep); }
.border-secondary-container { border-color: var(--brand-tint); }
.border-surface-container   { border-color: var(--bg-3); }
.border-line          { border-color: var(--line); }
.border-line-2        { border-color: var(--line-2); }
.border-brand         { border-color: var(--brand); }
.border-brand-tint    { border-color: var(--brand-tint); }
.border-transparent   { border-color: transparent; }

/* ===================== TYPOGRAPHY ===================== */
.text-xs  { font-size: .75rem;  line-height: 1rem; }
.text-sm  { font-size: .875rem; line-height: 1.25rem; }
.text-base{ font-size: 1rem;    line-height: 1.5rem; }
.text-lg  { font-size: 1.125rem;line-height: 1.75rem; }
.text-xl  { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem;  line-height: 2rem; }
.text-3xl { font-size: 1.875rem;line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem;    line-height: 1.05; }
.text-6xl { font-size: 3.75rem; line-height: 1.02; }
.text-7xl { font-size: 4.5rem;  line-height: 1; }

.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.font-extrabold{ font-weight: 800; }
.font-black    { font-weight: 900; }

.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.uppercase    { text-transform: uppercase; }
.tracking-tight   { letter-spacing: -.025em; }
.tracking-tighter { letter-spacing: -.05em; }
.tracking-wider   { letter-spacing: .05em; }
.tracking-widest  { letter-spacing: .1em; }
.leading-relaxed  { line-height: 1.625; }
.leading-tight    { line-height: 1.25; }
.leading-none     { line-height: 1; }
.whitespace-nowrap{ white-space: nowrap; }
.antialiased      { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.line-clamp-2     { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.italic           { font-style: italic; }
.underline        { text-decoration: underline; }

/* Acento coloreado en encabezados: SIEMPRE sin cursiva (peso heredado, color var(--brand)).
   Cubre todas las páginas presentes y futuras, incluso las que llevan un
   style="font-style:italic" inline en el <em> (por eso !important). */
:is(h1, h2, h3, h4, h5, h6) em { font-style: normal !important; }

/* ===================== SPACING ===================== */
.p-2  { padding: .5rem;  } .p-3  { padding: .75rem; } .p-4  { padding: 1rem; }
.p-5  { padding: 1.25rem;} .p-6  { padding: 1.5rem; } .p-8  { padding: 2rem; }

.px-2 { padding-left: .5rem;  padding-right: .5rem;  }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.px-4 { padding-left: 1rem;   padding-right: 1rem;   }
.px-5 { padding-left: 1.25rem;padding-right: 1.25rem;}
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem;   padding-right: 2rem;   }
.px-10{ padding-left: 2.5rem; padding-right: 2.5rem; }

.py-1   { padding-top: .25rem; padding-bottom: .25rem; }
.py-1\.5{ padding-top: .375rem;padding-bottom: .375rem;}
.py-2   { padding-top: .5rem;  padding-bottom: .5rem;  }
.py-2\.5{ padding-top: .625rem;padding-bottom: .625rem;}
.py-3   { padding-top: .75rem; padding-bottom: .75rem; }
.py-4   { padding-top: 1rem;   padding-bottom: 1rem;   }
.py-6   { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8   { padding-top: 2rem;   padding-bottom: 2rem;   }
.py-10  { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12  { padding-top: 3rem;   padding-bottom: 3rem;   }
.py-16  { padding-top: 4rem;   padding-bottom: 4rem;   }
.py-20  { padding-top: 5rem;   padding-bottom: 5rem;   }
.py-24  { padding-top: 6rem;   padding-bottom: 6rem;   }

.pt-0  { padding-top: 0;      } .pt-4  { padding-top: 1rem;  }
.pt-6  { padding-top: 1.5rem; } .pt-8  { padding-top: 2rem;  }
.pt-24 { padding-top: 6rem;   } .pt-28 { padding-top: 7rem;  }
.pb-4  { padding-bottom: 1rem;} .pb-8  { padding-bottom: 2rem;}
.pb-12 { padding-bottom: 3rem;} .pb-20 { padding-bottom: 5rem;}
.pr-4  { padding-right: 1rem; }

.mb-1 { margin-bottom: .25rem; } .mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; } .mb-4 { margin-bottom: 1rem;  }
.mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem;  }
.mb-10{ margin-bottom: 2.5rem; } .mb-12{ margin-bottom: 3rem;  }
.mb-16{ margin-bottom: 4rem;   } .mb-24{ margin-bottom: 6rem;  }

.mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; } .mt-4 { margin-top: 1rem;  }
.mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem;  }
.mt-12{ margin-top: 3rem;   } .mt-16{ margin-top: 4rem;  }
.mt-20{ margin-top: 5rem;   } .mt-auto { margin-top: auto; }

.mx-1    { margin-left: .25rem; margin-right: .25rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mr-1 { margin-right: .25rem; } .mr-2 { margin-right: .5rem; }
.mr-3 { margin-right: .75rem; }
.ml-1 { margin-left: .25rem; } .ml-2 { margin-left: .5rem; }

.gap-1   { gap: .25rem; } .gap-1\.5 { gap: .375rem; } .gap-2 { gap: .5rem; }
.gap-3   { gap: .75rem; } .gap-4    { gap: 1rem;    } .gap-5 { gap: 1.25rem; }
.gap-6   { gap: 1.5rem; } .gap-8    { gap: 2rem;    }
.gap-10  { gap: 2.5rem; } .gap-12   { gap: 3rem;    }

/* ===================== LAYOUT ===================== */
.flex     { display: flex;   } .grid   { display: grid;  }
.block    { display: block;  } .inline { display: inline;}
.inline-flex { display: inline-flex; }
.inline-block { display: inline-block; }
.hidden   { display: none;   }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap{ flex-wrap: wrap; }
.flex-1   { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.shrink-0      { flex-shrink: 0; }

.items-start  { align-items: flex-start; }
.items-center { align-items: center; }
.items-end    { align-items: flex-end; }
.justify-start   { justify-content: flex-start; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.self-start { align-self: flex-start; }

.w-full { width: 100%; }
.w-6    { width: 1.5rem; } .w-8    { width: 2rem;    }
.w-10   { width: 2.5rem; } .w-12   { width: 3rem;    }
.w-16   { width: 4rem;   } .w-28   { width: 7rem;    }
.w-32   { width: 8rem;   } .w-1\/2 { width: 50%;     }
.w-1\/3 { width: 33.333333%; }

.h-6  { height: 1.5rem; } .h-8  { height: 2rem;  }
.h-10 { height: 2.5rem; } .h-12 { height: 3rem;  }
.h-16 { height: 4rem;   } .h-48 { height: 12rem; }
.h-64 { height: 16rem;  }
.min-h-screen { min-height: 100vh; }

.max-w-xs  { max-width: 20rem; }
.max-w-xl  { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-7xl { max-width: 80rem; }

/* Grid */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.col-span-1  { grid-column: span 1 / span 1; }
.col-span-2  { grid-column: span 2 / span 2; }
.col-span-3  { grid-column: span 3 / span 3; }

/* Space */
.space-x-8   > * + * { margin-left: 2rem;   }
.space-y-1   > * + * { margin-top: .25rem;  }
.space-y-1\.5> * + * { margin-top: .375rem; }
.space-y-2   > * + * { margin-top: .5rem;   }
.space-y-3   > * + * { margin-top: .75rem;  }
.space-y-4   > * + * { margin-top: 1rem;    }
.space-y-6   > * + * { margin-top: 1.5rem;  }
.space-y-8   > * + * { margin-top: 2rem;    }

/* ===================== BORDERS ===================== */
.border    { border-width: 1px; border-style: solid; border-color: var(--line); }
.border-2  { border-width: 2px; border-style: solid; border-color: var(--line); }
.border-b  { border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: var(--line); }
.border-t  { border-top-width: 1px;    border-top-style: solid;    border-top-color: var(--line); }
.border-l  { border-left-width: 1px;   border-left-style: solid;   border-left-color: var(--line); }
.border-none { border: none; }

.rounded    { border-radius: .25rem; }
.rounded-md { border-radius: var(--r-md); }
.rounded-lg { border-radius: var(--r-md); }
.rounded-xl { border-radius: var(--r-lg); }
.rounded-2xl{ border-radius: var(--r-xl); }
.rounded-3xl{ border-radius: 28px; }
.rounded-full{ border-radius: var(--r-pill); }

/* ===================== EFFECTS ===================== */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-lg); }
.shadow-brand { box-shadow: var(--shadow-brand); }

.backdrop-blur-sm { backdrop-filter: blur(4px);  -webkit-backdrop-filter: blur(4px);  }
.backdrop-blur-xl { backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); }

.overflow-hidden   { overflow: hidden; }
.overflow-x-auto   { overflow-x: auto; }
.overflow-y-auto   { overflow-y: auto; }
.overflow-x-hidden { overflow-x: hidden; }

.opacity-0   { opacity: 0;   }
.opacity-50  { opacity: .5;  }
.opacity-80  { opacity: .8;  }
.opacity-90  { opacity: .9;  }

/* ===================== POSITION ===================== */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed    { position: fixed;    }
.sticky   { position: sticky;   }
.inset-0  { inset: 0;           }
.top-0    { top: 0;    }
.top-2    { top: .5rem;}
.top-4    { top: 1rem; }
.left-4   { left: 1rem;}
.right-2  { right: .5rem;}
.right-4  { right: 1rem;}
.bottom-4 { bottom: 1rem;}
.z-10     { z-index: 10; }
.z-40     { z-index: 40; }
.z-50     { z-index: 50; }
.-z-10    { z-index: -10; }

/* ===================== OBJECT ===================== */
.object-cover   { object-fit: cover;   }
.object-contain { object-fit: contain; }

/* ===================== CURSOR ===================== */
.cursor-pointer { cursor: pointer; }

/* ===================== TRANSFORM ===================== */
.translate-x-1 { transform: translateX(.25rem); }
.scale-95      { transform: scale(.95); }
.scale-105     { transform: scale(1.05); }

/* ===================== TRANSITIONS ===================== */
.transition         { transition: all .15s; }
.transition-all     { transition: all .3s; }
.transition-colors  { transition: color .15s, background-color .15s, border-color .15s; }
.transition-transform { transition: transform .3s; }
.transition-opacity   { transition: opacity .3s; }
.transition-shadow    { transition: box-shadow .3s; }
.duration-300 { transition-duration: .3s; }
.duration-500 { transition-duration: .5s; }
.duration-700 { transition-duration: .7s; }

/* ===================== LINKS ===================== */
a { transition: color .15s; }
a:hover { color: var(--brand); }

/* ===================== HOVER STATES ===================== */
.hover\:underline:hover        { text-decoration: underline; }
.hover\:text-green-700:hover   { color: var(--green-deep); }
.hover\:text-green-800:hover   { color: var(--green-deep); }
.hover\:text-green-400:hover   { color: var(--green); }
.hover\:text-secondary:hover   { color: var(--brand-deep); }
.hover\:text-primary:hover     { color: var(--brand); }
.hover\:text-brand:hover       { color: var(--brand); }
.hover\:text-ink:hover         { color: var(--ink); }
.hover\:bg-green-50\/50:hover  { background-color: rgba(236,253,245,.5); }
.hover\:bg-green-50:hover      { background-color: var(--green-soft); }
.hover\:bg-green-100:hover     { background-color: #d1fae5; }
.hover\:bg-green-700:hover     { background-color: var(--green-deep); }
.hover\:bg-gray-50:hover       { background-color: var(--bg-2); }
.hover\:bg-surface-container-lowest:hover { background-color: var(--bg); }
.hover\:bg-surface-container-high:hover   { background-color: var(--brand-soft);   }
.hover\:bg-secondary:hover     { background-color: var(--brand-deep); }
.hover\:bg-primary:hover       { background-color: var(--brand); }
.hover\:bg-brand-soft:hover    { background-color: var(--brand-soft); }
.hover\:border-green-300:hover { border-color: #6ee7b7; }
.hover\:border-secondary-container:hover { border-color: var(--brand-tint); }
.hover\:border-brand:hover     { border-color: var(--brand); }
.hover\:shadow-md:hover  { box-shadow: var(--shadow-md); }
.hover\:shadow-lg:hover  { box-shadow: var(--shadow-lg); }
.hover\:shadow-xl:hover  { box-shadow: var(--shadow-lg); }
.hover\:shadow-brand:hover { box-shadow: var(--shadow-brand); }
.hover\:opacity-90:hover { opacity: .9; }
.hover\:scale-105:hover  { transform: scale(1.05); }
.hover\:text-on-secondary:hover { color: #fff; }

/* Active */
.active\:scale-95:active { transform: scale(.95); }

/* Group hover */
.group { position: relative; }
.group:hover .group-hover\:scale-105            { transform: scale(1.05); }
.group:hover .group-hover\:shadow-md            { box-shadow: var(--shadow-md); }
.group:hover .group-hover\:shadow-xl            { box-shadow: var(--shadow-lg); }
.group:hover .group-hover\:opacity-100          { opacity: 1; }
.group:hover .group-hover\:border-secondary-container { border-color: var(--brand-tint); }
.group:hover .group-hover\:bg-secondary-container     { background-color: var(--brand-tint); }
.group:hover .group-hover\:text-on-secondary-container{ color: var(--brand-deep); }
.group:hover .group-hover\:translate-x-1        { transform: translateX(.25rem); }
.group:hover .group-hover\:text-secondary        { color: var(--brand-deep); }
.group:hover .group-hover\:text-on-secondary     { color: #fff; }
.group:hover .group-hover\:bg-secondary          { background-color: var(--brand-deep); }
.group:hover .group-hover\:text-brand            { color: var(--brand); }

/* ===================== COMPONENTS ===================== */

/* Site header (sticky con backdrop blur lavanda) */
.site-header {
  position: sticky; top: 0; z-index: 1100;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  max-width: var(--container-max); margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; gap: 18px;
  height: 64px;
}
.brand-mark {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0; text-decoration: none;
}
.brand-mark-icon {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(201,122,43,.28);
  color: #fff;
}
.brand-mark-text {
  font-family: var(--f-display);
  font-weight: 700; font-size: 20px;
  letter-spacing: -.02em;
  color: var(--ink);
}

.site-nav { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.site-nav a {
  padding: 8px 11px; font-size: 14px; font-weight: 500;
  color: var(--ink-2); border-radius: 8px;
  white-space: nowrap;
  transition: all .15s;
}
.site-nav a:hover { background: var(--brand-soft); color: var(--brand); }
.site-nav a.active { color: var(--brand); background: var(--brand-soft); }

.btn-pill-ink {
  padding: 9px 18px;
  background: var(--brand); color: #fff;
  border: none; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  flex-shrink: 0; text-decoration: none;
  transition: opacity .15s;
}
.btn-pill-ink:hover { opacity: .9; color: #fff; }

.btn-pill-brand {
  padding: 12px 24px;
  background: var(--brand); color: #fff;
  border: none; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-brand);
  transition: transform .15s, box-shadow .15s;
}
.btn-pill-brand:hover { transform: translateY(-1px); color: #fff; box-shadow: 0 12px 32px rgba(201,122,43,.32); }

.btn-pill-outline {
  padding: 11px 22px;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .15s;
}
.btn-pill-outline:hover { border-color: var(--brand); color: var(--brand); }

/* Glass nav legacy */
.glass-nav {
  background-color: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  box-shadow: var(--shadow-md);
}

/* Tonal card (sin bordes, elevación por color de fondo) */
.card-tonal {
  background-color: var(--bg);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s, transform .3s;
}
.card-tonal:hover { box-shadow: var(--shadow-md); }

/* Card outlined (con borde sutil) */
.card-outlined {
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .15s, box-shadow .15s;
}
.card-outlined:hover { border-color: var(--brand-tint); box-shadow: var(--shadow-sm); }

/* Badge pill */
.badge {
  display: inline-flex; align-items: center;
  padding: .25rem .75rem;
  border-radius: 9999px;
  font-size: .75rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
}
.badge-brand { background: var(--brand-tint); color: var(--brand-deep); }
.badge-green { background: var(--green-soft); color: var(--green-deep); }
.badge-red   { background: var(--red-soft); color: var(--red); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-ink   { background: var(--ink); color: #fff; }

/* Section divider */
.section-divider { height: 1px; background-color: var(--line); }

/* Full-bleed utility */
.full-bleed {
  margin-left: -1rem;
  margin-right: -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ===================== HERO HOME ===================== */
.hero-home {
  position: relative;
  padding: 80px 0 64px;
  /* warm gradient + dots now provided globally by body::before */
}
.hero-home-inner { position: relative; max-width: 920px; margin: 0 auto; padding: 0 24px; text-align: center; }

.hero-headline {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -.025em;
  color: var(--ink);
  margin: 0 0 24px;
}
.hero-headline em { font-style: normal; color: var(--brand); }

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.55;
}

/* Search pill (hero) */
.search-pill {
  display: flex; align-items: center;
  background: #fff;
  border: 1.5px solid rgba(201,122,43,.35);
  border-radius: 999px;
  padding: 8px;
  max-width: 760px; margin: 0 auto;
  box-shadow: 0 2px 14px rgba(201,122,43,.08), var(--shadow-md);
  transition: box-shadow .15s, border-color .15s;
}
.search-pill:focus-within { border-color: var(--brand); box-shadow: var(--shadow-brand); }
.search-pill input {
  flex: 1; border: none; outline: none; background: transparent;
  padding: 16px 24px; font-size: 16px; color: var(--ink);
}
.search-pill input::placeholder { color: var(--muted-2); }
.search-pill button {
  padding: 14px 30px; font-size: 15px; font-weight: 600;
  background: var(--brand); color: #fff; border: none;
  border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: opacity .15s;
}
.search-pill button:hover { opacity: .9; }

/* Hero / search-pill: ajustes móvil */
@media (max-width: 640px) {
  .hero-home { padding: 56px 0 40px; }
  .hero-sub { font-size: 16px; margin: 0 auto 28px; }
  .search-pill { padding: 6px; }
  .search-pill input { padding: 12px 16px; font-size: 15px; }
  .search-pill button { padding: 12px 18px; font-size: 14px; }
}

/* ===================== AVERAGES STRIP (dark band) ===================== */
.averages-strip {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 28px 32px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px;
  position: relative; overflow: hidden;
}
.averages-strip::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}
.averages-strip-item { position: relative; display: flex; flex-direction: column; gap: 4px; }
.averages-strip-label {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.6);
}
.averages-strip-value {
  font-family: var(--f-body);
  font-size: 26px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.averages-strip-meta { font-size: 11px; color: rgba(255,255,255,.5); }

/* ===================== STATION CARD (listing) ===================== */
.station-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.station-card:hover {
  border-color: var(--brand-tint);
  box-shadow: var(--shadow-md);
}
.station-card-body { min-width: 0; }
.station-card-title {
  font-family: var(--f-display);
  font-weight: 600; font-size: 19px;
  letter-spacing: -.015em; color: var(--ink);
  margin: 0 0 4px;
}
.station-card-meta { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.station-card-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  background: var(--bg-3); color: var(--ink-2);
}
.chip-green { background: var(--green-soft); color: var(--green-deep); }
.chip-brand { background: var(--brand-soft); color: var(--brand-deep); }
.chip-amber { background: var(--amber-soft); color: var(--amber); }

/* Status pills — small uppercase chips for hero/card status badges */
.chip-status {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--ink-2);
  border: 1px solid var(--line);
  line-height: 1.3;
}
.chip-status-brand { background: var(--brand-soft); color: var(--brand-deep); border-color: transparent; }
.chip-status-green { background: var(--green-soft); color: var(--green-deep); border-color: transparent; }
.chip-status-amber { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.chip-status-red   { background: var(--red-soft); color: var(--red); border-color: transparent; }
.chip-status-ink   { background: var(--ink); color: #fff; border-color: transparent; }

.station-card-price {
  text-align: right; font-family: var(--f-mono);
  display: flex; flex-direction: column; gap: 2px;
}
.station-card-price-value {
  font-size: 26px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  color: var(--ink);
}
.station-card-price-value.is-low { color: var(--green-deep); }
.station-card-price-value.is-high { color: var(--red); }
.station-card-price-meta { font-size: 11px; color: var(--muted); font-family: var(--f-body); }

/* ===================== PRICE TILE (reusable) =====================
   Tile compacto: label uppercase + valor mono grande + delta opcional.
   Tonos: default / low (verde) / high (rojo) / brand. */
.price-tile {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 6px;
  min-width: 0;
}
.price-tile-label {
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.price-tile-value {
  font-family: var(--f-mono);
  font-weight: 700; font-size: 22px; line-height: 1;
  letter-spacing: -.02em; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.price-tile-delta {
  font-size: 11px; color: var(--muted); font-family: var(--f-body);
  font-weight: 500;
}
.price-tile.is-low  { background: var(--green-soft); border-color: transparent; }
.price-tile.is-low  .price-tile-value { color: var(--green-deep); }
.price-tile.is-low  .price-tile-delta { color: var(--green-deep); }
.price-tile.is-high { background: var(--red-soft); border-color: transparent; }
.price-tile.is-high .price-tile-value { color: var(--red); }
.price-tile.is-high .price-tile-delta { color: var(--red); }
.price-tile.is-brand { background: var(--brand-soft); border-color: transparent; }
.price-tile.is-brand .price-tile-value { color: var(--brand-deep); }
.price-tile.is-brand .price-tile-delta { color: var(--brand); }

/* ===================== STATION CARD VISUAL (3-col grid) =====================
   Variante en formato card vertical para grids 3-col en home/marca/calculadora.
   Distinta del .station-card horizontal usado en listings de municipio. */
.station-card-v {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  position: relative;
}
.station-card-v:hover {
  border-color: var(--brand-tint);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.station-card-v-rank {
  position: absolute; top: 12px; right: 14px;
  font-family: var(--f-display);
  font-weight: 600; font-size: 28px; letter-spacing: -.03em;
  color: var(--brand); line-height: 1;
}
.station-card-v-head {
  display: flex; align-items: center; gap: 12px;
  padding-right: 36px; /* hueco para el rank */
}
.station-card-v-brand {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
  font-family: var(--f-display); font-weight: 700; font-size: 14px;
  letter-spacing: -.01em; color: #fff;
  background: var(--brand);
}
.station-card-v-brand img { width: 32px; height: 32px; object-fit: contain; }
.station-card-v-name {
  font-family: var(--f-display);
  font-weight: 600; font-size: 15px;
  letter-spacing: -.01em; color: var(--ink);
  line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.station-card-v-meta {
  font-size: 11px; color: var(--muted); margin-top: 2px;
}
.station-card-v-prices {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.station-card-v-foot {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px;
}

/* ===================== GALERÍA DE FOTOS (ficha, carrusel scroll-snap) ===================== */
.gas-gallery {
  position: relative;
  margin: 0 0 24px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.gas-gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gas-gallery-track::-webkit-scrollbar { display: none; }
.gas-gallery-img {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  scroll-snap-align: center;
  background: var(--bg-2);
}
.gas-gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 9999px; border: none;
  background: rgba(255,255,255,.9); color: var(--ink);
  font-size: 22px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: background .15s;
  z-index: 1;
}
.gas-gallery-nav:hover { background: #fff; }
.gas-gallery-nav.prev { left: 10px; }
.gas-gallery-nav.next { right: 10px; }
.gas-gallery-count {
  position: absolute; bottom: 10px; right: 12px;
  background: rgba(15,23,42,.72); color: #fff;
  font-size: 12px; padding: 3px 9px; border-radius: 9999px;
  font-family: var(--f-mono);
}

/* ===================== AUDIT 2026-07: contraste AA + chips de tendencia ===================== */
/* Naranja oscuro en microcopy pequeño sobre crema (eyebrow 3.2:1 -> ~5.4:1) */
.eyebrow { color: var(--brand-deep); }
/* Precio del podio en tarjetas claras (fallaba 2.62:1) */
.podium-card-2 .podium-price, .podium-card-3 .podium-price { color: var(--brand-deep); }
/* Chip de tendencia vs ayer (provincia/combustible) */
.trend-chip {
  display: inline-block; font-weight: 700; font-size: 11px;
  padding: 2px 9px; border-radius: 9999px; letter-spacing: .02em;
  vertical-align: 1px; text-transform: none;
}
.trend-chip.down { background: var(--green-soft); color: var(--green-deep); }
.trend-chip.up { background: var(--red-soft); color: var(--red); }
/* Tendencia en la franja oscura de la home (tonos claros para fondo ink) */
.averages-strip-meta .strip-trend { font-weight: 700; margin-left: 6px; }
.averages-strip-meta .strip-trend.down { color: #8fe3b0; }
.averages-strip-meta .strip-trend.up { color: #ff9d9d; }

/* ===================== EYEBROW ===================== */
.eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand);
  font-family: var(--f-body);
}

/* ===================== TYPOGRAPHIC UTILS ===================== */
.mono   { font-family: var(--f-mono); }
.tnum   { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.serif  { font-family: var(--f-display); font-optical-sizing: auto; letter-spacing: -.01em; }

/* ===================== SECTION HEAD ===================== */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 28px; flex-wrap: wrap;
}
.section-head > div { min-width: 0; }
.section-head h2,
.section-title {
  font-family: var(--f-display);
  font-weight: 600; font-size: 32px;
  letter-spacing: -.02em; line-height: 1.05;
  color: var(--ink); margin: 0;
  font-optical-sizing: auto;
}
.section-head h2 em,
.section-title em { font-style: normal; color: var(--brand); }
.section-head .eyebrow { margin-bottom: 8px; display: block; }
.section-head p { margin: 10px 0 0; color: var(--muted); font-size: 15px; max-width: 540px; }

/* ===================== STAT GRID ===================== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

/* ===================== PRICE TABLE ===================== */
.price-table {
  width: 100%; border-collapse: collapse;
  background: #fff; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line);
}
.price-table th {
  background: var(--bg-3);
  font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.price-table th:last-child, .price-table td:last-child { text-align: right; }
.price-table td {
  padding: 14px 16px; font-size: 14px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink);
}
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: var(--brand-softer); }
.price-table .price {
  font-family: var(--f-mono);
  font-weight: 700; font-variant-numeric: tabular-nums;
  font-size: 15px;
}
.price-table .price-low  { color: var(--green-deep); }
.price-table .price-high { color: var(--red); }

/* ===================== STAT CARDS ===================== */
.stat-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 20px;
}
.stat-card-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 8px;
}
.stat-card-value {
  font-family: var(--f-mono);
  font-weight: 700; font-size: 32px;
  letter-spacing: -.02em; color: var(--ink);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.stat-card-meta { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* Hero price card (oscura, página detalle) */
.hero-price-card {
  background: var(--ink); color: #fff;
  border-radius: var(--r-xl);
  padding: 28px 32px;
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.hero-price-card::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}
.hero-price-label {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 8px;
}
.hero-price-value {
  font-family: var(--f-mono);
  font-weight: 700; font-size: 56px; line-height: 1;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
}
.hero-price-value em { font-style: normal; color: #f5d9b3; font-weight: 700; }
.hero-price-meta { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 8px; }

/* Podium (ranking top 3) */
.podium {
  display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 20px;
  align-items: end; margin-bottom: 36px;
}
.podium-card {
  border-radius: var(--r-xl); padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.podium-card-1 {
  background: var(--ink); color: #fff;
  padding: 32px 24px;
}
.podium-card-2, .podium-card-3 {
  background: var(--brand-tint); color: var(--brand-deep);
}
.podium-rank {
  font-family: var(--f-display);
  font-weight: 500; font-size: 64px; line-height: 1;
  letter-spacing: -.04em; opacity: .9;
}
.podium-card-1 .podium-rank em { color: #f5d9b3; font-style: italic; font-weight: 400; }
.podium-card-2 .podium-rank em, .podium-card-3 .podium-rank em { color: var(--brand); font-style: italic; font-weight: 400; }
.podium-name {
  font-family: var(--f-display);
  font-weight: 600; font-size: 20px; letter-spacing: -.015em;
}
.podium-price {
  font-family: var(--f-mono);
  font-size: 22px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.podium-card-1 .podium-price { color: #f5d9b3; }
.podium-card-2 .podium-price, .podium-card-3 .podium-price { color: var(--brand); }

/* Tab pill (filtros) */
.tab-row {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--bg-3); border-radius: 999px;
}
.tab-pill {
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--muted); cursor: pointer; border: none; background: transparent;
  transition: all .15s; text-decoration: none;
}
.tab-pill:hover { color: var(--ink); }
.tab-pill.active { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }

/* Sticky toolbar (listing) */
.sticky-toolbar {
  position: sticky; top: 64px; z-index: 30;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

/* ===================== LEAFLET OVERRIDES ===================== */
.leaflet-container         { font-family: var(--f-body); background: var(--bg-2); }
.leaflet-popup-content-wrapper {
  border-radius: var(--r-md);
  box-shadow: 0 4px 20px rgba(26,20,38,.16);
  border: 1px solid var(--line);
}
.leaflet-popup-content     { margin: 12px 16px; font-size: 13px; }
.leaflet-popup-tip         { box-shadow: 0 4px 12px rgba(26,20,38,.12); }
.leaflet-control-attribution { font-size: 10px; background: rgba(255,255,255,.85); }

/* ===================== MAP MARKERS ===================== */
.gmap-pin {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  font-size: 10px; font-weight: 700;
  font-family: var(--f-body);
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(26,20,38,.25);
  transition: transform .15s; cursor: pointer; line-height: 1;
}
.gmap-pin:hover { transform: scale(1.2); z-index: 1000 !important; }
.gmap-pin--single {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(201,122,43,.4);
}
.gmap-pin--low  { background: var(--green); }
.gmap-pin--mid  { background: var(--brand); }
.gmap-pin--high { background: var(--ink-2); }

/* Pin con cola (precio bocadillo) */
.gmap-pin-bubble {
  position: relative;
  background: var(--ink); color: #fff;
  border-radius: 12px; padding: 5px 9px;
  font-family: var(--f-mono);
  font-size: 12px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(26,20,38,.3);
  cursor: pointer;
  transition: transform .15s;
}
.gmap-pin-bubble.is-low { background: var(--green-deep); }
.gmap-pin-bubble.is-high { background: var(--red); }
.gmap-pin-bubble::after {
  content: ''; position: absolute;
  bottom: -5px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid currentColor;
  color: var(--ink);
}
.gmap-pin-bubble.is-low::after { color: var(--green-deep); }
.gmap-pin-bubble.is-high::after { color: var(--red); }
.gmap-pin-bubble:hover { transform: scale(1.08); z-index: 1000 !important; }

/* ===================== CLUSTER MARKERS ===================== */
.gmap-cluster {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 13px; font-weight: 700;
  font-family: var(--f-body);
  color: #fff; box-shadow: 0 2px 8px rgba(26,20,38,.2);
  border: 3px solid rgba(255,255,255,.85);
}
.gmap-cluster--small  { background: rgba(16,185,129,.85); }
.gmap-cluster--medium { background: rgba(201,122,43,.85); }
.gmap-cluster--large  { background: rgba(163,94,28,.92); }

.marker-cluster-small       { background-color: rgba(167,243,208,.6); }
.marker-cluster-small div   { background-color: rgba(16,185,129,.85); color: #fff; }
.marker-cluster-medium      { background-color: rgba(196,181,253,.6); }
.marker-cluster-medium div  { background-color: rgba(201,122,43,.85); color: #fff; }
.marker-cluster-large       { background-color: rgba(167,139,250,.6); }
.marker-cluster-large div   { background-color: rgba(163,94,28,.92); color: #fff; }

/* ===================== TOC BAR (gasolinera) ===================== */
.toc-bar {
  position: sticky; top: 64px; z-index: 30;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.toc-bar::-webkit-scrollbar { display: none; }
.toc-bar a {
  white-space: nowrap; padding: 12px 14px;
  font-size: 12px; font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent; display: inline-block;
  transition: color .15s, border-color .15s;
}
.toc-bar a:hover, .toc-bar a.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* ===================== STARS RATING ===================== */
.stars {
  display: inline-flex; align-items: center; gap: 1px;
  color: var(--amber); font-size: 12px; line-height: 1;
}
.stars span { opacity: .25; }
.stars span.is-on { opacity: 1; }

/* ===================== HIDE MOBILE ===================== */
@media (max-width: 767px) { .hide-mobile { display: none !important; } }

/* Header on tablet/mobile (desktop nav hidden): push the action buttons to the right edge so they don't bunch on the left */
@media (max-width: 1099px) {
  .site-header-inner #btn-buscar-header { margin-left: auto; }
}
/* Small screens: tighter spacing + brand can shrink/truncate so the menu button never gets pushed off-screen */
@media (max-width: 600px) {
  .site-header-inner { gap: 12px; padding: 0 14px; }
  .brand-mark { flex-shrink: 1; min-width: 0; }
  .brand-mark-text { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
/* Breadcrumb: single line, horizontal scroll (no wrap), hidden scrollbar */
.bc-scroll { scrollbar-width: none; -ms-overflow-style: none; }
.bc-scroll::-webkit-scrollbar { display: none; }

/* ===================== RESPONSIVE ===================== */
@media (min-width: 640px) {
  .sm\:px-6    { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:inline  { display: inline; }
  .sm\:flex-row{ flex-direction: row; }
  .full-bleed  { margin-left: -1.5rem; margin-right: -1.5rem; padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 768px) {
  .md\:flex            { display: flex;   }
  .md\:hidden          { display: none;   }
  .md\:block           { display: block;  }
  .md\:grid-cols-2     { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3     { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4     { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:grid-cols-6     { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .md\:col-span-1      { grid-column: span 1 / span 1; }
  .md\:text-3xl        { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:text-4xl        { font-size: 2.25rem;  line-height: 2.5rem;  }
  .md\:text-5xl        { font-size: 3rem;     line-height: 1.05;    }
  .md\:text-6xl        { font-size: 3.75rem;  line-height: 1.02;    }
  .md\:text-7xl        { font-size: 4.5rem;   line-height: 1;       }
  .md\:text-left       { text-align: left;    }
  .md\:mx-0            { margin-left: 0; margin-right: 0; }
  .md\:items-end       { align-items: flex-end; }
  .md\:flex-row        { flex-direction: row; }
  .md\:w-1\/3          { width: 33.333333%; }
  .md\:justify-start   { justify-content: flex-start; }
}
@media (min-width: 1024px) {
  .lg\:px-8         { padding-left: 2rem; padding-right: 2rem; }
  .lg\:py-32        { padding-top: 8rem; padding-bottom: 8rem; }
  .lg\:grid-cols-3  { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4  { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-6  { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .lg\:grid-cols-7  { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-2   { grid-column: span 2 / span 2; }
  .lg\:col-span-3   { grid-column: span 3 / span 3; }
  .lg\:col-span-4   { grid-column: span 4 / span 4; }
  .lg\:col-span-8   { grid-column: span 8 / span 8; }
  .lg\:hidden       { display: none;  }
  .lg\:flex         { display: flex;  }
  .lg\:block        { display: block; }
  .lg\:grid         { display: grid;  }
  .lg\:text-left    { text-align: left; }
  .full-bleed       { margin-left: -2rem; margin-right: -2rem; padding-left: 2rem; padding-right: 2rem; }
}

/* Tablet: averages-strip mantiene 5 cols pero más compacto para no aplastar texto */
@media (max-width: 1023px) {
  .averages-strip { padding: 20px 18px; gap: 14px; }
  .averages-strip-value { font-size: 22px; }
  .averages-strip-label { font-size: 10px; letter-spacing: .12em; }
  .averages-strip-meta { font-size: 10px; }
}

/* Mobile collapse for averages-strip / podium */
@media (max-width: 768px) {
  .station-card { grid-template-columns: auto 1fr; gap: 14px; padding: 16px; }
  .station-card-price { grid-column: 1 / -1; text-align: left; flex-direction: row; align-items: baseline; gap: 12px; border-top: 1px solid var(--line-2); padding-top: 12px; margin-top: 4px; }
  .podium { grid-template-columns: 1fr; gap: 12px; }
  .podium-card-1 { order: -1; }
  .hero-price-card { grid-template-columns: 1fr; }
  .hero-price-value { font-size: 44px; }
  .section-head h2 { font-size: 28px; }
}

/* Mobile: averages-strip a 2 cols */
@media (max-width: 540px) {
  .averages-strip { grid-template-columns: repeat(2, 1fr); padding: 18px; gap: 14px; }
  .averages-strip-value { font-size: 24px; }
}

/* ===================== ANIMATIONS ===================== */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }

/* ===================== PRINT ===================== */
@media print {
  header, footer, #btn-cercademi, #sort-btns, #alert-form-mun, #alert-form,
  .leaflet-container, #map, #map-skeleton, #cercademi-results,
  [onclick], button, .hide-print { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  main { padding: 0; max-width: 100%; }
  a { color: #000; text-decoration: none; }
  a[href]:after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
  a[href^="/"]:after { content: " (llenoporfavor.es" attr(href) ")"; }
  .bg-white, .bg-surface, .bg-surface-container-lowest { background: #fff !important; border: 1px solid #ddd !important; }
  .shadow-sm, .shadow-xl { box-shadow: none !important; }
  table { page-break-inside: auto; }
  tr { page-break-inside: avoid; }
}
