/* =====================================================================
   Turismoo 2026 — Rediseño visual
   Se carga después de todas las hojas del tema. Solo estilos: no cambia
   la estructura HTML que genera PHP Link Directory.
   ===================================================================== */

:root {
    --t-red: #d81d1f;
    --t-red-dark: #a8161a;
    --t-ink: #1f2328;
    --t-text: #3b3f45;
    --t-muted: #6b7078;
    --t-line: #e6e2dc;
    --t-bg: #f6f4f1;
    --t-card: #ffffff;
    --t-sand: #f3ece2;
    --t-radius: 10px;
    --t-shadow: 0 1px 2px rgba(31,35,40,.06), 0 4px 14px rgba(31,35,40,.06);
    --t-shadow-hover: 0 2px 4px rgba(31,35,40,.08), 0 10px 24px rgba(31,35,40,.10);
    --t-head: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
    --t-body: 'Roboto', -apple-system, 'Segoe UI', Arial, sans-serif;
}

/* ---------- Base ---------- */
html body {
    font: 400 16px/1.6 var(--t-body);
    color: var(--t-text);
    background: var(--t-bg);
}
body p, body li, body td { font-size: 1rem; }
body a { color: var(--t-red-dark); }
body a:hover, body a:focus { color: var(--t-red); }
body h1, body h2, body h3, body h4 { font-family: var(--t-head); color: var(--t-ink); font-weight: 700; letter-spacing: -.005em; }
body img { max-width: 100%; height: auto; }

/* ---------- Cabecera ---------- */
.site-header { position: relative; z-index: 20; }
.logo-top { background: var(--t-red) !important; background-image: none !important; }
.search-field-top .select2-container .select2-choice,
.search-field-top .phpld-fbox-text input {
    height: 40px !important; line-height: 40px !important;
    border: 0 !important; border-radius: 999px !important;
    padding: 0 16px !important; background: #fff !important; box-shadow: none !important;
    font: 14px var(--t-body) !important; color: var(--t-text);
}
.search-field-top .select2-container .select2-choice div { display: none; }
.search-field-top input.phpld-searchbutton {
    height: 40px; padding: 0 18px; border: 0; border-radius: 999px;
    background: var(--t-ink); color: #fff; font: 700 13px var(--t-body); letter-spacing: .04em; text-transform: uppercase;
    cursor: pointer;
}
.search-field-top input.phpld-searchbutton:hover { background: #000; }

/* Menú */
.site-header .navbar {
    background: var(--t-ink) !important; background-image: none !important;
    border: 0; border-radius: 0; box-shadow: none;
}
.site-header .navbar .navbar-collapse { max-width: 1240px; margin: 0 auto; padding: 0 10px; }
.site-header .navbar-nav > li > a {
    color: #e9e6e1 !important; font: 500 15px var(--t-body) !important;
    padding: 15px 16px !important; background: none !important; text-shadow: none !important;
    border-bottom: 3px solid transparent;
}
.site-header .navbar-nav > li > a:hover,
.site-header .navbar-nav > li > a.active {
    color: #fff !important; border-bottom-color: var(--t-red);
}
.site-header .navbar-toggle { border-color: rgba(255,255,255,.35); }
.site-header .navbar-toggle .icon-bar { background: #fff; }

/* ---------- Migas de pan ---------- */
.breadcrumbs-bar { background: transparent; border: 0; }
.breadcrumbs-bar .phpld-wbox { max-width: 1240px; margin: 0 auto; background: transparent; }
.breadcrumbs-bar .phpld-hlist { background: none; border: 0; padding: 14px 20px 0; }
.breadcrumbs { font-size: 13px; color: var(--t-muted); }
.breadcrumbs a { color: var(--t-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--t-red); text-decoration: underline; }
.breadcrumbs .divider { margin: 0 6px; color: #b9b4ad; }

/* ---------- Hero ---------- */
.is-home .hero { max-width: 1240px; margin: 20px auto 0; border-radius: var(--t-radius); overflow: hidden; box-shadow: var(--t-shadow); }
.hero .item img { aspect-ratio: 1600 / 560; object-fit: cover; }
.hero .carousel-caption {
    left: 0; right: 0; bottom: 0; padding: 60px 8% 46px; text-align: left;
    background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0));
}
.hero .carousel-caption p { font-size: 16px; max-width: 640px; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.carousel .hero-title { font: 700 44px/1.1 var(--t-head); margin-bottom: 8px; }
.hero .btn-primary { background: var(--t-red); border: 0; border-radius: 999px; padding: 10px 24px; font: 700 15px var(--t-body); }
.hero .btn-primary:hover { background: var(--t-red-dark); }
.hero .carousel-indicators { bottom: 14px; right: 8%; left: auto; width: auto; margin: 0; }
.hero .carousel-control { width: 8%; background: none !important; }

/* ---------- Estructura ---------- */
main.phpld-wbox { max-width: 1240px; margin: 0 auto; background: transparent; padding: 20px 10px 40px; }
main .content-wrapper { background: transparent; }
main .phpld-column > [class*="col-3"] { padding-right: 10px; }
main .phpld-column > [class*="col-9"] { padding-left: 10px; }
main .phpld-cbox { padding: 0; margin: 0; background: transparent; }

/* Tarjetas (widgets) */
main .phpld-widget {
    display: block; width: 100%;
    background: var(--t-card); border: 1px solid var(--t-line); border-radius: var(--t-radius);
    box-shadow: var(--t-shadow); padding: 22px 24px; margin: 0 0 20px;
}
main .phpld-widget .boxTop { background: none; border: 0; padding: 0; margin: 0 0 14px; }
body main .phpld-widget .boxTop h2,
body main .phpld-widget h1.page-title,
body .col-9 .phpld-widget .boxTop h2,
body .col-9 .phpld-widget h1.page-title {
    background: none !important; border: 0 !important; padding: 0 !important; margin: 0 0 14px !important;
    font: 700 22px/1.2 var(--t-head) !important; color: var(--t-ink) !important; text-transform: none;
}
body main .phpld-widget h1.page-title { font-size: 34px !important; line-height: 1.15 !important; }
main .phpld-widget .boxTop h2::after,
main .phpld-widget h1.page-title::after {
    content: ""; display: block; width: 44px; height: 3px; margin-top: 10px; background: var(--t-red); border-radius: 2px;
}

/* Barra lateral */
main [class*="col-3"] .phpld-widget { padding: 18px 18px; }
body main [class*="col-3"] .phpld-widget .boxTop h2 { font-size: 18px !important; }
main [class*="col-3"] .listing-list-item { border: 0; border-bottom: 1px solid var(--t-line); padding: 12px 0; margin: 0; background: none; box-shadow: none; }
main [class*="col-3"] .phpld-gbox:last-child .listing-list-item { border-bottom: 0; }
main [class*="col-3"] .listing-list-item h4 { margin: 0 0 2px; font-size: 16px; }
main [class*="col-3"] .listing-list-item .description { font-size: 14px; line-height: 1.5; color: var(--t-muted); }
.boxPopCats, .boxStats { list-style: none; margin: 0; padding: 0; }
.boxPopCats li, .boxStats li { padding: 7px 0; border-bottom: 1px solid var(--t-line); font-size: 14px; background: none; }
.boxPopCats li:last-child, .boxStats li:last-child { border-bottom: 0; }
.boxStats li { display: flex; justify-content: space-between; gap: 10px; color: var(--t-muted); }
.boxStats li strong { color: var(--t-text); font-weight: 500; }

/* Texto libre (portada, descripciones de categoría) */
main .textbox, main .category-description, main .description, main .legal-text { font-size: 16px; line-height: 1.7; }
main .textbox h1 { font: 700 34px/1.15 var(--t-head); margin: 0 0 16px; }
main .category-description h2, main .textbox h2, main .textbox h3, main .legal-text h2 { font-size: 22px; margin: 26px 0 10px; }
main .category-description img { border-radius: var(--t-radius); margin: 4px 0 8px; }
main .textbox ul, main .legal-text ul { padding-left: 1.2em; }

/* ---------- Rejilla de categorías ---------- */
main .AllCategories, main .phpld-grid.categories {
    display: grid !important; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; width: 100%;
}
main .AllCategories > .phpld-g50, main .phpld-grid.categories > .phpld-g50 { width: auto !important; float: none !important; margin: 0 !important; }
main .AllCategories .phpld-gbox, main .phpld-grid.categories .phpld-gbox { padding: 0 !important; margin: 0 !important; height: 100%; }
main .AllCategories h4, main .phpld-grid.categories h4 { margin: 0; height: 100%; }
main .AllCategories h4 a, main .phpld-grid.categories h4 a {
    display: flex; align-items: center; height: 100%; min-height: 56px;
    padding: 12px 40px 12px 16px; position: relative;
    background: var(--t-sand); border: 1px solid transparent; border-radius: 8px;
    font: 700 16px/1.25 var(--t-head); color: var(--t-ink); text-decoration: none; text-transform: none;
    transition: background .15s, border-color .15s, transform .15s;
}
main .AllCategories h4 a::after, main .phpld-grid.categories h4 a::after {
    content: "→"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--t-red); font-family: var(--t-body);
}
main .AllCategories h4 a:hover, main .phpld-grid.categories h4 a:hover {
    background: #fff; border-color: var(--t-red); color: var(--t-red-dark); transform: translateY(-1px);
}
main .phpld-grid.categories .phpld-gbox ul, main .AllCategories .phpld-gbox ul { display: none; }

/* ---------- Listados de webs ---------- */
main [class*="col-9"] .listingsList .phpld-gbox { padding: 0; margin: 0; }
main [class*="col-9"] .listing-list-item {
    position: relative; padding: 18px 0; margin: 0; border: 0; border-bottom: 1px solid var(--t-line);
    background: none; box-shadow: none;
}
main [class*="col-9"] .listingsList .phpld-gbox:last-child .listing-list-item { border-bottom: 0; }
main [class*="col-9"] .listing-list-item a.listing-title,
main [class*="col-9"] .listing-list-item h4 a.listing-title {
    font: 700 20px/1.25 var(--t-head); color: var(--t-ink); text-decoration: none;
}
main [class*="col-9"] .listing-list-item a.listing-title:hover { color: var(--t-red); }
main [class*="col-9"] .listing-list-item .description { color: var(--t-text); margin-top: 4px; }
main [class*="col-9"] .listing-list-item .description p { margin: 4px 0 8px; }
main .readMore {
    display: inline-block; margin-left: 4px; font-weight: 700; font-size: 14px; color: var(--t-red-dark); text-decoration: none; white-space: nowrap;
}
main .readMore::after { content: " →"; }
main .readMore:hover { text-decoration: underline; }
main .link-url-not-linked .link, main .listing-details .link { font-size: 13px; color: var(--t-muted); word-break: break-all; }
main .list-headline { font-size: 13px; color: var(--t-muted); }
main .list-headline .listing-categories, main .list-headline .listing-categories ul, main .list-headline .listing-categories li { display: inline; padding: 0; margin: 0; }

/* Paginación */
main .navig { margin: 18px 0 0; font-size: 14px; color: var(--t-muted); }
main .navig .pagingLinks { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
main .navig .pagingLinks a, main .navig .pagingLinks b, main .navig .pagingLinks span {
    display: inline-block; min-width: 38px; padding: 7px 12px; text-align: center;
    border: 1px solid var(--t-line); border-radius: 8px; background: #fff; color: var(--t-ink); text-decoration: none;
}
main .navig .pagingLinks a:hover { border-color: var(--t-red); color: var(--t-red); }
main .navig .pagingLinks b { background: var(--t-red); border-color: var(--t-red); color: #fff; }

/* ---------- Ficha ---------- */
main .listing-details .description-detail { font-size: 17px; }
main .listing-details .link-visit .btn-primary {
    background: var(--t-red); border: 0; border-radius: 999px; padding: 11px 26px; font: 700 15px var(--t-body); color: #fff;
}
main .listing-details .link-visit .btn-primary:hover { background: var(--t-red-dark); }
main .listing-details .link-category { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--t-line); font-size: 14px; color: var(--t-muted); }
main .listing-details .link-category ul, main .listing-details .link-category li { display: inline; margin: 0; padding: 0; }

/* Formularios (alta, contacto, login) */
main input[type="text"], main input[type="email"], main input[type="password"], main textarea, main select {
    border: 1px solid #cfcac3; border-radius: 6px; padding: 8px 10px; font: 15px var(--t-body); max-width: 100%;
}
main input[type="submit"], main button[type="submit"], main .button {
    background: var(--t-red); color: #fff; border: 0; border-radius: 999px; padding: 10px 24px; font: 700 15px var(--t-body); cursor: pointer;
}
main input[type="submit"]:hover, main button[type="submit"]:hover { background: var(--t-red-dark); }

/* ---------- Pie ---------- */
.site-footer #footer_top { background: var(--t-ink) !important; }
.site-footer #footer_top .container { max-width: 1240px; }
.site-footer #footer_top a, .site-footer .link-button { color: #e9e6e1 !important; font: 14px var(--t-body) !important; text-decoration: none; }
.site-footer #footer_top a:hover, .site-footer .link-button:hover { color: #fff !important; text-decoration: underline; }
.site-footer .footer { background: #16191d !important; border: 0 !important; color: #a9a49d !important; }

/* Volver arriba */
#toTop { border-radius: 50%; }

/* ---------- Móvil ---------- */
@media (max-width: 991px) {
    main .phpld-column > [class*="col-3"], main .phpld-column > [class*="col-9"] { padding-left: 0; padding-right: 0; }
}
@media (max-width: 767px) {
    html body { font-size: 15px; }
    main.phpld-wbox { padding: 12px 10px 30px; }
    main .phpld-widget { padding: 18px 16px; border-radius: 8px; }
    body main .phpld-widget h1.page-title, main .textbox h1 { font-size: 26px !important; }
    main .phpld-column > [class*="col-9"] { width: 100%; float: none; }
    .is-home .hero { margin: 0; border-radius: 0; }
    .hero .item img { aspect-ratio: 4 / 3; }
    .carousel .hero-title { font-size: 26px; }
    .hero .carousel-caption { padding: 40px 18px 34px; }
    .hero .carousel-caption p:not(.hero-title) { font-size: 14px; }
    main .AllCategories, main .phpld-grid.categories { grid-template-columns: 1fr 1fr; gap: 8px; }
    main .AllCategories h4 a, main .phpld-grid.categories h4 a { font-size: 14px; min-height: 52px; padding: 10px 28px 10px 12px; }
    .site-header .navbar-nav > li > a { padding: 11px 16px !important; }
}

/* ---------- Ajustes sobre reglas del tema original ---------- */
.hero .carousel .item, .hero.carousel .item { height: auto; background: #222; }
.hero .carousel-inner > .item > img { position: relative; height: auto; min-width: 0; width: 100%; }
.hero .carousel-caption p.hero-title { font: 700 44px/1.1 var(--t-head); margin: 0 0 8px; }
main .textbox p, main .textbox li, main .category-description p, main .category-description li,
main .description p, main .legal-text p, main .legal-text li { font-size: 16px; line-height: 1.7; }
main [class*="col-3"] .description p { font-size: 14px; line-height: 1.5; }
main .phpld-gbox { border: 0; border-radius: 0; padding: 0; margin: 0; }
.search-field-top .select2-container .select2-choice span { line-height: 40px; margin-right: 0; color: #777; }
@media (max-width: 767px) {
    .hero .carousel-caption p.hero-title { font-size: 26px; }
}
.hero.carousel { height: auto !important; }
body > .phpld-wbox { background: transparent; }
.site-header .navbar-default .navbar-nav > li > a { border-right: 0; }
main strong, main b { font-size: inherit; }
main .phpld-widget .boxTop { height: auto !important; }
main .boxPopCats li, main .boxStats li { margin: 0 !important; padding: 8px 0 !important; }
html body main [class*="col-9"] .phpld-widget h1.page-title,
html body main .phpld-widget h1.page-title { font-size: 34px !important; line-height: 1.15 !important; }
#nav.breadcrumbs-bar, #nav.breadcrumbs-bar .phpld-wbox, #nav.breadcrumbs-bar .phpld-hlist { background: transparent !important; box-shadow: none !important; border: 0 !important; }
@media (max-width: 767px) {
    html body main [class*="col-9"] .phpld-widget h1.page-title,
    html body main .phpld-widget h1.page-title { font-size: 26px !important; }
}
/* main_min.css fija body a 11px con !important */
html body { font-size: 16px !important; }
@media (max-width: 767px) { html body { font-size: 15px !important; } }
