:root {
    --bg: #f5f3f0;
    --ink: #3a342e;
    --accent: #9a84bc;
    --card: #ffffff;
    --muted: #7a7168;
    --line: #e4ddd4;
    --button: #a892c8;
    --button-ink: #ffffff;
    --highlight: #e0d6ef;
    --logo: #b8a4d4;
    --logo-ink: #ffffff;
    --font: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --winha-black: #111111;
    --winha-gold: #c9a227;
    --winha-white: #ffffff;
}

html, body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
}

a { color: var(--accent); }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 0.75rem;
    top: -3.5rem;
    z-index: 30;
    background: var(--button);
    color: var(--button-ink);
    padding: 0.55rem 1rem;
    border-radius: 999px;
    text-decoration: none;
}

.skip-link:focus {
    top: 0.75rem;
}

.visually-hidden,
.cal-full-date {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 1.1rem clamp(1rem, 4vw, 3rem);
    gap: 1rem;
    background: rgb(245 243 240 / 0.96);
    backdrop-filter: blur(8px);
}

.brand-mark {
    display: inline-flex;
    flex-shrink: 0;
    text-decoration: none;
    line-height: 0;
    justify-self: start;
    grid-column: 1;
}

.brand-mark .brand-logo,
.brand-mark img,
.footer-brand .brand-logo {
    position: relative;
    width: 5.5rem;
    height: 5.5rem;
    display: block;
    border-radius: 50%;
    background: var(--logo, #b8a4d4);
    overflow: hidden;
}

.brand-logo-ink {
    position: absolute;
    inset: 0;
    background: var(--logo-ink, #ffffff);
    -webkit-mask: url("../branding/site-logo-letters.png") center / 100% 100% no-repeat;
    mask: url("../branding/site-logo-letters.png") center / 100% 100% no-repeat;
}

.site-header .site-nav {
    grid-column: 2;
    justify-self: center;
    justify-content: center;
    flex: 0 1 auto;
}

.site-nav {
    display: flex;
    gap: clamp(0.85rem, 2vw, 1.6rem);
    flex-wrap: wrap;
    align-items: center;
}

.site-nav a,
.site-nav summary {
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--ink);
    text-decoration: none;
    text-transform: lowercase;
    letter-spacing: 0.01em;
    border: 0;
    background: none;
    padding: 0.15rem 0;
    cursor: pointer;
    list-style: none;
}

.site-nav a.is-current,
.site-nav summary.is-current {
    border-bottom: 1px solid var(--ink);
}

.comments-link.is-off,
[data-comments-block].is-off {
    display: none;
}

.nav-services {
    position: relative;
}

.nav-services summary {
    list-style: none;
}

.nav-services summary::-webkit-details-marker { display: none; }

.nav-services-panel {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    min-width: 14rem;
    padding: 0.75rem 1rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    box-shadow: 0 12px 28px rgb(58 52 46 / 0.1);
    display: grid;
    gap: 0.55rem;
    z-index: 20;
}

.nav-services-panel a {
    font-size: 0.95rem;
    color: var(--accent);
}

main.main-page {
    max-width: 44rem;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
}

main.main-wide {
    max-width: none;
    padding: 0 0 4rem;
}

main.main-wide > :not(.hero) {
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.hero-home {
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 2rem clamp(1.25rem, 5vw, 4rem) 3.5rem;
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
    width: min(72rem, 100%);
    margin: 0 auto;
    min-height: calc(100svh - 9rem);
}

.hero-inner {
    box-sizing: border-box;
    width: max-content;
    max-width: min(28rem, 100%);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-self: end;
}

.hero-title {
    color: var(--accent);
    font-size: clamp(2.75rem, 6vw, 4.35rem);
    font-weight: 500;
    line-height: 1.05;
    margin: 0 0 1.15rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title-line {
    display: block;
    width: max-content;
    max-width: 100%;
    text-align: left;
}

.hero-sub {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 17rem;
    margin: 0;
    align-self: center;
    text-align: center;
}

.hero-creds {
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.45;
    margin: 0 0 1.35rem;
    text-align: center;
}

.hero-cred-line {
    display: block;
}

.hero-cta {
    display: flex;
    justify-content: center;
    margin: 0;
}

.hero-media {
    width: min(100%, 26rem);
    margin-left: auto;
    aspect-ratio: 3 / 4;
    min-height: 0;
    border-radius: 2.75rem;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    box-shadow: 0 18px 40px rgb(58 52 46 / 0.1);
    justify-self: end;
}

@media (max-width: 860px) {
    .site-header {
        grid-template-columns: auto 1fr;
    }

    .site-header .site-nav {
        grid-column: 2;
        justify-self: end;
        justify-content: flex-end;
    }

    .hero-panel {
        grid-template-columns: 1fr;
        min-height: 0;
        gap: 2rem;
    }

    .hero-inner {
        width: 100%;
        max-width: 22rem;
        align-items: center;
    }

    .hero-title {
        align-items: center;
        text-align: center;
    }

    .hero-title-line {
        text-align: center;
    }

    .hero-media {
        width: 100%;
        max-width: 20rem;
        margin: 0 auto;
        aspect-ratio: 3 / 4;
        order: -1;
        justify-self: center;
    }
}

.hero-rule {
    width: min(70rem, 100%);
    margin: 0.5rem auto 2rem;
    border: 0;
    border-top: 1px solid var(--line);
}

.home-band {
    width: min(40rem, 100%);
    margin: 0 auto;
    padding: 0.5rem 0 1rem;
    text-align: center;
}

.home-tagline {
    margin: 0 auto;
    text-align: center;
    color: var(--ink);
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    line-height: 1.5;
    font-weight: 500;
}

.home-lead {
    margin: 1.75rem auto 0;
    text-align: center;
    color: var(--ink);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.6;
    max-width: 34rem;
}

.home-cta-secondary {
    display: flex;
    justify-content: center;
    margin: 2rem 0 0;
}

.content-page .page-title {
    color: var(--accent);
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 500;
    margin: 1rem 0 2rem;
}

.content-page .page-lead {
    text-align: center;
    color: var(--muted);
    max-width: 36rem;
    margin: 0 auto 2rem;
}

.page-prose {
    max-width: 40rem;
    margin: 0 auto;
    text-align: left;
}

.page-prose h2 {
    scroll-margin-top: 5rem;
    color: var(--accent);
    font-weight: 500;
    font-size: 1.35rem;
}

.content-page .page-prose > p:first-child {
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.55;
    margin-bottom: 1.75rem;
}

.agenda-page .agenda {
    margin-top: 0;
}

.faqs-page {
    max-width: 44rem;
    margin: 0 auto;
}

.faq-list {
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 0.15rem;
    cursor: pointer;
    list-style: none;
    font-family: var(--font);
    color: var(--ink);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-question {
    font-size: 1.08rem;
    line-height: 1.4;
    text-align: left;
}

.faq-toggle {
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
    position: relative;
}

.faq-toggle::before,
.faq-toggle::after {
    content: "";
    position: absolute;
    background: var(--ink);
    transition: transform 0.15s ease;
}

.faq-toggle::before {
    left: 0;
    right: 0;
    top: 50%;
    height: 1.5px;
    transform: translateY(-50%);
}

.faq-toggle::after {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1.5px;
    transform: translateX(-50%);
}

.faq-item[open] .faq-toggle::after {
    transform: translateX(-50%) scaleY(0);
}

.faq-answer {
    padding: 0 0.15rem 1.25rem;
    color: var(--muted);
    max-width: none;
}

.faq-answer p:first-child { margin-top: 0; }

.hero-text-top-left { justify-content: flex-start; align-items: flex-start; }
.hero-text-top-center { justify-content: flex-start; align-items: center; }
.hero-text-top-right { justify-content: flex-start; align-items: flex-end; }
.hero-text-center-left { justify-content: center; align-items: flex-start; }
.hero-text-center-center { justify-content: center; align-items: center; }
.hero-text-center-right { justify-content: center; align-items: flex-end; }
.hero-text-bottom-left { justify-content: flex-end; align-items: flex-start; }
.hero-text-bottom-center { justify-content: flex-end; align-items: center; }
.hero-text-bottom-right { justify-content: flex-end; align-items: flex-end; }

.hero-text-top-center .hero-inner,
.hero-text-center-center .hero-inner,
.hero-text-bottom-center .hero-inner {
    text-align: center;
}

.hero-text-top-right .hero-inner,
.hero-text-center-right .hero-inner,
.hero-text-bottom-right .hero-inner {
    text-align: right;
}
.eyebrow {
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 500;
}
h1, h2 {
    font-family: var(--font);
    color: var(--ink);
    font-weight: 500;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0.35rem 0 0.85rem; line-height: 1.15; }
h2 { line-height: 1.3; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.lead { color: var(--muted); font-size: 1.08rem; line-height: 1.7; max-width: 34rem; }
.prose p { line-height: 1.65; margin: 0.8em 0; }
.prose h2 { margin: 1.25em 0 0.5em; }

button,
.pill,
.button-link,
.hour,
.pager a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: max-content;
    max-width: 100%;
    min-height: 2.5rem;
    padding: 0.55rem 1.15rem;
    margin: 0;
    border: 1px solid var(--button);
    border-radius: 999px;
    background: var(--button);
    color: var(--button-ink);
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.pill { margin-right: 0.4rem; }

.pill.ghost,
.button-link {
    background: var(--card);
    color: var(--button);
    border-color: var(--button);
}

.agenda-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0 0 0.75rem;
}

.agenda-toolbar h2 {
    margin: 0;
}

.tz-select {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-left: auto;
    max-width: 100%;
    min-width: 0;
    white-space: nowrap;
}

.tz-select select {
    box-sizing: border-box;
    width: 11.5rem;
    max-width: 11.5rem;
    padding: 0.45rem 0.5rem;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    font: inherit;
}

.agenda, .contact-cta, .about, .services {
    background: var(--card);
    border-radius: 1.1rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    margin: 1.75rem 0;
    border: 1px solid var(--line);
}

.agenda-intro { color: var(--muted); max-width: 48rem; }
.agenda-week-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
}

.agenda-week-label { font-weight: 600; color: var(--ink); text-align: center; }
.agenda-prev { justify-self: start; }
.agenda-next { justify-self: end; }
.agenda-prev,
.agenda-next { color: var(--accent); font-weight: 600; text-decoration: none; }
.agenda-prev.is-disabled,
.agenda-next.is-disabled { color: var(--muted); }

.agenda-empty {
    background: #fef9e7;
    border: 1px solid #f0e6b8;
    border-radius: 0.75rem;
    padding: 1.25rem 1.35rem;
    color: var(--ink);
}

.agenda-empty-jump { text-align: right; margin: 0.75rem 0 0; }
.agenda-empty-jump a { color: var(--accent); font-weight: 600; }

.agenda-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0.5rem 0 0.25rem;
}

.agenda-day {
    background: var(--highlight);
    border-radius: 0.65rem;
    padding: 0.75rem 0.55rem 1rem;
    min-height: 12rem;
}

.agenda-day-head {
    margin: 0 0 0.75rem;
    text-align: center;
    font-size: 0.95rem;
    color: var(--ink);
}

.agenda-day-name { display: block; font-weight: 600; }
.agenda-day-date { display: block; color: var(--muted); font-size: 0.85rem; font-weight: 400; }

.agenda-day-hours {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
}

.agenda-day-hours .hour {
    width: 100%;
    max-width: none;
    min-height: 2.15rem;
    padding: 0.4rem 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.agenda-same-day { margin: 1rem 0 0; color: var(--muted); }
.phone-line {
    display: grid;
    grid-template-columns: minmax(11rem, 1.3fr) auto minmax(8rem, 1fr);
    gap: 0.6rem;
    align-items: end;
    position: relative;
    margin-bottom: 0.6rem;
}
.phone-line label { margin-bottom: 0; }
.phone-dial { font-weight: 700; padding-bottom: 0.65rem; }
#phone-country-list {
    position: absolute;
    z-index: 4;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 16rem;
    overflow: auto;
    list-style: none;
    margin: 0.25rem 0 0;
    padding: 0.3rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 0.7rem;
}
#phone-country-list button {
    width: 100%;
    justify-content: flex-start;
    border: 0;
    background: transparent;
    color: inherit;
}
.agenda-day-none {
    margin: 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
}

@media (max-width: 960px) {
    .agenda-week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .agenda-week { grid-template-columns: 1fr; }
    .phone-line { grid-template-columns: 1fr auto; }
    .phone-line label:first-child { grid-column: 1 / -1; }
}

.cal-head { font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.cal-day.off, .cal-day.empty {
    background: var(--highlight);
    color: var(--muted);
}
.cal-day.on {
    background: var(--card);
    border: 1px solid var(--accent);
    position: relative;
}
.cal-day.on summary {
    list-style: none;
    cursor: pointer;
    width: 100%;
    padding: 0.5rem 0;
    font-weight: 700;
}
.cal-day.on summary::-webkit-details-marker { display: none; }
.hours {
    position: absolute;
    z-index: 2;
    left: 0;
    top: 100%;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    padding: 0.7rem;
    min-width: 10rem;
    box-shadow: 0 8px 24px rgb(42 31 107 / 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.hour { margin: 0; }

.card-form {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    background: var(--card);
    padding: 1.5rem;
    border-radius: 1.25rem;
}

.card-form label { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.6rem; font-weight: 600; }
.field-hint { color: var(--muted); font-size: 0.9rem; font-weight: 400; margin: 0 0 0.8rem; }
.card-form input, .card-form select, .card-form textarea {
    font: inherit;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
}

.card-form input[readonly] {
    background: var(--highlight);
    color: var(--muted);
}

.card-form button[type="submit"] {
    align-self: flex-start;
    margin-top: 0.35rem;
}

.banner {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}
.banner.warn { background: #ffe8cc; color: #7a3b00; }

.site-footer {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.25rem 2rem;
    padding: 1.75rem clamp(1rem, 4vw, 3rem);
    background: var(--accent);
    color: #fff;
    border-top: 0;
}

.footer-brand {
    line-height: 0;
    text-decoration: none;
}

.footer-brand .brand-logo {
    width: 4.5rem;
    height: 4.5rem;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.92rem;
    line-height: 1.35;
    color: #fff;
}

.footer-version {
    font-size: 0.8rem;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    text-align: right;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.about-link {
    display: inline;
    width: auto;
    min-height: 0;
    padding: 0;
    margin-top: 0.35rem;
    background: none;
    border: 0;
    border-radius: 0;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 0.85rem;
    font-weight: inherit;
    text-decoration: underline;
}

@media (max-width: 700px) {
    .site-footer {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .footer-links {
        align-items: center;
        text-align: center;
    }

    .footer-meta {
        align-items: center;
    }
}

.content-footer-cta,
.faqs-footer-cta {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.winha-about-modal {
    border: 1px solid var(--winha-gold);
    background: var(--winha-black);
    color: var(--winha-white);
    max-width: 36rem;
    padding: 1.5rem;
    border-radius: 0.5rem;
}
.winha-about-modal::backdrop { background: rgb(0 0 0 / 0.7); }
.winha-about-modal header { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.winha-about-modal img.logo { width: 4.5rem; height: 4.5rem; }
.winha-about-modal img.qr {
    width: 6rem;
    height: 6rem;
    background: var(--winha-white);
    padding: 0.25rem;
    display: block;
    image-rendering: pixelated;
    object-fit: contain;
}
.winha-about-modal a.qr-link { display: inline-block; line-height: 0; }
.winha-about-modal h2, .winha-about-modal h3, .winha-about-modal .meta { color: var(--winha-gold); margin: 0; }
.winha-about-modal h3 { margin: 1rem 0 0.4rem; font-size: 1.05rem; }
.winha-about-modal footer { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 1.25rem; }
.winha-about-modal button {
    background: transparent;
    color: var(--winha-gold);
    border: 1px solid var(--winha-gold);
    min-height: 2.5rem;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}

.about, .services {
    background: var(--card);
    border-radius: 1.25rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

#agenda,
#quienes-somos,
#contenido {
    scroll-margin-top: 4.5rem;
}


.pager {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin: 1.25rem 0 0;
}

.referral-opt {
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: var(--highlight);
}

.referral-opt summary {
    cursor: pointer;
    font-weight: 600;
}

.privacy-note {
    color: var(--muted);
    font-size: 0.92rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.person-card {
    background: var(--card);
    border-radius: 1.25rem;
    overflow: hidden;
    padding: 0 0 1rem;
}

.person-card img, .hero-img {
    width: 100%;
    display: block;
    border-radius: 1.25rem 1.25rem 0 0;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.person-card h3, .person-card .muted, .person-card .prose {
    padding: 0 1rem;
}

.muted { color: var(--muted); }
.prose ul { padding-left: 1.2rem; }

.feedback-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.feedback-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    padding: 1.1rem 1.2rem 0.9rem;
}

.feedback-message {
    margin: 0 0 0.8rem;
    white-space: pre-wrap;
}

.feedback-name {
    margin: 0;
    font-weight: 700;
    color: var(--accent);
}

.feedback-when {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.home-feedbacks {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.25rem 3rem;
}
.main-wide { max-width: 64rem; }
