/*
Theme Name: PopesRides Carretera
Description: Diseño independiente azul marino y amarillo, con catálogo claro. Compatible con PopesRides · Rutas y mensajes. Conserva todas las fichas existentes.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
Author: PopesRides
License: GPL-2.0-or-later
Text Domain: popesrides-carretera
*/

:root {
  color-scheme: light;
  --bg: #edf2f6;
  --panel: #ffffff;
  --text: #0b2038;
  --muted: #526173;
  --orange: #ffe500;
  --line: #d5dee6;
  --road-navy: #0b2038;
}
body { background: var(--bg); color: var(--text); }
body .wp-site-blocks { padding: 0; }
.header { background: var(--road-navy); color: #fff; border: 0; padding: 24px 44px; min-height: 100px; height: auto; }
.header .brand, footer .brand { font-size: 36px; font-style: italic; letter-spacing: .2px; }
.header .brand span, footer .brand span, .header .brand b { color: #ffe500; }
.header nav { align-items: center; gap: 22px; }
.header nav a { padding: 8px 0; color: #fff; }
.header nav a:hover, .header nav a[aria-current=page] { color: #ffe500; }
.header .install-nav { background: transparent; color: #ffe500; border: 1px solid #687481; padding: 10px 13px; border-radius: 2px; }
.catalog-intro { position: relative; isolation: isolate; padding: 60px 44px 32px; background: var(--road-navy); color: #fff; border: 0; overflow: hidden; }
.catalog-intro::before { content: ''; position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(90deg,rgba(6,22,41,.95),rgba(6,22,41,.72) 42%,rgba(6,22,41,.08)), var(--pr-road-image,url('assets/carretera-hero.jpg')); background-size: cover; background-position: center; }
.catalog-intro h1 { max-width: 780px; font-size: clamp(48px,6vw,78px); line-height: 1.02; }
.catalog-intro h1 em { color: #ffe500; }
.catalog-intro .intro { color: #fff; max-width: 640px; font-size: 16px; text-shadow: 0 1px 4px #0b2038; }
.catalog-intro .home-install { background: rgba(7,25,44,.87); border: 1px solid #637181; border-radius: 3px; margin-top: 30px; padding: 14px 18px; max-width: 690px; }
.catalog-intro .home-install strong { color: #fff; }
.catalog-intro .home-install p { color: #d9e3ec; }
.catalog-intro .home-install img { border-radius: 50%; }
.catalog-section { padding: 32px 44px 65px; }
.collection-tabs { gap: 10px; }
.collection-tabs button { background: #fff; border: 1px solid #bdc9d4; color: #0b2038; border-radius: 2px; }
.collection-tabs button.selected { background: #0b2038; color: #fff; border-color: #0b2038; box-shadow: inset 0 -3px #ffe500; }
.collection-tabs button:hover { border-color: #0b2038; }
.route-filters { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.route-filters label { color: #33475b; font-size: 12px; }
.route-filters label:last-child { grid-column: 1/-1; }
.route-filters select, .route-filters input { background: #fff; color: #0b2038; border: 1px solid #cbd5df; border-radius: 3px; min-height: 47px; }
.badge-legend { color: #526173; }
.badge-legend img { width: 50px; height: 50px; }
.catalog-list { gap: 58px; }
.catalog-list > .route-card { background: #fff; border: 1px solid #d9e2ea; border-radius: 3px; padding: 18px; column-gap: 12px; box-shadow: 0 8px 25px rgba(11,32,56,.04); }
.catalog-list > .route-card + .route-card::before { top: -32px; height: 6px; background: #0b2038; border-left: 45px solid #ffe500; }
.route-card .route-visual { background: #f5f7fa; min-width: 0; border-radius: 2px; overflow: hidden; }
.route-card .catalog-map { height: 365px; background: #e8edf2; }
.route-card .pr-map { height: 320px; background: #e8edf2; }
.route-card .map-bottom { min-height: 45px; }
.route-card .map-bottom span { color: #526173; }
.route-card .catalog-photo { width: 100%; max-height: 300px; object-fit: cover; }
.route-card .catalog-photo.place-photo { background: #f5f7fa; object-fit: contain; height: 320px; }
.route-card .route-info { padding: 20px 22px 0; }
.route-card .eyebrow { color: #526173; font-size: 10px; padding-left: 16px; position: relative; }
.route-card .eyebrow::before { content: ''; width: 7px; height: 12px; transform: skew(-24deg); background: #b09c00; position: absolute; left: 0; top: 2px; }
.route-card .route-title { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.route-card .route-title h2 { flex: none; min-width: 0; width: 100%; margin: 0; font-size: clamp(29px,3.15vw,42px); line-height: 1.12; color: #0b2038; overflow-wrap: anywhere; text-wrap: balance; }
.route-card .route-title .popes-badge { flex-direction: column; align-items: center; justify-content: center; color: #0b2038; font-size: 13px; gap: 8px; }
.route-card .popes-badge img { width: 52px; height: 52px; border-radius: 50%; }
.route-card .route-info > .towns { display: none; }
.route-card .metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(95px,1fr)); text-align: center; gap: 12px; padding: 20px 0; margin: 24px 0; border-color: #d5dee6; }
.route-card .metrics > div + div { border-left: 1px solid #d5dee6; padding-left: 10px; }
.route-card .metrics strong { color: #0b2038; font-size: 30px; }
.route-card .metrics span { color: #526173; font-size: 11px; }
.route-card .description, .route-card .route-credit { color: #526173; font-size: 14px; }
.route-card .route-feedback { padding: 0 22px 16px; }
.route-card .suggestion-question { border-top: 1px solid #d5dee6; padding-top: 20px; }
.route-card .pr-photo-caption { text-align: center; margin: 0; padding: 12px 16px; color: #526173; font-size: 13px; }
.button, .wp-element-button { background: #ffe500; color: #0b2038; border: 1px solid #b8a600; border-radius: 3px; }
.button:hover, .wp-element-button:hover { background: #eed600; color: #0b2038; }
.route-card .download-options .button { font-family: 'Barlow Condensed',Impact,sans-serif; font-size: 26px; letter-spacing: 1px; padding: 12px 22px; }
.suggest-link { color: #0b2038; text-decoration: underline; text-underline-offset: 4px; background: transparent; }
.text-page, .about-story, .legal-page { color: #0b2038; }
.text-page a, .legal-page a, .admin-note a, .pr-page-content .wp-block-post-content > p a { color: #183e65; text-decoration: underline; }
.text-page .eyebrow { color: #526173; }
input, textarea, select { color: #0b2038; background: #fff; border-color: #bdc9d4; }
dialog { color-scheme: light; background: #fff; color: #0b2038; border: 1px solid #bdc9d4; border-radius: 5px; box-shadow: 0 22px 70px rgba(11,32,56,.3); }
dialog .close { color: #0b2038; }
.home-install .button { color: #0b2038; }
:is(a,button,input,textarea,select):focus-visible { outline: 3px solid #416d94; outline-offset: 4px; }
.header :is(a,button):focus-visible, .catalog-intro :is(a,button):focus-visible { outline-color: #ffe500; }
footer { background: #0b2038; color: #fff; padding: 38px 44px; border-top: 6px solid #ffe500; }
footer p, footer .legal-links a { color: #d0dce7; }
footer .legal-links a:hover { color: #ffe500; }
.pr-page-content { min-height: 45vh; }
.pr-page-content > .wp-block-post-content > .wp-block-buttons { margin: 28px 44px; }
@media (max-width: 1000px) {
  .header { padding: 22px 26px; flex-wrap: wrap; gap: 16px; }
  .header nav { flex-wrap: wrap; gap: 16px; }
}
@media (max-width: 850px) {
  .catalog-intro { padding: 42px 24px 26px; }
  .catalog-intro::before { background-position: 62% center; }
  .catalog-section { padding: 24px 20px 45px; }
  .catalog-list > .route-card { grid-template-columns: minmax(0,1fr); padding: 12px; }
  .route-card .route-info { grid-column: 1; grid-row: 1; padding: 16px 12px 24px; }
  .route-card .route-visual { grid-column: 1; grid-row: 2; }
  .route-card .route-feedback { grid-column: 1; grid-row: 3; padding: 0 12px 12px; }
  .route-card .route-title h2 { font-size: 31px; }
  .route-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .route-filters label:nth-child(3), .route-filters label:last-child { grid-column: 1/-1; }
  footer { padding: 32px 24px; }
}
@media (max-width: 480px) {
  .header .brand { font-size: 32px; }
  .header nav { gap: 12px; font-size: 12px; }
  .header .install-nav { font-size: 11px; }
  .catalog-intro h1 { font-size: 49px; }
  .catalog-intro .home-install { flex-wrap: wrap; gap: 12px; }
  .catalog-intro .home-install .button { width: 100%; justify-content: center; }
  .route-card .route-title h2 { font-size: 27px; }
  .route-card .metrics { gap: 8px; }
  .route-card .metrics strong { font-size: 27px; }
}

.secondary,.map-button{background:#fff;color:#0b2038;border-color:#bdc9d4}
