/* EL DERRAPE - Menú hamburguesa editorial */
:root{
  --ed-blue:#083e82;
  --ed-orange:#ff7a3c;
  --ed-red:#ff3b21;
  --ed-ink:#111827;
  --ed-muted:#667085;
  --ed-line:#e5e7eb;
  --ed-bg:#f5f7fb;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:#fff;color:var(--ed-ink);font-family:Arial,Helvetica,sans-serif}
body{font-size:15px;line-height:1.45}
body.menu-open{overflow:hidden}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
.ed-wrap{width:min(1120px,calc(100% - 28px));margin:0 auto}

/* Header */
.ed-header{background:#fff;border-bottom:1px solid var(--ed-line);position:sticky;top:0;z-index:50}
.ed-topline{height:4px;background:linear-gradient(90deg,var(--ed-orange),var(--ed-blue))}
.ed-header-main{height:76px;display:grid;grid-template-columns:170px 1fr 170px;align-items:center;gap:12px}
.ed-header-left{display:flex;align-items:center;gap:10px}
.ed-menu,.ed-close-menu{
  width:36px;height:36px;border:1px solid var(--ed-line);border-radius:999px;background:#fff;
  display:flex;align-items:center;justify-content:center;cursor:pointer;appearance:none
}
.ed-menu-lines{display:flex;flex-direction:column;gap:4px}
.ed-menu-lines span{display:block;width:15px;height:2px;background:var(--ed-blue);border-radius:99px}
.ed-search{height:34px;border:1px solid var(--ed-line);border-radius:999px;padding:0 12px;display:inline-flex;align-items:center;color:var(--ed-blue);font-size:12px;font-weight:800}
.ed-brand{justify-self:center;display:flex;align-items:center;justify-content:center;line-height:1}
.ed-brand img{display:block;width:auto !important;height:auto !important;max-height:58px !important;max-width:280px !important;object-fit:contain}
.ed-live{justify-self:end;background:var(--ed-orange);color:#fff;border-radius:999px;padding:7px 12px;font-size:11px;font-weight:950;letter-spacing:.04em;text-transform:uppercase}
.ed-nav{background:#f2f4f7;border-top:1px solid #edf0f3}
.ed-nav-inner{min-height:34px;display:flex;align-items:center;justify-content:center;gap:0;overflow:auto;white-space:nowrap}
.ed-nav-inner a{font-size:12px;font-weight:850;color:#344054;padding:0 11px;position:relative}
.ed-nav-inner a:not(:last-child)::after{content:"";position:absolute;right:-2px;top:50%;width:4px;height:4px;background:#98a2b3;border-radius:50%;transform:translateY(-50%)}

/* Overlay menu */
.ed-overlay{
  position:fixed;inset:0;background:var(--ed-blue);color:#fff;z-index:120;display:none;
  overflow:auto;
}
.ed-overlay.is-open{display:block}
.ed-overlay-inner{width:min(1200px,calc(100% - 48px));margin:0 auto;padding:40px 0 48px}
.ed-overlay-top{
  display:grid;grid-template-columns:170px 1fr 170px;align-items:center;gap:12px;margin-bottom:44px
}
.ed-overlay-left{display:flex;align-items:center;gap:22px}
.ed-overlay-left a,.ed-overlay-left button{color:#fff}
.ed-close-menu{border-color:rgba(255,255,255,.25);background:transparent;color:#fff;font-size:28px;line-height:1}
.ed-overlay-search{
  display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid rgba(255,255,255,.25);
  border-radius:999px;font-size:24px;background:transparent
}
.ed-overlay-brand{display:flex;align-items:center;justify-content:center}
.ed-overlay-brand img{display:block;max-width:340px;max-height:86px;object-fit:contain;filter:brightness(100%)}
.ed-overlay-live{justify-self:end;background:var(--ed-orange);color:#fff;border-radius:999px;padding:11px 22px;font-weight:950;font-size:16px}
.ed-overlay-grid{
  display:grid;grid-template-columns:380px 1fr 300px;gap:56px;align-items:start
}
.ed-overlay-leftpanel{
  max-width:380px
}
.ed-login-btn{
  display:flex;align-items:center;justify-content:center;height:64px;background:#fff;color:var(--ed-blue);
  font-size:28px;font-weight:900;border-radius:18px;box-shadow:0 6px 20px rgba(0,0,0,.12)
}
.ed-panel-sep{height:1px;background:rgba(255,255,255,.24);margin:28px 0 26px}
.ed-feria{
  background:var(--ed-orange);border-radius:18px;padding:18px 18px 16px;text-align:center;box-shadow:0 6px 20px rgba(0,0,0,.12)
}
.ed-feria strong{display:block;font-size:28px;line-height:1.05}
.ed-feria span{display:block;font-size:19px;font-weight:700;line-height:1.18}
.ed-subs-title{font-size:32px;font-weight:900;text-align:center;margin:18px 0 16px}
.ed-sub-options{display:flex;gap:18px;flex-wrap:wrap}
.ed-sub-pill{
  background:#fff;color:var(--ed-blue);border-radius:16px;padding:10px 16px;font-size:18px;font-weight:900;display:inline-flex;align-items:center;justify-content:center
}
.ed-sub-pill.alt{color:var(--ed-orange)}

.ed-sections-wrap h2{
  margin:0 0 18px;text-align:center;font-size:28px;font-weight:900
}
.ed-sections-rule{height:2px;background:rgba(255,255,255,.75);margin:0 auto 26px;max-width:520px}
.ed-sections-columns{
  display:grid;grid-template-columns:1fr 1px 1fr;gap:34px;align-items:start
}
.ed-sections-divider{width:1px;background:rgba(255,255,255,.7);min-height:440px;justify-self:center}
.ed-sections-list{display:grid;gap:18px}
.ed-sections-list a{font-size:22px;font-weight:800;line-height:1.28;color:#fff}

.ed-social{
  display:flex;flex-direction:column;align-items:flex-start;gap:26px;padding-top:108px
}
.ed-social-icons{display:flex;flex-wrap:wrap;gap:18px 20px}
.ed-social-icons a{
  width:42px;height:42px;border:1px solid rgba(255,255,255,.28);border-radius:999px;
  display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:900
}
.ed-store-row{display:flex;gap:18px;flex-wrap:wrap}
.ed-store{
  border:1px solid rgba(255,255,255,.25);border-radius:12px;padding:10px 16px;background:#fff;color:#111827;font-weight:800
}

/* Portada */
.ed-main{padding:22px 0 42px}
.ed-breaking{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;background:#111827;color:#fff;border-radius:14px;padding:10px 13px;margin-bottom:20px}
.ed-breaking-label{background:var(--ed-orange);border-radius:999px;padding:6px 9px;font-size:11px;font-weight:950;text-transform:uppercase}
.ed-breaking-title{font-family:Georgia,'Times New Roman',serif;font-weight:900}
.ed-breaking-date{font-size:12px;color:#cbd5e1}
.ed-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.85fr);gap:22px}
.ed-lead{border-bottom:3px solid #111;padding-bottom:15px}
.ed-lead img{width:100%;height:380px;object-fit:cover;background:#eef2f7;display:block}
.ed-kicker{font-size:11px;text-transform:uppercase;color:var(--ed-blue);font-weight:950;letter-spacing:.04em;margin:10px 0 6px}
.ed-lead h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(34px,4vw,52px);line-height:.98;letter-spacing:-.05em;margin:0 0 10px}
.ed-lead p{margin:0;color:#475467;font-size:15px;line-height:1.42}
.ed-by{color:var(--ed-blue);font-weight:850;font-size:12px;margin-top:10px}
.ed-side{display:grid;gap:14px}
.ed-side-card,.ed-card{background:#fff;border:1px solid var(--ed-line);box-shadow:0 8px 22px rgba(17,24,39,.07)}
.ed-side-card img{width:100%;height:165px;object-fit:cover;background:#eef2f7;display:block}
.ed-side-body,.ed-card-body{padding:10px}
.ed-side-card h2{font-family:Georgia,'Times New Roman',serif;font-size:19px;line-height:1.05;letter-spacing:-.03em;margin:0 0 8px}
.ed-section-title{display:flex;align-items:center;gap:10px;margin:28px 0 14px}
.ed-section-title::before{content:"";width:46px;height:4px;border-radius:999px;background:var(--ed-orange)}
.ed-section-title h2{margin:0;text-transform:uppercase;font-size:18px;letter-spacing:.05em}
.ed-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.ed-card img{width:100%;height:135px;object-fit:cover;background:#eef2f7;display:block}
.ed-card h3{font-family:Georgia,'Times New Roman',serif;font-size:17px;line-height:1.08;letter-spacing:-.03em;margin:0 0 8px}
.ed-card p{font-size:12px;color:#5f6b7a;line-height:1.35;margin:0}

/* Artículo */
.ed-article{width:min(820px,calc(100% - 28px));margin:28px auto 46px}
.ed-article h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(38px,5vw,66px);line-height:.95;letter-spacing:-.06em;margin:8px 0 12px}
.ed-article-lead{font-size:20px;line-height:1.45;color:#475467;margin:0 0 12px}
.ed-article-img{width:100%;max-height:460px;object-fit:cover;margin:20px 0;display:block}
.ed-content{font-family:Georgia,'Times New Roman',serif;font-size:19px;line-height:1.78;color:#181818}
.ed-content p{margin:0 0 18px}
.ed-content img{max-width:100%;height:auto}

/* Auxiliares */
.ed-page-title{font-family:Georgia,'Times New Roman',serif;font-size:44px;letter-spacing:-.05em;margin:28px 0 16px}
.ed-admin{display:grid;grid-template-columns:330px 1fr;gap:18px;margin:26px auto 44px}
.panel{background:#fff;border:1px solid var(--ed-line);box-shadow:0 8px 22px rgba(17,24,39,.07);padding:18px}
.panel h2{font-family:Georgia,'Times New Roman',serif;margin:0 0 14px;font-size:28px}
.field{display:block;margin:0 0 13px}
.field span{display:block;font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.06em;color:#344054;margin-bottom:5px}
.input,select,textarea{width:100%;min-height:42px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;padding:10px 11px;font:inherit}
textarea{min-height:210px;resize:vertical}
.btn{min-height:40px;border:1px solid var(--ed-line);border-radius:999px;padding:9px 14px;background:#fff;color:var(--ed-blue);font-weight:950;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.btn-primary{background:var(--ed-blue);border-color:var(--ed-blue);color:#fff}
.alert{border-radius:14px;border:1px solid;padding:12px;margin:12px 0}
.ok{background:#f0fdf4;border-color:#bbf7d0;color:#166534}
.err{background:#fff1f2;border-color:#fecaca;color:#991b1b}
.table{width:100%;border-collapse:collapse}
.table th,.table td{border-bottom:1px solid var(--ed-line);padding:9px;text-align:left;vertical-align:top;font-size:13px}
.table th{background:#f8fafc;text-transform:uppercase;letter-spacing:.06em;font-size:11px;color:#475569}
.ed-footer{background:#0f172a;color:#cbd5e1;margin-top:35px;padding:30px 0}
.ed-footer-grid{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.ed-footer strong{color:#fff}

@media(max-width:1200px){
  .ed-overlay-grid{grid-template-columns:320px 1fr 220px;gap:34px}
  .ed-sections-list a{font-size:19px}
}
@media(max-width:980px){
  .ed-header-main{grid-template-columns:80px 1fr 80px;height:66px}
  .ed-brand img{max-height:44px !important;max-width:220px !important}
  .ed-search{display:none}
  .ed-grid,.ed-admin{grid-template-columns:1fr}
  .ed-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ed-lead img{height:260px}
  .ed-overlay-top{grid-template-columns:120px 1fr 120px}
  .ed-overlay-grid{grid-template-columns:1fr;gap:28px}
  .ed-social{padding-top:0}
  .ed-sections-columns{grid-template-columns:1fr}
  .ed-sections-divider{display:none}
  .ed-overlay-leftpanel{max-width:none}
}
@media(max-width:560px){
  .ed-card-grid{grid-template-columns:1fr}
  .ed-breaking{grid-template-columns:1fr}
  .ed-side-card img,.ed-card img{height:190px}
  .ed-overlay-inner{width:min(100% - 24px,1200px);padding-top:20px}
  .ed-overlay-top{grid-template-columns:92px 1fr 100px}
  .ed-overlay-brand img{max-width:220px;max-height:56px}
  .ed-overlay-live{padding:9px 12px;font-size:12px}
  .ed-sub-options{gap:10px}
  .ed-sub-pill{font-size:15px;padding:8px 12px}
  .ed-login-btn{font-size:22px;height:54px}
}


/* La Feria */
.feria-shell{display:grid;grid-template-columns:240px 1fr;background:#edf0f4;min-height:calc(100vh - 110px)}
.feria-sidebar{background:#2e5595;color:#fff;padding:22px 14px;position:sticky;top:0;height:100vh;overflow:auto}
.feria-login{display:flex;align-items:center;justify-content:center;background:#fff;color:#083e82;border-radius:10px;height:54px;font-size:20px;font-weight:900;margin-bottom:24px}
.feria-side-sep{height:1px;background:rgba(255,255,255,.28);margin:18px 0}
.feria-box-orange{display:block;background:#ff7a3c;color:#fff;border-radius:12px;padding:18px 12px;text-align:center;margin-bottom:24px}
.feria-box-orange strong{display:block;font-size:24px}
.feria-box-orange span{font-weight:700}
.feria-sidebar h3{text-align:center;font-size:24px;margin:18px 0}
.feria-sub-list{display:grid;gap:10px}
.feria-sub-list a{display:flex;align-items:center;justify-content:center;background:#083e82;color:#fff;border-radius:8px;height:38px;font-weight:850;font-size:13px}
.feria-help{border-top:1px solid rgba(255,255,255,.28);margin-top:24px;padding-top:16px;display:grid;gap:8px}
.feria-main{padding:34px 28px 46px;max-width:1240px;width:100%;margin:0 auto}
.feria-hero{background:linear-gradient(120deg,#ff7a3c 0 30%,#083e82 30% 100%);color:#fff;min-height:220px;display:grid;grid-template-columns:260px 1fr auto;align-items:center;gap:22px;padding:26px 30px;margin-bottom:24px}
.feria-hero-icon{font-size:120px;text-align:center;line-height:1}
.feria-hero h1{font-size:48px;font-style:italic;letter-spacing:.04em;margin:0;color:#ff7a3c}
.feria-hero p{font-size:20px;line-height:1.35;margin:8px 0 0;max-width:620px}
.feria-hero a{align-self:end;background:#ff7a3c;color:#fff;border-radius:999px;padding:15px 28px;font-size:18px;font-weight:950}
.feria-actions{display:grid;grid-template-columns:260px 260px 260px 1fr;gap:18px;align-items:center;margin:18px 0}
.feria-action{height:50px;border-radius:999px;color:#fff;font-weight:900;display:flex;align-items:center;justify-content:center}
.feria-action.primary{background:#2e5595}
.feria-action.orange{background:#ff7a3c}
.feria-action.soft{background:#ffad91;color:#fff}
.feria-search input{width:100%;height:50px;border:0;border-radius:999px;background:#fff;padding:0 20px;font:inherit}
.feria-found{text-align:right;color:#526d99;font-size:20px;font-weight:900;margin:10px 0 24px}
.feria-content-grid{display:grid;grid-template-columns:280px 1fr;gap:22px}
.feria-filters{background:#fff;border-radius:8px;box-shadow:0 4px 18px rgba(17,24,39,.06);padding:18px}
.feria-filters h2{font-size:14px;text-transform:uppercase;color:#9aaed0;font-weight:700;margin:0 0 14px}
.filter-pill{display:inline-flex;background:#ff7a3c;color:#fff;border-radius:8px;padding:8px 12px;font-size:13px;margin-bottom:18px}
.feria-filters h3{border-top:1px solid #edf0f5;padding-top:18px;color:#9aaed0;text-transform:uppercase;font-size:14px}
.feria-filters nav{display:grid;gap:8px}
.feria-filters nav a{font-size:13px;color:#526d99}
.feria-list{display:grid;gap:0}
.feria-ad{display:grid;grid-template-columns:190px 1fr 260px;background:#fff;border-bottom:1px solid #e5e7eb;min-height:190px}
.feria-ad-img{background:#edf0f4;display:flex;align-items:center;justify-content:center;overflow:hidden}
.feria-ad-img img{width:100%;height:100%;object-fit:cover}
.feria-ad-img span{font-size:34px;font-weight:950;color:#2e5595}
.feria-ad-body{padding:20px}
.feria-ad-cat{color:#2e5595;text-transform:uppercase;font-size:11px;font-weight:950;margin-bottom:6px}
.feria-ad h2{font-size:20px;margin:0 0 8px}
.feria-zone{color:#526d99;margin:0 0 8px}
.feria-ad small{display:block;color:#ff7a3c;margin-top:12px}
.feria-ad-contact{border-left:1px solid #e5e7eb;padding:20px;display:flex;flex-direction:column;gap:8px}
.feria-ad-contact strong{font-size:14px}
.feria-ad-contact span{color:#526d99}
.feria-contact-icons{display:flex;gap:14px;margin-top:12px}
.feria-contact-icons a{width:44px;height:44px;background:#f1f3f6;color:#ff7a3c;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:900}
@media(max-width:1000px){
  .feria-shell{grid-template-columns:1fr}
  .feria-sidebar{position:relative;height:auto}
  .feria-hero{grid-template-columns:1fr;text-align:center}
  .feria-actions,.feria-content-grid,.feria-ad{grid-template-columns:1fr}
  .feria-found{text-align:left}
  .feria-ad-img{height:220px}
}


/* Header grande + cotización LUM */
.ed-header{transition:box-shadow .2s ease, transform .2s ease}
.ed-header-main{height:132px !important;transition:height .22s ease}
.ed-brand img{max-height:108px !important;max-width:560px !important;transition:max-height .22s ease,max-width .22s ease}
.ed-header.is-shrunk{box-shadow:0 8px 24px rgba(15,23,42,.10)}
.ed-header.is-shrunk .ed-header-main{height:70px !important}
.ed-header.is-shrunk .ed-brand img{max-height:52px !important;max-width:310px !important}
.ed-header.is-shrunk .ed-nav{display:block!important}
.ed-market-strip{background:#fff;border-bottom:1px solid #e5e7eb;padding:22px 0;transition:padding .22s ease}
.ed-header-shrunk .ed-market-strip{padding:10px 0}
.ed-market-inner{background:#f2f2f3;min-height:68px;display:flex;align-items:center;justify-content:center;gap:0;overflow:auto;white-space:nowrap;padding:0 18px}
.ed-market-item{display:flex;align-items:center;gap:9px;padding:0 16px;border-right:1px solid #d7dce3;font-size:16px}
.ed-market-item:last-child{border-right:0}
.ed-market-item strong{font-weight:950;color:#2b3442}
.ed-market-item span{color:#1f2937}
.ed-market-item small{color:#667085}
.ed-market-item em{font-style:normal;font-weight:950}
.trend-up{color:#22c55e}.trend-down{color:#ef4444}.trend-same{color:#2563eb}
@media(max-width:980px){
  .ed-header-main{height:92px !important}
  .ed-brand img{max-height:76px !important;max-width:330px !important}
  .ed-header.is-shrunk .ed-header-main{height:62px !important}
  .ed-header.is-shrunk .ed-brand img{max-height:42px !important;max-width:220px !important}
  .ed-market-inner{justify-content:flex-start;min-height:56px}
  .ed-market-item{font-size:13px;padding:0 12px}
}


/* FIX cotizaciones ancho fijo + scroll estable */
.ed-market-strip{
  background:#fff;
  border-bottom:1px solid #e5e7eb;
  padding:22px 0 !important;
  position:relative;
  z-index:20;
}
.ed-header-shrunk .ed-market-strip{
  padding:12px 0 !important;
}
.ed-market-inner{
  width:min(1120px, calc(100% - 28px)) !important;
  max-width:1120px !important;
  margin:0 auto !important;
  background:#f2f2f3;
  min-height:68px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow-x:auto;
  overflow-y:hidden;
  white-space:nowrap;
  padding:0 18px;
  scrollbar-width:thin;
  overscroll-behavior-x:contain;
}
.ed-market-inner::-webkit-scrollbar{height:6px}
.ed-market-inner::-webkit-scrollbar-thumb{background:#c7ced8;border-radius:99px}
.ed-market-item{
  flex:0 0 auto;
  min-width:max-content;
}
.ed-header{
  will-change:auto;
}
.ed-header.is-shrunk .ed-nav{
  display:block !important;
}
.ed-header.is-shrunk .ed-header-main{
  height:74px !important;
}
.ed-header.is-shrunk .ed-brand img{
  max-height:54px !important;
  max-width:320px !important;
}
.ed-feria-link{
  color:#fff;
  text-decoration:none;
}
@media(max-width:980px){
  .ed-market-inner{
    justify-content:flex-start !important;
    min-height:56px;
  }
  .ed-market-strip{
    padding:12px 0 !important;
  }
}


/* Logo blanco/naranja del menú hamburguesa */
.ed-overlay-brand img{
  display:block;
  width:auto !important;
  height:auto !important;
  max-width:520px !important;
  max-height:150px !important;
  object-fit:contain !important;
  filter:none !important;
}
@media(max-width:980px){
  .ed-overlay-brand img{
    max-width:320px !important;
    max-height:90px !important;
  }
}
@media(max-width:560px){
  .ed-overlay-brand img{
    max-width:230px !important;
    max-height:70px !important;
  }
}


/* FIX FINAL: barra de cotizaciones estable */
.ed-header{
  position:sticky;
  top:0;
  z-index:80;
  transform:none!important;
  will-change:auto!important;
}
.ed-header-main{
  height:132px!important;
  transition:inherit;
}
.ed-brand img{
  max-height:108px!important;
  max-width:560px!important;
  transition:inherit;
}
.ed-header.is-shrunk,
body .ed-header{
  box-shadow:none!important;
}
.ed-header.is-shrunk .ed-header-main{
  height:132px!important;
}
.ed-header.is-shrunk .ed-brand img{
  max-height:108px!important;
  max-width:560px!important;
}
.ed-header.is-shrunk .ed-nav{
  display:block!important;
}
.ed-market-strip,
.ed-header-shrunk .ed-market-strip{
  padding:18px 0!important;
  transition:inherit;
  background:#fff;
}
.ed-market-inner{
  width:min(1120px, calc(100% - 28px))!important;
  max-width:1120px!important;
  margin:0 auto!important;
  background:#f2f2f3;
  min-height:68px;
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center;
  justify-content:center!important;
  overflow:visible!important;
  white-space:normal!important;
  padding:0 18px;
}
.ed-market-item{
  flex:0 1 auto!important;
  min-width:auto!important;
  display:flex;
  align-items:center;
  gap:9px;
  padding:9px 16px;
  border-right:1px solid #d7dce3;
  font-size:16px;
}
.ed-market-item:last-child{border-right:0}
.ed-market-item strong{font-weight:950;color:#1f2937}
.ed-market-item span{color:#0f172a}
.ed-market-item small{color:#667085}
.ed-market-item em{font-style:normal;font-weight:950}

/* La Feria del menú hamburguesa: bloque azul integrado, no cuadrado naranja */
.ed-feria-panel{
  position:relative;
  display:block;
  min-height:150px;
  background:#104a8f!important;
  color:#fff!important;
  border-radius:0!important;
  padding:36px 24px 28px 118px!important;
  overflow:hidden;
  text-align:center!important;
  border-top:1px solid rgba(255,255,255,.34)!important;
  border-bottom:1px solid rgba(255,255,255,.12)!important;
  box-shadow:none!important;
  text-decoration:none!important;
}
.ed-feria-panel::before,
.ed-feria-panel::after{
  content:"";
  position:absolute;
  left:-18px;
  width:72px;
  height:72px;
  background:#ff7a3c;
  border-radius:999px;
}
.ed-feria-panel::before{top:26px}
.ed-feria-panel::after{bottom:18px}
.ed-feria-panel strong{
  display:block;
  font-size:34px!important;
  line-height:1.05;
  font-weight:950;
}
.ed-feria-panel span{
  display:block;
  margin-top:4px;
  color:#fff!important;
  font-size:24px!important;
  line-height:1.12;
  font-weight:900;
}

/* La Feria pública: tarjeta lateral más limpia */
.feria-box-orange{
  background:#104a8f!important;
  color:#fff!important;
  border:0!important;
  border-radius:0!important;
  position:relative;
  overflow:hidden;
  padding-left:86px!important;
  text-align:center!important;
}
.feria-box-orange::before,
.feria-box-orange::after{
  content:"";
  position:absolute;
  left:-16px;
  width:58px;
  height:58px;
  background:#ff7a3c;
  border-radius:999px;
}
.feria-box-orange::before{top:18px}
.feria-box-orange::after{bottom:12px}
.feria-box-orange strong{color:#fff!important}
.feria-box-orange span{color:#fff!important}

/* Estilo de artículos de opinión */
.ed-opinion-authorbar{
  border-top:5px solid #00828b;
  border-bottom:1px solid #00828b;
  min-height:82px;
  display:flex;
  align-items:center;
  gap:18px;
  margin:0 0 76px;
}
.ed-opinion-avatar{
  width:112px;
  height:112px;
  border-radius:999px;
  object-fit:cover;
  background:#a6d3d1;
  margin-left:8px;
}
.ed-opinion-author{
  font-size:30px;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.02em;
}
.ed-opinion-author strong{
  font-weight:950;
}
.ed-opinion-shell{
  width:min(1460px,calc(100% - 48px));
  margin:0 auto 48px;
}
.ed-opinion-kicker{
  font-size:20px;
  text-transform:uppercase;
  margin-bottom:16px;
  color:#111;
}
.ed-opinion-mark{
  width:62px;
  height:4px;
  background:#083e82;
  margin-bottom:84px;
}
.ed-opinion-title{
  font-family:Georgia,'Times New Roman',serif;
  font-size:clamp(46px,5vw,78px);
  line-height:1.16;
  letter-spacing:-.045em;
  max-width:1380px;
  margin:0 0 34px;
}
.ed-opinion-lead{
  font-size:29px;
  line-height:1.45;
  max-width:1360px;
  margin:0 0 48px;
  color:#111;
}
.ed-opinion-date{
  font-size:18px;
  color:#111;
}
@media(max-width:980px){
  .ed-header-main,
  .ed-header.is-shrunk .ed-header-main{
    height:92px!important;
  }
  .ed-brand img,
  .ed-header.is-shrunk .ed-brand img{
    max-height:76px!important;
    max-width:330px!important;
  }
  .ed-market-inner{
    overflow-x:auto!important;
    overflow-y:hidden!important;
    white-space:nowrap!important;
    flex-wrap:nowrap!important;
    justify-content:flex-start!important;
  }
  .ed-market-item{font-size:13px;padding:8px 12px}
  .ed-feria-panel{padding:28px 16px 24px 86px!important}
  .ed-feria-panel strong{font-size:28px!important}
  .ed-feria-panel span{font-size:18px!important}
  .ed-opinion-shell{width:min(100% - 28px,900px)}
  .ed-opinion-authorbar{margin-bottom:42px}
  .ed-opinion-title{font-size:42px}
  .ed-opinion-lead{font-size:20px}
}


/* BOTÓN LA FERIA - estilo solicitado */
.ed-feria-panel,
.ed-feria,
.ed-feria-link-card{
  display:block !important;
  background:#ff713b !important;
  color:#fff !important;
  border:0 !important;
  border-radius:14px !important;
  padding:16px 18px 14px !important;
  text-align:center !important;
  text-decoration:none !important;
  box-shadow:none !important;
  min-height:auto !important;
  overflow:hidden !important;
}
.ed-feria-panel::before,
.ed-feria-panel::after,
.ed-feria::before,
.ed-feria::after,
.ed-feria-link-card::before,
.ed-feria-link-card::after{
  display:none !important;
  content:none !important;
}
.ed-feria-panel strong,
.ed-feria strong,
.ed-feria-link-card strong{
  display:block !important;
  color:#fff !important;
  font-size:28px !important;
  line-height:1.1 !important;
  font-weight:950 !important;
  margin:0 0 6px !important;
}
.ed-feria-panel span,
.ed-feria span,
.ed-feria-link-card span{
  display:block !important;
  color:#fff !important;
  font-size:16px !important;
  line-height:1.2 !important;
  font-weight:850 !important;
  margin:0 !important;
}

/* Botón lateral de /feria.php igual al botón del menú */
.feria-box-orange{
  display:block !important;
  background:#ff713b !important;
  color:#fff !important;
  border:0 !important;
  border-radius:14px !important;
  padding:16px 18px 14px !important;
  text-align:center !important;
  box-shadow:none !important;
}
.feria-box-orange::before,
.feria-box-orange::after{
  display:none !important;
  content:none !important;
}
.feria-box-orange strong{
  display:block !important;
  color:#fff !important;
  font-size:28px !important;
  line-height:1.1 !important;
  font-weight:950 !important;
  margin:0 0 6px !important;
}
.feria-box-orange span{
  display:block !important;
  color:#fff !important;
  font-size:16px !important;
  line-height:1.2 !important;
  font-weight:850 !important;
  margin:0 !important;
}


/* FIX BARRA COTIZACIONES - formato limpio */
.ed-market-strip,
.ed-header-shrunk .ed-market-strip{
  background:#fff !important;
  border-bottom:1px solid #e5e7eb !important;
  padding:18px 0 !important;
  transition:inherit;
}

.ed-market-inner{
  width:min(1120px, calc(100% - 28px)) !important;
  max-width:1120px !important;
  margin:0 auto !important;
  background:#f2f2f3 !important;
  min-height:68px !important;
  display:grid !important;
  grid-template-columns:repeat(5, minmax(0, 1fr)) !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
  white-space:normal !important;
  padding:0 !important;
  border-radius:0 !important;
}

.ed-market-item{
  min-width:0 !important;
  width:100% !important;
  height:68px !important;
  padding:0 14px !important;
  border-right:1px solid #d7dce3 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:7px !important;
  font-size:15px !important;
  line-height:1.15 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
}

.ed-market-item:last-child{
  border-right:0 !important;
}

.ed-market-item strong{
  font-size:17px !important;
  font-weight:950 !important;
  color:#111827 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

.ed-market-item span{
  font-size:16px !important;
  color:#0f172a !important;
  flex:0 0 auto !important;
}

.ed-market-item small{
  font-size:13px !important;
  color:#667085 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

.ed-market-item em{
  font-size:15px !important;
  font-style:normal !important;
  font-weight:950 !important;
  flex:0 0 auto !important;
}

.ed-market-item .trend-up,
.trend-up{color:#22c55e !important}
.ed-market-item .trend-down,
.trend-down{color:#ef4444 !important}
.ed-market-item .trend-same,
.trend-same{color:#2563eb !important}

@media(max-width:1100px){
  .ed-market-inner{
    display:flex !important;
    justify-content:flex-start !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    white-space:nowrap !important;
    scrollbar-width:thin !important;
    padding:0 10px !important;
  }
  .ed-market-item{
    width:auto !important;
    min-width:230px !important;
    flex:0 0 auto !important;
    justify-content:flex-start !important;
  }
}

@media(max-width:560px){
  .ed-market-strip,
  .ed-header-shrunk .ed-market-strip{
    padding:10px 0 !important;
  }
  .ed-market-inner{
    min-height:54px !important;
  }
  .ed-market-item{
    height:54px !important;
    min-width:210px !important;
    font-size:13px !important;
  }
  .ed-market-item strong{font-size:14px !important}
  .ed-market-item span{font-size:13px !important}
  .ed-market-item small{font-size:12px !important}
}


/* HEADER FINAL: grande y reduce al hacer scroll */
.ed-header{
  position:sticky!important;
  top:0!important;
  z-index:80!important;
  background:#fff!important;
  transform:none!important;
  will-change:auto!important;
  transition:box-shadow .18s ease!important;
}
.ed-header-main{
  height:168px!important;
  transition:height .22s ease!important;
}
.ed-brand img{
  max-height:138px!important;
  max-width:720px!important;
  width:auto!important;
  height:auto!important;
  object-fit:contain!important;
  transition:max-height .22s ease,max-width .22s ease!important;
}
.ed-header.is-shrunk{
  box-shadow:0 8px 22px rgba(15,23,42,.10)!important;
}
.ed-header.is-shrunk .ed-header-main{
  height:78px!important;
}
.ed-header.is-shrunk .ed-brand img{
  max-height:58px!important;
  max-width:340px!important;
}
.ed-header.is-shrunk .ed-nav{
  display:block!important;
}
.ed-market-strip{
  transition:padding .22s ease!important;
}
.ed-header-shrunk .ed-market-strip{
  padding:10px 0!important;
}

/* FOOTER estilo editorial */
.ed-footer{
  background:#fff!important;
  color:#071323!important;
  margin-top:48px!important;
  padding:0 0 38px!important;
  border-top:0!important;
}
.ed-subscribe-strip{
  width:min(1420px,calc(100% - 96px));
  margin:0 auto 54px;
  background:#073f82;
  color:#fff;
  min-height:126px;
  display:grid;
  grid-template-columns:1fr 420px;
  gap:32px;
  align-items:center;
  padding:24px 48px;
}
.ed-subscribe-strip p{
  margin:0;
  font-size:24px;
  line-height:1.45;
}
.ed-subscribe-strip strong{font-weight:950}
.ed-subscribe-btn{
  background:#ff713b;
  color:#fff;
  border-radius:10px;
  min-height:64px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:32px;
  font-weight:950;
  text-decoration:none;
}
.ed-footer-main{
  width:min(1280px,calc(100% - 96px));
  margin:0 auto;
  display:grid;
  grid-template-columns:320px 220px 1fr;
  gap:64px;
  align-items:start;
}
.ed-footer-logo img{
  max-width:280px;
  height:auto;
  display:block;
  margin-bottom:52px;
}
.ed-footer-social-title{
  font-size:21px;
  font-weight:950;
  text-align:center;
  margin:0 0 22px;
}
.ed-footer-socials{
  display:grid;
  grid-template-columns:repeat(4,42px);
  gap:20px 28px;
  justify-content:center;
}
.ed-footer-socials a{
  width:42px;
  height:42px;
  background:#073f82;
  color:#fff;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:950;
  font-size:18px;
  text-decoration:none;
}
.ed-footer-app{
  margin-top:36px;
  text-align:center;
  font-size:26px;
  line-height:1.1;
  font-weight:950;
  letter-spacing:.04em;
}
.ed-footer-section-title{
  display:inline-block;
  font-size:27px;
  line-height:1;
  font-weight:950;
  margin:0 0 20px;
  border-bottom:3px solid #111;
}
.ed-footer-sections{
  display:grid;
  gap:11px;
}
.ed-footer-sections a{
  font-size:22px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:.06em;
  text-decoration:none;
}
.ed-footer-sections .ed-divider{
  height:1px;
  background:#bfc7d2;
  margin:4px 0 6px;
}
.ed-footer-news-list{
  display:grid;
}
.ed-footer-news-item{
  padding:0 0 18px;
  margin:0 0 18px;
  border-bottom:1px solid #dfe3e8;
}
.ed-footer-news-cat{
  color:#073f82;
  font-size:16px;
  line-height:1;
  font-weight:950;
  margin-bottom:10px;
}
.ed-footer-news-title{
  font-family:Georgia,'Times New Roman',serif;
  font-size:28px;
  line-height:1.22;
  letter-spacing:-.02em;
  margin:0;
}
@media(max-width:980px){
  .ed-header-main{height:104px!important}
  .ed-brand img{max-height:84px!important;max-width:360px!important}
  .ed-header.is-shrunk .ed-header-main{height:66px!important}
  .ed-header.is-shrunk .ed-brand img{max-height:44px!important;max-width:230px!important}
  .ed-subscribe-strip{width:min(100% - 28px,900px);grid-template-columns:1fr;padding:22px;gap:18px}
  .ed-subscribe-strip p{font-size:18px}
  .ed-subscribe-btn{font-size:24px;min-height:54px}
  .ed-footer-main{width:min(100% - 28px,900px);grid-template-columns:1fr;gap:34px}
  .ed-footer-logo img{margin:0 auto 28px;max-width:240px}
  .ed-footer-news-title{font-size:23px}
}


/* DIVISAS FINAL: barra prolija tipo ticker */
.ed-market-strip,
.header-shrunk .ed-market-strip,
.ed-header-shrunk .ed-market-strip{
  background:#fff !important;
  border-bottom:1px solid #e5e7eb !important;
  padding:18px 0 !important;
  overflow:hidden !important;
  transition:none !important;
}

.ed-market-box{
  width:min(1120px, calc(100% - 28px)) !important;
  max-width:1120px !important;
  margin:0 auto !important;
  background:#f2f2f3 !important;
  min-height:58px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
  white-space:nowrap !important;
  padding:0 18px !important;
  border-radius:0 !important;
}

.ed-market-inner{
  width:min(1120px, calc(100% - 28px)) !important;
  max-width:1120px !important;
  margin:0 auto !important;
  background:#f2f2f3 !important;
  min-height:58px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
  white-space:nowrap !important;
  padding:0 18px !important;
  border-radius:0 !important;
}

.ed-market-item{
  height:58px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  padding:0 18px !important;
  border-right:1px solid #d7dce3 !important;
  font-size:15px !important;
  line-height:1 !important;
  white-space:nowrap !important;
  flex:0 0 auto !important;
  min-width:auto !important;
  width:auto !important;
  overflow:visible !important;
}

.ed-market-item:last-child{
  border-right:0 !important;
}

.ed-market-item strong{
  font-size:16px !important;
  font-weight:950 !important;
  color:#111827 !important;
  white-space:nowrap !important;
  overflow:visible !important;
  text-overflow:clip !important;
  min-width:auto !important;
}

.ed-market-item span{
  font-size:16px !important;
  color:#0f172a !important;
  white-space:nowrap !important;
  flex:0 0 auto !important;
}

.ed-market-item small{
  font-size:14px !important;
  color:#667085 !important;
  white-space:nowrap !important;
  overflow:visible !important;
  text-overflow:clip !important;
}

.ed-market-item em{
  font-size:14px !important;
  font-style:normal !important;
  font-weight:950 !important;
  flex:0 0 auto !important;
}

.trend-up{color:#22c55e !important}
.trend-down{color:#ef4444 !important}
.trend-same{color:#2563eb !important}

@media(max-width:1100px){
  .ed-market-box,
  .ed-market-inner{
    justify-content:flex-start !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    scrollbar-width:thin !important;
    padding:0 12px !important;
  }
  .ed-market-box::-webkit-scrollbar,
  .ed-market-inner::-webkit-scrollbar{height:6px}
  .ed-market-box::-webkit-scrollbar-thumb,
  .ed-market-inner::-webkit-scrollbar-thumb{background:#c7ced8;border-radius:999px}
  .ed-market-item{
    padding:0 14px !important;
  }
}

@media(max-width:560px){
  .ed-market-strip,
  .header-shrunk .ed-market-strip,
  .ed-header-shrunk .ed-market-strip{
    padding:10px 0 !important;
  }
  .ed-market-box,
  .ed-market-inner{
    min-height:50px !important;
  }
  .ed-market-item{
    height:50px !important;
    gap:6px !important;
    padding:0 12px !important;
  }
  .ed-market-item strong,
  .ed-market-item span{font-size:13px !important}
  .ed-market-item small,
  .ed-market-item em{font-size:12px !important}
}


/* ESTILO DIVISAS tipo referencia del usuario */
.ed-market-strip{
  background:transparent !important;
  border-bottom:0 !important;
  padding:18px 0 14px !important;
  overflow:hidden !important;
}
.ed-market-box,
.ed-market-inner{
  width:min(1560px, calc(100% - 40px)) !important;
  max-width:1560px !important;
  margin:0 auto !important;
  background:#f1f1f1 !important;
  min-height:70px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex-wrap:nowrap !important;
  overflow:hidden !important;
  white-space:nowrap !important;
  padding:0 26px !important;
  border-radius:0 !important;
  box-sizing:border-box !important;
}
.ed-market-item{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:10px !important;
  flex:0 0 auto !important;
  width:auto !important;
  min-width:auto !important;
  height:70px !important;
  padding:0 18px !important;
  border-right:1px solid #d7d7d7 !important;
  white-space:nowrap !important;
  overflow:visible !important;
  font-size:15px !important;
  line-height:1 !important;
}
.ed-market-item:last-child{border-right:0 !important}
.ed-market-item strong{
  font-size:17px !important;
  line-height:1 !important;
  font-weight:900 !important;
  color:#2d3748 !important;
  letter-spacing:-.01em !important;
}
.ed-market-item span{
  font-size:16px !important;
  line-height:1 !important;
  font-weight:400 !important;
  color:#374151 !important;
}
.ed-market-item small{
  font-size:15px !important;
  line-height:1 !important;
  color:#76839a !important;
}
.ed-market-item em{
  font-size:14px !important;
  line-height:1 !important;
  font-style:normal !important;
  font-weight:900 !important;
}
.ed-market-item .trend-up,.trend-up{color:#8dcf8b !important}
.ed-market-item .trend-down,.trend-down{color:#ff5a5a !important}
.ed-market-item .trend-same,.trend-same{color:#2563eb !important}

@media (max-width: 1180px){
  .ed-market-box,
  .ed-market-inner{
    justify-content:flex-start !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    scrollbar-width:thin !important;
  }
  .ed-market-item{padding:0 14px !important;height:60px !important}
}
@media (max-width: 640px){
  .ed-market-strip{padding:10px 0 !important}
  .ed-market-box,
  .ed-market-inner{width:calc(100% - 20px) !important;min-height:52px !important;padding:0 10px !important}
  .ed-market-item{height:52px !important;gap:8px !important;padding:0 12px !important}
  .ed-market-item strong{font-size:14px !important}
  .ed-market-item span,.ed-market-item small,.ed-market-item em{font-size:13px !important}
}
