/* ============================================================
   ty_school_groups.css
   Estilos exclusivos para las secciones TY Programme y School Groups
   Incluir en layout.php solo cuando $viewName empiece por 'inc_ty' o 'inc_school_groups'
   ============================================================ */

/* ── Variables locales (complementan las globales de styles.css) ─ */
:root {
    --ty-dark:       #0d1b2a;
    --ty-mid:        #1a1840;
    --ty-overlay-1:  rgba(13,27,42,.95);
    --ty-overlay-2:  rgba(42,41,84,.7);
    --ty-card-bg:    rgba(255,255,255,.05);
    --ty-card-border:rgba(255,255,255,.12);
    --ty-pill-bg:    rgba(255,255,255,.08);
    --ty-pill-border:rgba(255,255,255,.15);
}

/* ── HERO TY — sección 1 ───────────────────────────────────── */
.ty-hero {
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--ty-dark);
}

.ty-hero__bg {
    position: absolute;
    inset: 0;
    background: url('/img/formex/Formex_verbena_web_header.jpg') center / cover no-repeat;
    opacity: .35;
}

.ty-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--ty-overlay-1) 50%, var(--ty-overlay-2));
}

.ty-hero__badge {
    background: rgba(235,91,50,.15);
    color: var(--fmx-orange);
    border: 1px solid rgba(235,91,50,.4);
    font-size: .8rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ty-hero__title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.2rem;
}

.ty-hero__subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,.75);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.ty-hero__btn-pill {
    border-radius: 50px;
    letter-spacing: .05em;
}

.ty-hero__pill {
    background: var(--ty-pill-bg);
    border: 1px solid var(--ty-pill-border);
    color: #fff;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
}

.ty-hero__stat-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.ty-hero__stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ── CONTACT FORM — sección 6 ──────────────────────────────── */
#ty-contact-section {
    background: linear-gradient(135deg, var(--fmx-primary) 0%, var(--ty-mid) 100%);
    padding: 80px 0;
}

#ty-contact-section .ty-form-card {
    background: var(--ty-card-bg);
    border: 1px solid var(--ty-card-border);
    border-radius: 24px;
    padding: 44px;
    backdrop-filter: blur(12px);
}

#ty-contact-section .ty-label {
    color: var(--fmx-secondary);
    font-weight: 600;
    font-size: .85rem;
    margin-bottom: 6px;
    display: block;
    letter-spacing: .03em;
}

#ty-contact-section .ty-input {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(162,187,249,.25);
    color: #fff;
    border-radius: 10px;
    padding: 11px 16px;
    width: 100%;
    font-size: .92rem;
    transition: border-color .2s, background .2s;
}

#ty-contact-section .ty-input:focus {
    outline: none;
    background: rgba(255,255,255,.11);
    border-color: var(--fmx-secondary);
}

#ty-contact-section .ty-input::placeholder { color: rgba(255,255,255,.3); }

#ty-contact-section .ty-input option,
#ty-contact-section .ty-input optgroup {
    background-color: var(--ty-mid);
    color: #fff;
}

#ty-contact-section .ty-section-label {
    color: var(--fmx-lime);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#ty-contact-section .ty-section-label::before,
#ty-contact-section .ty-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(228,239,161,.2);
}

#ty-contact-section .ty-submit {
    background: var(--fmx-orange);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 0;
    width: 100%;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
}

#ty-contact-section .ty-submit:hover {
    opacity: .9;
    transform: translateY(-1px);
}

#ty-contact-section .ty-success {
    background: rgba(228,239,161,.08);
    border: 1px solid rgba(228,239,161,.3);
    border-radius: 20px;
    padding: 50px;
    text-align: center;
}

/* ── SCHOOL GROUPS HERO ────────────────────────────────────── */
.sg-hero {
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: #111a2e;
}

.sg-hero__bg {
    position: absolute;
    inset: 0;
    background: url('/img/formex/Formex_verbena_web_header.jpg') center / cover no-repeat;
    opacity: .25;
}

.sg-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17,26,46,0.95) 40%, rgba(42,41,84,0.7));
}

.sg-stat-card {
    background: rgba(255,255,255,.05);
    backdrop-filter: blur(5px);
    border-radius: 16px;
    padding: 12px;
    text-align: center;
}

/* ── SCHOOL GROUPS CONTACT FORM ────────────────────────────── */
.sg-enquiry-section {
    background: linear-gradient(135deg, #111a2e 0%, #1c2340 100%);
    padding: 80px 0;
}

.sg-form-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    padding: 2rem;
}

.sg-form-input {
    background: #1e2a3a !important;
    color: #fff !important;
    border-color: rgba(255,255,255,.2) !important;
}

.sg-form-input:focus {
    background: #253345 !important;
    border-color: var(--fmx-orange) !important;
    box-shadow: none !important;
}

.sg-form-input option {
    background: #1e2a3a;
    color: #fff;
}

.sg-step-title {
    color: #f0b429;
    border-bottom: 1px solid rgba(255,255,255,.15);
    padding-bottom: .5rem;
    margin-bottom: 1rem;
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ── REVIEWS COMUNES ───────────────────────────────────────── */
.review-card {
    border: 1px solid #e9ecef;
    background: #fafafa;
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.review-card__stars { color: #ffc107; margin-bottom: .75rem; }

.review-card__text {
    color: #6c757d;
    font-style: italic;
    flex-grow: 1;
    font-size: .9rem;
}

.review-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .9rem;
}

.review-card__footer {
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: .75rem;
}

/* ── SCHOOL GROUPS — clases extraídas de school_groups_info.php ── */

.sg-hero {
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: #111a2e;
}

.sg-hero__bg {
    position: absolute;
    inset: 0;
    background: url('/img/formex/Formex_verbena_web_header.jpg') center / cover no-repeat;
    opacity: .25;
}

.sg-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17,26,46,0.95) 40%, rgba(42,41,84,0.7));
}

.sg-hero__content {
    position: relative;
    z-index: 2;
}

.sg-stat-card {
    background: rgba(255,255,255,.05);
    backdrop-filter: blur(5px);
    border-radius: 16px;
    padding: 12px;
    text-align: center;
}

.sg-enquiry-section {
    background: linear-gradient(135deg, #111a2e 0%, #1c2340 100%);
    padding: 80px 0;
}

.sg-form-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    padding: 1.5rem;
}

.sg-form-input {
    background: #1e2a3a !important;
    color: #fff !important;
    border-color: rgba(255,255,255,.2) !important;
}

.sg-form-input:focus {
    background: #253345 !important;
    border-color: var(--fmx-orange) !important;
    box-shadow: none !important;
}

.sg-form-input option {
    background: #1e2a3a;
    color: #fff;
}

.sg-step-title {
    color: #f0b429;
    border-bottom: 1px solid rgba(255,255,255,.15);
    padding-bottom: .5rem;
    margin-bottom: 1rem;
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ── GROUP STORIES SINGLE — artículo individual ──────────────── */
.sg-article-container {
    max-width: 800px;
}

/* ── SCHOOL GROUPS REVIEWS — tarjetas ────────────────────────── */
.sg-review-badge {
    width: fit-content;
    display: block;
    margin: 0 auto .75rem;
}