:root {
    --black: #fbf5ec;
    --black-soft: #221a14;
    --brand-brown: #4a3527;
    --tandyweb: #221a14;
    --beige: #b08a55;
    --beige-soft: #f3eadb;
    --gold: #b08a55;
    --gold-soft: #4a3527;
    --muted: #6b5c4c;
    --line: rgba(74, 53, 39, 0.14);
    --ink-line: rgba(74, 53, 39, 0.14);
    --surface: #fffcf6;
    --surface-strong: #ffffff;
    --content: 1180px;
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--tandyweb);
    background: linear-gradient(180deg, #fffcf6 0%, var(--black) 46%, #ffffff 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    letter-spacing: 0;
}

img,
svg {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.site-header {
    position: fixed;
    z-index: 40;
    top: 16px;
    left: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 10px 18px;
    border: 1px solid rgba(74, 53, 39, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 252, 246, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 44px rgba(74, 53, 39, 0.11);
    transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(74, 53, 39, 0.18);
}

.brand,
.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.site-header .brand {
    flex: 0 0 auto !important;
    width: auto !important;
    height: auto !important;
    max-width: 160px !important;
}

.brand-logo,
.site-logo,
.header-logo {
    display: block !important;
    width: auto !important;
    height: 42px !important;
    max-width: 160px !important;
    object-fit: contain !important;
    object-position: left center !important;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

.brand-mark,
.admin-brand span {
    display: none;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav a {
    padding: 9px 12px;
    color: var(--muted);
    border-radius: 4px;
    font-size: 0.92rem;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--tandyweb);
    background: rgba(176, 138, 85, 0.18);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: transparent;
    color: var(--tandyweb);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 1px;
    margin: 6px auto;
    background: currentColor;
}

.pwa-install-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 10px;
    color: var(--brand-brown);
    border: 1px solid rgba(74, 53, 39, 0.2);
    border-radius: 4px;
    background: rgba(251, 245, 236, 0.46);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.pwa-install-button[hidden],
.pwa-ios-modal[hidden] {
    display: none !important;
}

.pwa-install-button svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.pwa-install-button:hover {
    color: var(--tandyweb);
    border-color: rgba(74, 53, 39, 0.34);
    background: rgba(176, 138, 85, 0.16);
}

.pwa-install-button:focus-visible,
.pwa-ios-dismiss:focus-visible {
    outline: 2px solid rgba(74, 53, 39, 0.48);
    outline-offset: 3px;
}

.pwa-ios-modal {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(34, 26, 20, 0.48);
    backdrop-filter: blur(5px);
}

.pwa-ios-dialog {
    width: min(100%, 390px);
    padding: 26px;
    color: var(--tandyweb);
    border: 1px solid rgba(74, 53, 39, 0.16);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 24px 70px rgba(34, 26, 20, 0.2);
}

.pwa-ios-dialog h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.65rem;
    font-weight: 500;
    line-height: 1.12;
}

.pwa-ios-dialog ol {
    margin: 20px 0;
    padding-left: 22px;
    color: var(--muted);
}

.pwa-ios-dialog li + li {
    margin-top: 8px;
}

.pwa-ios-dismiss {
    min-height: 40px;
    padding: 9px 15px;
    color: var(--brand-brown);
    border: 1px solid rgba(74, 53, 39, 0.24);
    border-radius: 4px;
    background: var(--beige-soft);
    font-weight: 700;
    cursor: pointer;
}

.pwa-ios-dismiss:hover {
    border-color: rgba(74, 53, 39, 0.42);
    background: rgba(176, 138, 85, 0.2);
}

body.is-pwa-modal-open {
    overflow: hidden;
}

.hero {
    min-height: 78svh;
    display: grid;
    align-items: end;
    position: relative;
    overflow: hidden;
    padding: 140px 24px 96px;
    background-image:
        linear-gradient(90deg, rgba(251, 245, 236, 0.98) 0%, rgba(251, 245, 236, 0.9) 46%, rgba(251, 245, 236, 0.52) 100%),
        linear-gradient(0deg, rgba(251, 245, 236, 0.98) 0%, rgba(251, 245, 236, 0.18) 58%),
        var(--hero-image);
    background-position: center;
    background-size: cover;
}

.hero-content,
.section,
.page-hero,
.booking-layout,
.auth-layout,
.status-page {
    width: min(100%, var(--content));
    margin: 0 auto;
}

.hero-content {
    padding-bottom: 28px;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--gold-soft);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.auth-copy h1,
.status-page h1 {
    margin: 0;
    max-width: 760px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 5.8rem;
    line-height: 0.96;
    font-weight: 500;
}

.hero-quote {
    margin: 24px 0 0;
    max-width: 580px;
    color: var(--beige);
    font-size: 1.35rem;
}

.hero-copy {
    max-width: 620px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.02rem;
}

.hero-actions,
.location-section,
.auth-form .full {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-actions {
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.94rem;
    cursor: pointer;
}

.btn-primary {
    color: var(--black-soft);
    background: var(--beige);
    border-color: rgba(74, 53, 39, 0.16);
}

.btn-primary:hover {
    background: #b4aa98;
}

.btn-secondary {
    color: var(--brand-brown);
    border-color: rgba(74, 53, 39, 0.22);
    background: rgba(255, 255, 255, 0.56);
}

.btn-secondary:hover {
    border-color: rgba(176, 138, 85, 0.72);
}

.btn.is-disabled {
    pointer-events: none;
    opacity: 0.48;
}

.hero-strip {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 18px;
    color: var(--beige);
}

.hero-strip span {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: rgba(255, 252, 246, 0.74);
}

.section {
    padding: 88px 24px;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 42px;
}

.account-purpose-section {
    border-bottom: 1px solid var(--line);
}

.account-purpose {
    max-width: 760px;
    display: grid;
    gap: 18px;
}

.account-purpose p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.account-purpose-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
    margin-top: 8px;
}

.account-purpose-link {
    color: var(--beige);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.account-purpose-link:focus-visible {
    outline: 2px solid rgba(176, 138, 85, 0.9);
    outline-offset: 3px;
}

.section h2,
.page-hero h1,
.auth-copy h1,
.status-page h1 {
    color: var(--tandyweb);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.2rem;
    line-height: 1.05;
    font-weight: 500;
}

.section h2 {
    margin: 0;
}

.tandyweb-experience {
    background: var(--black);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.experience-grid article {
    padding: 24px 0 0;
    border-top: 1px solid var(--line);
}

.experience-grid span,
.steps span,
.class-time span {
    color: var(--gold-soft);
    font-weight: 800;
}

.experience-grid h3,
.coach-row h3,
.class-row h2 {
    margin: 12px 0 10px;
    font-size: 1.15rem;
}

.experience-grid p,
.coach-row p,
.class-row p,
.location-section p,
.faq-list p,
.auth-copy p,
.status-page p,
.fine-print {
    color: var(--muted);
}

.split-section {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.coach-list {
    display: grid;
    gap: 14px;
}

.coach-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.coach-row > span,
.coach-photo-fallback {
    display: grid;
    place-items: center;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--beige);
    color: var(--black);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    overflow: hidden;
}

.coach-photo {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    background: var(--beige);
    overflow: hidden;
}

.packages-section {
    background: linear-gradient(180deg, #fffcf6 0%, #fbf5ec 100%);
    border-bottom: 1px solid var(--line);
}

.package-checkout-copy {
    display: grid;
    gap: 16px;
    max-width: 640px;
    margin: 0 auto;
    justify-items: start;
}

.package-checkout-copy > .eyebrow {
    margin: 0;
}

.package-checkout-copy h2 {
    margin: 0;
    color: var(--tandyweb);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
    line-height: 1.1;
    font-weight: 500;
}

.booking-payment-summary {
    margin: 0;
    max-width: 42rem;
    color: var(--tandyweb);
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.55;
}

.package-checkout-form {
    display: grid;
    gap: 12px;
    justify-items: start;
    margin-top: 4px;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.package-card {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    border: 1px solid rgba(74, 53, 39, 0.14);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 20px 54px rgba(74, 53, 39, 0.08);
}

.package-card-copy {
    display: grid;
    gap: 0;
}

.package-card-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.package-card-footer .btn {
    align-self: flex-start;
    margin-top: 4px;
}

.package-card h3 {
    margin: 0;
    color: var(--tandyweb);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    line-height: 1.08;
    font-weight: 500;
}

.package-meta,
.package-note {
    margin: 8px 0 0;
    color: var(--muted);
}

.package-price {
    color: var(--brand-brown);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.25rem;
    line-height: 1;
    font-weight: 500;
}

.package-note {
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-weight: 800;
}

.packages-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.how-it-works {
    background: var(--beige-soft);
    color: var(--black-soft);
}

.how-it-works h2,
.how-it-works .eyebrow {
    color: var(--black-soft);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps li {
    padding: 22px 0 0;
    border-top: 1px solid var(--ink-line);
}

.steps strong {
    display: block;
    margin: 14px 0 8px;
    font-size: 1.1rem;
}

.steps p {
    margin: 0;
    color: rgba(18, 16, 13, 0.68);
}

.schedule-band,
.location-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.schedule-slots {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.schedule-slots span {
    min-width: 112px;
    padding: 14px 18px;
    text-align: center;
    border: 1px solid rgba(251, 245, 236, 0.18);
    border-radius: 4px;
    background: rgba(251, 245, 236, 0.04);
}

.location-section {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.location-section h2 {
    max-width: 760px;
    font-size: 2.4rem;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-list details {
    border-top: 1px solid var(--line);
    padding: 18px 0;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 800;
}

.page-hero,
.status-page {
    padding: 150px 24px 64px;
}

.compact-hero,
.booking-hero {
    min-height: 420px;
}

.page-hero p {
    max-width: 720px;
    color: var(--muted);
}

.classes-list {
    display: grid;
    gap: 14px;
    padding-top: 24px;
}

.class-row {
    display: grid;
    grid-template-columns: 150px 1fr 140px auto;
    gap: 20px;
    align-items: center;
    padding: 22px 0;
    border-top: 1px solid var(--line);
}

.class-time strong,
.class-status strong {
    display: block;
    color: var(--tandyweb);
    font-size: 1.25rem;
}

.class-status span {
    display: block;
    color: var(--gold-soft);
    font-size: 0.86rem;
    font-weight: 800;
}

.auth-page {
    background:
        linear-gradient(90deg, rgba(251, 245, 236, 0.98), rgba(251, 245, 236, 0.82)),
        url("../img/hero/tandyweb-studio-hero.png") center/cover fixed;
}

.auth-layout {
    min-height: 100svh;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 52px;
    align-items: center;
    padding: 150px 24px 70px;
}

.auth-form {
    display: grid;
    gap: 16px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 252, 246, 0.9);
    backdrop-filter: blur(20px);
}

.wide-form {
    grid-template-columns: repeat(2, 1fr);
}

.auth-form label {
    display: grid;
    gap: 8px;
    color: var(--beige);
    font-size: 0.9rem;
    font-weight: 700;
}

.auth-form input,
.auth-form textarea {
    width: 100%;
    border: 1px solid rgba(74, 53, 39, 0.16);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--tandyweb);
    padding: 13px 14px;
    outline: none;
}

.auth-form input:focus,
.auth-form textarea:focus {
    border-color: rgba(176, 138, 85, 0.72);
}

.auth-form .full,
.wide-form .full {
    grid-column: 1 / -1;
}

.terms-check {
    display: grid;
    align-items: flex-start;
}

.terms-check input {
    width: auto;
    margin-top: 4px;
}

.status-page {
    min-height: 72svh;
    display: grid;
    place-content: center;
    justify-items: start;
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto minmax(180px, 1fr);
    gap: 28px;
    padding: 34px 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    background: #fffcf6;
}

.site-footer div {
    display: grid;
    gap: 6px;
}

.footer-logo {
    display: block !important;
    width: auto !important;
    height: 36px !important;
    max-width: 150px !important;
    object-fit: contain !important;
    object-position: left center !important;
    margin-bottom: 6px;
}

.site-footer strong,
.site-footer a {
    color: var(--tandyweb);
}

.footer-socials {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px !important;
}

.site-footer > div:last-child {
    justify-self: center;
    align-content: start;
    justify-items: center;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(74, 53, 39, 0.14);
    border-radius: 999px;
    color: var(--brand-brown);
    background: rgba(255, 255, 255, 0.62);
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.footer-social-link:hover {
    border-color: rgba(74, 53, 39, 0.28);
    background: var(--beige-soft);
    transform: translateY(-1px);
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}

.legal-page {
    background:
        radial-gradient(circle at top left, rgba(176, 138, 85, 0.24), transparent 32rem),
        var(--black);
}

.legal-hero {
    width: min(100%, 1160px);
    padding-left: 32px;
    padding-right: 32px;
    border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
    max-width: 840px;
}

.legal-hero p {
    max-width: 720px;
}

.legal-shell {
    display: grid;
    grid-template-columns: 300px minmax(0, 760px);
    justify-content: center;
    align-items: start;
    gap: 46px;
    width: min(100%, 1160px);
    margin: 0 auto;
    padding: 48px 32px 112px;
}

.legal-index {
    position: sticky;
    top: 112px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(243, 234, 219, 0.48)),
        rgba(255, 255, 255, 0.72);
}

.legal-index .eyebrow {
    margin-bottom: 10px;
}

.legal-index a {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px 0;
    border-top: 1px solid rgba(251, 245, 236, 0.09);
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.35;
    transition: color 160ms ease, border-color 160ms ease;
}

.legal-index a:hover {
    color: var(--brand-brown);
    border-top-color: rgba(176, 138, 85, 0.42);
}

.legal-index span,
.legal-block > span {
    color: var(--tandyweb);
    font-weight: 900;
}

.legal-content {
    display: grid;
    gap: 24px;
    width: 100%;
    max-width: 760px;
}

.legal-block {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 26px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(243, 234, 219, 0.48)),
        rgba(255, 255, 255, 0.72);
}

.legal-block h2 {
    margin: 0 0 16px;
    color: var(--tandyweb);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.55rem, 2vw, 2rem);
    line-height: 1.12;
    font-weight: 500;
}

.legal-block p {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.72;
}

.legal-intro {
    color: var(--tandyweb) !important;
    font-size: 1.05rem;
    line-height: 1.6 !important;
    margin-bottom: 18px !important;
}

.legal-block p:last-child {
    margin-bottom: 0;
}

.terms-check,
.booking-acceptance {
    display: grid;
    align-items: flex-start;
    grid-template-columns: auto 1fr;
    gap: 10px;
    color: var(--beige);
}

.terms-check a,
.booking-acceptance a,
.auth-form a {
    color: var(--tandyweb);
    border-bottom: 1px solid rgba(251, 245, 236, 0.34);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.floating-action {
    position: fixed;
    z-index: 50;
    right: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    padding: 0;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 0;
    line-height: 0;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.floating-action:hover {
    transform: translateY(-2px);
}

.floating-action::before,
.floating-action::after {
    content: none !important;
    display: none !important;
}

.floating-action svg,
.float-icon {
    width: 24px;
    height: 24px;
    display: block;
    flex: 0 0 auto;
    fill: currentColor;
    pointer-events: none;
    shape-rendering: geometricPrecision;
    text-rendering: geometricPrecision;
}

.float-icon path {
    vector-effect: non-scaling-stroke;
}

.whatsapp-icon {
    width: 28px;
    height: 28px;
}

.bot-icon,
.bot-icon path {
    fill: none;
}

.floating-whatsapp,
.whatsapp-float {
    bottom: 20px;
    color: #ffffff;
    background: #25d366;
    border-color: rgba(255, 255, 255, 0.24);
}

.floating-whatsapp:hover,
.whatsapp-float:hover {
    background: #1fbd5a;
}

.floating-ai,
.ai-dock > button {
    bottom: 82px;
    color: var(--gold-soft);
    background: rgba(74, 53, 39, 0.96);
    border-color: rgba(176, 138, 85, 0.54);
    cursor: pointer;
}

.floating-ai[aria-expanded="true"],
.ai-dock > button[aria-expanded="true"] {
    color: var(--black);
    background: var(--gold-soft);
}

.ai-panel {
    position: fixed;
    z-index: 49;
    right: 20px;
    bottom: 142px;
    width: min(300px, calc(100vw - 40px));
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(18, 16, 13, 0.96);
}

.ai-panel p {
    margin: 8px 0 0;
    color: var(--muted);
}

@media (max-width: 900px) {
    .site-header {
        left: 12px;
        right: 12px;
        top: 12px;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        display: none;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: rgba(255, 252, 246, 0.98);
    }

    .site-nav.is-open {
        display: grid;
    }

    .site-nav .pwa-install-button {
        width: 100%;
        justify-content: flex-start;
        padding: 9px 12px;
    }

    .hero {
        min-height: 82svh;
        padding: 122px 18px 88px;
        background-position: center right;
    }

    .hero h1,
    .page-hero h1,
    .auth-copy h1,
    .status-page h1 {
        font-size: 3.3rem;
    }

    .section h2 {
        font-size: 2.35rem;
    }

    .experience-grid,
    .packages-grid,
    .steps,
    .split-section,
    .auth-layout,
    .wide-form,
    .legal-shell {
        grid-template-columns: 1fr;
        width: min(100%, 860px);
        gap: 24px;
    }

    .legal-index {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .legal-index .eyebrow {
        grid-column: 1 / -1;
    }

    .legal-content {
        max-width: none;
    }

    .schedule-band,
    .location-section {
        align-items: flex-start;
        flex-direction: column;
    }

    .schedule-slots {
        justify-content: flex-start;
    }

    .class-row {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .site-footer {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .pwa-ios-dialog {
        padding: 22px 20px;
    }
}

@media (prefers-color-scheme: dark) {
    .pwa-ios-dialog {
        color: #fbf5ec;
        border-color: rgba(251, 245, 236, 0.18);
        background: #221a14;
    }

    .pwa-ios-dialog ol {
        color: #ded4c6;
    }

    .pwa-ios-dismiss {
        color: #fbf5ec;
        border-color: rgba(251, 245, 236, 0.26);
        background: rgba(176, 138, 85, 0.22);
    }

    .pwa-ios-dismiss:focus-visible {
        outline-color: #b08a55;
    }
}

@media (max-width: 560px) {
    .hero h1,
    .page-hero h1,
    .auth-copy h1,
    .status-page h1 {
        font-size: 2.55rem;
    }

    .coach-row > span,
    .coach-photo-fallback,
    .coach-photo {
        flex: 0 0 52px;
        width: 52px;
        height: 52px;
    }

    .coach-photo-fallback {
        font-size: 1.05rem;
    }

    .section,
    .page-hero,
    .status-page,
    .auth-layout {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero-strip {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .auth-form {
        padding: 18px;
    }

    .package-card {
        min-height: auto;
        padding: 20px;
    }

    .package-price {
        font-size: 2rem;
    }

    .site-header .brand {
        max-width: 130px !important;
    }

    .brand-logo,
    .site-logo,
    .header-logo {
        height: 34px !important;
        max-width: 130px !important;
    }

    .footer-logo {
        height: 34px !important;
        max-width: 130px !important;
    }

    .legal-shell {
        padding-left: 18px;
        padding-right: 18px;
        padding-top: 32px;
    }

    .legal-hero {
        padding-left: 18px;
        padding-right: 18px;
    }

    .legal-index {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .legal-block {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 22px;
    }

    .legal-block h2 {
        font-size: 1.45rem;
    }

    .legal-block p {
        line-height: 1.65;
    }

    .floating-action {
        right: 16px;
        width: 50px;
        height: 50px;
    }

    .floating-action svg,
    .float-icon {
        width: 22px;
        height: 22px;
    }

    .whatsapp-icon {
        width: 26px;
        height: 26px;
    }

    .floating-whatsapp,
    .whatsapp-float {
        bottom: 16px;
    }

    .floating-ai,
    .ai-dock > button {
        bottom: 76px;
    }

    .ai-panel {
        right: 16px;
        bottom: 134px;
    }
}

/* =========================================================
Public light theme refinements
========================================================= */

.hero {
    background-image:
        linear-gradient(90deg, rgba(251, 245, 236, 0.98) 0%, rgba(251, 245, 236, 0.9) 46%, rgba(251, 245, 236, 0.52) 100%),
        linear-gradient(0deg, rgba(251, 245, 236, 0.98) 0%, rgba(251, 245, 236, 0.18) 58%),
        var(--hero-image);
}

.section h2,
.page-hero h1,
.auth-copy h1,
.status-page h1,
.class-time strong,
.class-status strong,
.legal-block h2,
.legal-intro,
.legal-index span,
.legal-block > span {
    color: var(--tandyweb) !important;
}

.split-section,
.location-section,
.faq-list details,
.class-row,
.legal-hero {
    border-color: var(--line);
}

.coach-row > span,
.coach-photo-fallback,
.booking-stepper b {
    color: var(--black-soft);
}

.legal-page {
    background:
        radial-gradient(circle at top left, rgba(176, 138, 85, 0.24), transparent 32rem),
        var(--black);
}

.legal-index,
.legal-block {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(243, 234, 219, 0.48)),
        rgba(255, 255, 255, 0.72);
}

.legal-index a {
    border-top-color: rgba(74, 53, 39, 0.1);
}

.legal-index a:hover {
    color: var(--brand-brown);
}

.terms-check a,
.booking-acceptance a,
.auth-form a {
    border-bottom-color: rgba(74, 53, 39, 0.28);
}

.auth-form-fields,
.wide-form-fields,
.google-link-password-form {
    display: grid;
    gap: 16px;
}

.wide-form-fields {
    grid-template-columns: repeat(2, 1fr);
}

.wide-form-fields .full,
.auth-divider.full,
.google-signin-button.full,
.google-link-password-panel.full {
    grid-column: 1 / -1;
}

.auth-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    background: rgba(74, 53, 39, 0.16);
}

.google-signin-button {
    min-height: 44px;
    display: flex;
    justify-content: center;
}

.google-signin-button:focus-within {
    outline: 2px solid rgba(176, 138, 85, 0.9);
    outline-offset: 3px;
}

.google-auth-message[hidden] {
    display: none;
}

.auth-form p[role="alert"] {
    color: var(--brand-brown);
}

.auth-form input::placeholder,
.auth-form textarea::placeholder {
    color: rgba(34, 26, 20, 0.48);
}

.floating-ai,
.ai-dock > button {
    color: #fbf5ec;
    background: rgba(74, 53, 39, 0.96);
    border-color: rgba(176, 138, 85, 0.62);
}

.floating-ai[aria-expanded="true"],
.ai-dock > button[aria-expanded="true"] {
    color: var(--black-soft);
    background: var(--beige);
}

@media (max-width: 900px) {
    .site-nav {
        background: rgba(255, 252, 246, 0.98);
    }

    .footer-socials {
        justify-content: flex-start;
    }

    .site-footer > div:last-child {
        justify-self: start;
        justify-items: start;
    }
}

/* Post-payment account continuity */
.post-payment-status {
    width: min(100%, 760px);
    gap: 16px;
}

.post-payment-summary {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 10px 0 2px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 252, 246, 0.78);
}

.post-payment-summary > div {
    min-width: 0;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}

.post-payment-summary > div:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
    border-right: 0;
}

.post-payment-summary > div:nth-child(odd) {
    border-right: 1px solid var(--line);
}

.post-payment-summary dt {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
}

.post-payment-summary dd {
    margin: 0;
    color: var(--tandyweb);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.post-payment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-payment-form {
    width: 100%;
    margin-top: 2px;
}

.post-payment-error {
    width: 100%;
    margin: 0;
    color: var(--brand-brown) !important;
    font-weight: 700;
}

@media (max-width: 560px) {
    .post-payment-summary {
        grid-template-columns: 1fr;
    }

    .post-payment-summary > div,
    .post-payment-summary > div:last-child {
        border-bottom: 1px solid var(--line);
        border-right: 0;
    }

    .post-payment-summary > div:last-child {
        grid-column: auto;
        border-bottom: 0;
    }

    .post-payment-summary > div:nth-child(odd) {
        border-right: 0;
    }

    .post-payment-actions,
    .post-payment-actions .btn,
    .post-payment-form .btn {
        width: 100%;
    }
}

/* =========================================================
Client account panel (scoped under .client-account-page)
========================================================= */

.client-account-page.auth-page {
    background:
        linear-gradient(rgba(251, 245, 236, 0.88), rgba(251, 245, 236, 0.94)),
        url("../img/hero/tandyweb-studio-hero.png") center/cover fixed;
    color: #2b2018;
}

.client-account-page .client-account {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: clamp(112px, 11vw, 148px) 24px 96px;
    display: grid;
    gap: 20px;
}

.client-account-page .page-hero {
    display: none;
}

.client-account-page .account-card {
    border: 1px solid rgba(176, 138, 85, 0.28);
    border-radius: var(--radius);
    background: rgba(251, 245, 236, 0.96);
    box-shadow: 0 16px 40px rgba(74, 53, 39, 0.08);
}

.client-account-page .client-account-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 30px;
}

.client-account-page .client-account-eyebrow {
    margin: 0 0 8px;
    color: rgba(74, 53, 39, 0.68);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.client-account-page .client-account-greeting h1 {
    margin: 0 0 12px;
    color: #2b2018;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.55rem, 2.8vw, 2rem);
    font-weight: 500;
    line-height: 1.15;
}

.client-account-page .client-account-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 0;
    color: rgba(74, 53, 39, 0.68);
    font-size: 0.92rem;
}

.client-account-page .client-account-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.client-account-page .client-account-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.client-account-page .client-summary-card {
    display: grid;
    align-content: center;
    gap: 8px;
    min-height: 108px;
    padding: 22px 24px;
}

.client-account-page .client-summary-card span {
    color: rgba(74, 53, 39, 0.68);
    font-size: 0.84rem;
    font-weight: 800;
}

.client-account-page .client-summary-card strong {
    color: #2b2018;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.75rem, 3vw, 2.15rem);
    font-weight: 500;
    line-height: 1;
}

.client-account-page .client-section-heading {
    display: grid;
    gap: 6px;
    margin-bottom: 18px;
}

.client-account-page .client-section-heading h2 {
    margin: 0;
    color: #2b2018;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 500;
    line-height: 1.2;
}

.client-account-page .client-account-section {
    padding: 26px 28px;
}

.client-account-page .client-reservations-board {
    display: grid;
    gap: 18px;
}

.client-account-page .client-account-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px;
    border: 1px solid rgba(176, 138, 85, 0.28);
    border-radius: 999px;
    background: rgba(255, 252, 246, 0.72);
}

.client-account-page .client-account-tab {
    appearance: none;
    border: 0;
    background: transparent;
    color: rgba(74, 53, 39, 0.72);
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
}

.client-account-page .client-account-tab.is-active,
.client-account-page .client-account-tab[aria-selected="true"] {
    background: #4a3527;
    color: #fffcf6;
}

.client-account-page .client-account-tab:focus-visible {
    outline: 2px solid rgba(74, 53, 39, 0.45);
    outline-offset: 2px;
}

.client-account-page .client-account-tabpanel {
    display: grid;
    gap: 16px;
}

.client-account-page .client-account-tabpanel[hidden] {
    display: none;
}

.client-account-page .client-reservation-list {
    display: grid;
    gap: 14px;
}

.client-account-page .client-reservation-card {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1.05fr);
    gap: 16px 24px;
    padding: 18px 20px;
    background: rgba(255, 252, 246, 0.98);
}

.client-account-page .client-reservation-card.is-pending {
    border-color: rgba(176, 138, 85, 0.42);
    background: rgba(255, 247, 232, 0.98);
}

.client-account-page .client-reservation-card.is-review {
    border-color: rgba(74, 53, 39, 0.22);
    box-shadow: 0 16px 40px rgba(74, 53, 39, 0.08), inset 0 0 0 1px rgba(74, 53, 39, 0.06);
}

.client-account-page .client-reservation-main {
    display: grid;
    gap: 5px;
}

.client-account-page .client-reservation-main strong {
    color: #2b2018;
    font-size: 1.02rem;
    font-weight: 800;
}

.client-account-page .client-reservation-main span {
    color: rgba(74, 53, 39, 0.68);
    font-size: 0.9rem;
}

.client-account-page .client-reservation-status {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-content: flex-start;
}

.client-account-page .client-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border: 1px solid rgba(176, 138, 85, 0.32);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
}

.client-account-page .client-chip-confirmed {
    background: rgba(176, 138, 85, 0.18);
    border-color: rgba(176, 138, 85, 0.34);
    color: #4a3527;
}

.client-account-page .client-chip-pending {
    background: rgba(243, 234, 219, 0.92);
    border-color: rgba(176, 138, 85, 0.38);
    color: #4a3527;
}

.client-account-page .client-chip-cancelled {
    background: rgba(244, 230, 224, 0.88);
    border-color: rgba(176, 138, 85, 0.28);
    color: #2b2018;
}

.client-account-page .client-chip-review {
    background: rgba(255, 252, 246, 0.96);
    border-color: rgba(74, 53, 39, 0.28);
    color: #4a3527;
}

.client-account-page .client-chip-method {
    background: rgba(251, 245, 236, 0.88);
    border-color: rgba(176, 138, 85, 0.24);
    color: rgba(74, 53, 39, 0.78);
}

.client-account-page .client-pending-note,
.client-account-page .client-empty-note {
    margin: 0;
    color: rgba(74, 53, 39, 0.68);
    font-size: 0.88rem;
    line-height: 1.45;
}

.client-account-page .client-inline-link {
    display: inline-flex;
    margin-top: 14px;
    color: #4a3527;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.client-account-page .client-inline-link:hover {
    color: #2b2018;
}

.client-account-page .client-history-filters {
    display: grid;
    gap: 14px;
}

.client-account-page .client-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.client-account-page .client-filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid rgba(176, 138, 85, 0.28);
    border-radius: 999px;
    color: rgba(74, 53, 39, 0.68);
    background: rgba(255, 252, 246, 0.92);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.client-account-page .client-filter-chip.is-active,
.client-account-page .client-filter-chip:hover {
    color: #4a3527;
    border-color: rgba(176, 138, 85, 0.48);
    background: rgba(176, 138, 85, 0.16);
}

.client-account-page .client-filter-select {
    display: grid;
    gap: 6px;
    max-width: 260px;
    color: rgba(74, 53, 39, 0.68);
    font-size: 0.86rem;
    font-weight: 800;
}

.client-account-page .client-filter-select select {
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(176, 138, 85, 0.28);
    border-radius: 4px;
    color: #2b2018;
    background: rgba(255, 252, 246, 0.98);
    font: inherit;
}

.client-account-page .client-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    color: rgba(74, 53, 39, 0.68);
    font-size: 0.88rem;
}

.client-account-page .client-account-actions .btn-secondary {
    background: rgba(255, 252, 246, 0.92);
    border-color: rgba(176, 138, 85, 0.34);
    color: #4a3527;
}

@media (max-width: 900px) {
    .client-account-page .client-account-summary {
        grid-template-columns: 1fr;
    }

    .client-account-page .client-reservation-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .client-account-page .client-account {
        padding: 104px 16px 72px;
    }

    .client-account-page .client-account-header,
    .client-account-page .client-account-section {
        padding: 18px 16px;
    }

    .client-account-page .client-summary-card {
        min-height: 92px;
        padding: 18px 16px;
    }

    .client-account-page .client-account-actions,
    .client-account-page .client-account-actions .btn {
        width: 100%;
    }

    .client-account-page .client-account-tabs {
        width: 100%;
        border-radius: 18px;
    }

    .client-account-page .client-account-tab {
        flex: 1 1 auto;
        min-width: calc(50% - 4px);
        text-align: center;
    }

    .client-account-page .client-filter-group {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .client-account-page .client-filter-chip {
        flex: 0 0 auto;
    }

    .client-account-page .client-filter-select {
        max-width: none;
    }

    .client-account-page .client-reservation-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .client-account-page .client-action-btn {
        width: 100%;
    }
}

.client-account-page .client-account-flash {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
}

.client-account-page .client-account-flash.is-ok {
    border-color: rgba(46, 125, 50, 0.28);
    color: #1b5e20;
}

.client-account-page .client-account-flash.is-error {
    border-color: rgba(183, 28, 28, 0.28);
    color: #7f1d1d;
}

.client-account-page .client-reservation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    width: 100%;
}

.client-account-page .client-inline-action {
    margin: 0;
}

.client-account-page .client-action-btn {
    min-height: 42px;
    padding: 10px 16px;
    font-size: 0.92rem;
}

.client-account-page .client-action-cancel {
    border-color: rgba(183, 28, 28, 0.28);
    color: #7f1d1d;
}

.client-account-page .client-action-note {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

/* ------------------------------------------------------------------
   Checkout simulado de la demo (pago-demo)
   ------------------------------------------------------------------ */
.demo-checkout-card {
    display: grid;
    gap: 18px;
    margin: 24px 0 8px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-strong);
    box-shadow: 0 18px 44px rgba(74, 53, 39, 0.08);
}

.demo-checkout-summary {
    display: grid;
    gap: 12px;
    margin: 0;
}

.demo-checkout-summary > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.demo-checkout-summary > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.demo-checkout-summary dt {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.demo-checkout-summary dd {
    margin: 0;
    font-weight: 600;
    text-align: right;
}

.demo-checkout-total {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    color: var(--brand-brown);
}

.demo-card-visual {
    display: grid;
    gap: 18px;
    padding: 22px;
    border-radius: 14px;
    background: linear-gradient(135deg, #221a14 0%, #4a3527 55%, #b08a55 100%);
    color: #fbf5ec;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: 0.04em;
}

.demo-card-chip {
    width: 42px;
    height: 30px;
    border-radius: 6px;
    background: linear-gradient(135deg, #e8d3a8, #b08a55);
}

.demo-card-number {
    font-size: 1.25rem;
}

.demo-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.85;
}

.demo-checkout-form {
    margin: 0;
}

.demo-checkout-form .btn {
    width: 100%;
}

.demo-payment-note {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.demo-payment-note a {
    color: var(--brand-brown);
    font-weight: 700;
}

/* ------------------------------------------------------------------
   CTA "Explorar panel" (acceso demo sin credenciales)
   ------------------------------------------------------------------ */
.nav-demo-panel,
.home-demo-panel,
.footer-demo-panel {
    display: inline;
    margin: 0;
}

.nav-demo-panel {
    margin-left: 4px;
}

.nav-demo-panel-button {
    padding: 8px 14px;
    border: 1px solid rgba(176, 138, 85, 0.55);
    border-radius: 999px;
    background: rgba(176, 138, 85, 0.12);
    color: var(--brand-brown, #4a3527);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 180ms ease, border-color 180ms ease;
}

.nav-demo-panel-button:hover,
.nav-demo-panel-button:focus-visible {
    background: rgba(176, 138, 85, 0.24);
    border-color: #b08a55;
}

.footer-demo-panel-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.home-demo-panel .btn {
    margin: 0;
}

@media (max-width: 860px) {
    .nav-demo-panel {
        width: 100%;
        margin: 6px 0 0;
    }

    .nav-demo-panel-button {
        width: 100%;
    }
}

