/* Explain: Styles for various UI components, including buttons, cards, forms, and banners. */
/* Buttons */
.btn-gold, .btn-wa, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease, border-color 0.25s ease;
}

.btn-gold {
    background-image: linear-gradient(135deg, var(--gold-300), var(--gold-400) 48%, var(--gold-500));
    color: #24123f;
    box-shadow: 0 14px 30px -18px rgba(224, 189, 114, 0.85);
}
.btn-gold:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-gold--sm { min-height: 40px; padding: 0.5rem 1.1rem; font-size: 0.7rem; }
.btn-gold--block { width: 100%; }

.btn-wa { background: #25d366; color: #05240f; }
.btn-wa:hover { filter: brightness(1.07); transform: translateY(-1px); }

.btn-outline { border: 1px solid var(--border-color); color: var(--text-color); background: transparent; }
.btn-outline:hover { border-color: var(--gold-400); color: var(--gold-300); }

.btn-outline:disabled, .btn-gold:disabled { opacity: 0.6; cursor: default; }

/* Ad banner */
.ad-banner {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 1.1rem;
    border: 1px solid var(--border-color);
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-soft);
}
.ad-banner img { width: 100%; height: 100%; object-fit: cover; }
.ad-banner--video { aspect-ratio: 3 / 2; }
.ad-banner.ad-banner--video::after { content: none; }
.ad-banner--video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-badge {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    z-index: 2;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: rgba(7, 3, 15, 0.72);
    border: 1px solid var(--border-soft);
    color: var(--text-muted);
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.ad-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 3, 15, 0.94) 0%, rgba(7, 3, 15, 0.7) 52%, rgba(7, 3, 15, 0.15) 100%);
}
.ad-banner-copy {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
    padding: 1.1rem 1.25rem;
    max-width: 24rem;
}
.ad-eyebrow { font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-400); }
.ad-title { font-family: var(--font-heading); font-size: 1.4rem; color: #fff; line-height: 1.15; }
.ad-text { font-size: 0.85rem; color: rgba(247, 243, 255, 0.8); }
.ad-cta { margin-top: 0.35rem; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-300); }

@media (min-width: 640px) {
    .ad-banner { aspect-ratio: 24 / 7; }
    .ad-banner--video { aspect-ratio: 2 / 1; }
    .ad-banner-copy { padding: 1.5rem 2rem; max-width: 32rem; }
    .ad-title { font-size: 1.9rem; }
}

/* Search panel */
.search-panel {
    background: linear-gradient(160deg, rgba(38, 20, 74, 0.94), rgba(13, 6, 28, 0.96));
    border: 1px solid var(--border-color);
    border-radius: 1.35rem;
    padding: 1.15rem;
    box-shadow: var(--shadow-soft);
}
@media (min-width: 640px) { .search-panel { padding: 1.5rem; } }

.search-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-400);
    font-weight: 500;
}

.search-select {
    width: 100%;
    min-height: 52px;
    border-radius: 0.8rem;
    border: 1px solid var(--border-soft);
    background: rgba(8, 4, 18, 0.9);
    color: var(--text-color);
    padding: 0.65rem 0.85rem;
    font-family: inherit;
    font-size: 0.98rem;
}
.search-select option { background: #140a2b; color: var(--text-color); }
.search-select option:disabled { color: #7d7296; }

.filter-note { margin-top: 0.8rem; font-size: 0.8rem; color: var(--text-muted); }
.results-count { font-size: 0.9rem; color: var(--text-muted); }
.empty-state {
    padding: 2.5rem 1rem;
    text-align: center;
    color: var(--text-muted);
    border: 1px dashed var(--border-soft);
    border-radius: var(--radius-card);
}

/* Discipline cards */
.disc-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-soft);
    aspect-ratio: 3 / 4;
    background: var(--violet-900);
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.disc-card:hover { border-color: rgba(224, 189, 114, 0.55); transform: translateY(-3px); }
.disc-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.disc-card:hover img { transform: scale(1.06); }
.disc-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 3, 15, 0.05) 25%, rgba(7, 3, 15, 0.92) 82%);
}
.disc-card-body {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.85rem;
}
.disc-card-icon { color: var(--gold-400); font-size: 0.95rem; }
.disc-card-title { font-family: var(--font-heading); font-size: 1.15rem; color: #fff; line-height: 1.15; }
.disc-card-sub {
    display: block;
    margin-top: 0.1rem;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: var(--gold-300);
}
.disc-card-desc { font-size: 0.78rem; color: rgba(247, 243, 255, 0.72); }
.disc-card-count { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-300); }

/* Article cards */
.art-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-soft);
    background: linear-gradient(180deg, var(--surface-2), rgba(9, 4, 22, 0.96));
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.art-card:hover { transform: translateY(-4px); border-color: rgba(224, 189, 114, 0.45); }
.art-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--violet-900); }
.art-card-media img { width: 100%; height: 100%; object-fit: cover; }
.art-card-body { display: flex; flex-direction: column; gap: 0.55rem; padding: 1.1rem; flex: 1; }
.art-meta { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-400); }
.art-title { font-size: 1.25rem; color: var(--text-color); }
.art-resumen { font-size: 0.9rem; color: var(--text-muted); }
.art-card-body .link-gold { margin-top: auto; font-size: 0.85rem; align-self: flex-start; }

/* Invitation panel */
.invite-panel {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    background:
        radial-gradient(700px 320px at 88% -10%, rgba(224, 189, 114, 0.16), transparent 70%),
        linear-gradient(160deg, rgba(40, 20, 78, 0.95), rgba(11, 5, 25, 0.98));
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}
@media (min-width: 768px) { .invite-panel { padding: 2.5rem; } }
.invite-question {
    margin-top: 0.75rem;
    font-size: clamp(1.5rem, 3.4vw, 2.3rem);
    color: var(--text-color);
    max-width: 42rem;
}
.invite-text { margin-top: 0.9rem; color: var(--text-muted); max-width: 42rem; }
.invite-list {
    margin: 1.25rem 0 1.5rem;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
    font-size: 0.92rem;
    color: var(--text-muted);
}
.invite-list i { color: var(--gold-400); margin-right: 0.45rem; }

/* Specialist cards */
.spec-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-soft);
    background: linear-gradient(180deg, var(--surface-2), rgba(9, 4, 22, 0.97));
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.spec-card:hover { transform: translateY(-4px); border-color: rgba(224, 189, 114, 0.4); box-shadow: var(--shadow-soft); }
.spec-card--featured { border-color: var(--gold-400); box-shadow: var(--shadow-gold); }
.spec-photo { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--violet-900); }
.spec-photo img { width: 100%; height: 100%; object-fit: cover; }
.spec-body { display: flex; flex-direction: column; gap: 0.7rem; padding: 1rem; flex: 1; }
.spec-head { display: flex; flex-direction: column; gap: 0.15rem; }
.spec-name { font-size: 1.3rem; color: var(--text-color); }
.spec-disc { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-400); }
.spec-loc { font-size: 0.82rem; color: var(--text-muted); }
.spec-loc i { color: var(--gold-400); margin-right: 0.3rem; }
.spec-intro { font-size: 0.88rem; color: var(--text-muted); }
.spec-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: flex-start; }
.spec-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.spec-actions > a { flex: 1 1 8rem; }

.badge-destacado {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background-image: linear-gradient(135deg, var(--gold-300), var(--gold-500));
    color: #24123f;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.badge-demo {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    z-index: 2;
    padding: 0.26rem 0.6rem;
    border-radius: 999px;
    background: rgba(7, 3, 15, 0.72);
    border: 1px solid var(--border-soft);
    color: var(--text-muted);
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Indicators */
.tag-modality {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.tag-modality--green { background: rgba(134, 245, 176, 0.85); color: #062615; }
.tag-modality--gray { background: rgba(170, 166, 190, 0.6); color: #150c26; }

.avail-badge {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.3rem 0.65rem;
    border-radius: 0.85rem;
    font-size: 0.66rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    line-height: 1.25;
}
.avail-badge--active { background: rgba(134, 245, 176, 0.88); color: #062615; }
.avail-badge--future {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-soft);
    color: var(--text-muted);
}
.avail-dot { width: 0.42rem; height: 0.42rem; margin-top: 0.32rem; border-radius: 999px; background: currentColor; flex: none; }
.avail-text { display: flex; flex-direction: column; }
.avail-text strong { font-weight: 700; font-size: 0.66rem; }
.avail-detail { font-size: 0.72rem; text-transform: none; letter-spacing: 0; opacity: 0.9; }
.avail-slot { display: inline-block; }

/* Profile page */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.8rem; color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold-300); }

.profile-photo {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-color);
    aspect-ratio: 4 / 5;
    background: var(--violet-900);
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }

.profile-discipline { margin-top: 0.5rem; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-400); }
.profile-loc { margin-top: 0.35rem; font-size: 0.95rem; color: var(--text-muted); }
.profile-loc i { color: var(--gold-400); margin-right: 0.35rem; }
.profile-intro { color: var(--text-muted); font-size: 1rem; max-width: 44rem; }
.link-report { font-size: 0.8rem; color: var(--text-muted); text-decoration: underline; align-self: center; }
.link-report:hover { color: var(--gold-300); }

.info-block {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-card);
    background: linear-gradient(180deg, rgba(26, 15, 51, 0.85), rgba(9, 4, 22, 0.9));
    padding: 1.25rem;
}
.block-title { font-size: 1.35rem; color: var(--gold-300); }

.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gallery-item {
    padding: 0;
    border: 1px solid var(--border-soft);
    border-radius: 0.8rem;
    overflow: hidden;
    background: var(--violet-900);
    aspect-ratio: 1 / 1;
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.gallery-item:hover { border-color: var(--gold-400); transform: translateY(-2px); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.video-frame { border-radius: 0.9rem; overflow: hidden; border: 1px solid var(--border-soft); background: #000; }
.video-frame video { width: 100%; height: auto; display: block; }

.side-card {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-card);
    background: linear-gradient(180deg, rgba(26, 15, 51, 0.85), rgba(9, 4, 22, 0.9));
    padding: 1.15rem;
}
.side-card--gold { border-color: rgba(224, 189, 114, 0.35); }
.side-title { font-size: 1.05rem; color: var(--text-color); }
.side-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.6rem; }
.side-list { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.5rem; font-size: 0.88rem; color: var(--text-muted); }
.side-list i { color: var(--gold-400); margin-right: 0.4rem; }
.side-social { display: flex; gap: 0.5rem; margin-top: 0.85rem; }
.side-social a {
    display: inline-flex;
    width: 2.3rem;
    height: 2.3rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    color: var(--gold-300);
}
.side-social a:hover { border-color: var(--gold-400); }

.sched-list { margin-top: 0.6rem; display: grid; gap: 0.3rem; }
.sched-row { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.84rem; border-bottom: 1px dashed rgba(185, 171, 212, 0.14); padding-bottom: 0.28rem; }
.sched-day { color: var(--text-color); }
.sched-hours { color: var(--gold-300); text-align: right; }
.sched-hours--off { color: var(--text-muted); }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(4, 2, 10, 0.95);
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}
.lightbox.is-open { display: flex; }
.lightbox-stage { display: flex; align-items: center; justify-content: center; width: 100%; }
.lightbox-img { max-width: min(100%, 60rem); max-height: 82vh; width: auto; height: auto; border-radius: 0.9rem; opacity: 1; transition: opacity 0.2s ease; }
.lightbox.is-loading .lightbox-img { opacity: 0; }
.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: rgba(11, 5, 25, 0.9);
    color: var(--text-color);
    font-size: 1.05rem;
}
.lightbox-loading { display: none; position: absolute; font-size: 0.9rem; color: var(--text-muted); }
.lightbox.is-loading .lightbox-loading { display: block; }

/* Toast */
.toast-mystic {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%);
    z-index: 100;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    background: rgba(26, 15, 51, 0.97);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 0.85rem;
    box-shadow: var(--shadow-soft);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.toast-mystic.is-out { opacity: 0; transform: translate(-50%, 0.5rem); }

/* Plans */
.plan-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border-soft);
    border-radius: 1.25rem;
    background: linear-gradient(180deg, rgba(26, 15, 51, 0.9), rgba(9, 4, 22, 0.95));
    padding: 1.5rem;
}
.plan-card--featured { border-color: var(--gold-400); box-shadow: var(--shadow-gold); }
.plan-name { font-size: 1.5rem; color: var(--text-color); }
.plan-price { font-family: var(--font-heading); font-size: 2.2rem; color: var(--gold-300); line-height: 1.1; margin-top: 0.4rem; }
.plan-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.4rem; }
.plan-list { list-style: none; margin: 1rem 0 1.5rem; padding: 0; display: grid; gap: 0.5rem; font-size: 0.9rem; color: var(--text-muted); }
.plan-list i { color: var(--gold-400); margin-right: 0.4rem; }
.plan-card .btn-gold, .plan-card .btn-outline { margin-top: auto; }

/* Contact form */
.field-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-400);
}
.field-input, .field-select, .field-textarea {
    width: 100%;
    min-height: 48px;
    border-radius: 0.75rem;
    border: 1px solid var(--border-soft);
    background: rgba(8, 4, 18, 0.9);
    color: var(--text-color);
    padding: 0.65rem 0.85rem;
    font-family: inherit;
    font-size: 0.95rem;
}
.field-textarea { min-height: 140px; resize: vertical; }
.field-select option { background: #140a2b; color: var(--text-color); }
.field-input::placeholder, .field-textarea::placeholder { color: rgba(185, 171, 212, 0.6); }
.form-ok {
    border: 1px solid rgba(134, 245, 176, 0.5);
    background: rgba(134, 245, 176, 0.08);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    color: var(--text-color);
}
.form-error {
    border: 1px solid rgba(255, 138, 138, 0.55);
    background: rgba(255, 138, 138, 0.08);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    color: #ffd9d9;
    margin-bottom: 1rem;
}

.article-hero-media {
    overflow: hidden;
    border-radius: 1.1rem;
    border: 1px solid var(--border-soft);
    aspect-ratio: 16 / 9;
    background: var(--violet-900);
}
.article-hero-media img { width: 100%; height: 100%; object-fit: cover; }