:root{--ink:#26313b;--wine:#813c42;--wine-dark:#62282e;--cream:#f8f6f1;--muted:#f0f2f2;--line:#e5e8e9}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);font:16px/1.65 system-ui,-apple-system,Segoe UI,sans-serif;background:#fff}a{color:inherit;text-decoration:none}.container{width:min(1160px,calc(100% - 44px));margin:auto}.topbar{position:sticky;top:0;z-index:30;background:#fff;box-shadow:0 3px 22px #19232c10}.nav{display:flex;align-items:center;justify-content:space-between;min-height:86px;gap:22px}.brand{display:flex;align-items:center;gap:13px}.brand-icon{display:grid;place-items:center;width:46px;height:46px;border:1px solid #b9a8a3;border-radius:50%;color:var(--wine);font-size:28px}.brand strong{display:block;font-size:15px;letter-spacing:1px}.brand small{display:block;color:#71808b;font-size:12px}.nav nav{display:flex;gap:24px;align-items:center;font-size:13px;font-weight:650}.nav nav a:hover{color:var(--wine)}.nav-pill{background:var(--wine);color:#fff!important;padding:11px 18px;border-radius:6px}.menu-toggle{display:none}.hero{min-height:610px;position:relative;display:flex;align-items:center;color:white;background-image:linear-gradient(105deg,#152734ed,#263d4e9c 60%,#3d4d5e77),var(--hero-image,linear-gradient(130deg,#283f50,#62747b));background-size:cover;background-position:center}.hero-content{position:relative;z-index:1;padding:95px 0}.eyebrow,.kicker{letter-spacing:2.3px;font-size:11px;font-weight:800}.eyebrow{color:#f5d4b8}.hero h1{font:clamp(46px,6.5vw,85px)/1.08 Georgia,serif;max-width:850px;letter-spacing:-2px;margin:20px 0}.hero p{font-size:19px;max-width:620px;color:#e5e9eb}.hero-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:34px}.btn{display:inline-block;border-radius:5px;padding:13px 22px;font-size:14px;font-weight:750}.btn-primary{background:var(--wine);color:#fff}.btn-primary:hover,.nav-pill:hover{background:var(--wine-dark)}.btn-outline{border:1px solid #ffffffb5;color:#fff}.btn-outline:hover{background:#ffffff20}.hero-bottom{position:absolute;right:5%;bottom:25px;letter-spacing:2px;font-size:10px;color:#f0f0f0}.section{padding-top:85px;padding-bottom:85px}.section-head{margin-bottom:30px}.section-head h2,.feature h2,.discover h2{font:clamp(30px,4vw,46px)/1.15 Georgia,serif;margin:10px 0}.section-head p{color:#6e7b83;margin:0}.kicker{color:var(--wine)}.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:17px}.quick-card{border:1px solid var(--line);border-radius:9px;padding:27px 20px;display:flex;flex-direction:column;gap:3px;transition:transform .2s,box-shadow .2s}.quick-card:hover,.news-card:hover{transform:translateY(-4px);box-shadow:0 16px 35px #17233114}.quick-card span{font-size:28px;margin-bottom:12px}.quick-card strong{font-size:15px}.quick-card small{color:#78858b}.muted{background:var(--cream)}.split{display:flex;align-items:end;justify-content:space-between;gap:20px}.text-link{color:var(--wine);font-weight:700;font-size:14px}.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.news-card{background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden;transition:.2s}.news-visual{height:160px;background:linear-gradient(130deg,#e5e8e6,#d5d9d8);display:flex;align-items:end;padding:18px;color:#627078;font-size:10px;letter-spacing:2px;font-weight:800}.news-body{padding:23px}.news-body time{color:var(--wine);font-size:12px;font-weight:700}.news-body h3{line-height:1.35;font-size:19px;margin:8px 0}.news-body p{color:#6d787f;font-size:14px}.news-body a{font-weight:700;color:var(--wine);font-size:13px}.source-note{font-size:12px;color:#7a858a;margin-top:20px}.feature{display:grid;grid-template-columns:1fr 1fr;min-height:340px;background:#f2f3f1;border-radius:12px;overflow:hidden}.feature>div:first-child{padding:55px}.feature p{color:#697780;max-width:440px}.btn-dark{background:var(--ink);color:#fff;margin-top:15px}.feature-art{display:grid;place-items:center;background:linear-gradient(135deg,#a58e78,#574b45);color:white;letter-spacing:5px;font-size:22px;font-family:Georgia,serif}.discover{background:#263945;color:white;text-align:center}.discover .kicker{color:#e2c7aa}.discover p{max-width:680px;margin:20px auto 30px;color:#d8e0e2}.discover-tags{display:flex;justify-content:center;flex-wrap:wrap;gap:12px}.discover-tags span{border:1px solid #ffffff50;padding:10px 15px;border-radius:5px;font-size:13px}footer{background:#17252e;color:#e8ecee;padding-top:55px}.footer-grid{display:grid;grid-template-columns:2fr 1.5fr 1fr;gap:35px}.footer-grid p{color:#b2bfc4;font-size:14px}.footer-grid a:hover{color:#fff;text-decoration:underline}.copyright{border-top:1px solid #ffffff20;padding:22px 0;margin-top:40px;font-size:12px;color:#b2bfc4}@media(max-width:850px){.nav{min-height:75px}.menu-toggle{display:block;border:1px solid var(--line);background:#fff;padding:8px 12px;border-radius:5px}.nav nav{display:none;position:absolute;top:75px;left:0;right:0;background:#fff;flex-direction:column;align-items:stretch;padding:20px 25px;box-shadow:0 12px 20px #0002}.nav nav.open{display:flex}.quick-grid{grid-template-columns:repeat(2,1fr)}.news-grid{grid-template-columns:repeat(2,1fr)}.feature{grid-template-columns:1fr}.feature-art{min-height:220px}}@media(max-width:580px){.container{width:min(100% - 30px,1160px)}.brand strong{font-size:12px}.brand small{font-size:10px}.brand-icon{width:38px;height:38px}.hero{min-height:520px}.hero h1{letter-spacing:-1px}.hero p{font-size:16px}.section{padding-top:55px;padding-bottom:55px}.quick-grid,.news-grid,.footer-grid{grid-template-columns:1fr}.quick-card{padding:19px}.split{display:block}.feature>div:first-child{padding:28px}.hero-bottom{display:none}}

/* Botón flotante: volver arriba */
.back-to-top{position:fixed;right:26px;bottom:26px;z-index:80;width:48px;height:48px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.25);border-radius:50%;background:var(--wine);color:#fff;box-shadow:0 8px 22px rgba(38,49,59,.24);cursor:pointer;opacity:0;visibility:hidden;transform:translateY(14px);pointer-events:none;transition:opacity .25s,visibility .25s,transform .25s,background .2s,box-shadow .2s}
.back-to-top.is-visible{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}
.back-to-top:hover{background:var(--wine-dark);transform:translateY(-4px);box-shadow:0 12px 26px rgba(38,49,59,.3)}
.back-to-top:focus-visible{outline:3px solid #e8b77d;outline-offset:3px}
@media(max-width:580px){.back-to-top{right:16px;bottom:18px;width:44px;height:44px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.back-to-top{transition:none}}

/* Escudo municipal: cabecera y portada */
.brand-crest{display:block;width:45px;height:65px;object-fit:contain;flex:none}.hero-crest{display:block;width:88px;height:128px;object-fit:contain;margin-bottom:22px;filter:drop-shadow(0 3px 8px rgba(0,0,0,.3))}@media(max-width:580px){.brand-crest{width:34px;height:50px}.hero-crest{width:65px;height:95px;margin-bottom:16px}.hero-content{padding:65px 0}}

/* Noticias y hemeroteca */
.news-grid-home{grid-template-columns:repeat(2,minmax(0,1fr))}.news-grid-home .news-card{display:grid;grid-template-columns:150px minmax(0,1fr);min-height:210px}.news-grid-home .news-visual{height:auto;min-height:100%;flex-direction:column;align-items:flex-start;justify-content:space-between}.news-symbol{font-size:48px;line-height:1}.news-card .news-body p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.news-card .news-body h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.news-more{text-align:center;margin-top:32px}.archive-hero{padding:75px 0;background:linear-gradient(110deg,#263945,#813c42);color:#fff}.archive-hero .kicker{color:#f3d9c8}.archive-hero h1{font:clamp(36px,5vw,62px)/1.1 Georgia,serif;margin:14px 0}.archive-hero p{color:#f0e9e9}.archive-filters{display:flex;flex-wrap:wrap;align-items:end;gap:14px;margin-bottom:22px}.archive-filters label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:700;flex:1;min-width:180px}.archive-filters input,.archive-filters select{height:46px;border:1px solid var(--line);border-radius:6px;padding:0 12px;font:inherit}.archive-filters .btn{border:0;cursor:pointer}.archive-count{color:#6e7b83;font-size:14px}.archive-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.pagination{display:flex;justify-content:center;align-items:center;gap:22px;margin-top:35px}.pagination a{color:var(--wine);font-weight:700}.archive-nav{display:flex;gap:20px;align-items:center;font-size:13px;font-weight:700}@media(max-width:850px){.news-grid-home,.archive-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.news-grid-home .news-card{display:block}.news-grid-home .news-visual{height:120px;min-height:0}.archive-nav{display:flex!important;position:static!important;flex-direction:row!important;box-shadow:none!important;padding:0!important}}@media(max-width:580px){.news-grid-home,.archive-grid{grid-template-columns:1fr}.archive-nav .nav-pill{display:none}.news-grid-home .news-card{display:grid;grid-template-columns:100px minmax(0,1fr)}.news-grid-home .news-visual{height:auto;min-height:100%;padding:12px}.news-symbol{font-size:30px}.news-grid-home .news-body{padding:15px}.news-grid-home .news-body h3{font-size:16px}.archive-hero{padding:55px 0}}

/* Fotografías originales en tarjetas de noticias */
.news-visual{position:relative;overflow:hidden;justify-content:center;align-items:center;background:linear-gradient(140deg,#e9e5de,#d7d9d5);padding:0}
.news-visual>img:not(.news-placeholder-crest){position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .3s}
.news-card:hover .news-visual>img:not(.news-placeholder-crest){transform:scale(1.035)}
.news-visual .news-placeholder-crest{width:58px;height:85px;object-fit:contain;opacity:.42}
.news-visual .news-category{position:absolute;bottom:12px;left:12px;z-index:1;padding:5px 9px;border-radius:4px;background:rgba(38,49,59,.83);color:#fff;letter-spacing:1px;font-size:10px}
.news-grid-home .news-visual{min-height:210px}
.archive-grid .news-visual{height:190px}
@media(max-width:850px){.news-grid-home .news-visual{height:165px;min-height:0}}
@media(max-width:580px){.news-grid-home .news-visual{height:auto;min-height:165px}.archive-grid .news-visual{height:185px}}

/* Cózar: tarjetas de noticias exclusivamente textuales, tres columnas y dos filas en portada */
.news-grid-home{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
.news-grid-home .news-card,.archive-grid .news-card{display:flex;flex-direction:column;min-height:215px}
.news-card-text .news-body{display:flex;flex-direction:column;flex:1;padding:25px}
.news-card-text .news-body h3{font-size:19px;line-height:1.4;margin:10px 0}
.news-card-text .news-body p{font-size:14px;line-height:1.6;margin:0 0 20px;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.news-card-text .news-body a{margin-top:auto;align-self:flex-start}
@media(max-width:850px){.news-grid-home{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){.news-grid-home,.archive-grid{grid-template-columns:1fr}.news-grid-home .news-card{display:flex;min-height:0}.news-card-text .news-body{padding:22px}}

/* Tablón de anuncios oficiales */
.official-card{border-top:3px solid var(--wine)}
.official-empty{grid-column:1/-1;border:1px dashed #c9c5c0;border-radius:10px;background:#faf9f6;padding:30px;color:var(--ink)}
.official-empty p{color:#6e7b83;margin:8px 0 12px}.official-empty a{color:var(--wine);font-weight:700}

/* Tarjetas interactivas — Cózar: noticias y tablón, portada y hemerotecas */
.news-grid .news-card.news-card-text{position:relative;min-width:0;border:1px solid #e5e0dc;border-radius:15px;background:#fff;box-shadow:0 3px 13px rgba(38,49,59,.035);overflow:hidden;transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease}
.news-grid .news-card.news-card-text::before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,var(--wine),#caa17d);opacity:.7;transition:opacity .25s}
.news-grid .news-card.official-card::before{background:linear-gradient(90deg,#263945,#8c9ea6)}
.news-grid .news-card.is-clickable{cursor:pointer}
.news-grid .news-card.is-clickable:hover,.news-grid .news-card.is-clickable:focus-within{transform:translateY(-6px);border-color:#c8a6a4;box-shadow:0 18px 38px rgba(38,49,59,.14)}
.news-grid .news-card.official-card.is-clickable:hover,.news-grid .news-card.official-card.is-clickable:focus-within{border-color:#a2b0b8}
.news-grid .news-card.is-clickable:hover::before,.news-grid .news-card.is-clickable:focus-within::before{opacity:1}
.news-card-link{display:flex;flex:1;flex-direction:column;min-width:0;color:inherit;text-decoration:none}
.news-card-link:focus-visible{outline:3px solid #b16c40;outline-offset:-4px;border-radius:14px}
.news-card-link:hover{color:inherit}
.news-grid .news-card-text .news-body{display:flex;flex-direction:column;flex:1;padding:25px;min-width:0}
.news-grid .news-card-text .card-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:7px;margin-bottom:10px}
.news-grid .news-card-text .card-meta time{font-size:11px;letter-spacing:.02em;color:#78838a;font-weight:700}
.news-grid .news-card-text .card-type{font-size:10px;line-height:1.4;letter-spacing:.05em;text-transform:uppercase;color:var(--wine);font-weight:800}
.news-grid .news-card.official-card .card-type{color:#48616d}
.news-grid .news-card-text h3{font-size:18px;line-height:1.38;margin:5px 0 11px;color:#26313b;overflow-wrap:anywhere}
.news-grid .news-card-text p{font-size:13.5px;line-height:1.65;color:#66757e;margin:0 0 20px}
.news-grid .news-card-text .card-cta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:15px;border-top:1px solid #ece8e4;color:var(--wine);font-size:12.5px;font-weight:800}
.news-grid .news-card.official-card .card-cta{color:#405967}
.news-grid .news-card-text .card-arrow{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#f7efec;font-size:17px;transition:transform .25s,background .25s}
.news-grid .news-card.official-card .card-arrow{background:#edf2f3}
.news-grid .news-card.is-clickable:hover .card-arrow,.news-grid .news-card.is-clickable:focus-within .card-arrow{transform:translate(3px,-3px);background:#ead9d4}
@media(max-width:580px){.news-grid .news-card-text .news-body{padding:21px}.news-grid .news-card-text h3{font-size:17px}}
@media(prefers-reduced-motion:reduce){.news-grid .news-card.news-card-text,.news-grid .news-card-text .card-arrow{transition:none}.news-grid .news-card.is-clickable:hover,.news-grid .news-card.is-clickable:focus-within{transform:none}}
