/*
Theme Name: TaxiSocial Modern
Theme URI: https://taxisocial.com/
Author: TaxiSocial
Author URI: https://taxisocial.com/
Description: Tema editorial dinámico para TaxiSocial con integración para TLC License Status, WooCommerce, anuncios y sitios bilingües.
Version: 1.0.17
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: taxisocial-modern
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --ts-ink: #111214;
  --ts-paper: #f5f3eb;
  --ts-white: #fff;
  --ts-yellow: #ffd400;
  --ts-acid: #c8ff2e;
  --ts-muted: #666a70;
  --ts-line: #deded6;
  --ts-radius: 18px;
  --ts-max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ts-ink); background: var(--ts-paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ts-container { width: min(calc(100% - 40px), var(--ts-max)); margin-inline: auto; }
.ts-skip-link:focus { position: fixed; z-index: 9999; left: 12px; top: 12px; width: auto; height: auto; padding: 10px 14px; clip: auto; background: var(--ts-yellow); }

.ts-alert { padding: 9px 20px; color: var(--ts-ink); background: var(--ts-yellow); text-align: center; font-size: 12px; font-weight: 700; }
.ts-alert strong { color: var(--ts-ink); }
.ts-header { position: relative; z-index: 10; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--ts-line); }
.ts-header-row { display: flex; align-items: center; min-height: 64px; gap: 20px; }
.ts-brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; }
.ts-brand-mark { display: grid; place-items: center; width: 36px; height: 36px; color: var(--ts-ink); background: var(--ts-yellow); border-radius: 10px; font-size: 18px; transform: rotate(-4deg); }
.ts-brand-text { font-size: 20px; font-weight: 700; letter-spacing: -.04em; }
.ts-brand-text span { color: #9a7c00; }
.custom-logo { max-height: 42px; width: auto; }
.ts-nav ul { display: flex; align-items: center; gap: 20px; margin: 0; padding: 0; list-style: none; }
.ts-nav li { position: relative; }
.ts-nav a { display: flex; align-items: center; gap: 7px; padding: 20px 0 17px; border-bottom: 3px solid transparent; text-decoration: none; font-size: 14px; white-space: nowrap; }
.ts-nav a img, .ts-nav .wpml-ls-flag, .ts-nav img.iclflag { display: inline-block; flex: 0 0 auto; width: auto; max-width: 22px; height: auto; max-height: 16px; margin: 0; vertical-align: middle; }
.ts-nav .current-menu-item > a, .ts-nav a:hover { border-color: var(--ts-yellow); }
.ts-nav .menu-item-has-children > a { padding-right: 17px; }
.ts-nav .menu-item-has-children > a::after { content: "▾"; position: absolute; right: 0; margin-top: 1px; font-size: 11px; }
.ts-nav .sub-menu { position: absolute; z-index: 30; top: calc(100% - 1px); left: -16px; display: none; width: max-content; min-width: 220px; max-width: 320px; gap: 0; padding: 8px; background: #fff; border: 1px solid var(--ts-line); border-radius: 12px; box-shadow: 0 14px 35px rgba(17,18,20,.14); }
.ts-nav .sub-menu .sub-menu { top: -9px; left: calc(100% + 7px); }
.ts-nav .sub-menu li { width: 100%; }
.ts-nav .sub-menu a { padding: 11px 13px; border: 0; border-radius: 8px; line-height: 1.25; }
.ts-nav .sub-menu a:hover, .ts-nav .sub-menu a:focus { background: var(--ts-paper); }
.ts-nav li:hover > .sub-menu, .ts-nav li:focus-within > .sub-menu { display: block; }
.ts-submenu-toggle { display: none; }
.ts-header-actions { display: flex; align-items: center; gap: 10px; }
.ts-button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; color: #fff; background: var(--ts-ink); border: 1px solid var(--ts-ink); border-radius: 999px; text-decoration: none; font-weight: 700; }
.ts-button:hover { color: var(--ts-ink); background: var(--ts-yellow); }
.ts-menu-toggle { display: none; width: 44px; height: 44px; color: var(--ts-ink); background: #fff; border: 1px solid var(--ts-line); border-radius: 50%; }

.ts-ad { display: grid; place-items: center; min-height: 90px; margin-block: 24px; overflow: hidden; }
.ts-ad:empty { display: none; }
.ts-ad-label { color: var(--ts-muted); text-align: center; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }

.ts-hero { display: grid; grid-template-columns: 1.03fr .97fr; min-height: 530px; border-bottom: 1px solid var(--ts-line); }
.ts-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 64px max(5vw, calc((100vw - var(--ts-max))/2)) 72px; }
.ts-eyebrow { display: flex; align-items: center; gap: 9px; color: var(--ts-muted); font-size: 12px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.ts-eyebrow::before { content: ""; width: 28px; height: 4px; background: var(--ts-yellow); border-radius: 99px; }
.ts-hero h1 { max-width: 760px; margin: 20px 0 18px; font-size: clamp(48px, 6vw, 86px); line-height: .94; letter-spacing: -.065em; }
.ts-highlight { background: linear-gradient(transparent 64%, var(--ts-yellow) 64%); }
.ts-lead { max-width: 600px; margin: 0 0 28px; color: var(--ts-muted); font-size: 18px; }
.ts-featured { position: relative; display: flex; min-height: 430px; padding: 38px; align-items: end; overflow: hidden; color: #fff; background: #24272b; text-decoration: none; }
.ts-featured::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 15%, rgba(10,11,13,.9) 90%); }
.ts-featured img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ts-featured-content { position: relative; z-index: 1; max-width: 620px; }
.ts-label { display: inline-flex; padding: 6px 10px; color: var(--ts-ink); background: var(--ts-acid); border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.ts-featured h2 { margin: 15px 0 10px; font-size: clamp(30px, 3.7vw, 50px); line-height: 1.02; letter-spacing: -.04em; }
.ts-meta { color: var(--ts-muted); font-size: 12px; }
.ts-featured .ts-meta { color: #d1d3d6; }

.ts-tlc-wrap { position: relative; z-index: 2; margin-top: -30px; }
.ts-tlc-panel { padding: 22px 24px; background: var(--ts-white); border: 1px solid var(--ts-line); border-radius: var(--ts-radius); box-shadow: 0 14px 34px rgba(17,18,20,.1); }
.ts-tlc-panel h2 { margin: 0 0 4px; font-size: 22px; }
.ts-tlc-panel > p { margin: 0 0 16px; color: var(--ts-muted); }
.ts-tlc-panel .tlc-status-form { margin: 0; }

.ts-section { padding-block: 72px; }
.ts-section-dark { color: #fff; background: var(--ts-ink); }
.ts-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.ts-section-head h2 { margin: 8px 0 0; font-size: clamp(34px, 4.5vw, 54px); line-height: 1; letter-spacing: -.05em; }
.ts-text-link { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ts-news-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 26px; }
.ts-news-main { position: relative; display: flex; min-height: 420px; padding: 30px; align-items: end; overflow: hidden; color: #fff; background: #2b2e32; border-radius: var(--ts-radius); text-decoration: none; }
.ts-news-main::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent, rgba(10,11,13,.92)); }
.ts-news-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ts-news-main-content { position: relative; z-index: 2; }
.ts-news-main h3 { max-width: 720px; margin: 14px 0 10px; font-size: clamp(30px, 3.7vw, 50px); line-height: 1; letter-spacing: -.04em; }
.ts-news-list { display: grid; align-content: start; }
.ts-news-item { display: grid; grid-template-columns: 105px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--ts-line); text-decoration: none; }
.ts-news-thumb { min-height: 92px; overflow: hidden; background: var(--ts-yellow); border-radius: 10px; }
.ts-news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ts-news-item h3 { margin: 6px 0 8px; font-size: 18px; line-height: 1.2; }
.ts-inline-ad { grid-column: 1/-1; }

.ts-tools { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: #3a3d42; }
.ts-tool { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; min-height: 154px; align-items: center; padding: 22px; background: #1a1c1f; text-decoration: none; }
.ts-tool-icon { display: grid; place-items: center; width: 48px; height: 48px; color: var(--ts-ink); background: var(--ts-yellow); border-radius: 13px; font-size: 22px; }
.ts-tool h3 { margin: 0 0 5px; font-size: 20px; }
.ts-tool p { margin: 0; color: #adb0b4; font-size: 13px; }
.ts-tool-arrow { font-size: 22px; }

.ts-products { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.ts-product { overflow: hidden; background: var(--ts-white); border: 1px solid var(--ts-line); border-radius: var(--ts-radius); text-decoration: none; }
.ts-product-image { aspect-ratio: 4/3; overflow: hidden; background: #e8e6dd; }
.ts-product-image img { width: 100%; height: 100%; object-fit: cover; }
.ts-product-copy { padding: 18px; }
.ts-product-copy h3 { margin: 0 0 5px; font-size: 18px; }
.ts-price { font-weight: 700; }

.ts-archive-hero { padding: 64px 0 34px; }
.ts-archive-hero h1 { max-width: 900px; margin: 15px 0; font-size: clamp(48px,7vw,88px); line-height: .95; letter-spacing: -.06em; }
.ts-category-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; padding: 0; list-style: none; }
.ts-category-nav a { display: block; padding: 8px 13px; border: 1px solid var(--ts-line); border-radius: 999px; text-decoration: none; font-size: 13px; }
.ts-post-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.ts-post-card { overflow: hidden; background: var(--ts-white); border: 1px solid var(--ts-line); border-radius: var(--ts-radius); }
.ts-post-card-image { display: block; aspect-ratio: 16/9; overflow: hidden; background: #e6e4dc; }
.ts-post-card-image img { width:100%; height:100%; object-fit:cover; }
.ts-post-card-content { padding: 20px; }
.ts-post-card h2 { margin: 10px 0; line-height: 1.15; letter-spacing: -.03em; }
.ts-post-card h2 a { text-decoration: none; }
.navigation.pagination { margin-top: 35px; }
.nav-links { display:flex; flex-wrap:wrap; gap:7px; }
.page-numbers { padding:8px 12px; background:var(--ts-white); border:1px solid var(--ts-line); border-radius:8px; text-decoration:none; }
.page-numbers.current { background:var(--ts-yellow); }

.ts-article { width: min(calc(100% - 40px), 840px); margin: 0 auto; padding: 62px 0 80px; }
.ts-article-header h1 { margin: 14px 0; font-size: clamp(40px,6vw,70px); line-height: 1; letter-spacing: -.055em; }
.ts-article-image { margin: 30px calc(50% - 50vw); }
.ts-article-image img { width:100%; max-height:680px; object-fit:cover; }
.ts-entry-content { font-size: 18px; }
.ts-entry-content > * { max-width: 760px; margin-inline: auto; }
.ts-entry-content img, .ts-entry-content .alignwide { max-width: 1040px; }
.ts-entry-content h2, .ts-entry-content h3 { margin-top: 1.6em; line-height:1.15; }
.ts-page-shell { display: grid; width: min(calc(100% - 40px), var(--ts-page-width, 1120px)); margin: 0 auto; padding: 58px 0 76px; gap: 36px; }
.ts-page-layout-full { grid-template-columns: minmax(0,1fr); }
.ts-page-layout-right { grid-template-columns: minmax(0,1fr) 310px; }
.ts-page-layout-left { grid-template-columns: 310px minmax(0,1fr); }
.ts-page-content { min-width: 0; }
.ts-page-content .ts-article-header h1 { margin: 0 0 28px; font-size: clamp(38px,5vw,64px); line-height: 1; letter-spacing: -.05em; }
.ts-page-content .ts-entry-content > * { max-width: none; margin-inline: 0; }

.site-content-shell:has(> .content-area + .widget-area) { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 36px; width: min(calc(100% - 40px), var(--ts-max)); margin: 40px auto 70px; }
.site-content-shell > .content-area { min-width: 0; }
.widget-area { min-width: 0; }
.widget { margin-bottom: 24px; padding: 20px; background: var(--ts-white); border: 1px solid var(--ts-line); border-radius: 14px; }
.widget-title { margin-top: 0; }
.widget ul { margin:0; padding-left:18px; }
.tlc-status-result { width: 100% !important; margin: 0 !important; padding: 26px !important; background: var(--ts-white); border: 1px solid var(--ts-line); border-radius: var(--ts-radius); }

.ts-footer { clear: both; color: #c3c5c8; background: var(--ts-ink); }
.ts-footer-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 42px; padding: 52px 0 44px; }
.ts-footer-columns-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.ts-footer-columns-4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.ts-footer-column { min-width: 0; }
.ts-footer-column h2 { margin: 0 0 16px; color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.ts-footer-column ul { margin: 0; padding: 0; list-style: none; }
.ts-footer-column li { margin-bottom: 10px; }
.ts-footer-column a { color: #c3c5c8; text-decoration: none; }
.ts-footer-column a:hover { color: var(--ts-yellow); }
.ts-footer-about p { max-width: 330px; margin: 12px 0 24px; }
.ts-footer-column .widget { margin: 0 0 24px; padding: 0; color: inherit; background: transparent; border: 0; border-radius: 0; }
.ts-footer-column .widget:last-child { margin-bottom: 0; }
.ts-footer-about .widget { margin: 12px 0 24px; }
.ts-footer-about .widget-title { margin: 0 0 10px; }
.ts-footer-about .widget p:last-child { margin-bottom: 0; }
.ts-footer-brand { color:#fff; font-size:22px; font-weight:700; }
.ts-footer-menu ul { display:block; }
.ts-footer-social { display: flex; flex-wrap: wrap; gap: 12px; }
.ts-footer-social a { color: #fff; text-decoration: underline; text-decoration-color: var(--ts-yellow); text-underline-offset: 4px; }
.ts-footer a { color:inherit; }
.ts-copyright { padding: 16px 0; border-top: 1px solid #34363b; font-size: 12px; }

@media (max-width: 960px) {
  .ts-nav { display:none; }
  .ts-menu-toggle { display:block; }
  .ts-nav.is-open { display:block; position:absolute; left:0; right:0; top:100%; background:#fff; border-bottom:1px solid var(--ts-line); }
  .ts-nav.is-open ul { display:block; width:min(calc(100% - 40px),var(--ts-max)); margin:auto; padding:12px 0 20px; }
  .ts-nav.is-open a { padding:12px 0; border-bottom:1px solid var(--ts-line); }
  .ts-nav.is-open .menu-item-has-children > a { padding-right: 50px; }
  .ts-nav.is-open .menu-item-has-children > a::after { display: none; }
  .ts-nav.is-open .sub-menu { position: static; display: none; width: 100%; max-width: none; padding: 0 0 8px 18px; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
  .ts-nav.is-open li:hover > .sub-menu { display: none; }
  .ts-nav.is-open .menu-item-has-children.is-submenu-open > .sub-menu { display: block; }
  .ts-nav.is-open .sub-menu a { padding: 10px 12px; border-bottom: 1px solid var(--ts-line); }
  .ts-submenu-toggle { position: absolute; z-index: 2; top: 3px; right: 0; display: grid; place-items: center; width: 42px; height: 42px; color: var(--ts-ink); background: transparent; border: 0; font-size: 18px; }
  .ts-submenu-toggle[aria-expanded="true"] { transform: rotate(180deg); }
  .ts-hero { grid-template-columns:1fr; }
  .ts-featured { min-height:440px; }
  .ts-news-grid { grid-template-columns:1fr; }
  .ts-news-list { grid-template-columns:repeat(3,1fr); gap:16px; }
  .ts-news-item { grid-template-columns:1fr; }
  .ts-tools, .ts-products { grid-template-columns:1fr; }
  .ts-footer-columns, .ts-footer-columns-3, .ts-footer-columns-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .site-content-shell:has(> .content-area + .widget-area) { grid-template-columns:1fr; }
  .ts-page-layout-right, .ts-page-layout-left { grid-template-columns:1fr; }
  .ts-page-layout-left .widget-area { order:2; }
}

@media (max-width: 640px) {
  .ts-container { width:min(calc(100% - 28px),var(--ts-max)); }
  .ts-header-row { min-height:60px; }
  .ts-brand-text { font-size:19px; }
  .ts-hero-copy { padding:48px 20px 64px; }
  .ts-hero h1 { font-size:50px; }
  .ts-featured { min-height:390px; padding:24px 20px; }
  .ts-tlc-wrap { margin-top:-18px; }
  .ts-tlc-panel { padding:18px; }
  .ts-section { padding-block:54px; }
  .ts-section-head { align-items:flex-start; flex-direction:column; }
  .ts-news-list { grid-template-columns:1fr; }
  .ts-news-item { grid-template-columns:94px 1fr; }
  .ts-post-grid { grid-template-columns:1fr; }
  .ts-archive-hero h1 { font-size:50px; }
  .ts-footer-columns, .ts-footer-columns-3, .ts-footer-columns-4 { grid-template-columns:1fr; gap:32px; padding:42px 0 34px; }
  .site-content-shell:has(> .content-area + .widget-area) { width:calc(100% - 28px); }
  .ts-page-shell { width:calc(100% - 28px); padding:42px 0 58px; }
}
