/* Finca Buenasombra · primero el móvil, después el ordenador */
:root {
  --bg: #120d09;          /* tierra oscura */
  --bg2: #1a130e;
  --card: #231a13;
  --card2: #2c2119;
  --line: #3b2d22;
  --text: #f4ecdd;        /* albero claro */
  --muted: #b9a88f;
  --sand: #d9bf93;        /* arena */
  --brown: #8b5a2b;
  --brown-l: #c4975f;
  --brown-d: #4a2f1a;
  --colorado: #8a3b1f;    /* pelaje colorado */
  --stone: #8e8a83;       /* gris de la plaza */
  --lime: #d7f22d;        /* el logo */
  --ink: #0b0b0b;
  --t-liga: #d7f22d;
  --t-concurso: #c4975f;
  --t-especial: #c0533a;
  --t-capea: #b7ab98;
  --t-granprix: #e0b13a;
  --r: 16px;
  --nav-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --serif: 'Playfair Display', Georgia, serif;
  --cond: 'Oswald', 'Arial Narrow', sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 var(--sans);
  padding-bottom: calc(var(--nav-h) + var(--safe-b));
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }
svg { width: 1em; height: 1em; flex-shrink: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 18px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.small { font-size: 14px; color: var(--muted); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 0 20px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 16px var(--sans); text-decoration: none; transition: transform .15s, background .2s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: rgba(244,236,221,.28); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-wide { width: 100%; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--line); background: var(--card);
}
.icon-btn svg { width: 22px; height: 22px; }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.row-btns .btn { flex: 1 1 220px; }

/* ---------- pantalla de carga ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; overflow: hidden;
  background: linear-gradient(180deg, #1a110b 0%, #4a2c17 34%, #a8652f 54%, #e2a55e 62%);
  transition: transform .7s cubic-bezier(.7,0,.3,1), opacity .7s;
}
.loader.done { transform: translateY(-100%); opacity: .6; pointer-events: none; }
.loader-sky::before { /* sol bajo, ambiente de tarde de toros */
  content: ''; position: absolute; left: 50%; top: 60%; width: 60vmin; height: 60vmin; transform: translate(-50%,-50%);
  background: radial-gradient(circle, #ffd9a0 0%, rgba(255,190,110,.55) 22%, rgba(255,170,90,0) 62%);
}
.loader-ground {
  position: absolute; left: 0; right: 0; top: 62%; bottom: 0;
  background: linear-gradient(#b88d58, #8b6438 30%, #4a2f1a);
  box-shadow: 0 -2px 0 #d9bf93;
}
.loader-ground::after { /* rayas del rastrillo en la arena */
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(0,0,0,.07) 0 2px, transparent 2px 22px);
}
.loader-run {
  position: absolute; left: 0; bottom: calc(38% - min(72vmin, 440px) * .01); width: min(72vmin, 440px); aspect-ratio: 240 / 144;
  animation: run 2.2s cubic-bezier(.4,.05,.6,.95) .1s forwards; transform: translateX(-110%); z-index: 2;
}
.loader-bull { width: 100%; height: 100%; fill: #0a0705; filter: drop-shadow(0 6px 4px rgba(0,0,0,.35)); animation: bob .32s ease-in-out infinite; overflow: visible; }
.leg { transform-box: fill-box; transform-origin: 50% 0; }
.leg-f1, .leg-b2 { animation: gallop .32s ease-in-out infinite; }
.leg-f2, .leg-b1 { animation: gallop .32s ease-in-out infinite reverse; }
@keyframes gallop { 0%,100% { transform: rotate(30deg); } 50% { transform: rotate(-34deg); } }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-5%) rotate(1.5deg); } }
@keyframes run { from { transform: translateX(-110%); } to { transform: translateX(calc(100vw + 10%)); } }
.loader-dust { position: absolute; left: -8%; bottom: -4%; width: 40%; height: 40%; }
.loader-dust i {
  position: absolute; bottom: 0; width: 22%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,191,147,.75), rgba(217,191,147,0) 70%);
  animation: dust .64s ease-out infinite;
}
.loader-dust i:nth-child(2) { left: 18%; animation-delay: .1s; }
.loader-dust i:nth-child(3) { left: 36%; animation-delay: .2s; }
.loader-dust i:nth-child(4) { left: 8%; animation-delay: .3s; width: 30%; }
.loader-dust i:nth-child(5) { left: 28%; animation-delay: .42s; }
.loader-dust i:nth-child(6) { left: 46%; animation-delay: .52s; width: 16%; }
@keyframes dust { 0% { transform: translate(0,0) scale(.4); opacity: .9; } 100% { transform: translate(-90%,-70%) scale(1.6); opacity: 0; } }
.loader-brand {
  position: absolute; left: 0; right: 0; top: 16%; display: flex; flex-direction: column; align-items: center; gap: 12px;
  opacity: 0; transform: scale(.85); animation: brand .6s ease-out 1.55s forwards;
}
.loader-logo { width: 30vmin; height: 30vmin; max-width: 170px; max-height: 170px; filter: drop-shadow(0 8px 30px rgba(0,0,0,.6)); }
.loader-brand p { font: 600 15px var(--cond); letter-spacing: .32em; text-transform: uppercase; color: #f6e3c2; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
@keyframes brand { to { opacity: 1; transform: none; } }
.loader.quick .loader-run { display: none; }
.loader.quick .loader-brand { animation-delay: 0s; animation-duration: .3s; }

/* ---------- barra superior ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: 60px;
  display: flex; align-items: center; gap: 16px; padding: 0 18px;
  background: linear-gradient(rgba(18,13,9,.85), rgba(18,13,9,0)); transition: background .3s;
}
.topbar.solid { background: rgba(18,13,9,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 17px var(--cond); letter-spacing: .06em; text-transform: uppercase; }
.brand-logo { width: 38px; height: 38px; }
.toplinks, .toplinks-call { display: none; }

/* ---------- portada ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.04); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,13,9,.2) 0%, rgba(18,13,9,.35) 40%, rgba(18,13,9,.92) 78%, var(--bg) 100%); }
.hero-in { position: relative; padding-bottom: 38px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font: 500 13px var(--cond); letter-spacing: .18em; text-transform: uppercase; color: var(--sand); background: rgba(18,13,9,.55); border: 1px solid rgba(217,191,147,.35); padding: 6px 12px; border-radius: 999px; }
.hero h1 { font: 800 clamp(48px, 13vw, 104px)/0.95 var(--serif); margin: 16px 0 14px; }
.hero h1 em { display: block; font-style: italic; color: var(--lime); font-weight: 700; }
.hero-lead { font-size: 17px; color: #e9dcc5; max-width: 34ch; }
.hero-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }

/* ---------- secciones ---------- */
.section { padding: 64px 0; }
.sec-head { margin-bottom: 26px; }
.kicker { display: block; font: 600 13px var(--cond); letter-spacing: .22em; text-transform: uppercase; color: var(--brown-l); margin-bottom: 8px; }
.kicker-lime { color: var(--lime); }
.sec-head h2, .section h2 { font: 800 clamp(34px, 8vw, 52px)/1.02 var(--serif); }
.sec-sub { color: var(--muted); margin-top: 10px; }
.link-more { display: inline-block; margin-top: 18px; color: var(--sand); font-weight: 600; text-decoration: none; }

/* ---------- tarjetas de evento ---------- */
.cards { display: grid; gap: 12px; }
.ev {
  display: flex; gap: 14px; align-items: stretch; width: 100%; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px;
  transition: border-color .2s, transform .15s;
}
.ev:hover { border-color: var(--brown-l); }
.ev:active { transform: scale(.99); }
.ev-date {
  flex: 0 0 66px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 0;
  position: relative; overflow: hidden;
}
.ev-date::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--tcolor, var(--brown-l)); }
.ev-date b { font: 600 32px/1 var(--cond); }
.ev-date span { font: 600 12px var(--cond); letter-spacing: .14em; text-transform: uppercase; color: var(--sand); }
.ev-date small { font-size: 11px; color: var(--muted); text-transform: capitalize; }
.ev-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ev-main h3 { font: 700 18px/1.2 var(--serif); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta svg { width: 15px; height: 15px; }
.chip { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font: 600 11.5px var(--cond); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--tcolor, var(--brown-l)); }
.badge { display: inline-block; font: 600 11px var(--cond); letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; margin-left: 6px; vertical-align: 2px; }
.badge-aplazado { background: #5a1f14; color: #ffc4b4; }
.badge-nuevo-horario { background: #4a3c0e; color: #ffe08a; }
.badge-pasado { background: var(--card2); color: var(--muted); }
.divisa { display: inline-flex; width: 18px; height: 12px; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.divisa i { flex: 1; }
.gan { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--text); }

/* destacado */
.featured {
  position: relative; display: block; width: 100%; text-align: left; border: 0; padding: 0; border-radius: 22px; overflow: hidden;
  min-height: 420px; margin-bottom: 14px; background: var(--card); color: var(--text);
}
.featured img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,13,9,0) 25%, rgba(18,13,9,.92) 75%); }
.featured-in { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.featured-date { display: flex; align-items: baseline; gap: 10px; font-family: var(--cond); }
.featured-date b { font-size: 56px; line-height: .9; font-weight: 700; color: var(--lime); }
.featured-date span { font-size: 16px; letter-spacing: .16em; text-transform: uppercase; color: var(--sand); }
.featured h3 { font: 800 28px/1.1 var(--serif); }
.featured p.txt { color: #e4d6bf; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.featured .tag { position: absolute; top: 16px; left: 16px; z-index: 1; background: var(--lime); color: var(--ink); font: 600 12px var(--cond); letter-spacing: .16em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; }

/* ---------- liga ---------- */
.liga { background: linear-gradient(180deg, var(--bg) 0%, #0c0a07 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.liga::before { content: ''; position: absolute; right: -20vmin; top: -20vmin; width: 60vmin; height: 60vmin; border-radius: 50%; border: 2px solid rgba(215,242,45,.12); box-shadow: 0 0 0 40px rgba(215,242,45,.03); }
.liga-in { display: grid; gap: 28px; position: relative; }
.liga-text > p { color: #e2d4bc; margin-top: 14px; max-width: 52ch; }
.champ { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 16px; border-radius: var(--r); background: linear-gradient(135deg, rgba(215,242,45,.14), rgba(215,242,45,.02)); border: 1px solid rgba(215,242,45,.35); }
.champ > svg { width: 42px; height: 42px; color: var(--lime); }
.champ small { display: block; font: 600 12px var(--cond); letter-spacing: .16em; text-transform: uppercase; color: var(--lime); }
.champ b { display: block; font: 700 24px/1.15 var(--serif); }
.champ span { color: var(--muted); font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0 14px; }
.stats div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.stats b { display: block; font: 700 34px/1 var(--cond); color: var(--sand); }
.stats span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.liga-photo { margin: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.liga-photo img { width: 100%; aspect-ratio: 746/363; object-fit: cover; }
.liga-photo figcaption { padding: 10px 14px; font-size: 13px; color: var(--muted); }

/* ---------- galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; grid-auto-flow: dense; }
.g-item { position: relative; border: 0; padding: 0; border-radius: 14px; overflow: hidden; background: var(--card); aspect-ratio: 1; }
.g-item.tall { grid-row: span 2; aspect-ratio: auto; }
.g-item.wide { grid-column: span 2; aspect-ratio: 2/1; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.g-item:hover img { transform: scale(1.05); }
.g-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; font-size: 12.5px; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #f1e6d3; }

/* ---------- calendario ---------- */
.cal-sec { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin: 0 -18px 18px; padding-left: 18px; padding-right: 18px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.fchip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 500; }
.fchip i { width: 9px; height: 9px; border-radius: 50%; background: var(--tcolor, var(--sand)); }
.fchip.on { background: var(--text); color: var(--ink); border-color: var(--text); }
.fchip .x { width: 14px; height: 14px; }
.cal-layout { display: grid; gap: 22px; }
.cal { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 14px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head h3 { font: 700 22px var(--serif); text-transform: capitalize; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-week span { text-align: center; font: 600 12px var(--cond); letter-spacing: .1em; color: var(--muted); padding: 4px 0; }
.day {
  position: relative; aspect-ratio: 1; border-radius: 12px; border: 1px solid transparent; background: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font: 500 15px var(--sans); color: var(--muted);
}
.day.empty { visibility: hidden; }
.day.has { color: var(--text); font-weight: 700; background: var(--card2); }
.day.today { border-color: var(--stone); }
.day.sel { background: var(--text); color: var(--ink); }
.dots { display: flex; gap: 3px; height: 6px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--tcolor); }
.day.sel .dots i { box-shadow: 0 0 0 1px var(--ink); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--tcolor); }
.cal-list-title { font: 700 20px var(--serif); margin-bottom: 12px; }
.cal-empty { padding: 22px; border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted); text-align: center; }

/* ---------- ganaderías ---------- */
.ganaderias { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gcard { display: flex; flex-direction: column; gap: 10px; padding: 14px; text-align: left; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); }
.gcard:hover { border-color: var(--brown-l); }
.gcard .divisa { width: 36px; height: 20px; border-radius: 3px; }
.gcard .divisa.none { background: repeating-linear-gradient(45deg, var(--brown-d) 0 4px, var(--brown) 4px 8px); }
.gcard b { font: 700 17px/1.2 var(--serif); }
.gcard small { color: var(--muted); font-size: 13px; }

/* ---------- servicios ---------- */
.servicios { background: linear-gradient(180deg, var(--bg) 0%, var(--brown-d) 160%); }
.serv { display: grid; gap: 12px; margin-bottom: 22px; }
.serv article { padding: 20px; border-radius: var(--r); background: rgba(18,13,9,.55); border: 1px solid var(--line); }
.serv-num { font: 700 14px var(--cond); color: var(--lime); letter-spacing: .14em; }
.serv h3 { font: 700 22px var(--serif); margin: 6px 0 8px; }
.serv p { color: #ddcfb7; }

/* ---------- preguntas ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 17px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 600 22px/1 var(--cond); color: var(--brown-l); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding-bottom: 18px; color: #ddcfb7; }

/* ---------- contacto ---------- */
.contacto { background: radial-gradient(80% 60% at 50% 0%, #2a1d13, var(--bg)); }
.contact-logo { width: 110px; height: 110px; margin: 0 auto 18px; display: block; }
.contact-btns { display: grid; gap: 10px; margin-top: 24px; }
.footer { padding: 28px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer p + p { margin-top: 6px; }

/* ---------- navegación inferior ---------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  background: rgba(18,13,9,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
}
.bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 500; color: var(--muted); text-decoration: none; padding: 6px 0; }
.bottomnav a svg { width: 23px; height: 23px; }
.bottomnav a.on { color: var(--text); }
.bottomnav a.on svg { color: var(--lime); }
.bottomnav .bn-call { justify-self: center; width: 56px; height: 56px; border-radius: 50%; background: var(--lime); color: var(--ink); justify-content: center; margin-top: -26px; box-shadow: 0 6px 20px rgba(0,0,0,.5), 0 0 0 5px var(--bg); }
.bottomnav .bn-call svg { width: 25px; height: 25px; }

/* ---------- ficha del evento ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,.66); animation: fade .2s; }
.sheet-card {
  position: relative; width: 100%; max-width: 620px; max-height: 92svh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 24px 24px 0 0; padding: 0 0 calc(20px + var(--safe-b));
  animation: up .28s cubic-bezier(.2,.8,.2,1);
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.sheet-x { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(18,13,9,.75); }
.sh-photo { height: 230px; position: relative; }
.sh-photo img { width: 100%; height: 100%; object-fit: cover; }
.sh-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, var(--bg2)); }
.sh-in { padding: 20px 18px 0; display: flex; flex-direction: column; gap: 14px; }
.sh-photo + .sh-in { margin-top: -40px; position: relative; }
.sh-top { display: flex; gap: 14px; align-items: center; }
.sh-top .ev-date { flex-basis: 74px; min-height: 84px; }
.sh-title { font: 800 26px/1.15 var(--serif); }
.sh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sh-grid div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.sh-grid small { display: block; font: 600 11px var(--cond); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sh-grid b { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 7px; }
.sh-grid .full { grid-column: span 2; }
.sh-block h4 { margin: 0 0 8px; font: 600 12px var(--cond); letter-spacing: .16em; text-transform: uppercase; color: var(--brown-l); }
.sh-block ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.sh-block li { padding: 9px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: 15px; }
.sh-text { color: #e4d6bf; }
.sh-note { padding: 12px 14px; border-radius: 12px; font-size: 15px; }
.sh-note.warn { background: #3d1a10; color: #ffc4b4; }
.sh-note.info { background: #3a300c; color: #ffe08a; }
.sh-note.lime { background: rgba(215,242,45,.12); color: var(--lime); border: 1px solid rgba(215,242,45,.35); font-weight: 600; }
.sh-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sh-actions .btn { min-height: 48px; padding: 0 12px; font-size: 14.5px; }
.sh-actions .full { grid-column: span 2; }

/* ---------- visor ---------- */
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(8,6,4,.96); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(92vw, 900px); }
.lightbox img { max-height: 78svh; width: auto; margin: 0 auto; border-radius: 10px; }
.lightbox figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 12px; }
.lb-x { position: absolute; top: 14px; right: 14px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 10px; } .lb-next { right: 10px; }

/* ---------- aparición suave ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- tablet y ordenador ---------- */
@media (min-width: 640px) {
  .hero-btns { flex-direction: row; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .ganaderias { grid-template-columns: repeat(3, 1fr); }
  .serv { grid-template-columns: repeat(3, 1fr); }
  .contact-btns { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards-compact { grid-template-columns: 1fr; }
}
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .bottomnav { display: none; }
  .topbar { height: 72px; padding: 0 32px; }
  .toplinks { display: flex; gap: 26px; margin-left: auto; }
  .toplinks a { text-decoration: none; font-size: 15px; color: #e2d4bc; }
  .toplinks a:hover { color: var(--lime); }
  .toplinks-call { display: inline-flex; }
  .wrap { padding: 0 32px; }
  .section { padding: 96px 0; }
  .hero { align-items: center; background: radial-gradient(70% 90% at 75% 50%, #2c1e14, var(--bg)); }
  .hero-img { left: auto; right: max(32px, calc((100vw - 1140px) / 2 + 32px)); top: 110px; bottom: 60px; width: min(42vw, 520px); height: auto; border-radius: 26px; transform: none; object-position: 50% 30%; box-shadow: 0 30px 80px rgba(0,0,0,.55); border: 1px solid var(--line); }
  .hero-shade { display: none; }
  .hero-in { padding: 120px 32px 60px; }
  .hero-in > * { max-width: 560px; }
  .featured { min-height: 480px; }
  .featured-in { padding: 32px; max-width: 720px; }
  #eventos .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px 22px; align-items: start; }
  #eventos .sec-head, #eventos .link-more { grid-column: 1 / -1; }
  #eventos .featured { margin: 0; height: 100%; }
  #eventos .cards { grid-template-columns: 1fr; }
  .liga-in { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; }
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .cal-layout { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .filters { margin: 0 0 22px; padding: 0; flex-wrap: wrap; }
  .ganaderias { grid-template-columns: repeat(4, 1fr); }
  .sheet { align-items: center; }
  .sheet-card { border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
