:root {
  --red: #dc2626; --red-d: #b91c1c; --red-50: #fef2f2;
  --g50: #f9fafb; --g100: #f3f4f6; --g200: #e5e7eb; --g300: #d1d5db; --g400: #9ca3af;
  --g500: #6b7280; --g600: #4b5563; --g700: #374151; --g800: #1f2937; --g900: #111827;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--g50); color: var(--g900); line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.ic { width: 16px; height: 16px; flex: none; }
[hidden] { display: none !important; }

/* Encabezado */
.hdr { background: #fff; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 50; }
.hdr-in { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; gap: 16px; }
.logo { display: flex; align-items: center; }
.logo-img { height: 48px; width: auto; }
.logo-img.inv { height: 48px; background: #fff; padding: 5px 8px; border-radius: 6px; }
.f-login { display: inline-flex; align-items: center; gap: 6px; justify-content: center; margin-top: 16px; width: 40px; height: 40px; border: 1px solid var(--g700); border-radius: 50%; font-size: 14px; font-weight: 700; color: #fff; transition: .15s; }
.f-login:hover { background: var(--red); border-color: var(--red); }
.logo-txt { display: inline-flex; flex-direction: column; line-height: 1; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.logo-txt b { color: var(--red); font-size: 17px; }
.logo-txt i { font-style: normal; background: var(--red); color: #fff; font-size: 15px; padding: 3px 6px; margin-top: 2px; border-radius: 2px; }
.ftr .logo-txt b { color: #fff; }
.nav { display: none; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-a { display: block; padding: 8px 12px; font-size: 14px; font-weight: 500; color: var(--g700); border-radius: 6px; transition: .15s; white-space: nowrap; }
.nav-a:hover, .nav-item:hover > .nav-a { background: var(--red-50); color: var(--red); }
.nav-a.on { background: var(--red); color: #fff; }
.drop { position: absolute; top: 100%; left: 0; min-width: 190px; background: #fff; border-radius: 8px; box-shadow: var(--shadow-xl); border: 1px solid var(--g100); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.nav-item:hover .drop, .nav-item:focus-within .drop { opacity: 1; visibility: visible; transform: none; }
.drop a { display: block; padding: 8px 12px; font-size: 14px; border-radius: 6px; color: var(--g700); }
.drop a:hover { background: var(--red-50); color: var(--red); }
.nav-ico { margin-left: 12px; padding: 10px 12px; border-left: 1px solid var(--g200); color: var(--g600); display: flex; }
.nav-ico:hover { color: var(--red); }
.nav-ico .ic, .burger .ic { width: 22px; height: 22px; }
.burger { background: none; border: 0; padding: 8px; color: var(--g700); display: flex; border-radius: 6px; }
.burger:hover { color: var(--red); background: var(--red-50); }
@media (min-width: 1280px) { .nav { display: flex; } .hdr .burger { display: none; } }

/* Menú a pantalla completa (móvil) */
.mmenu { position: fixed; inset: 0; z-index: 100; background: #fff; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; animation: mm .22s ease-out; }
@keyframes mm { from { opacity: 0; transform: translateY(-12px); } }
.mmenu > * { flex: none; }
.mmenu-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--g200); position: sticky; top: 0; background: #fff; z-index: 1; }
.mmenu-search { display: flex; margin: 16px; border: 1px solid var(--g300); border-radius: 8px; overflow: hidden; }
.mmenu-search input { flex: 1; border: 0; padding: 12px 14px; outline: 0; min-width: 0; font-size: 16px; }
.mmenu-search button { border: 0; background: var(--red); color: #fff; padding: 0 16px; display: flex; align-items: center; }
.mmenu-nav { padding: 0 16px 40px; display: flex; flex-direction: column; }
.mm-a { font-size: 24px; font-weight: 900; text-transform: uppercase; padding: 14px 4px; border-bottom: 1px solid var(--g100); letter-spacing: .01em; }
.mm-a.on, .mm-a:active { color: var(--red); }
.mm-cats { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 4px; border-bottom: 1px solid var(--g100); }
.mm-cats a { font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--g100); color: var(--g700); }
body.menu-open { overflow: hidden; }

/* Banner / slider */
.hero { position: relative; height: 500px; background: var(--g900); overflow: hidden; }
@media (min-width: 768px) { .hero { height: 600px; } }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; display: block; color: #fff; }
.slide.on { opacity: 1; visibility: visible; z-index: 1; }
.slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.multi .slide.on > img { animation: kb 7s linear forwards; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.07); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / .9), rgb(0 0 0 / .4) 50%, transparent), linear-gradient(to right, rgb(0 0 0 / .4), transparent); }
.hero-in { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 56px; z-index: 2; }
.hero-txt { max-width: 900px; }
.hero h1 { font-size: 30px; font-weight: 900; line-height: 1.15; text-transform: uppercase; margin-bottom: 16px; text-shadow: 0 4px 12px rgb(0 0 0 / .4); overflow-wrap: anywhere; }
.hero p { font-size: 18px; color: var(--g200); max-width: 680px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-meta { display: flex; gap: 24px; font-size: 14px; border-top: 1px solid rgb(255 255 255 / .2); padding-top: 20px; margin-top: 22px; font-weight: 500; }
.hero-meta span, .post-meta span, .card-meta span span { display: inline-flex; align-items: center; gap: 6px; }
@media (min-width: 768px) { .hero h1 { font-size: 48px; } .hero p { font-size: 20px; } }
@media (min-width: 1024px) { .hero h1 { font-size: 56px; } }
.hero-arr { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgb(0 0 0 / .45); color: #fff; display: none; align-items: center; justify-content: center; transition: .15s; }
.hero-arr:hover { background: var(--red); }
.hero-arr .ic { width: 22px; height: 22px; }
.hero-arr.prev { left: 16px; } .hero-arr.next { right: 16px; }
@media (min-width: 1400px) { .hero-arr { display: flex; } }
.hero-dots { position: absolute; z-index: 3; bottom: 20px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; background: rgb(255 255 255 / .5); transition: .25s; }
.hero-dots button.on { width: 28px; background: var(--red); }
.badge { display: inline-block; padding: 4px 12px; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border-radius: 2px; margin-bottom: 16px; }
.badge.sm { position: absolute; top: 12px; left: 12px; font-size: 10px; border-radius: 4px; margin: 0; z-index: 1; }
.sec-banner { background: linear-gradient(120deg, var(--g900), #2a1215); color: #fff; padding: 56px 0; }
.sec-banner h1 { font-size: 36px; font-weight: 900; text-transform: uppercase; }
.sec-banner p { margin-top: 20px; }
@media (min-width: 768px) { .sec-banner h1 { font-size: 52px; } }

/* Columnas y tarjetas */
.cols { display: grid; gap: 32px; padding-top: 32px; padding-bottom: 32px; }
@media (min-width: 1024px) { .cols { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.list-h { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--g200); padding-bottom: 8px; margin-bottom: 24px; gap: 12px; }
.list-h h2 { font-size: 24px; font-weight: 700; border-left: 4px solid var(--red); padding-left: 16px; }
.list-h span { font-size: 14px; color: var(--g500); white-space: nowrap; }
@media (max-width: 640px) { .list-h span { display: none; } }
.cards { display: grid; gap: 24px; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { background: #fff; border-radius: 8px; box-shadow: var(--shadow); border: 1px solid var(--g100); overflow: hidden; transition: box-shadow .3s; }
.card:hover { box-shadow: var(--shadow-xl); }
.card-link { display: flex; flex-direction: column; height: 100%; }
.card-img { position: relative; height: 208px; background: var(--g200); overflow: hidden; flex: none; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease-out; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 18px; font-weight: 700; line-height: 1.25; margin-bottom: 12px; text-transform: uppercase; transition: color .15s; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover h3 { color: var(--red); }
.card p { font-size: 14px; color: var(--g600); line-height: 1.6; margin-bottom: 16px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--g400); padding-top: 16px; border-top: 1px solid var(--g100); }
.meta-l { display: flex; gap: 12px; }
.card-meta .ic { width: 14px; height: 14px; }
.leer { color: var(--red); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; opacity: 0; transform: translateX(-10px); transition: .3s; }
.card:hover .leer { opacity: 1; transform: none; }
.more { text-align: center; margin-top: 32px; }
.btn-more { background: #fff; border: 2px solid var(--red); color: var(--red); font-weight: 700; padding: 12px 32px; border-radius: 8px; transition: .15s; }
.btn-more:hover { background: var(--red); color: #fff; }
.btn-more:disabled { opacity: .6; cursor: wait; }
.empty { color: var(--g500); padding: 24px 0; text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chips a { padding: 7px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--g200); font-size: 14px; font-weight: 500; color: var(--g700); }
.chips a:hover { border-color: var(--red); color: var(--red); }
.chips a.on { background: var(--red); border-color: var(--red); color: #fff; }

/* Barra lateral */
.side { display: flex; flex-direction: column; gap: 24px; }
.box { background: #fff; border-radius: 8px; box-shadow: var(--shadow); padding: 20px; }
.box-h { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.box-h .ic { color: var(--red); width: 20px; height: 20px; }
.top { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--g100); }
.top img { width: 84px; height: 64px; object-fit: cover; border-radius: 6px; flex: none; background: var(--g200); }
.top span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.top em { font-style: normal; font-size: 10px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .06em; }
.top b { font-size: 14px; line-height: 1.3; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.top:hover b { color: var(--red); }
.top small { font-size: 12px; color: var(--g400); }
.ad { display: block; border-radius: 8px; overflow: hidden; }
.ad img { width: 100%; }
.ad.ph { background: var(--g100); border: 2px dashed var(--g300); min-height: 220px; display: flex; align-items: center; justify-content: center; color: var(--g400); font-size: 14px; }

/* Noticia */
.post { min-width: 0; }
.crumbs { font-size: 13px; color: var(--g500); margin-bottom: 16px; }
.crumbs a:hover { color: var(--red); }
.post h1 { font-size: 30px; font-weight: 900; line-height: 1.15; text-transform: uppercase; margin-bottom: 16px; overflow-wrap: anywhere; }
@media (min-width: 768px) { .post h1 { font-size: 42px; } }
.lead { font-size: 19px; color: var(--g600); margin-bottom: 20px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; font-size: 14px; color: var(--g500); padding: 14px 0; border-top: 1px solid var(--g200); border-bottom: 1px solid var(--g200); margin-bottom: 24px; }
.share { margin-left: auto; gap: 8px !important; }
.share a { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 999px; background: var(--g100); color: var(--g700); font-size: 12px; font-weight: 700; }
.share a:hover { background: var(--red); color: #fff; }
.post-img { width: 100%; border-radius: 8px; margin-bottom: 24px; }
.post-body { font-size: 18px; line-height: 1.75; color: var(--g800); overflow-wrap: anywhere; }
.post-body > * { margin: 0 0 1.1em; }
.post-body h2 { font-size: 26px; font-weight: 700; line-height: 1.25; margin-top: 1.5em; color: var(--g900); }
.post-body h3, .post-body h4 { font-size: 21px; font-weight: 700; margin-top: 1.4em; color: var(--g900); }
.post-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 1.4em auto; }
.post-body a { color: var(--red); text-decoration: underline; }
.post-body blockquote { border-left: 4px solid var(--red); background: #fff; padding: 14px 20px; font-style: italic; color: var(--g700); border-radius: 0 8px 8px 0; }
.post-body figcaption { font-size: 14px; color: var(--g500); text-align: center; }
.post-body figure { margin-left: 0; margin-right: 0; }
.rel { margin-top: 48px; }
.search { display: flex; gap: 8px; max-width: 640px; }
.search input { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 8px; border: 0; color: var(--g900); font-size: 16px; }

/* Pie */
.ftr { background: var(--g900); color: #fff; margin-top: 48px; position: relative; }
.ftr > .wrap { padding-top: 48px; padding-bottom: 48px; }
.f-grid { display: flex; flex-wrap: wrap; gap: 32px; }
.f-grid > div { flex: 1 1 160px; min-width: 0; }
.f-grid > div:first-child { flex: 1.6 1 260px; }
.f-logo { margin-bottom: 16px; }
.f-about, .ftr li { font-size: 14px; color: var(--g400); }
.ftr h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ftr li a:hover { color: #ef4444; }
.f-soc { display: flex; gap: 12px; flex-wrap: wrap; }
.f-soc a { padding: 9px; background: var(--g800); border-radius: 50%; display: flex; transition: .15s; }
.f-soc a:hover { background: var(--red); }
.f-soc .ic { width: 20px; height: 20px; }
.f-copy { border-top: 1px solid var(--g800); margin-top: 32px; padding-top: 32px; text-align: center; font-size: 14px; color: var(--g400); }

/* Botones y formularios */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--red); color: #fff; border: 1px solid var(--red); padding: 10px 18px; border-radius: 8px; font-weight: 700; font-size: 14px; transition: .15s; white-space: nowrap; }
.btn:hover { background: var(--red-d); border-color: var(--red-d); }
.btn.sec { background: #fff; color: var(--g800); border-color: var(--g300); }
.btn.sec:hover { border-color: var(--red); color: var(--red); background: #fff; }
.btn.ghost { background: transparent; color: var(--g700); border-color: var(--g300); font-weight: 500; }
.btn.ghost:hover { background: var(--g100); }
.btn.danger { background: #fff; color: var(--red); border-color: #fecaca; font-weight: 500; }
.btn.danger:hover { background: var(--red); color: #fff; }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 6px; }
.btn.wide { width: 100%; margin-top: 8px; }
.flash { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; padding: 12px 16px; border-radius: 8px; margin: 16px 0; font-size: 15px; }
.flash.err { background: var(--red-50); border-color: #fecaca; color: #991b1b; }

/* Panel de administración */
.abar { background: var(--g900); color: #fff; font-size: 14px; }
.abar-in { display: flex; gap: 4px 18px; align-items: center; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap; }
.abar strong { color: #f87171; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.abar a { color: var(--g300); }
.abar a:hover { color: #fff; }
.abar-hl { color: #fca5a5 !important; font-weight: 700; }
.abar-out { margin-left: auto; display: flex; gap: 10px; align-items: center; color: var(--g400); }
.abar-out button { background: var(--g800); border: 0; color: #fff; padding: 4px 12px; border-radius: 6px; font-size: 13px; }
.abar-out button:hover { background: var(--red); }
.adm { padding-top: 28px; padding-bottom: 16px; min-height: 55vh; }
.adm-h { font-size: 28px; font-weight: 900; border-left: 4px solid var(--red); padding-left: 16px; margin-bottom: 20px; }
.adm-h2 { font-size: 19px; font-weight: 700; margin: 28px 0 12px; }
.panel { background: #fff; border: 1px solid var(--g200); border-radius: 10px; padding: 20px; margin-bottom: 20px; box-shadow: 0 1px 2px rgb(0 0 0 / .05); }
.panel.flush { padding: 0; overflow-x: auto; }
.panel.narrow { max-width: 420px; margin-left: auto; margin-right: auto; }
.panel.narrow.left { margin-left: 0; }
.panel label, .nolabel { display: block; font-size: 13px; font-weight: 700; color: var(--g700); margin-bottom: 14px; }
.nolabel { margin-bottom: 6px !important; }
.panel input:not([type=checkbox]):not([type=hidden]), .panel select, .panel textarea, .filter input, .filter select { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; border: 1px solid var(--g300); border-radius: 8px; background: #fff; font-weight: 400; font-size: 15px; }
.panel input:focus, .panel select:focus, .panel textarea:focus, .ed-area:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
.panel input.big { font-size: 20px; font-weight: 700; }
.panel textarea { resize: vertical; }
.check { display: flex !important; align-items: center; gap: 8px; }
.row-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.row-form label { flex: 1 1 240px; margin-bottom: 0; }
.row-form .check { flex: 0 0 auto; padding-bottom: 10px; }
.two { display: grid; gap: 24px; }
@media (min-width: 800px) { .two { grid-template-columns: 1fr 1fr; } }
.adm-tools { display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.filter { display: flex; gap: 8px; flex-wrap: wrap; }
.filter input, .filter select { width: auto; margin: 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--g500); background: var(--g50); padding: 10px 12px; }
.tbl td { padding: 10px 12px; border-top: 1px solid var(--g100); vertical-align: middle; }
.tbl a:hover strong { color: var(--red); }
.t-img img { width: 64px; height: 44px; object-fit: cover; border-radius: 6px; }
.t-img { width: 76px; }
.t-act { white-space: nowrap; text-align: right; }
.t-act > * { margin-left: 4px; }
.t-ord { white-space: nowrap; width: 90px; }
.inline { display: inline-block; }
.inline-edit { display: flex; gap: 8px; }
.inline-edit input { margin: 0 !important; }
.pill, .pill-btn { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--g100); color: var(--g600); border: 0; }
.pill.ok, .pill-btn.ok { background: #d1fae5; color: #065f46; }
.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 16px 0; font-size: 14px; }
.back { margin-bottom: 14px; font-size: 14px; color: var(--g600); }
.back a:hover { color: var(--red); }
.hint { font-size: 14px; color: var(--g600); margin: 12px 0; }
.danger-zone { margin: 28px 0; padding: 16px; border: 1px dashed #fecaca; border-radius: 10px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.danger-zone small { color: var(--g500); flex: 1 1 260px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.tabs a { padding: 7px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--g200); font-size: 14px; font-weight: 500; }
.tabs a.on { background: var(--red); border-color: var(--red); color: #fff; }
.slide-list { display: grid; gap: 10px; }
.slide-row { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--g200); border-radius: 10px; padding: 10px; flex-wrap: wrap; }
.slide-row img { width: 150px; height: 84px; object-fit: cover; border-radius: 6px; }
.slide-row > div:nth-child(2) { flex: 1 1 200px; min-width: 0; }
.slide-row small { display: block; color: var(--g500); }
.slide-form { display: grid; gap: 24px; }
@media (min-width: 800px) { .slide-form { grid-template-columns: 340px 1fr; } }
.news-form { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1024px) { .news-form { grid-template-columns: minmax(0, 1fr) 340px; } .news-side { position: sticky; top: 90px; } }

.uploader { border: 2px dashed var(--g300); border-radius: 10px; padding: 12px; margin-bottom: 14px; transition: .15s; }
.uploader.over { border-color: var(--red); background: var(--red-50); }
.up-prev { background: var(--g100); border-radius: 8px; min-height: 120px; display: flex; align-items: center; justify-content: center; color: var(--g400); font-size: 14px; overflow: hidden; margin-bottom: 10px; }
.up-prev img { width: 100%; max-height: 240px; object-fit: contain; }
.up-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.up-btns small { flex: 1 1 100%; font-weight: 400; color: var(--g500); font-size: 12px; }

.ed { border: 1px solid var(--g300); border-radius: 10px; }
.ed-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; background: var(--g50); border-bottom: 1px solid var(--g200); border-radius: 10px 10px 0 0; position: sticky; top: 76px; z-index: 5; }
.ed-status { border-radius: 0 0 10px 10px; }
.ed-bar button { border: 1px solid var(--g300); background: #fff; border-radius: 6px; padding: 6px 10px; font-size: 13px; min-width: 34px; }
.ed-bar button:hover { border-color: var(--red); color: var(--red); }
.ed-bar button.hl { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }
.ed-area { min-height: 380px; padding: 18px 20px; outline: 0; }
.ed-area:empty::before { content: attr(data-ph); color: var(--g400); }
.ed-area.over { background: var(--red-50); }
.ed-area img { cursor: pointer; }
.ed-area img.sel { outline: 3px solid var(--red); }
.ed-status { font-size: 13px; color: var(--g600); padding: 6px 12px; background: var(--g50); border-top: 1px solid var(--g200); min-height: 30px; }

/* Edición directa del pie */
.f-edit { position: absolute; top: 14px; right: 16px; display: inline-flex; align-items: center; gap: 6px; background: var(--red); color: #fff; border: 0; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; box-shadow: var(--shadow); z-index: 2; }
.f-edit:hover { background: var(--red-d); }
.ftr.editing { outline: 3px dashed var(--red); outline-offset: -3px; }
.ftr.editing .f-edit { display: none; }
.ftr [contenteditable] { outline: 1px dashed var(--g500); border-radius: 4px; padding: 2px 6px; min-width: 40px; display: block; }
.ftr [contenteditable]:focus { outline: 2px solid var(--red); background: var(--g800); color: #fff; }
.fe-link { display: grid; gap: 4px; padding: 6px; border: 1px solid var(--g800); border-radius: 6px; position: relative; }
.ftr input.fe-url { width: 100%; background: var(--g800); border: 1px solid var(--g700); color: var(--g200); border-radius: 4px; padding: 5px 8px; font-size: 12px; }
.fe-x { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--red); color: #fff; font-size: 13px; line-height: 1; }
.fe-add { background: none; border: 1px dashed var(--g500); color: var(--g300); border-radius: 6px; padding: 6px 10px; font-size: 13px; margin-top: 8px; }
.fe-add:hover { border-color: #fff; color: #fff; }
.fe-col { position: relative; }
.fe-soc { display: grid; gap: 6px; }
.fe-soc label { font-size: 12px; color: var(--g400); text-transform: capitalize; }
.fe-actions { position: sticky; bottom: 0; display: flex; gap: 10px; justify-content: center; padding: 14px; background: rgb(17 24 39 / .96); border-top: 1px solid var(--g800); margin-top: 24px; z-index: 3; }

@media (max-width: 760px) {
  .tbl thead { display: none; }
  .tbl tr { display: block; padding: 10px 12px; border-top: 1px solid var(--g200); }
  .tbl td { display: block; border: 0; padding: 3px 0; width: auto; }
  .tbl td[data-l]::before { content: attr(data-l) ": "; color: var(--g500); font-size: 12px; }
  .t-act { text-align: left; white-space: normal; padding-top: 8px !important; }
  .t-act > * { margin: 0 4px 4px 0; }
  .share { margin-left: 0; }
  .abar-out { margin-left: 0; }
  .inline-edit { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }
