/* Portada turística de San Julián (solo se carga en Inicio). */
.th-home{
    --th-navy:#0f2f55;--th-blue:#2563eb;--th-blue-dark:#1d4ed8;--th-text:#1b2f47;--th-muted:#5b6f86;--th-line:#e3e9f1;
    --th-gold:#d6b25e;--th-gold-dark:#c29d45;--th-gold-ink:#86691f;--th-gold-light:#e6cd8c;--th-bg:#f6f8fb;--th-radius:20px;
    --th-shadow:0 1px 2px rgba(15,47,85,.06),0 10px 30px rgba(15,47,85,.08);
    float:left;width:100%;background:var(--th-bg);color:var(--th-text);text-align:left;
}
.th-home *,.th-home *::before,.th-home *::after{box-sizing:border-box}
/* The theme floats every <section> left with a white background and 100px padding.
   :where() keeps this reset at element weight, so the classes below still win. */
:where(.th-home) section{float:none;position:relative;z-index:auto;padding:0;background:transparent}
.th-home h1,.th-home h2,.th-home h3,.th-home p{float:none;padding:0;text-align:left}
.th-home a{text-decoration:none}
.th-shell{width:100%;max-width:1240px;margin:0 auto;padding:0 24px}

/* ---- 1. Portada ---- */
.th-hero{position:relative;display:flex;flex-direction:column;justify-content:flex-end;min-height:clamp(540px,80vh,780px);padding:0 0 28px;color:#fff;
    background:linear-gradient(180deg,rgba(9,22,40,.15) 0%,rgba(9,22,40,.05) 30%,rgba(9,22,40,.55) 62%,rgba(9,22,40,.88) 100%),var(--th-hero-lg,linear-gradient(135deg,#0f2f55,#1d4ed8));
    background-size:cover;background-position:center 38%}
.th-hero__inner{width:100%;max-width:1240px;margin:0 auto;padding:0 24px}
.th-home .th-hero__eyebrow{display:inline-flex;align-items:center;gap:8px;margin:0 0 10px;padding:6px 14px;border-radius:999px;background:rgba(255,255,255,.16);backdrop-filter:blur(6px);color:#fff;font-size:13.5px;font-weight:600;letter-spacing:.02em}
.th-home .th-hero h1{max-width:760px;margin:0 0 10px;color:#fff;font-size:clamp(34px,5.2vw,62px);font-weight:800;line-height:1.05;letter-spacing:-.02em;text-shadow:0 2px 18px rgba(0,0,0,.35)}
.th-home .th-hero__lead{max-width:620px;margin:0 0 22px;color:#eef3fa;font-size:clamp(16px,1.6vw,19px);line-height:1.5;text-shadow:0 1px 10px rgba(0,0,0,.35)}

.th-search{display:flex;align-items:center;gap:8px;max-width:780px;padding:8px 8px 8px 20px;border-radius:18px;background:#fff;box-shadow:0 18px 40px rgba(5,18,36,.35)}
.th-search>i{color:var(--th-muted);font-size:18px}
.th-search input{flex:1;min-width:0;height:48px;padding:0;border:0;background:transparent;color:var(--th-text);font-size:16.5px;outline:0}
.th-search input::placeholder{color:#8293a7}
.th-search select{height:48px;max-width:170px;padding:0 30px 0 14px;border:0;border-left:1px solid var(--th-line);border-radius:0;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b6f86' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center;color:var(--th-text);font-size:14.5px;font-weight:600;-webkit-appearance:none;appearance:none;cursor:pointer}
.th-search button{flex-shrink:0;height:48px;padding:0 26px;border:0;border-radius:12px;background:var(--th-gold);color:var(--th-navy);font-size:16px;font-weight:700;cursor:pointer;transition:background .15s}
.th-search button:hover{background:var(--th-gold-dark)}

.th-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.th-chips a{display:inline-flex;align-items:center;gap:7px;padding:9px 15px;border:1px solid rgba(255,255,255,.35);border-radius:999px;background:rgba(10,25,45,.35);backdrop-filter:blur(6px);color:#fff!important;font-size:14px;font-weight:600;transition:background .15s,border-color .15s}
.th-chips a:hover{background:rgba(255,255,255,.22);border-color:rgba(255,255,255,.6)}

.th-hero__stats{display:flex;flex-wrap:wrap;gap:6px 28px;width:100%;max-width:1240px;margin:26px auto 0;padding:16px 24px 0;border-top:1px solid rgba(255,255,255,.22);list-style:none}
.th-hero__stats li{color:#dbe6f3;font-size:14.5px}
.th-hero__stats strong{margin-right:4px;color:#fff;font-size:20px;font-weight:800}

/* ---- Encabezados de sección ---- */
.th-section{padding-top:56px}
.th-head{margin-bottom:20px}
.th-head--row{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}
.th-home .th-eyebrow{margin:0 0 4px;color:var(--th-gold-ink);font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.th-home .th-head h2{margin:0;color:var(--th-navy);font-size:clamp(25px,2.6vw,32px);font-weight:800;line-height:1.15;letter-spacing:-.01em}
.th-home .th-head__lead{margin:8px 0 0;color:var(--th-muted);font-size:16px}
.th-more{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;padding:8px 14px;border-radius:999px;background:#fff;box-shadow:var(--th-shadow);color:var(--th-blue)!important;font-size:14px;font-weight:700}
.th-more:hover{background:#eef4ff}

/* ---- 2. Planea tu visita (mosaico) ---- */
.th-bento{display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:200px;gap:16px}
.th-tile{position:relative;display:flex;align-items:flex-end;overflow:hidden;padding:20px;border-radius:var(--th-radius);color:#fff!important;isolation:isolate;box-shadow:var(--th-shadow);transition:transform .2s,box-shadow .2s}
.th-tile::before{content:"";position:absolute;inset:0;z-index:-2;background:var(--th-tile-image,none) center/cover no-repeat;transition:transform .5s}
.th-tile::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(8,20,38,0) 35%,rgba(8,20,38,.78) 100%)}
.th-tile:hover{transform:translateY(-3px);box-shadow:0 18px 40px rgba(15,47,85,.18)}
.th-tile:hover::before{transform:scale(1.05)}
.th-tile--big{grid-column:span 2;grid-row:span 2;padding:28px}
.th-tile__icon{position:absolute;top:18px;right:20px;z-index:-1;font-size:64px;opacity:.28}
.th-tile--big .th-tile__icon{font-size:120px;top:26px;right:30px}
.th-tile__body{display:flex;flex-direction:column;gap:4px}
.th-tile__body strong{font-size:21px;font-weight:800;line-height:1.15}
.th-tile--big .th-tile__body strong{font-size:clamp(28px,3vw,38px)}
.th-tile__body span{color:#e6edf6;font-size:14.5px;line-height:1.4}
.th-tile__go{position:absolute;right:24px;bottom:24px;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:#fff;color:var(--th-navy);font-size:18px}
/* Without a photo each tile keeps its own color. */
.th-tone-visit{background:linear-gradient(140deg,#0e7490,#164e63)}
.th-tone-food{background:linear-gradient(140deg,#7a4b2a,#3f2412)}
.th-tone-stay{background:linear-gradient(140deg,#1e3a8a,#312e81)}
.th-tone-culture{background:linear-gradient(140deg,#8a6d22,#4d3b0f)}
.th-tone-map{background:linear-gradient(140deg,#15803d,#14532d)}
.th-tile.th-tone-visit,.th-tile.th-tone-food,.th-tile.th-tone-stay,.th-tile.th-tone-culture,.th-tile.th-tone-map{background-color:transparent}

/* ---- Tarjetas con foto ---- */
.th-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.th-card{display:flex;flex-direction:column;overflow:hidden;border-radius:var(--th-radius);background:#fff;box-shadow:var(--th-shadow);color:var(--th-text)!important;transition:transform .2s,box-shadow .2s}
.th-card:hover{transform:translateY(-3px);box-shadow:0 18px 40px rgba(15,47,85,.14)}
.th-card__img{position:relative;display:grid;place-items:center;aspect-ratio:10/7;overflow:hidden;background:#dde6f0;color:#fff;font-size:46px}
.th-card__img img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.th-card:hover .th-card__img img{transform:scale(1.05)}
.th-card__body{display:flex;flex-direction:column;gap:5px;padding:16px 18px 18px}
.th-card__body strong{color:var(--th-navy);font-size:17.5px;font-weight:800;line-height:1.25}
.th-card__kicker{display:inline-flex;align-items:center;gap:6px;color:var(--th-gold-ink);font-size:12.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.th-card__meta{display:inline-flex;align-items:center;gap:6px;color:var(--th-muted);font-size:13.5px}
.th-card__text{color:var(--th-muted);font-size:14px;line-height:1.45}

.th-pills{display:flex;flex-wrap:wrap;gap:8px;margin:-4px 0 18px}
.th-pills a{display:inline-flex;align-items:center;gap:7px;padding:8px 14px;border:1px solid var(--th-line);border-radius:999px;background:#fff;color:var(--th-text)!important;font-size:14px;font-weight:600}
.th-pills a:hover{border-color:var(--th-blue);color:var(--th-blue)!important}
.th-pills b{padding:1px 8px;border-radius:999px;background:#eef2f8;color:var(--th-muted);font-size:12px}

.th-scroller{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(240px,1fr);gap:18px;overflow-x:auto;padding:4px 4px 18px;margin:0 -4px;scroll-snap-type:x mandatory;scrollbar-width:thin}
.th-scroller>*{scroll-snap-align:start}
.th-card--narrow .th-card__img{aspect-ratio:4/3}

/* ---- 6. Servicios para la ciudadanía ---- */
.th-services{margin-top:64px;padding:56px 0 60px;background:linear-gradient(180deg,#0f2f55 0%,#12355f 100%);color:#fff}
.th-home .th-services .th-eyebrow{color:var(--th-gold-light)}
.th-home .th-services .th-head h2{color:#fff}
.th-home .th-services .th-head__lead{color:#c7d6ea}
.th-service-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.th-service{display:flex;gap:14px;padding:18px;border:1px solid rgba(255,255,255,.1);border-radius:16px;background:rgba(255,255,255,.06);color:#fff!important;transition:background .15s,border-color .15s,transform .15s}
.th-service:hover{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.25);transform:translateY(-2px)}
.th-service__icon{display:grid;place-items:center;flex-shrink:0;width:46px;height:46px;border-radius:13px;background:#fff;font-size:20px}
.th-service__body{display:flex;flex-direction:column;gap:3px}
.th-service__body strong{font-size:16px;font-weight:700}
.th-service__body span{color:#c7d6ea;font-size:13.5px;line-height:1.45}
.th-service__body b{margin-top:4px;color:var(--th-gold-light);font-size:13px;font-weight:700}
.th-ink-blue{color:#2563eb}.th-ink-amber{color:#d97706}.th-ink-green{color:#16a34a}.th-ink-violet{color:#7c3aed}
.th-ink-rose{color:#e11d48}.th-ink-navy{color:#0f2f55}.th-ink-teal{color:#0d9488}.th-ink-sky{color:#0284c7}

.th-cta{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:28px;padding:24px 28px;border-radius:var(--th-radius);background:linear-gradient(120deg,#e3c77f,var(--th-gold))}
.th-home .th-cta h3{margin:0 0 4px;color:var(--th-navy);font-size:21px;font-weight:800}
.th-home .th-cta p{margin:0;color:#3d4b5c;font-size:15px}
.th-cta__actions{display:flex;flex-shrink:0;gap:10px}
.th-btn{display:inline-flex;align-items:center;justify-content:center;height:46px;padding:0 22px;border-radius:12px;font-size:15px;font-weight:700}
.th-btn--primary{background:var(--th-navy);color:#fff!important}
.th-btn--primary:hover{background:#163d6d}
.th-btn--ghost{border:1px solid var(--th-navy);color:var(--th-navy)!important}
.th-btn--ghost:hover{background:rgba(15,47,85,.08)}

/* ---- 7. Comunidad ---- */
.th-feed{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;padding-bottom:64px}
.th-feed__item{display:flex;gap:14px;align-items:center;padding:12px;border-radius:16px;background:#fff;box-shadow:var(--th-shadow);color:var(--th-text)!important;transition:transform .15s}
.th-feed__item:hover{transform:translateY(-2px)}
.th-feed__thumb{display:grid;place-items:center;flex-shrink:0;width:92px;height:72px;overflow:hidden;border-radius:12px;background:#e9eef6;color:var(--th-muted);font-size:24px}
.th-feed__thumb img{width:100%;height:100%;object-fit:cover}
.th-feed__body{display:flex;flex-direction:column;gap:3px;min-width:0}
.th-feed__body strong{overflow:hidden;color:var(--th-navy);font-size:15.5px;font-weight:700;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.th-section:last-child .th-feed{padding-bottom:64px}

/* ---- Teclado ---- */
.th-home a:focus-visible,.th-home button:focus-visible,.th-home select:focus-visible,.th-home input:focus-visible,.th-scroller:focus-visible{outline:3px solid var(--th-gold)!important;outline-offset:3px!important}
.th-search input:focus-visible{outline:0!important}
.th-search:focus-within{box-shadow:0 0 0 4px rgba(214,178,94,.6),0 18px 40px rgba(5,18,36,.35)}

/* ---- Pantallas medianas ---- */
@media (max-width:1100px){
    .th-bento{grid-template-columns:repeat(2,1fr);grid-auto-rows:180px}
    .th-tile--big{grid-column:span 2;grid-row:span 2}
    .th-service-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:900px){
    .th-cards{grid-template-columns:repeat(2,1fr)}
    .th-feed{grid-template-columns:1fr}
    .th-cta{flex-direction:column;align-items:flex-start}
}

/* ---- Celular ---- */
@media (max-width:640px){
    .th-shell,.th-hero__inner{padding:0 16px}
    .th-hero{min-height:620px;padding-bottom:20px;background-image:linear-gradient(180deg,rgba(9,22,40,.25) 0%,rgba(9,22,40,.35) 40%,rgba(9,22,40,.9) 100%),var(--th-hero-sm,linear-gradient(135deg,#0f2f55,#1d4ed8));background-position:58% center}
    .th-search{flex-wrap:wrap;padding:8px;gap:6px;border-radius:16px}
    .th-search>i{display:none}
    .th-search input{flex:1 1 100%;height:46px;padding:0 10px;font-size:16px}
    .th-search select{flex:1;max-width:none;height:44px;border-left:0;border-radius:10px;background-color:#f1f5f9}
    .th-search button{height:44px;padding:0 20px}
    .th-chips{flex-wrap:nowrap;overflow-x:auto;margin-right:-16px;padding-right:16px;scrollbar-width:none}
    .th-chips::-webkit-scrollbar{display:none}
    .th-chips a{flex-shrink:0}
    .th-hero__stats{gap:4px 18px;padding:12px 16px 0}
    .th-hero__stats strong{font-size:17px}
    .th-section{padding-top:40px}
    .th-head--row{align-items:flex-start;flex-direction:column}
    .th-bento{grid-template-columns:1fr 1fr;grid-auto-rows:150px;gap:10px}
    .th-tile{padding:14px;border-radius:16px}
    .th-tile--big{padding:20px}
    .th-tile__body strong{font-size:16.5px}
    .th-tile__body span{font-size:12.5px}
    .th-tile:not(.th-tile--big) .th-tile__icon{font-size:42px;top:12px;right:12px}
    .th-tile__go{right:16px;bottom:16px;width:40px;height:40px}
    .th-cards,.th-cards--three{grid-template-columns:1fr}
    /* Stories become compact rows so three of them fit on one screen. */
    .th-card--story{flex-direction:row;align-items:stretch}
    .th-card--story .th-card__img{flex:0 0 112px;aspect-ratio:auto;min-height:112px;font-size:30px}
    .th-card--story .th-card__body{padding:12px 14px}
    .th-card--story .th-card__body strong{font-size:15.5px}
    .th-card--story .th-card__text{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}
    .th-service-grid{grid-template-columns:1fr}
    .th-services{margin-top:44px;padding:40px 0 44px}
    .th-cta{padding:20px}
    .th-cta__actions{width:100%}
    .th-cta__actions .th-btn{flex:1}
}
@media (prefers-reduced-motion:reduce){
    .th-tile,.th-tile::before,.th-card,.th-card__img img,.th-service,.th-feed__item{transition:none}
}
.th-card__img.th-tone-culture{background:linear-gradient(140deg,#8a6d22,#4d3b0f)}
.th-ad{padding-top:40px}
.th-ad .ad-slot{float:none;width:100%;margin:0;padding:0;border:0;background:transparent;box-shadow:none}
.th-card__credit{position:absolute;left:8px;bottom:8px;max-width:calc(100% - 16px);overflow:hidden;padding:2px 8px;border-radius:999px;background:rgba(10,25,45,.65);color:#fff;font-size:11px;white-space:nowrap;text-overflow:ellipsis}
