/* ============================================================
   Los Teritos — Hoja de estilos compartida
   Paleta: marrón del logo (cuero/tierra) + verde pastura + dorado
   ============================================================ */

:root{
  --cream:        #F7F3EA;
  --cream-2:      #EFE7D6;
  --paper:        #FFFDF8;
  --ink:          #2A1A12;   /* marrón oscuro del logo */
  --ink-soft:     #5E4A3C;
  --line:         #E3D8C4;

  --verde:        #3F7A45;   /* verde pastura — acción principal */
  --verde-dark:   #2C5A32;
  --verde-light:  #DCEBD8;

  --tierra:       #8A4B2B;   /* cuero / tierra — acento de marca */
  --tierra-dark:  #63321B;
  --tierra-light: #F0DDD0;

  --oro:          #C9A227;   /* dorado trigo */

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 32px -12px rgba(42,26,18,0.28);
  --shadow-soft: 0 6px 18px -8px rgba(42,26,18,0.2);

  --font-display: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --sidebar-w: 264px;
  --topbar-h: 62px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family: var(--font-display); font-weight:600; margin:0 0 .5em; line-height:1.15; }
p{ margin:0 0 1em; line-height:1.65; color: var(--ink-soft); }
.container{ width:100%; max-width:1440px; margin:0 auto; padding:0 32px; }
section{ padding: 88px 0; }
@media (max-width:720px){ section{ padding: 56px 0; } .container{ padding:0 20px; } }
.muted{ color: var(--ink-soft); font-size:14px; }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:13px; letter-spacing:.14em; text-transform:uppercase;
  font-weight:600; color: var(--tierra-dark);
  margin-bottom:14px;
}
.eyebrow.verde{ color: var(--verde-dark); }
.eyebrow::before{ content:''; width:22px; height:2px; background: currentColor; display:inline-block; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding: 15px 28px; border-radius: 999px; font-weight:600; font-size:15.5px;
  border:2px solid transparent; cursor:pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space:nowrap; font-family: var(--font-body);
}
.btn:hover{ transform: translateY(-2px); }
.btn-verde{ background: var(--verde); color:#fff; box-shadow: var(--shadow-soft); }
.btn-verde:hover{ background: var(--verde-dark); }
.btn-tierra{ background: var(--tierra); color:#fff; box-shadow: var(--shadow-soft); }
.btn-tierra:hover{ background: var(--tierra-dark); }
.btn-outline{ background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover{ background: var(--ink); color: var(--paper); }
.btn-wa{ background:#25D366; color:#fff; box-shadow: var(--shadow-soft); }
.btn-wa:hover{ background:#1DA851; }
/* Cualquier botón que lleve a WhatsApp (data-wa-msg) se ve como WhatsApp. */
.btn[data-wa-msg]{ background:#25D366; color:#fff; }
.btn[data-wa-msg]:hover{ background:#1DA851; }
.btn-sm{ padding:10px 18px; font-size:14px; }
.btn-wa-secondary[data-wa-msg]{ background:transparent; border-color:#25D366; color:#128C4A; }
.btn-wa-secondary[data-wa-msg]:hover{ background:#25D366; color:#fff; }

/* ---------- Sidebar (menú vertical) ---------- */
.site-sidebar{
  position: fixed; top:0; left:0; bottom:0; width: var(--sidebar-w); z-index: 100;
  display:flex; flex-direction:column;
  background: var(--paper); border-right: 1px solid var(--line);
  padding: 24px 16px 18px; overflow-y:auto;
}
.site-sidebar .brand{ display:flex; align-items:center; gap:12px; min-width:0; padding: 2px 8px 20px; margin-bottom:14px; border-bottom:1px solid var(--line); }
.brand-mark{ width:50px; height:50px; flex-shrink:0; object-fit:contain; }
.brand-name{ font-family: var(--font-display); font-size:17px; font-weight:700; line-height:1.1; color: var(--ink); }
.brand-name small{ display:block; font-family: var(--font-body); font-size:9.5px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color: var(--ink-soft); margin-top:4px; }

.nav-links{ display:flex; flex-direction:column; gap:4px; flex:1; }
.nav-links a{
  display:flex; align-items:center; gap:13px; padding:12px 14px; border-radius:14px;
  font-weight:600; font-size:14.5px; color: var(--ink-soft); white-space:nowrap;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.nav-links a svg{ width:19px; height:19px; flex-shrink:0; opacity:.75; transition: opacity .18s ease; }
.nav-links a:hover{ background: var(--cream-2); color: var(--verde-dark); transform: translateX(3px); }
.nav-links a:hover svg{ opacity:1; }
.nav-links a.active{
  background: linear-gradient(120deg, var(--verde), var(--verde-dark)); color:#fff;
  box-shadow: 0 10px 22px -10px rgba(63,122,69,.6);
}
.nav-links a.active svg{ opacity:1; }

.sidebar-actions{ display:flex; flex-direction:column; gap:12px; padding-top:16px; margin-top:12px; border-top:1px solid var(--line); }
.sidebar-actions .btn-wa{ justify-content:center; width:100%; }
.sidebar-bottom-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:0 4px; }
.admin-access-link{ display:flex; align-items:center; gap:6px; text-decoration:none; font-size:13px; font-weight:600; color: var(--ink-soft); opacity:.55; transition:opacity .15s ease; }
.admin-access-link:hover{ opacity:1; }

.site-content{ margin-left: var(--sidebar-w); min-height:100vh; }

.nav-toggle{ display:none; background:none; border:none; cursor:pointer; padding:8px; flex-shrink:0; }
.nav-toggle span{ display:block; width:24px; height:2px; background: var(--ink); margin:5px 0; transition: all .2s ease; border-radius:2px; }
.nav-toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity:0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.site-topbar{ display:none; }
.nav-scrim{ display:none; }

@media (max-width: 1140px){
  .site-topbar{
    display:flex; align-items:center; justify-content:space-between; gap:10px;
    position:fixed; top:0; left:0; right:0; height: var(--topbar-h); z-index: 95;
    background: rgba(247,243,234,.96); backdrop-filter: blur(8px);
    border-bottom:1px solid var(--line); padding: 0 14px;
  }
  .topbar-brand img{ width:38px; height:38px; object-fit:contain; display:block; }
  .topbar-wa{ padding:9px 10px; }
  .nav-toggle{ display:block; }

  .site-sidebar{
    top:0; height:100vh; transform: translateX(-100%);
    transition: transform .28s ease; box-shadow: 24px 0 50px -24px rgba(0,0,0,.3);
  }
  .site-sidebar.open{ transform: translateX(0); }
  .site-sidebar .brand{ display:none; }

  .site-content{ margin-left:0; padding-top: var(--topbar-h); }

  .nav-scrim{
    display:block; position:fixed; inset:0; background: rgba(20,14,10,.45);
    opacity:0; pointer-events:none; transition: opacity .2s ease; z-index: 99;
  }
  .nav-scrim.show{ opacity:1; pointer-events:auto; }
  body.nav-open{ overflow:hidden; }
}

/* ---------- Hero ---------- */
.hero{ position:relative; padding: 0; overflow:hidden; background: var(--ink); color: var(--cream); min-height: 78vh; display:flex; align-items:center; }
.hero-bg{ position:absolute; inset:0; }
.hero-bg img{ width:100%; height:100%; object-fit:cover; object-position: 60% 50%; opacity:.55; }
.hero-bg::after{ content:''; position:absolute; inset:0; background: linear-gradient(90deg, rgba(42,26,18,.92) 0%, rgba(42,26,18,.65) 45%, rgba(42,26,18,.15) 100%); }
.hero .container{ position:relative; z-index:1; padding-top:96px; padding-bottom:96px; }
.hero-copy{ max-width:680px; }
.hero .eyebrow{ color: var(--oro); }
.hero h1{ font-size: clamp(34px, 5vw, 60px); color:#fff; }
.hero h1 .accent{ color: var(--oro); font-style: italic; }
.hero-lede{ font-size:18px; max-width:560px; color: rgba(247,243,234,.85); }
.hero-ctas{ display:flex; flex-wrap:wrap; gap:14px; margin-top:8px; }
.hero .btn-outline{ border-color:#fff; color:#fff; }
.hero .btn-outline:hover{ background:#fff; color: var(--ink); }
.hero-stats{ display:flex; gap:34px; margin-top:44px; flex-wrap:wrap; }
.hero-stats div strong{ display:block; font-family:var(--font-display); font-size:28px; color: var(--oro); }
.hero-stats div span{ font-size:13px; color: rgba(247,243,234,.75); }
@media (max-width:720px){ .hero{ min-height:auto; } .hero .container{ padding-top:64px; padding-bottom:64px; } .hero-bg img{ opacity:.35; } }

/* ---------- Media / image placeholder ---------- */
.media{
  position:relative; border-radius: var(--radius-md); overflow:hidden;
  background: linear-gradient(155deg, var(--tierra-light), var(--cream-2));
  box-shadow: var(--shadow-soft);
}
.media.verde{ background: linear-gradient(155deg, var(--verde-light), var(--cream-2)); }
.media img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.media .ph{
  position:absolute; inset:0; display:none; flex-direction:column; align-items:center; justify-content:center;
  gap:10px; padding:14px; text-align:center; color: var(--tierra-dark);
}
.media.is-empty .ph{ display:flex; }
.media.verde .ph{ color: var(--verde-dark); }
.media .ph svg{ width:34%; max-width:64px; opacity:.75; }
.media .ph span{ font-size:12.5px; font-weight:600; opacity:.8; max-width:80%; }

/* ---------- Dos caminos (cabaña / invernada) ---------- */
.paths{ background: var(--paper); }
.paths-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:28px; }
.path-card{
  border-radius: var(--radius-lg); padding:40px; position:relative; overflow:hidden;
  background: var(--tierra-light); border: 1px solid var(--line);
}
.path-card.verde{ background: var(--verde-light); }
.path-card h3{ font-size:28px; }
.path-card .tag{ display:inline-block; padding:6px 14px; border-radius:999px; font-size:12.5px; font-weight:700; letter-spacing:.04em; margin-bottom:16px; background:#fff; }
.path-card.tierra .tag{ color: var(--tierra-dark); }
.path-card.verde .tag{ color: var(--verde-dark); }
.path-list{ margin: 18px 0 26px; display:flex; flex-wrap:wrap; gap:10px; }
.path-list li{ background: rgba(255,255,255,.65); border-radius:999px; padding:7px 14px; font-size:13.5px; font-weight:600; }
@media (max-width:820px){ .paths-grid{ grid-template-columns:1fr; } .path-card{ padding:28px; } }

/* ---------- Grilla de hacienda / product cards ---------- */
.products-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap:24px; }
.product-card{ background: var(--paper); border-radius: var(--radius-md); overflow:hidden; border:1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; display:flex; flex-direction:column; }
.product-card:hover{ transform: translateY(-5px); box-shadow: var(--shadow); }
.product-card .media{ aspect-ratio: 4/3; border-radius:0; box-shadow:none; }
.product-card .info{ padding:18px 18px 20px; display:flex; flex-direction:column; flex:1; }
.product-card h4{ font-size:17px; margin-bottom:4px; }
.product-card p{ font-size:14px; margin-bottom:12px; }
.product-card .row{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:auto; flex-wrap:wrap; }
.price{ font-weight:700; font-family: var(--font-display); font-size:16px; }
.price.tbd{ font-size:12.5px; font-weight:600; color: var(--ink-soft); font-family: var(--font-body); }
.badge{ font-size:10.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; padding:4px 9px; border-radius:6px; }
.badge.tierra{ background: var(--tierra-light); color: var(--tierra-dark); }
.badge.verde{ background: var(--verde-light); color: var(--verde-dark); }
.badge.oro{ background: #F6ECC6; color: #7A5E0B; }
@media (max-width:980px){ .products-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width:520px){ .products-grid{ grid-template-columns: 1fr; gap:14px; } }

.section-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:40px; flex-wrap:wrap; }
.section-head h2{ font-size: clamp(26px,3.4vw,38px); max-width:600px; }

/* ---------- Catálogo dinámico (js/hacienda.js) ---------- */
.catalogo-section{ background: var(--cream-2); }
.catalogo-group{ margin-bottom:44px; }
.catalogo-group:last-child{ margin-bottom:0; }
.catalogo-group h3, .catalogo-group h2{ font-size:20px; margin-bottom:20px; padding-bottom:8px; border-bottom:2px solid var(--tierra-light); display:flex; align-items:center; gap:12px; }
.catalogo-group h3::after, .catalogo-group h2::after{ content:''; flex:1; height:1px; background: var(--line); }
.consultar-btn{
  width:34px; height:34px; flex-shrink:0; border-radius:50%; border:none;
  background:#25D366; color:#fff; font-size:18px; line-height:1; font-weight:600;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition: background .15s ease, transform .15s ease;
}
.consultar-btn:hover{ background:#128C4A; transform: scale(1.08); }
.consultar-btn svg{ width:18px; height:18px; }
.catalogo-note{ text-align:center; margin-top:28px; }

/* Buscador y filtros */
.menu-search{ position:relative; max-width:480px; margin:0 auto 28px; }
.menu-search input{ width:100%; font-family: var(--font-body); font-size:15px; padding:14px 46px; border-radius:999px; border:1.5px solid var(--line); background: var(--paper); }
.menu-search input:focus{ outline:none; border-color: var(--verde); }
.menu-search input::-webkit-search-cancel-button{ display:none; }
.menu-search svg{ position:absolute; left:16px; top:50%; transform:translateY(-50%); width:19px; height:19px; color: var(--ink-soft); pointer-events:none; }
.menu-search-clear{ position:absolute; right:10px; top:50%; transform:translateY(-50%); width:28px; height:28px; border-radius:50%; border:none; background: var(--cream-2); color: var(--ink-soft); cursor:pointer; font-size:18px; line-height:1; display:none; align-items:center; justify-content:center; }
.menu-search-clear.is-visible{ display:flex; }
.menu-search-status{ text-align:center; font-size:13.5px; color: var(--ink-soft); margin:-8px 0 30px; }
.product-card.is-hidden, .catalogo-group.is-hidden{ display:none !important; }
.category-filters{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:40px; justify-content:center; }
.category-filter-btn{
  padding:9px 18px; border-radius:999px; font-size:13.5px; font-weight:700;
  background: var(--paper); border:1.5px solid var(--line); color: var(--ink-soft);
  cursor:pointer; white-space:nowrap; transition: background .15s ease, color .15s ease, border-color .15s ease; font-family: var(--font-body);
}
.category-filter-btn:hover{ border-color: var(--verde); color: var(--ink); }
.category-filter-btn.is-active{ background: var(--verde); border-color: var(--verde); color:#fff; }
body.search-mode .category-filters{ display:none; }

/* ---------- Padres de cabaña ---------- */
.padres-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:26px; }
.padre-card{ background: var(--paper); border:1px solid var(--line); border-radius: var(--radius-lg); overflow:hidden; box-shadow: var(--shadow-soft); }
.padre-card .media{ aspect-ratio: 4/3; border-radius:0; box-shadow:none; }
.padre-card .info{ padding:22px 24px 26px; }
.padre-card h3{ font-size:22px; margin-bottom:6px; }
.padre-card .badge{ margin-bottom:10px; display:inline-block; }
.padre-card p{ font-size:14.5px; margin:0; }
@media (max-width:980px){ .padres-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width:560px){ .padres-grid{ grid-template-columns: 1fr; } }

/* ---------- Franja oscura (redes / video) ---------- */
.dark-band{ background: var(--ink); color: #F7F3EA; }
.dark-band .section-head h2, .dark-band p{ color: #F7F3EA; }
.dark-band p{ opacity:.8; }
.social-row-embeds{ display:grid; grid-template-columns:1.2fr .8fr; gap:28px; align-items:start; }
.social-col{ background: rgba(247,243,234,.06); border: 1px solid rgba(247,243,234,.12); border-radius:20px; padding:26px; }
.social-col h3{ color: var(--cream); font-size:18px; margin:0 0 16px; }
.video-frame{ position:relative; width:100%; aspect-ratio:16/9; border-radius:14px; overflow:hidden; background:#000; }
.video-frame iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.social-links{ display:flex; flex-direction:column; gap:12px; }
.social-links a{ display:flex; align-items:center; gap:14px; padding:14px 16px; border-radius:14px; background: rgba(247,243,234,.06); border:1px solid rgba(247,243,234,.12); font-weight:600; transition: background .15s ease; }
.social-links a:hover{ background: rgba(247,243,234,.14); }
.social-links svg{ width:22px; height:22px; flex-shrink:0; }
.social-links small{ display:block; font-weight:500; font-size:12.5px; opacity:.7; }
@media (max-width:820px){ .social-row-embeds{ grid-template-columns:1fr; } }

/* ---------- Valores ---------- */
.values-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:26px; }
.value-card{ padding:30px 26px; border-radius: var(--radius-md); background: var(--cream-2); }
.value-card svg{ width:34px; height:34px; color: var(--verde); margin-bottom:16px; }
.value-card h4{ font-size:18px; }
@media (max-width:820px){ .values-grid{ grid-template-columns:1fr; } }

/* ---------- CTA banda ---------- */
.cta-band{ background: linear-gradient(120deg, var(--tierra), var(--verde)); color:#fff; border-radius: var(--radius-lg); padding: 54px 48px; display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap; }
.cta-band h3{ color:#fff; font-size: clamp(24px,3vw,32px); max-width:520px; }
.cta-band p{ color: rgba(255,255,255,.88); max-width:520px; }
.cta-band .btn-outline{ border-color:#fff; color:#fff; }
.cta-band .btn-outline:hover{ background:#fff; color: var(--ink); }
@media (max-width:600px){ .cta-band{ padding:36px 26px; } }

/* ---------- Footer ---------- */
.site-footer{ background: var(--ink); color: var(--cream); padding: 64px 0 28px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap:40px; margin-bottom:46px; }
.footer-grid h5{ font-size:13px; letter-spacing:.1em; text-transform:uppercase; margin:0 0 18px; color: var(--oro); }
.footer-grid p, .footer-grid a, .footer-grid span{ color: rgba(247,243,234,.75); font-size:14.5px; }
.footer-grid ul li{ margin-bottom:10px; }
.footer-grid a:hover{ color:#fff; }
.footer-brand p{ max-width:300px; }
.footer-logo{ width:150px; margin-bottom:14px; }
.social-row{ display:flex; gap:12px; margin-top:16px; }
.social-row a{ width:38px; height:38px; border-radius:50%; background: rgba(247,243,234,.1); display:flex; align-items:center; justify-content:center; }
.social-row a:hover{ background: var(--verde); }
.social-row svg{ width:17px; height:17px; }
.footer-bottom{ border-top:1px solid rgba(247,243,234,.15); padding-top:22px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:13px; color: rgba(247,243,234,.55); }
.footer-legal{ display:flex; flex-wrap:wrap; gap:6px 10px; justify-content:center; font-size:13px; color: rgba(247,243,234,.55); margin-top:14px; padding-top:14px; border-top:1px solid rgba(247,243,234,.15); }
.footer-legal a{ color: rgba(247,243,234,.75); }
.footer-legal a:hover{ color:#fff; }
.footer-legal .sep{ color: rgba(247,243,234,.35); }
@media (max-width:820px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width:520px){ .footer-grid{ grid-template-columns: 1fr; } }

/* ---------- Page hero (páginas internas) ---------- */
.page-hero{ padding: 62px 0 20px; text-align:center; }
.page-hero h1{ font-size: clamp(32px,5vw,48px); }
.page-hero p{ max-width:620px; margin:0 auto; font-size:17px; }
.breadcrumbs{ font-size:13px; color: var(--ink-soft); margin-bottom:18px; }
.breadcrumbs a{ font-weight:600; color: var(--verde-dark); }
.menu-note{ background: var(--cream-2); border-radius: var(--radius-md); padding:22px 26px; font-size:14.5px; margin-top: 10px; }

/* ---------- Historia / Nosotros ---------- */
.story-grid{ display:grid; grid-template-columns: .95fr 1.05fr; gap:56px; align-items:center; }
.story-grid .media{ aspect-ratio: 4/3; }
.timeline{ margin-top:20px; display:flex; flex-direction:column; gap:22px; }
.timeline li{ display:flex; gap:18px; }
.timeline .dot{ width:12px; height:12px; border-radius:50%; background: var(--verde); margin-top:6px; flex-shrink:0; }
.timeline strong{ display:block; }
@media (max-width:900px){ .story-grid{ grid-template-columns:1fr; } }

/* ---------- Artículo largo (raza Braford) ---------- */
.article{ max-width:820px; margin:0 auto; }
.article p{ font-size:16.5px; line-height:1.75; }
.article h2{ font-size:26px; margin-top:1.6em; }
.article .media{ aspect-ratio:16/9; margin:0 0 34px; }
.article blockquote{ margin:32px 0; padding:22px 28px; border-left:4px solid var(--oro); background: var(--paper); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-family: var(--font-display); font-size:19px; color: var(--ink); }
.traits{ display:grid; grid-template-columns: repeat(2,1fr); gap:14px; margin: 24px 0 32px; }
.traits li{ background: var(--paper); border:1px solid var(--line); border-radius: var(--radius-sm); padding:14px 16px; font-size:14.5px; display:flex; gap:10px; align-items:flex-start; }
.traits li::before{ content:'✓'; color: var(--verde); font-weight:700; flex-shrink:0; }
@media (max-width:600px){ .traits{ grid-template-columns:1fr; } }

/* ---------- Contacto / ubicación ---------- */
.contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:48px; align-items:start; }
.contact-card{ background: var(--paper); border:1px solid var(--line); border-radius: var(--radius-lg); padding:38px; }
.contact-item{ display:flex; gap:16px; align-items:flex-start; margin-bottom:24px; }
.contact-item svg{ width:22px; height:22px; color: var(--verde); flex-shrink:0; margin-top:2px; }
.contact-item strong{ display:block; font-size:15px; margin-bottom:2px; }
.contact-item span, .contact-item a{ font-size:14.5px; color: var(--ink-soft); }
.map-frame{ border-radius: var(--radius-lg); overflow:hidden; border:1px solid var(--line); aspect-ratio: 4/3; max-width:100%; }
.map-frame iframe{ width:100%; height:100%; border:0; }
.contact-form{ display:flex; flex-direction:column; gap:14px; }
.contact-form input, .contact-form textarea, .contact-form select{
  font-family: var(--font-body); font-size:15px; padding:14px 16px; border-radius: var(--radius-sm);
  border:1.5px solid var(--line); background: var(--cream); resize:vertical; color: var(--ink); width:100%;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus{ outline:none; border-color: var(--verde); }
.contact-form label{ font-size:13px; font-weight:700; margin-bottom:-8px; }
.contact-form .row2{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.form-msg{ border-radius: var(--radius-sm); padding:14px 18px; font-weight:600; font-size:14.5px; }
.form-msg.ok{ background: var(--verde-light); color: var(--verde-dark); border:1px solid var(--verde); }
.form-msg.error{ background: var(--tierra-light); color: var(--tierra-dark); border:1px solid var(--tierra); }
.honeypot{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
@media (max-width:900px){ .contact-grid{ grid-template-columns:1fr; } .contact-card{ padding:26px; } }
@media (max-width:520px){ .contact-form .row2{ grid-template-columns:1fr; } }

/* ---------- Sitios de interés ---------- */
.links-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:24px; }
.links-card{ background: var(--paper); border:1px solid var(--line); border-radius: var(--radius-lg); padding:28px; }
.links-card h3, .links-card h2{ font-size:19px; display:flex; align-items:center; gap:10px; margin-bottom:16px; }
.links-card h3 svg, .links-card h2 svg{ width:22px; height:22px; color: var(--verde); }
.links-card li{ margin-bottom:10px; }
.links-card a{ font-weight:600; font-size:14.5px; color: var(--ink); display:inline-flex; align-items:center; gap:6px; }
.links-card a:hover{ color: var(--verde-dark); text-decoration:underline; }
.links-card a::after{ content:'↗'; font-size:12px; opacity:.5; }
.links-card small{ display:block; font-size:12.5px; color: var(--ink-soft); font-weight:400; }
@media (max-width:980px){ .links-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width:600px){ .links-grid{ grid-template-columns: 1fr; } }

/* ---------- reveal on scroll ---------- */
.reveal{ opacity:1; transform:none; }
.reveal.pre{ opacity:0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.pre.is-visible{ opacity:1; transform:none; }

/* ---------- Legales ---------- */
.legal-card{ background: var(--paper); border:1px solid var(--line); border-radius: var(--radius-lg); padding:44px; max-width:860px; margin:0 auto; }
.legal-card h2{ font-size:22px; margin-top:1.6em; }
.legal-card h2:first-child{ margin-top:0; }
.legal-card p, .legal-card li{ font-size:15px; line-height:1.7; color: var(--ink-soft); }
.legal-card ul{ list-style:disc; margin:0 0 1.2em; padding-left:22px; }
.legal-card li{ margin-bottom:8px; }
.legal-card a{ color: var(--verde-dark); font-weight:600; text-decoration:underline; }
.legal-updated{ font-size:13px; color: var(--ink-soft); margin-bottom:30px; }
@media (max-width:600px){ .legal-card{ padding:26px 20px; } }

/* ============================================================
   Fondos panorámicos del campo (fotos del establecimiento)
   ============================================================ */
/* Hero interno con foto de fondo: la imagen va por style="--bg:url(...)" en cada página */
.page-hero.has-bg{
  position:relative; color:#fff; padding:96px 0 64px; overflow:hidden;
  background: var(--ink) center/cover no-repeat;
}
.page-hero[data-bg="establecimiento"]{ background-image:url("../images/establecimiento.jpg"); }
.page-hero[data-bg="capitalizacion"]{ background-image:url("../images/hacienda-capitalizacion.jpg"); }
.page-hero[data-bg="novillos"]{ background-image:url("../images/hacienda-novillos.jpg"); }
.page-hero[data-bg="pasturas"]{ background-image:url("../images/hacienda-pasturas.jpg"); }
.page-hero.has-bg::before{ content:''; position:absolute; inset:0; background: linear-gradient(180deg, rgba(42,26,18,.55) 0%, rgba(42,26,18,.78) 100%); }
.page-hero.has-bg > .container{ position:relative; z-index:1; }
.page-hero.has-bg h1{ color:#fff; }
.page-hero.has-bg p{ color: rgba(247,243,234,.85); }
.page-hero.has-bg .breadcrumbs{ color: rgba(247,243,234,.7); }
.page-hero.has-bg .breadcrumbs a{ color: var(--oro); }
.page-hero.has-bg .eyebrow{ color: var(--oro); }
.page-hero.has-bg .menu-search input{ background:#fff; }
.page-hero.has-bg .menu-search-status{ color: rgba(247,243,234,.85); }
.page-hero.has-bg .category-filter-btn{ background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); color:#fff; }
.page-hero.has-bg .category-filter-btn:hover{ border-color:#fff; }
.page-hero.has-bg .category-filter-btn.is-active{ background: var(--verde); border-color: var(--verde); }
@media (max-width:720px){ .page-hero.has-bg{ padding:64px 0 44px; } }

/* Sección "dos caminos" sobre la foto de la entrada del establecimiento, con velo claro */
.paths.has-bg{ position:relative; background: var(--paper) url('../images/establecimiento.jpg') center/cover no-repeat fixed; }
.paths.has-bg::before{ content:''; position:absolute; inset:0; background: rgba(247,243,234,.86); }
.paths.has-bg > .container{ position:relative; z-index:1; }
.paths.has-bg .path-card{ box-shadow: var(--shadow-soft); }
@media (max-width:900px){ .paths.has-bg{ background-attachment: scroll; } }

/* Banda de historia / valores sobre el sorgo */
.band-campo{ position:relative; color:#fff; background: var(--ink) url('../images/hacienda-pasturas.jpg') center/cover no-repeat; }
.band-campo::before{ content:''; position:absolute; inset:0; background: linear-gradient(90deg, rgba(42,26,18,.9) 0%, rgba(42,26,18,.72) 60%, rgba(44,90,50,.6) 100%); }
.band-campo > .container{ position:relative; z-index:1; }
.band-campo h2, .band-campo h4{ color:#fff; }
.band-campo p, .band-campo li{ color: rgba(247,243,234,.85); }
.band-campo .eyebrow{ color: var(--oro); }
.band-campo .value-card{ background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14); backdrop-filter: blur(4px); }
.band-campo .value-card svg{ color: var(--oro); }

/* CTA sobre foto del rodeo en pastura */
.cta-band.has-bg{ position:relative; overflow:hidden; background: var(--verde-dark) url('../images/hacienda-capitalizacion.jpg') center 35%/cover no-repeat; }
.cta-band.has-bg::before{ content:''; position:absolute; inset:0; background: linear-gradient(120deg, rgba(99,50,27,.9), rgba(44,90,50,.82)); }
.cta-band.has-bg > *{ position:relative; z-index:1; }

/* Trabajá con nosotros */
.jobs-grid{ display:grid; grid-template-columns: 1.1fr .9fr; gap:32px; align-items:start; }
.job-card{ background: var(--paper); border:1px solid var(--line); border-radius: var(--radius-lg); padding:36px; box-shadow: var(--shadow-soft); }
.job-card h3, .job-card h2{ font-size:24px; }
.job-list{ margin:16px 0 24px; padding-left:20px; list-style:disc; }
.job-list li{ font-size:15px; color: var(--ink-soft); margin-bottom:6px; line-height:1.5; }
.job-steps{ counter-reset: paso; display:flex; flex-direction:column; gap:14px; margin-top:8px; }
.job-steps li{ display:flex; gap:14px; align-items:flex-start; font-size:14.5px; color: var(--ink-soft); }
.job-steps li::before{ counter-increment: paso; content: counter(paso); flex-shrink:0; width:30px; height:30px; border-radius:50%; background: var(--verde); color:#fff; font-weight:700; display:flex; align-items:center; justify-content:center; font-size:14px; }
@media (max-width:860px){ .jobs-grid{ grid-template-columns:1fr; } .job-card{ padding:26px; } }

/* FAQ (index) */
.faq-list{ max-width:860px; margin:0 auto; }
.faq-list details{ background: var(--paper); border:1px solid var(--line); border-radius: var(--radius-md); padding:0 22px; margin-bottom:12px; }
.faq-list summary{ cursor:pointer; font-weight:700; font-size:16px; padding:18px 0; list-style:none; display:flex; justify-content:space-between; gap:12px; }
.faq-list summary::-webkit-details-marker{ display:none; }
.faq-list summary::after{ content:'+'; color: var(--verde); font-size:22px; line-height:1; }
.faq-list details[open] summary::after{ content:'–'; }
.faq-list details p{ margin:0 0 18px; font-size:15px; }

/* ============================================================
   Clima y registro de lluvias (clima.html)
   ============================================================ */
.clima-grid{ display:grid; grid-template-columns: 1fr 1.6fr; gap:24px; align-items:stretch; }
.clima-card{ background: var(--paper); border:1px solid var(--line); border-radius: var(--radius-lg); padding:28px; box-shadow: var(--shadow-soft); }
.clima-ahora-main{ display:flex; align-items:center; gap:18px; margin:6px 0 18px; }
.clima-icono{ font-size:56px; line-height:1; }
.clima-ahora-main strong{ display:block; font-family: var(--font-display); font-size:46px; line-height:1; }
.clima-ahora-main span{ color: var(--ink-soft); font-size:15px; }
.clima-datos{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.clima-datos li{ background: var(--cream); border-radius: var(--radius-sm); padding:10px 14px; }
.clima-datos span{ display:block; font-size:12px; color: var(--ink-soft); text-transform:uppercase; letter-spacing:.06em; }
.clima-datos strong{ font-size:15px; }
.pronostico-grid{ display:grid; grid-template-columns: repeat(7, 1fr); gap:8px; }
.pronostico-grid .dia{ display:flex; flex-direction:column; align-items:center; gap:6px; padding:14px 6px; border-radius: var(--radius-md); background: var(--cream); text-align:center; font-size:12.5px; color: var(--ink-soft); }
.pronostico-grid .dia.hoy{ background: var(--verde-light); }
.dia-nombre{ font-weight:700; color: var(--ink); } .dia-nombre small{ font-weight:500; color: var(--ink-soft); }
.dia-icono{ font-size:30px; line-height:1; }
.dia-temp strong{ color: var(--ink); font-size:15px; }
.alerta{ display:flex; flex-direction:column; gap:4px; padding:14px 18px; margin-bottom:10px; border-radius: var(--radius-sm); background: var(--cream); border-left:5px solid var(--oro); }
.alerta.verde{ border-left-color: var(--verde); }
.alerta strong{ font-size:15.5px; } .alerta strong small{ font-weight:500; color: var(--ink-soft); }
.alerta span{ font-size:14px; color: var(--ink-soft); }
.alerta-nivel{ display:inline-block; color:#fff; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; padding:2px 8px; border-radius:6px; margin-right:6px; vertical-align:middle; }
.stats-lluvia{ display:grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap:14px; }
.stat-lluvia{ background: var(--paper); border:1px solid var(--line); border-radius: var(--radius-md); padding:18px 20px; }
.stat-lluvia strong{ display:block; font-family: var(--font-display); font-size:28px; color: var(--verde-dark); line-height:1.1; }
.stat-lluvia span{ font-size:12.5px; color: var(--ink-soft); }
.grafico{ width:100%; overflow-x:auto; }
.grafico-svg{ width:100%; height:auto; display:block; font-family: var(--font-body); }
.tabla-clima{ width:100%; border-collapse:collapse; font-size:14px; }
.tabla-clima th, .tabla-clima td{ text-align:left; padding:10px 12px; border-bottom:1px solid var(--line); }
.tabla-clima th{ font-size:12px; text-transform:uppercase; letter-spacing:.05em; color: var(--ink-soft); }
.noticias-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; }
.noticia{ display:flex; flex-direction:column; gap:8px; background: var(--paper); border:1px solid var(--line); border-radius: var(--radius-md); padding:18px 20px; transition: transform .15s ease, box-shadow .15s ease; }
.noticia:hover{ transform: translateY(-3px); box-shadow: var(--shadow); }
.noticia-medio{ font-size:12px; color: var(--ink-soft); text-transform:uppercase; letter-spacing:.06em; }
.noticia strong{ font-size:15px; line-height:1.4; }
@media (max-width:980px){ .clima-grid{ grid-template-columns:1fr; } .pronostico-grid{ grid-template-columns: repeat(4, 1fr); } .noticias-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width:600px){ .pronostico-grid{ grid-template-columns: repeat(2, 1fr); } .noticias-grid{ grid-template-columns: 1fr; } .clima-card{ padding:20px; } }

/* ---------- Mercado ganadero (mercado.html) ---------- */
.leyenda{ display:flex; flex-wrap:wrap; gap:14px; margin-top:8px; font-size:12.5px; color: var(--ink-soft); }
.leyenda i{ display:inline-block; width:12px; height:12px; border-radius:3px; margin-right:6px; vertical-align:-1px; }
.raza{ display:inline-block; font-size:12.5px; color: var(--ink-soft); background: var(--cream); border-radius:999px; padding:3px 10px; margin:2px 4px 2px 0; }
.raza.destacada{ background: var(--tierra-light); color: var(--tierra-dark); }
.tabla-clima td strong{ color: var(--ink); }
.frigo-fila{ display:flex; gap:12px; align-items:flex-start; padding:11px 0; border-bottom:1px solid var(--line); }
.frigo-fila:last-child{ border-bottom:none; }
.frigo-pos{ flex:0 0 26px; width:26px; height:26px; border-radius:50%; background: var(--cream-2); color: var(--ink-soft); font-weight:700; font-size:12.5px; display:flex; align-items:center; justify-content:center; }
.frigo-pos.top3{ background: linear-gradient(120deg, var(--verde), var(--verde-dark)); color:#fff; }
.frigo-info{ flex:1; min-width:0; }
.frigo-nombre-row{ display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; align-items:baseline; }
.frigo-nombre-row strong{ font-size:14.5px; }
.frigo-valor{ font-weight:700; color: var(--verde-dark); white-space:nowrap; font-size:13.5px; }
.frigo-bar{ background: var(--cream-2); border-radius:6px; height:8px; margin-top:7px; overflow:hidden; }
.frigo-bar-fill{ background: linear-gradient(90deg, var(--verde), var(--verde-dark)); height:100%; border-radius:6px; min-width:3px; }
.frigo-nota{ font-size:12px; color: var(--ink-soft); margin-top:5px; }
.frigo-vacio{ color: var(--ink-soft); font-size:14px; padding:8px 0; }

/* ---------- Marquesina de precios (index.html) ---------- */
.price-ticker{ background: linear-gradient(90deg, var(--verde-dark), var(--verde)); overflow:hidden; position:relative; }
.price-ticker::before, .price-ticker::after{ content:""; position:absolute; top:0; bottom:0; width:36px; z-index:2; pointer-events:none; }
.price-ticker::before{ left:0; background: linear-gradient(90deg, var(--verde-dark), transparent); }
.price-ticker::after{ right:0; background: linear-gradient(270deg, var(--verde), transparent); }
.price-ticker-track{ display:flex; align-items:center; width:max-content; animation: ticker-scroll 60s linear infinite; padding:11px 0; }
.price-ticker:hover .price-ticker-track{ animation-play-state: paused; }
.ticker-item{ display:flex; align-items:baseline; gap:7px; white-space:nowrap; color:#fff; font-size:13.5px; padding:0 22px; border-right:1px solid rgba(255,255,255,.25); }
.ticker-item .ticker-label{ opacity:.88; font-weight:600; }
.ticker-item .ticker-valor{ font-weight:800; font-family: var(--font-display); }
@keyframes ticker-scroll{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .price-ticker-track{ animation: none; overflow-x:auto; } }

/* ---------- Formulario de postulación (skills matrix) ---------- */
.form-sub{ font-size:16px; margin:18px 0 4px; color: var(--tierra-dark); }
.contact-form .fcol{ display:flex; flex-direction:column; gap:14px; }
.skills{ display:flex; flex-direction:column; gap:6px; }
.skill{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:8px 12px; background: var(--cream); border-radius: var(--radius-sm); font-size:14px; }
.skill > span{ flex:1; min-width:180px; font-weight:600; }
.skill-opts{ display:flex; gap:4px; }
.skill-opt{ position:relative; }
.skill-opt input{ position:absolute; opacity:0; width:0; height:0; }
.skill-opt span{ display:inline-block; padding:5px 10px; border-radius:999px; border:1.5px solid var(--line); background:#fff; font-size:12.5px; cursor:pointer; user-select:none; }
.skill-opt input:checked + span{ background: var(--verde); border-color: var(--verde); color:#fff; }
.skill-opt input:focus-visible + span{ outline:2px solid var(--oro); }
.apply-consent{ display:flex; gap:10px; align-items:flex-start; font-size:13.5px; color: var(--ink-soft); margin:14px 0 0; }
.apply-consent input{ margin-top:3px; width:auto; }
.apply-consent a{ text-decoration:underline; font-weight:600; }
.apply-foto-preview{ width:96px; height:96px; object-fit:cover; border-radius:50%; margin-top:8px; border:3px solid var(--paper); box-shadow: var(--shadow-soft); }
.apply-success{ text-align:center; padding:20px 0; }
.apply-success h3{ font-size:24px; }
.contact-form input[type=file]{ padding:10px; background: var(--cream); border:1.5px dashed var(--line); border-radius: var(--radius-sm); font-size:13.5px; }
@media (max-width:520px){ .skill-opts{ width:100%; } .skill-opt{ flex:1; } .skill-opt span{ display:block; text-align:center; padding:5px 4px; } }

/* ---------- Cortes vacunos (cortes.html) ---------- */
.cortes-grid{ display:grid; grid-template-columns: 1.7fr 1fr; gap:24px; align-items:start; }
.cortes-mapa{ padding:16px; }
.cortes-svg{ width:100%; height:auto; display:block; font-family: var(--font-body); border-radius: var(--radius-md); overflow:hidden; }
.cortes-svg .foto-toro{ filter: saturate(1.3) contrast(1.1) brightness(1.04) hue-rotate(-2deg); }
.cortes-svg .corte{ fill-opacity:.42; stroke:#fff; stroke-opacity:.85; stroke-width:2; cursor:pointer; transition: fill-opacity .15s ease; }
.cortes-svg .corte:hover, .cortes-svg .corte.hover{ fill-opacity:.78; }
.cortes-svg .corte.activo{ fill-opacity:.88; stroke:#fff; stroke-opacity:1; stroke-width:2.5; }
.cortes-svg .corte.dim{ fill-opacity:.06; pointer-events:none; }
.cortes-svg .corte-label{ font-size:11px; font-weight:700; fill:#fff; pointer-events:none; paint-order:stroke; stroke:#2A1A12; stroke-width:3px; stroke-linejoin:round; }
.cortes-svg .corte-label.dim{ opacity:.2; }
.corte-ficha{ position:sticky; top:90px; min-height:200px; }
.corte-ficha h3{ font-size:24px; margin:10px 0 4px; }
.corte-ingles{ font-size:13px; color: var(--ink-soft); }
.cortes-lista{ display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; }
.cortes-lista button{ display:inline-flex; align-items:center; gap:8px; padding:7px 14px; border-radius:999px; border:1.5px solid var(--line); background: var(--paper); font-family: var(--font-body); font-size:13px; font-weight:600; cursor:pointer; color: var(--ink); }
.cortes-lista button i{ width:10px; height:10px; border-radius:50%; display:inline-block; }
.cortes-lista button.is-active, .cortes-lista button:hover{ border-color: var(--ink); background: var(--cream-2); }
.achuras{ display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap:8px 24px; font-size:14px; color: var(--ink-soft); }
.metodos-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap:20px; }
.metodo{ display:grid; grid-template-columns: 200px 1fr; gap:18px; background: var(--paper); border:1px solid var(--line); border-radius: var(--radius-lg); padding:20px; align-items:start; }
.metodo-ilus{ background: var(--cream); border-radius: var(--radius-md); padding:8px; }
.metodo-ilus svg{ width:100%; height:auto; display:block; }
.metodo h3{ font-size:19px; margin:0 0 2px; }
.metodo-sub{ font-size:13px; color: var(--tierra-dark); font-weight:600; margin:0 0 8px; }
.metodo p{ font-size:14.5px; margin:0 0 8px; }
.metodo ul{ font-size:13.5px; color: var(--ink-soft); display:flex; flex-direction:column; gap:4px; }
.linea-tiempo{ display:flex; gap:6px; }
.lt-etapa{ flex: 0 0 var(--w); display:flex; flex-direction:column; gap:4px; padding:14px 14px 16px; border-radius: var(--radius-md); background: var(--verde-light); font-size:13px; color: var(--ink-soft); }
.lt-etapa:nth-child(1){ background: var(--cream-2); } .lt-etapa:nth-child(3){ background:#CFE3C9; } .lt-etapa:nth-child(4){ background:#BFD8B6; }
.lt-etapa strong{ font-size:15px; color: var(--ink); }
.lt-kg{ font-family: var(--font-display); font-weight:700; font-size:16px; color: var(--tierra-dark); }
.lt-total{ display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-top:14px; font-size:14px; color: var(--ink-soft); }
.comp-fila text{ font-family: var(--font-body); }
@media (max-width:980px){ .cortes-grid{ grid-template-columns:1fr; } .corte-ficha{ position:static; } .metodos-grid{ grid-template-columns:1fr; } .linea-tiempo{ flex-direction:column; } .lt-etapa{ flex-basis:auto; } }
@media (max-width:600px){ .metodo{ grid-template-columns:1fr; } .cortes-svg .corte-label{ font-size:14px; } }

/* ---------- Modo oscuro ---------- */
.theme-toggle{ width:38px; height:38px; border-radius:50%; border:1.5px solid var(--line); background: var(--paper); color: var(--ink); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; padding:0; transition: background .2s ease, transform .2s ease; }
.theme-toggle:hover{ background: var(--cream-2); transform: rotate(-12deg); }
.theme-toggle svg{ width:18px; height:18px; }
.theme-toggle .ico-sol{ display:none; }
:root[data-theme="dark"] .theme-toggle .ico-sol{ display:block; }
:root[data-theme="dark"] .theme-toggle .ico-luna{ display:none; }
html{ color-scheme: light; }
:root[data-theme="dark"]{
  color-scheme: dark;
  --cream:        #17110E;
  --cream-2:      #241B16;
  --paper:        #1E1613;
  --ink:          #F2E9DB;
  --ink-soft:     #C6B5A2;
  --line:         #3D2F27;
  --verde-light:  #22392A;
  --tierra-light: #3C2418;
  --verde-dark:   #8CC593;
  --tierra-dark:  #E0A27F;
  --shadow: 0 12px 32px -12px rgba(0,0,0,.7);
  --shadow-soft: 0 6px 18px -8px rgba(0,0,0,.6);
}
:root[data-theme="dark"] body{ background: var(--cream); color: var(--ink); }
:root[data-theme="dark"] .site-topbar{ background: rgba(15,10,8,.96); }
:root[data-theme="dark"] .site-sidebar{ box-shadow: 24px 0 50px -24px rgba(0,0,0,.6); }
:root[data-theme="dark"] .nav-links a.active{ box-shadow: 0 10px 22px -10px rgba(0,0,0,.6); }
:root[data-theme="dark"] .hero, :root[data-theme="dark"] .site-footer, :root[data-theme="dark"] .dark-band, :root[data-theme="dark"] .page-hero.has-bg, :root[data-theme="dark"] .band-campo{ background-color:#0F0A08; }
:root[data-theme="dark"] .hero-bg img{ opacity:.45; }
:root[data-theme="dark"] .hero .btn-outline:hover, :root[data-theme="dark"] .cta-band .btn-outline:hover{ color:#2A1A12; }
:root[data-theme="dark"] .btn-outline:hover{ background: var(--ink); color:#17110E; }
:root[data-theme="dark"] .paths.has-bg::before{ background: rgba(23,17,14,.88); }
:root[data-theme="dark"] .path-list li{ background: rgba(255,255,255,.07); }
:root[data-theme="dark"] .skill-opt span, :root[data-theme="dark"] .page-hero.has-bg .menu-search input{ background: var(--paper); color: var(--ink); }
:root[data-theme="dark"] .metodo-ilus, :root[data-theme="dark"] .cortes-mapa{ background:#EFE7D6; }
:root[data-theme="dark"] .cortes-lista button{ color: var(--ink); }
:root[data-theme="dark"] .contact-form input, :root[data-theme="dark"] .contact-form select, :root[data-theme="dark"] .contact-form textarea{ background: var(--paper); color: var(--ink); border-color: var(--line); }
:root[data-theme="dark"] img.foto-establecimiento, :root[data-theme="dark"] .media img{ filter: brightness(.9); }
:root[data-theme="dark"] .cta-band{ background: linear-gradient(120deg, #63321B, #2C5A32); }
:root[data-theme="dark"] .alerta{ background: var(--paper); }
:root[data-theme="dark"] .tabla-clima th{ background: var(--cream-2); }

/* ---------- Estados de carga (skeleton / spinner) ---------- */
@keyframes shimmer{ 0%{ background-position: 200% 0; } 100%{ background-position: -200% 0; } }
@keyframes girar{ to{ transform: rotate(360deg); } }
.skeleton{ position:relative; overflow:hidden; border-radius: var(--radius-sm); background: linear-gradient(90deg, var(--cream-2) 25%, var(--paper) 50%, var(--cream-2) 75%); background-size: 200% 100%; animation: shimmer 1.5s linear infinite; color:transparent !important; pointer-events:none; }
.skeleton-line{ height:14px; margin:9px 0; }
.skeleton-line.w40{ width:40%; } .skeleton-line.w60{ width:60%; } .skeleton-line.w80{ width:80%; }
.skeleton-block{ height:120px; margin:8px 0; }
.skeleton-row{ display:flex; gap:12px; margin:10px 0; } .skeleton-row .skeleton{ flex:1; height:56px; }
.skeleton-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap:10px; } .skeleton-grid .skeleton{ height:118px; }
.spinner{ display:inline-block; width:22px; height:22px; border:3px solid var(--line); border-top-color: var(--verde); border-radius:50%; animation: girar .8s linear infinite; vertical-align:middle; }
.cargando-inline{ display:inline-flex; align-items:center; gap:10px; color: var(--ink-soft); font-size:14px; }
.btn.is-loading{ position:relative; color:transparent !important; pointer-events:none; }
.btn.is-loading::after{ content:''; position:absolute; width:18px; height:18px; top:50%; left:50%; margin:-9px 0 0 -9px; border:2.5px solid rgba(255,255,255,.4); border-top-color:#fff; border-radius:50%; animation: girar .8s linear infinite; }
.media.is-loading{ background: linear-gradient(90deg, var(--cream-2) 25%, var(--paper) 50%, var(--cream-2) 75%); background-size:200% 100%; animation: shimmer 1.5s linear infinite; }
.media img{ opacity:0; transition: opacity .35s ease; }
.media img.is-ready, .media:not(.is-loading) img{ opacity:1; }
@media (prefers-reduced-motion: reduce){ .skeleton, .media.is-loading, .spinner, .btn.is-loading::after{ animation:none; } }

/* ---------- Semáforo de frescura de los datos (mercado.html) ---------- */
.sem-barra{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-top:12px; }
.semaforo{ display:inline-flex; align-items:center; gap:7px; font-size:12.5px; line-height:1.2; padding:4px 11px 4px 9px; border-radius:999px; border:1px solid var(--line); background: var(--paper); color: var(--ink); white-space:nowrap; }
.semaforo .sem-dot{ width:11px; height:11px; border-radius:50%; flex:0 0 auto; background:#8a8a8a; box-shadow:0 0 0 3px rgba(138,138,138,.2); }
.semaforo.sem-verde .sem-dot{ background:#2E9E4F; box-shadow:0 0 0 3px rgba(46,158,79,.22); }
.semaforo.sem-amarillo .sem-dot{ background:#E0A100; box-shadow:0 0 0 3px rgba(224,161,0,.25); }
.semaforo.sem-rojo .sem-dot{ background:#C93B2B; box-shadow:0 0 0 3px rgba(201,59,43,.25); animation: sem-pulso 1.6s ease-in-out infinite; }
.semaforo strong{ font-weight:700; }
.semaforo .sem-estado{ opacity:.8; }
.sem-linea{ margin-left:8px; vertical-align:middle; }
.sem-leyenda{ font-size:12px; opacity:.8; margin-top:6px; display:flex; flex-wrap:wrap; gap:4px 16px; }
.sem-leyenda i{ display:inline-block; width:9px; height:9px; border-radius:50%; margin-right:5px; vertical-align:-1px; }
@keyframes sem-pulso{ 0%,100%{ transform:scale(1);} 50%{ transform:scale(1.18);} }
@media (prefers-reduced-motion: reduce){ .semaforo.sem-rojo .sem-dot{ animation:none; } }

/* Indicador de frescura en la marquesina de precios de la portada */
.ticker-sem{ position:absolute; right:8px; top:50%; transform:translateY(-50%); z-index:3; display:inline-flex; align-items:center; gap:6px; font-size:12px; line-height:1; color:#fff; background:rgba(15,10,8,.55); padding:4px 10px 4px 8px; border-radius:999px; backdrop-filter: blur(2px); }
.ticker-sem .sem-dot{ width:10px; height:10px; border-radius:50%; background:#8a8a8a; }
.ticker-sem.sem-verde .sem-dot{ background:#5BE07F; box-shadow:0 0 0 3px rgba(91,224,127,.28); }
.ticker-sem.sem-amarillo .sem-dot{ background:#FFC93C; box-shadow:0 0 0 3px rgba(255,201,60,.3); }
.ticker-sem.sem-rojo .sem-dot{ background:#FF6B5B; box-shadow:0 0 0 3px rgba(255,107,91,.3); }
@media (max-width:520px){ .ticker-sem .sem-txt{ display:none; } }

/* Fila destacada "exportación" (tabla SIO): fondo claro en tema claro, verde oscuro en tema oscuro (antes: fondo claro fijo con texto claro = ilegible) */
.fila-export{ background:#F3F7EE; }
:root[data-theme="dark"] .fila-export{ background:#22392A; }

/* ---------- Satélite en movimiento (clima.html) ---------- */
.sat-card{ background: var(--paper); border:1px solid var(--line); border-radius: var(--radius-lg); padding:20px; box-shadow: var(--shadow-soft); }
.sat-top{ display:flex; flex-wrap:wrap; gap:12px 16px; align-items:center; justify-content:space-between; margin-bottom:14px; }
.sat-visor{ max-width:min(100%, calc(80vh * 1.2937)); margin-inline:auto; position:relative; width:100%; aspect-ratio: 1515 / 1171; background:#0F0A08; border-radius: var(--radius-md); overflow:hidden; }
.sat-visor img#sat-img{ display:block; width:100%; height:100%; object-fit:contain; }
.sat-hora{ position:absolute; left:10px; bottom:10px; background:rgba(15,10,8,.72); color:#fff; font-size:14px; font-weight:700; padding:5px 12px; border-radius:999px; letter-spacing:.01em; }
.sat-carga{ position:absolute; left:10px; right:10px; top:10px; background:rgba(15,10,8,.72); color:#fff; font-size:13px; padding:8px 12px; border-radius:12px; display:flex; flex-direction:column; gap:6px; }
.sat-carga-barra{ height:6px; background:rgba(255,255,255,.22); border-radius:999px; overflow:hidden; }
.sat-carga-barra i{ display:block; height:100%; width:0; background:#5BE07F; transition: width .2s ease; }
.sat-vacio{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; color:#fff; text-align:center; padding:20px; font-size:15px; }
.sat-vacio[hidden], .sat-carga[hidden]{ display:none; }
.sat-barra{ display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; margin-top:14px; }
.sat-barra input[type=range]{ flex:1 1 180px; min-width:140px; accent-color: var(--verde); }
.sat-barra select{ padding:7px 10px; border-radius:10px; border:1px solid var(--line); background: var(--paper); color: var(--ink); font:inherit; font-size:14px; }
.sat-cuenta{ font-variant-numeric: tabular-nums; font-size:14px; min-width:56px; text-align:right; color: var(--ink-soft); }
.sat-leyenda{ margin-top:14px; font-size:14px; }
.sat-leyenda summary{ cursor:pointer; font-weight:600; color: var(--verde-dark); }
.sat-leyenda img{ display:block; max-width:100%; height:auto; margin-top:10px; border-radius:8px; background:#fff; }
@media (max-width:520px){ .sat-card{ padding:14px; } .sat-hora{ font-size:12.5px; } }

/* ---- Barra de estado del clima (abajo): pronóstico a 7 días, ver js/clima-barra.js ---- */
.clima-barra{ position:fixed; left: var(--sidebar-w); right:0; bottom:0; z-index:90; display:flex; align-items:stretch; gap:0; height:54px;
  background: var(--paper); border-top:1px solid var(--line); box-shadow: 0 -6px 18px -10px rgba(42,26,18,.28); font-size:13px; color: var(--ink); }
.clima-barra[hidden]{ display:none; }
.clima-barra.es-min{ left:auto; right:14px; bottom:14px; height:auto; background:transparent; border:0; box-shadow:none; }
body.tiene-clima-barra{ padding-bottom:54px; }
.cb-pastilla{ font:inherit; font-weight:700; font-size:14px; display:inline-flex; align-items:center; gap:6px; padding:9px 14px; border-radius:999px; background: var(--paper); color: var(--ink); border:1px solid var(--line); box-shadow: var(--shadow-soft); cursor:pointer; }
.cb-pastilla:hover{ border-color: var(--verde); }
.cb-ahora{ flex:0 0 auto; display:flex; align-items:center; gap:8px; padding:0 16px; text-decoration:none; color: var(--ink); border-right:1px solid var(--line); background: var(--cream-2); }
.cb-ahora .cb-ico{ font-size:22px; }
.cb-ahora-txt{ display:flex; flex-direction:column; line-height:1.1; }
.cb-ahora-txt b{ font-size:17px; }
.cb-ahora-txt small{ font-size:11px; color: var(--ink-soft); white-space:nowrap; }
.cb-dias{ flex:1 1 auto; display:flex; align-items:stretch; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.cb-dias::-webkit-scrollbar{ display:none; }
.cb-dia{ flex:1 0 auto; min-width:112px; display:flex; align-items:center; justify-content:center; gap:8px; padding:0 12px; text-decoration:none; color: var(--ink); border-right:1px solid var(--line); white-space:nowrap; }
.cb-dia:hover{ background: var(--cream-2); }
.cb-dia.es-hoy{ background: var(--verde-light); }
.cb-dia.es-fuerte .cb-llu{ color:#B3261E; font-weight:700; }
.cb-col{ display:flex; flex-direction:column; line-height:1.25; }
.cb-nom{ font-weight:700; font-size:11px; text-transform:uppercase; letter-spacing:.03em; color: var(--ink-soft); }
.cb-dia .cb-ico{ font-size:22px; }
.cb-temp{ font-size:13px; color: var(--ink-soft); }
.cb-temp b{ color: var(--ink); font-size:14px; }
.cb-llu{ font-size:11.5px; color: var(--verde-dark); }
.cb-dia:not(.es-fuerte) .cb-llu:empty{ display:none; }
.cb-cerrar{ flex:0 0 auto; width:40px; border:0; border-left:1px solid var(--line); background:transparent; color: var(--ink-soft); font-size:22px; cursor:pointer; }
.cb-cerrar:hover{ color: var(--ink); background: var(--cream-2); }
:root[data-theme="dark"] .clima-barra{ box-shadow: 0 -6px 18px -10px rgba(0,0,0,.6); }
:root[data-theme="dark"] .cb-dia.es-hoy{ background: rgba(63,122,69,.28); }
@media (max-width:1140px){
  .clima-barra{ left:0; height:50px; }
  body.tiene-clima-barra{ padding-bottom:50px; }
  .cb-ahora{ padding:0 12px; }
  .cb-ahora-txt small{ display:none; }
  .cb-dia{ min-width:104px; padding:0 9px; gap:6px; }
}

/* Subtítulos H2 de las páginas internas (SEO): mismo aspecto que los títulos de tarjeta */
.contact-card h2, .map-side h2{ font-size:22px; margin:0 0 14px; }
.bloque-texto h2{ font-size:clamp(22px,2.6vw,30px); margin:34px 0 12px; }
.bloque-texto h2:first-child{ margin-top:0; }
.bloque-texto p, .bloque-texto li{ font-size:16px; }
.bloque-texto ul{ padding-left:20px; }
.bloque-texto{ max-width:860px; margin:0 auto; }
