/* ═══════════════════════════════════════════════════════════
   AUTONOCIÓN ES — CSS ADICIONAL (migrado de Goodlife)
   Pegar en Apariencia → Personalizar → CSS adicional de GP
   O cargar via wp_enqueue_style en autonocion-functions.php
   ═══════════════════════════════════════════════════════════ */

/* ── Google "Sigue a Autonoción" button (mn_share) ── */
.g-preferred-source{display:inline-flex!important;align-items:center!important;gap:10px!important;background:#fff!important;border:1px solid rgba(0,0,0,.12)!important;border-radius:999px!important;padding:10px 14px!important;text-decoration:none!important;box-shadow:0 1px 0 rgba(0,0,0,.03)!important;font:600 14px/1.1 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif!important;color:#1f1f1f!important;max-width:100%;white-space:normal}
.g-preferred-source:hover{border-color:rgba(0,0,0,.18)!important;box-shadow:0 2px 8px rgba(0,0,0,.06)!important}
.g-preferred-source__icon{width:26px;height:26px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(0,0,0,.08);background:#fff;flex:0 0 auto}
.g-preferred-source__txt{display:inline-block;line-height:1.15}
@media(max-width:480px){.g-preferred-source{padding:9px 12px!important;font-weight:600!important;font-size:13px!important}}

/* ── Motornoción module ── */
.mn-motornocion-module .category-title{display:flex;align-items:center;gap:16px;margin:0 0 14px}
.mn-motornocion-module .category-title::after{content:"";flex:1 1 auto;border-top:1px solid rgba(0,0,0,.12);transform:translateY(2px)}
.mn-motornocion-module .category-title h2{margin:0!important;line-height:1.1;font-size:28px;font-weight:800;letter-spacing:-.3px}
.mn-motornocion-module .category-title h2,.mn-motornocion-module .category-title h2 a{color:#000!important;text-decoration:none!important}
.mn-motornocion-module .post.style3{padding:0!important;margin:0 0 28px 0!important}
.mn-motornocion-module figure.post-gallery,.mn-motornocion-module figure.mn-post-gallery{margin:0!important;padding:0!important;line-height:0!important}
.mn-motornocion-module .post-title.entry-header{margin:10px 0 0 0!important;padding:0!important}
.mn-motornocion-module .entry-title{margin:0 0 6px 0!important;padding:0!important}
.mn-motornocion-module .post-bottom-meta{margin:0!important;padding:0!important}
.mn-motornocion-module .post-bottom-meta .time:after,.mn-motornocion-module .post-bottom-meta:after{content:""!important;display:none!important}
.mn-motornocion-module.mn-layout-home .mn-overlay-link{display:none!important}
.mn-motornocion-module.mn-layout-home .mn-post-gallery img,.mn-motornocion-module.mn-layout-home .post-gallery img{pointer-events:auto!important}
.single-post .mn-motornocion-module .mn-post-gallery{position:relative}
.single-post .mn-motornocion-module .mn-post-gallery img{pointer-events:none!important}
.single-post .mn-motornocion-module .mn-overlay-link{position:absolute;inset:0;display:block;z-index:5}
.mn-motornocion-module.mn-layout-sidebar{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;border-radius:0!important}
.mn-motornocion-module.mn-layout-sidebar .post{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important}
.mn-motornocion-module.mn-layout-sidebar .post.style3{margin:0 0 18px 0!important}
.mn-motornocion-module.mn-layout-sidebar .post-gallery img,.mn-motornocion-module.mn-layout-sidebar .mn-post-gallery img{height:150px!important;object-fit:cover}
.mn-motornocion-module.mn-layout-sidebar .entry-title{font-size:18px!important;line-height:1.15!important;margin:8px 0 6px!important}
.mn-motornocion-module.mn-layout-sidebar .post-bottom-meta .time{font-size:14px!important;opacity:.65}

/* ── US module ── */
.mn-us-module .category-title{display:flex;align-items:center;gap:12px;margin:0 0 14px}
.mn-us-module .category-title::after{content:"";flex:1 1 auto;border-top:1px solid rgba(0,0,0,.12);transform:translateY(2px)}
.mn-us-module .category-title h2{margin:0!important;line-height:1.1;font-size:28px;font-weight:800;letter-spacing:-.3px}
.mn-us-module .category-title h2,.mn-us-module .category-title h2 a{color:#000!important;text-decoration:none!important}
.mn-us-module .mn-us-pill{font-size:12px;font-weight:800;padding:3px 8px;border-radius:999px;border:1px solid rgba(0,0,0,.15);opacity:.85;transform:translateY(1px)}
.mn-us-module .post.style3{padding:0!important;margin:0 0 28px 0!important}
.mn-us-module figure.post-gallery{margin:0!important;padding:0!important;line-height:0!important}
.mn-us-module .post-title.entry-header{margin:10px 0 0 0!important;padding:0!important}
.mn-us-module .entry-title{margin:0 0 6px 0!important;padding:0!important}
.mn-us-module .post-bottom-meta .time:after,.mn-us-module .post-bottom-meta:after{content:""!important;display:none!important}
.mn-us-module.mn-layout-sidebar .post.style3{margin:0 0 18px 0!important}
.mn-us-module.mn-layout-sidebar .post-gallery img{height:150px!important;object-fit:cover}
.mn-us-module.mn-layout-sidebar .entry-title{font-size:18px!important;line-height:1.15!important;margin:8px 0 6px!important}
.mn-us-module.mn-layout-sidebar .post-bottom-meta .time{font-size:14px!important;opacity:.65}

/* ── Post gallery overlay ── */
.mn-post-gallery{position:relative}
.mn-post-gallery img{display:block;width:100%;height:auto;pointer-events:none}
.mn-post-gallery .mn-overlay-link{position:absolute;inset:0;display:block;z-index:5}

/* ── Skin Boosters ── */
#skin_boosters{position:static!important;height:auto!important;overflow:visible!important}
#skin_boosters+#wrapper{margin-top:0!important}

/* ── Brand news block ── */
.an-brand-news__title{font-size:18px;font-weight:800;margin:0 0 16px;padding-bottom:10px;border-bottom:2px solid #eee}
.an-brand-news-item{display:flex;gap:16px;padding:14px 0;border-bottom:1px solid #f0f0f0}
.an-brand-news-item:last-child{border-bottom:none}
.an-brand-news-item__img{width:200px;flex-shrink:0}
.an-brand-news-item__body{flex:1;display:flex;flex-direction:column;justify-content:center}
.an-brand-news-item__title{font-size:15px;font-weight:700;margin:0 0 4px;line-height:1.3}
.an-brand-news-item__title a{color:#111;text-decoration:none}
.an-brand-news-item__title a:hover{color:#bf0713}
.an-brand-news-item__date{font-size:12px;color:#999;margin-bottom:6px}
.an-brand-news-item__excerpt{font-size:13px;color:#666;margin:0;line-height:1.4}
.an-brand-thumb{margin:0}
.an-brand-thumb-link{display:block;position:relative;overflow:hidden;border-radius:8px}
.an-brand-thumb-spacer{display:block;width:100%;padding-top:57.142%}
.an-brand-thumb-bg{position:absolute;inset:0;background-size:cover;background-position:center;background-color:#eee}
@media(max-width:768px){.an-brand-news-item{flex-direction:column}.an-brand-news-item__img{width:100%}}

/* ── Disqus comments ── */
.mn-comments-wrap{width:100%;max-width:100%;clear:both;text-align:center;margin:28px 0 24px;padding:0}
.mn-comments-cta{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:280px;max-width:100%;min-height:48px;padding:0 22px;margin:0 auto;background:#fff;border:2px solid #d71920;border-radius:999px;color:#d71920;text-decoration:none!important;font-size:15px;font-weight:800;line-height:1;letter-spacing:-.01em;white-space:nowrap;box-sizing:border-box;box-shadow:none;transition:all .18s ease}
.mn-comments-cta:hover{background:#d71920;border-color:#d71920;color:#fff}
.mn-comments-cta:focus{outline:none;box-shadow:0 0 0 4px rgba(215,25,32,.14)}
[id^="disqus_thread_"]{width:100%;max-width:100%;margin-top:18px;text-align:left}
@media(max-width:768px){.mn-comments-wrap{margin:22px 0 20px}.mn-comments-cta{min-width:0;width:100%;padding:0 16px;min-height:46px;font-size:14px}}

/* ── Content links ── */
.post-content>p a,.post-content>ul a,.post-content>ol a,.post-content>blockquote a{color:var(--an-red,#c10000)!important;text-decoration:none!important;font-weight:700!important}
.post-content>p a:hover,.post-content>ul a:hover,.post-content>ol a:hover,.post-content>blockquote a:hover{opacity:.75!important}

/* ── Top Bar "Es Noticia" ── */
.an-topbar{background:#111;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','Helvetica Neue',Arial,sans-serif;font-size:13px;line-height:1;border-bottom:1px solid rgba(255,255,255,.06)}
.an-topbar__inner{padding:0 20px;display:flex;align-items:center;height:34px;gap:14px;overflow:hidden}
.an-topbar__label{flex-shrink:0;font-weight:800;font-size:10px;letter-spacing:.1em;color:#fff;background:#c10000;padding:4px 10px;border-radius:2px;text-transform:uppercase}
.an-topbar__scroll{flex:1;min-width:0;overflow:hidden}
.an-topbar__list{list-style:none!important;margin:0!important;padding:0!important;display:flex;flex-wrap:nowrap;gap:0;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.an-topbar__list::-webkit-scrollbar{display:none}
.an-topbar__list li{flex-shrink:0;white-space:nowrap}
.an-topbar__list li::before{content:'';display:inline-block;width:3px;height:3px;border-radius:50%;background:rgba(255,255,255,.3);margin:0 12px;vertical-align:middle}
.an-topbar__list li:first-child::before{display:none}
.an-topbar__list li a{color:rgba(255,255,255,.65)!important;text-decoration:none!important;font-weight:500;font-size:13px;transition:color .15s}
.an-topbar__list li a:hover{color:#fff!important}

/* ── Google Discover bar (sticky) ── */
.an-discover{display:flex;align-items:center;justify-content:center;gap:14px;background:#1a1a1a;padding:12px 20px;text-decoration:none;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','Helvetica Neue',Arial,sans-serif;border-bottom:1px solid rgba(255,255,255,.06);position:sticky;top:0;z-index:99990}
.an-discover:hover{background:#222}
.an-discover__g{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:40px;height:40px;background:#fff;border-radius:50%}
.an-discover__g svg{display:block;width:24px;height:24px}
.an-discover__txt{min-width:0}
.an-discover__t{font-size:16px;font-weight:700;color:#fff;letter-spacing:.01em}
.an-discover__t em{font-style:normal;color:rgba(255,255,255,.45);font-weight:400;margin-left:8px;font-size:14px}
.an-discover__cta{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:36px;height:36px;background:rgba(255,255,255,.12);border-radius:50%;color:#fff;transition:all .2s}
.an-discover:hover .an-discover__cta{background:#c10000}

/* ── Mobile topbar + discover ── */
@media(max-width:768px){.an-topbar__inner{padding:0 12px;height:32px;gap:10px}.an-topbar__label{font-size:9px;padding:3px 7px}.an-topbar__list li a{font-size:12px}.an-topbar__list li::before{margin:0 8px}.an-discover{padding:10px 12px;gap:10px}.an-discover__t{font-size:14px}.an-discover__t em{display:none}.an-discover__g{width:32px;height:32px}.an-discover__g svg{width:20px;height:20px}.an-discover__cta{width:30px;height:30px}}

/* ── Accessibility ── */
.post-detail-row div.time,.post-detail-style1 div.time{color:#555!important;text-shadow:none!important;background:transparent!important}
span[itemprop="name"]{color:#333!important}
.post-gallery .post-detail-row{color:#fff!important;text-shadow:0 1px 3px rgba(0,0,0,.6)!important}
a.ftr{color:rgba(255,255,255,.65)!important}
a.ftr:hover{color:#fff!important}
p.maling-disclaimer a{color:rgba(255,255,255,.65)!important}
p.maling-disclaimer a:hover{color:#fff!important}
h6.footer-title{font-size:14px!important;font-weight:700!important;text-transform:uppercase!important;letter-spacing:.5px!important}
h2.footer-title,h2.footer-title span{background:transparent!important;background-color:transparent!important;color:rgba(255,255,255,.85)!important}

/* ── Lighthouse fixes ── */
.widget_ns_mailchimp p,.widget_ns_mailchimp .ns-mc-text,.widget_ns_mailchimp label{color:#ccc!important}
.widget_ns_mailchimp .ns-mc-footer,.widget_ns_mailchimp .ns-mc-footer a{color:#aaa!important}
footer#subfooter.dark,footer#subfooter.dark p,footer#subfooter.dark a,footer#subfooter.dark span{color:#aaa!important}
footer#subfooter.dark a:hover{color:#fff!important}
.slideout-navigation,nav#mobile-menu{z-index:999999!important}
.slideout-overlay{z-index:999998!important}

/* ── Coches nuevos header ── */
.category-header.coches-nuevos h1,.category-header.coches-nuevos h1 span,.category-header.coches-nuevos p{color:#fff!important}

/* ── Ficha técnica ACF [ficha] shortcode ── */
table.ficha-tecnica{width:100%;border-collapse:collapse;font-size:14px;margin:20px 0}
table.ficha-tecnica th{background:#f4f4f4;border-bottom:1px solid #eee;text-align:left;padding:10px 15px;font-weight:600;color:#333}
table.ficha-tecnica td{padding:10px 15px;text-align:left;border-bottom:1px solid #eee;color:#555}
table.ficha-tecnica tr:nth-child(even){background:#fff}
table.ficha-tecnica tr:nth-child(odd){background:#fafafa}
table.ficha-tecnica tr:hover{background:#f0f0f0}

/* ── Gallery collapse/expand (from Goodlife post.css) ── */
#gallery-4,#gallery-3,#gallery-2,#gallery-1{overflow-y:hidden;height:370px}
.gallery .gallery-item img{margin:0}
.gallery .gallery-item{padding:8px}
#expandir-gal{clear:both;text-align:center;margin:0 8px 20px 8px}
#expandir-gal a.btn-exp-gal{color:#bf0713;background:#fff;width:100%;display:block;padding:16px 0;margin-top:0;border:1px solid #bf0713;border-radius:6px;font-size:18px;font-weight:600;text-decoration:none;cursor:pointer;transition:all .15s}
#expandir-gal a.btn-exp-gal:hover{background:#bf0713;color:#fff}
#expandir-gal a.btn-exp-gal::after{content:" ↓";font-weight:400}
@media(max-width:768px){.gallery .gallery-item{padding:4px}#expandir-gal{margin:0 2px 20px 2px}}

/* ── Disable GP native comments (we use Disqus) ── */
.comments-area,.comment-respond,#comments{display:none!important}

/* ── Taqyeem review circle badge (on featured image) ── */
.circle_rating{position:absolute;top:15px;left:15px;z-index:10;margin:0;line-height:0}
.circle_rating.small{width:50px;height:50px}
.circle_rating.large{width:90px;height:90px}
.circle_rating span{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:14px;font-weight:800;color:#fff;z-index:2;line-height:1}
.circle_rating.large span{font-size:24px}
.circle_rating svg{transform:rotate(-90deg)}
.circle_rating .circle_base{stroke:rgba(255,255,255,.25);stroke-width:2}
.circle_rating .circle_perc{stroke:#d71920;stroke-width:2.5;transition:stroke-dashoffset 1s ease}

/* ── Taqyeem reviews: plugin handles its own CSS, no overrides needed ── */

/* Motornoción shortcode grid */
.an-mn-section{background:#111;border-radius:16px;padding:28px 28px 20px;margin-bottom:42px}
.an-mn-section .an-sh__t,.an-mn-section .an-sh__t a{color:#fff}
.an-mn-section .an-sh::after{border-color:rgba(255,255,255,.12)}
.an-mn-section .an-sh__lk{color:rgba(255,255,255,.6)}
.an-mn-section .an-card__cat{color:#bf0713}
.an-mn-section .an-card__title a{color:#fff}
.an-mn-section .an-card__title a:hover{color:rgba(255,255,255,.7)}
.an-mn-section .an-card__meta{color:rgba(255,255,255,.45)}
.an-mn-section .an-card__img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:6px;margin-bottom:8px}
.an-mn-grid--home{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.an-mn-grid--sidebar{display:grid;grid-template-columns:1fr;gap:14px}

/* US shortcode grid */
.an-us-module{margin-bottom:42px}
.an-us-module .an-card__img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:6px;margin-bottom:8px}
.an-us-grid--home{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.an-us-grid--sidebar{display:grid;grid-template-columns:1fr;gap:14px}

@media(max-width:900px){.an-mn-grid--home{grid-template-columns:1fr}.an-us-grid--home{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.an-us-grid--home{grid-template-columns:1fr}}