/*
Theme Name: Portal Turístico de Catamarca
Description: Portada y directorio turístico de Catamarca.
Version: 0.3.2
Requires at least: 5.3
Requires PHP: 7.4
Text Domain: portal-catamarca
*/
:root {
  --paper: #f8f5ec;
  --ink: #20332a;
  --green: #183b2d;
  --cream: #fffdf7;
  --line: #ded9cb;
  --sun: #f1b660;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .15em; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #ae5721; outline-offset: 4px; }
.wrap { width: min(100% - 3rem, 74rem); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 5; background: white; padding: 1rem; }
.top { background: var(--cream); }
.top-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding-block: 1rem; }
.brand { font: bold 1.85rem/1 Georgia, serif; text-decoration: none; }
.brand span { display: block; margin-top: .4rem; font: 700 .7rem/1.1 system-ui, sans-serif; letter-spacing: .14em; }
nav, .portal-menu { display: flex; flex-wrap: wrap; gap: .35rem 1.4rem; }
.portal-menu { list-style: none; margin: 0; padding: 0; }
nav a { font-weight: 650; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.hero { position: relative; isolation: isolate; background: #27392d url('assets/pomez.jpg') center 58% / cover no-repeat; color: white; }
.hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(15,27,18,.91), rgba(15,27,18,.56) 55%, rgba(15,27,18,.22)); }
.hero-inner { padding-block: clamp(3.5rem, 9vw, 8rem); }
.eyebrow { margin: 0; font-size: .875rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.hero .eyebrow { color: #ffd89c; }
h1, h2, h3 { margin: 0; font-family: Georgia, serif; line-height: 1.04; font-weight: 500; }
h1 { margin-top: .6rem; font-size: clamp(3.5rem, 8.5vw, 7.75rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); letter-spacing: -.04em; }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -.025em; }
.intro { max-width: 30rem; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.finder { display: flex; align-items: center; gap: .4rem; width: min(100%, 33rem); padding: .45rem; background: white; border: 1px solid var(--line); border-radius: .65rem; margin-top: 1.7rem; }
.finder input { flex: 1; min-width: 0; border: 0; padding: .65rem; color: var(--ink); font: inherit; border-radius: .35rem; }
.search-icon { position: relative; flex: 0 0 1rem; width: 1rem; height: 1rem; margin-left: .6rem; border: 2px solid var(--green); border-radius: 50%; }
.search-icon::after { content: ''; position: absolute; width: .4rem; height: 2px; right: -.31rem; bottom: -.16rem; background: var(--green); transform: rotate(45deg); }
button, .button { display: inline-block; border: 0; border-radius: .4rem; background: var(--sun); color: #2a261c; padding: .65rem 1.1rem; font: 700 1rem/1.3 system-ui, sans-serif; cursor: pointer; text-decoration: none; }
button:hover, .button:hover { background: #ffca7d; }
.caption { position: absolute; right: 1rem; bottom: .65rem; background: #18251c; border-radius: .3rem; padding: .15rem .45rem; font-size: .8rem; }
.section { padding-block: clamp(2rem, 5vw, 4rem); }
.category-grid, .listing-grid, .event-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.category, .listing, .event { min-width: 0; background: var(--cream); border: 1px solid var(--line); border-radius: .75rem; overflow: hidden; }
.category { display: block; text-decoration: none; }
.category-copy { padding: .85rem 1rem 1rem; }
.category:hover { background: #f4ead8; }
.category strong { display: block; font: 700 1.25rem/1.15 Georgia, serif; margin-bottom: .25rem; }
.category:hover strong { text-decoration: underline; }
.category small { font-size: .875rem; }
.media { position: relative; overflow: hidden; }
.portal-image { aspect-ratio: 16 / 10; background: #d2bfa8 center / cover no-repeat; }
.photo-pomez { background-image: url('assets/pomez.jpg'); }
.photo-gastro { background-image: url('assets/gastro.jpg'); }
.photo-cabana { background-image: url('assets/cabana.jpg'); }
.photo-festival { background-image: url('assets/festival.jpg'); }
.photo-noche { background-image: url('assets/noche.jpg'); background-position: center 62%; }
.photo-sendero { background-image: url('assets/sendero.jpg'); background-position: center 69%; }
.photo-guia { background-image: url('assets/guia.jpg'); background-position: center 67%; }
.photo-placeholder { display: grid; place-items: center; padding: .75rem; text-align: center; color: var(--green); background: repeating-linear-gradient(135deg, #efe5d2 0 13px, #e9ddc7 13px 14px); }
.photo-placeholder span { max-width: 12rem; padding: .35rem .65rem; background: var(--cream); border: 1px dashed #9a795e; border-radius: .3rem; font-size: .875rem; }
.image-tag { position: absolute; bottom: .4rem; right: .4rem; padding: .12rem .36rem; color: white; background: #24382e; border-radius: .2rem; font-size: .75rem; }
.agenda-band { background: #ede5d5; }
.agenda-band .eyebrow { margin-bottom: .55rem; color: #85411f; }
.event-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.event .portal-image { aspect-ratio: 2 / 1; }
.event-copy { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: .85rem; padding: 1rem; }
.event-copy h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
.event-copy p { margin: .3rem 0; }
.event-date { display: grid; min-width: 3rem; place-items: center; padding: .4rem .45rem; color: white; background: #934727; border-radius: .4rem; line-height: 1; }
.event-date strong { font: 700 1.85rem/1 Georgia, serif; }
.event-date span { font-size: .8rem; font-weight: 750; margin-top: .2rem; }
.directory-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
[data-status]:empty { margin: 0; }
.listing { scroll-margin-top: 1rem; }
.listing:target { outline: 3px solid #ae5721; outline-offset: 2px; }
.listing-copy { padding: 1rem; }
.listing-copy h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
.listing .eyebrow { color: #85411f; margin-bottom: .4rem; letter-spacing: .08em; }
.listing-copy p { margin-block: .45rem; }
.meta { font-size: .875rem; font-weight: 650; }
.listing-detail { margin-top: .85rem; }
.listing-detail summary, .request summary { width: fit-content; padding: .5rem .7rem; border: 1px solid #ad744e; border-radius: .35rem; font-weight: 700; cursor: pointer; }
summary:hover { background: #f4ead8; }
summary:focus-visible, select:focus-visible { outline: 3px solid #ae5721; outline-offset: 4px; }
.participation { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-top: 0; }
.offer, .need { min-width: 0; padding: clamp(1.05rem, 4vw, 2.4rem); border-radius: .8rem; }
.offer { color: var(--cream); background: var(--green); }
.need { color: var(--ink); background: #ede5d5; }
.service-search { margin-block: 1rem; }
.service-search button { flex-shrink: 0; padding-inline: .65rem; }
.request form { display: grid; gap: .5rem; padding-top: .3rem; }
.request form label { font-weight: 650; }
.request form input, .request form select { width: 100%; min-width: 0; padding: .5rem; border: 1px solid #ab9582; border-radius: .35rem; background: var(--cream); color: var(--ink); font: inherit; }
.request form button { justify-self: start; }
[data-request-result] { overflow-wrap: anywhere; margin: 0; }
footer { background: var(--green); color: white; padding-block: 1rem; }
footer p { margin: .2rem 0; font-size: .875rem; }
.entry { max-width: 50rem; margin-bottom: 2rem; overflow-wrap: anywhere; }
.entry img { max-width: 100%; height: auto; }
.managed-section { margin-top: 2rem; }
.managed-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; }
.listing-copy h4 { margin: 0; font: 500 1.4rem/1.15 Georgia, serif; }
.meta time:not(:first-child)::before { content: ' · '; }
.managed-media { display: block; width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; }
.entry .comment-form textarea { max-width: 100%; }
@media (max-width: 56rem) {
  .category-grid, .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .participation { grid-template-columns: 1fr; }
}
@media (max-width: 38rem) {
  .wrap { width: calc(100% - 2rem); }
  .top-inner, .footer-inner { align-items: flex-start; flex-direction: column; }
  nav { gap: .4rem 1rem; }
  nav a { font-size: .9rem; }
  .listing-grid, .event-grid { grid-template-columns: 1fr; }
  .category-copy { padding: .65rem; }
  .category strong { font-size: 1.1rem; }
  .category .image-tag { font-size: .68rem; bottom: .2rem; right: .2rem; }
}
@media (max-width: 22rem) {
  h1 { font-size: 3rem; }
  .service-search { display: grid; }
}
.portal-interior-root, .portal-interior-root > body { height: auto; max-height: none; overflow: visible; }
.interior-heading { margin-bottom: clamp(1.15rem, 3vw, 2rem); }
.interior-heading h1 { margin: 0; font-size: clamp(1.85rem, 3.4vw, 3rem); line-height: 1.12; letter-spacing: -.035em; overflow-wrap: anywhere; }
.interior-heading p { max-width: 66ch; margin: .65rem 0 0; }
.interior-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: clamp(.9rem, 2.2vw, 1.5rem); }
.interior-card { display: flex; min-width: 0; flex-direction: column; background: var(--cream); border: 1px solid var(--line); border-radius: .75rem; }
.interior-card-photo { width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; border-radius: .7rem .7rem 0 0; }
.interior-card-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: .55rem; padding: clamp(.95rem, 2vw, 1.35rem); }
.interior-card-copy h2 { font-size: clamp(1.35rem, 2.25vw, 1.75rem); letter-spacing: -.025em; line-height: 1.18; overflow-wrap: anywhere; }
.interior-card-copy h2 a { text-decoration: none; }
.interior-card-copy h2 a:hover { text-decoration: underline; }
.interior-card-copy p { margin: 0; }
.interior-card-copy .meta { color: #85411f; }
.interior-card-link { display: inline-block; margin-top: auto; padding: .45rem .8rem; border: 1px solid #ad744e; border-radius: .35rem; font-weight: 700; text-decoration: none; }
.interior-card-link:hover { background: #f4ead8; }
.interior .pagination { margin-top: 1.5rem; }
.interior .pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.interior .page-numbers { display: inline-flex; min-width: 2.75rem; min-height: 2.75rem; align-items: center; justify-content: center; padding: .35rem .75rem; border: 1px solid var(--line); border-radius: .35rem; background: var(--cream); }
.interior .page-numbers.current { background: var(--green); color: white; }
.interior-article { max-width: 70ch; margin-inline: auto; overflow-wrap: anywhere; }
.interior-content { font-size: clamp(1rem, 1.4vw, 1.125rem); line-height: 1.72; }
.interior-content h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.interior-content h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
.interior-article img { max-width: 100%; height: auto; }
.interior-featured, .interior-content figure { max-width: 100%; margin: 1.2rem 0; }
.interior-featured img, .interior-content figure img { display: block; border-radius: .65rem; }
.interior-featured img { width: 100%; }
.interior-content .aligncenter, .interior-content .aligncenter img { margin-inline: auto; }
.interior-article figcaption, .interior-article .wp-caption-text, .interior-photo-credit { margin: .45rem 0 0; color: #5e5242; font-size: .875rem; line-height: 1.45; }
.interior-article .comment-form textarea { max-width: 100%; }
