/* ============================================================
   IVANA SQUARE — Estilos frontend alumnas
   Paleta e identidad tomadas del brandbook de la marca
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;1,500&family=Cormorant+Garamond:ital,wght@0,500;1,500&family=Jost:wght@300;400;500;600&display=swap');

:root {
    --color-dark: #111008;
    --color-dark-alt: #3D3B32;
    --color-green: #5A7849;
    --color-terracota: #8F3E3E;
    --color-muted: #9B9186;
    --color-border: #C8C2B8;
    --color-border-soft: #E0DAD0;
    --color-bg-soft: #E8E0D4;
    --color-bg-softer: #F0EAE0;
    --color-cream: #F7F2EA;
    --color-white: #FAFAF8;

    --font-heading: 'Playfair Display', serif;
    --font-accent: 'Cormorant Garamond', serif;
    --font-body: 'Jost', sans-serif;

    --radius: 14px;
    --shadow: 0 4px 20px rgba(17, 16, 8, 0.08);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background: var(--color-cream);
    color: var(--color-dark);
    line-height: 1.55;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-dark);
    margin: 0 0 0.5em;
    letter-spacing: 0.2px;
}

h1 { font-size: 1.9rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a { color: var(--color-green); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Header / navegación ---------- */
.site-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border-soft);
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-dark);
}

.brand img { height: 38px; width: auto; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--color-dark);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.main-nav a {
    color: var(--color-dark-alt);
    font-size: 0.95rem;
    font-weight: 500;
}

.main-nav a.active { color: var(--color-green); }

.main-nav .btn { margin-left: 6px; }

@media (max-width: 780px) {
    .nav-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 20px 24px;
        gap: 16px;
        border-bottom: 1px solid var(--color-border-soft);
        box-shadow: var(--shadow);
    }
    .main-nav.open { display: flex; }
}

/* ---------- Botones ---------- */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.92rem;
    padding: 11px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: all .15s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary {
    background: var(--color-green);
    color: #fff;
}
.btn-primary:hover { background: #4a6339; }

.btn-outline {
    background: transparent;
    border-color: var(--color-dark);
    color: var(--color-dark);
}
.btn-outline:hover { background: var(--color-dark); color: #fff; }

.btn-danger {
    background: transparent;
    border-color: var(--color-terracota);
    color: var(--color-terracota);
}
.btn-danger:hover { background: var(--color-terracota); color: #fff; }

.btn-sm { padding: 7px 16px; font-size: 0.82rem; }
.btn-block { display: block; width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Layout general ---------- */
.page {
    padding: 36px 0 60px;
}

.page-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.page-head p { color: var(--color-muted); margin: 0; }

.card {
    background: var(--color-white);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}

.grid {
    display: grid;
    gap: 18px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 780px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ---------- Formularios ---------- */
.form-group { margin-bottom: 16px; }

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-dark-alt);
    margin-bottom: 6px;
}

input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=date], input[type=number], select, textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-dark);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-green);
}

.form-hint { font-size: 0.8rem; color: var(--color-muted); margin-top: 4px; }

/* ---------- Mensajes flash ---------- */
.flash {
    padding: 13px 18px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 0.92rem;
}
.flash-ok { background: #EAF1E4; color: #3f5a30; border: 1px solid #cfe0c2; }
.flash-error { background: #F5E6E6; color: var(--color-terracota); border: 1px solid #e6c8c8; }

/* ---------- Tarjetas de tarifas ---------- */
.tarifa-card { display: flex; flex-direction: column; gap: 10px; }
.tarifa-precio { font-family: var(--font-heading); font-size: 1.6rem; color: var(--color-green); }
.tarifa-precio span { font-size: 0.9rem; color: var(--color-muted); font-family: var(--font-body); }
.badge {
    display: inline-block;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--color-bg-soft);
    color: var(--color-dark-alt);
    width: fit-content;
}

/* ---------- Horario / clases ---------- */
.dia-columna { margin-bottom: 30px; }
.dia-titulo {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--color-bg-soft);
    padding-bottom: 6px;
}

.clase-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--color-border-soft);
    border-radius: 12px;
    margin-bottom: 10px;
    background: var(--color-white);
    flex-wrap: wrap;
}

.clase-color {
    width: 10px;
    height: 40px;
    border-radius: 6px;
    flex-shrink: 0;
}

.clase-info { flex: 1; min-width: 180px; }
.clase-info .hora { font-weight: 600; color: var(--color-dark); }
.clase-info .tipo { color: var(--color-dark-alt); }
.clase-info .meta { font-size: 0.82rem; color: var(--color-muted); }

.plazas {
    font-size: 0.82rem;
    color: var(--color-muted);
    white-space: nowrap;
}
.plazas.lleno { color: var(--color-terracota); }

.clase-pasada { opacity: 0.55; }

/* ---------- Tablas ---------- */
table { width: 100%; border-collapse: collapse; }
th, td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border-soft);
    font-size: 0.9rem;
}
th { color: var(--color-muted); font-weight: 500; }

/* ---------- Utilidades ---------- */
.muted { color: var(--color-muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-muted);
}

/* ---------- Auth pages ---------- */
.auth-wrap {
    max-width: 420px;
    margin: 50px auto;
    padding: 0 20px;
}
.auth-wrap .card { padding: 30px; }
.auth-wrap h1 { text-align: center; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 0.9rem; color: var(--color-muted); }

/* ---------- Footer ---------- */
.site-footer {
    text-align: center;
    padding: 26px 20px;
    color: var(--color-muted);
    font-size: 0.82rem;
}

/* ============================================================
   REDISEÑO "Area Alumnas" — fondos con foto real desenfocada,
   cabecera flotante, navegación inferior móvil, tarjetas hero
   y anillo de crédito.
   ============================================================ */
:root {
    --hero-suelo: url('../img/suelo.jpg') center/cover no-repeat;
    --hero-reformer: url('../img/reformer.jpg') center/cover no-repeat;
    --hero-estudio: url('../img/estudio.jpg') center/cover no-repeat;
}

/* ---- Cabecera app (sustituye a .site-header en páginas internas) ---- */
.app-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247, 242, 234, .9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--color-border-soft);
}
.app-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    height: 64px;
}
.app-header .brand img { height: 48px; width: 48px; border-radius: 50%; object-fit: cover; box-shadow: 0 3px 10px rgba(17,16,8,.14); }
.app-header .brand span {
    font-weight: 300;
    font-size: 10.5px;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--color-dark-alt);
    white-space: nowrap;
}
.app-header .main-nav a { font-size: 14.5px; }
.credit-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-white);
    border: 1px solid var(--color-border-soft);
    border-radius: 999px;
    padding: 6px 14px 6px 6px;
    box-shadow: var(--shadow);
    color: var(--color-dark-alt);
    font-size: 12.5px;
    white-space: nowrap;
}
.credit-chip .num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #EAF1E4;
    color: var(--color-green);
    font-size: 12.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

/* ---- Navegación inferior móvil ---- */
.bottom-nav { display: none; }
@media (max-width: 780px) {
    .app-header .main-nav a:not(.btn-outline) { display: none; }
    body { padding-bottom: 64px; }
    .bottom-nav {
        display: block;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 60;
        background: rgba(250, 250, 248, .96);
        backdrop-filter: blur(14px);
        border-top: 1px solid var(--color-border-soft);
        padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
    }
    .bottom-nav ul {
        list-style: none;
        margin: 0; padding: 0;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        max-width: 520px;
        margin: 0 auto;
    }
    .bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: var(--color-muted);
        font-size: 10.5px;
        padding: 5px 2px;
    }
    .bottom-nav a.active { color: var(--color-green); }
    .bottom-nav .ico { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid currentColor; }
    .bottom-nav .ico-inicio { }
    .bottom-nav .ico-horario { border-top-width: 5px; }
    .bottom-nav .ico-reservas { border-radius: 50%; }
    .bottom-nav .ico-bono { transform: rotate(45deg); }
    .bottom-nav .ico-perfil { border-radius: 999px 999px 5px 5px; }
}

/* ---- Bloque hero foto-desenfocada (cabecera de sección) ---- */
.hero-photo {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    min-height: 108px;
    display: flex;
    align-items: flex-end;
    padding: 20px 22px;
    margin-bottom: 24px;
    color: var(--color-white);
    background: var(--color-dark);
}
.hero-photo::before {
    content: '';
    position: absolute; inset: -30px;
    background: var(--bg, var(--hero-suelo));
    filter: blur(9px) saturate(.95);
}
.hero-photo::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(17,16,8,.18), rgba(17,16,8,.72));
}
.hero-photo--suelo { --bg: var(--hero-suelo); }
.hero-photo--reformer { --bg: var(--hero-reformer); }
.hero-photo--estudio { --bg: var(--hero-estudio); }
.hero-photo > * { position: relative; }
.hero-photo h1 { color: var(--color-white); margin: 0 0 2px; }
.hero-photo p { color: rgba(250,250,248,.75); margin: 0; font-size: .9rem; }

/* ---- Tarjeta "próxima clase" oscura ---- */
.next-class-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: var(--color-dark);
    color: var(--color-white);
    padding: 24px;
    margin-bottom: 20px;
}
.next-class-card::before {
    content: '';
    position: absolute; inset: -30px;
    background: var(--hero-estudio);
    filter: blur(8px) saturate(.95);
}
.next-class-card::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(120deg, rgba(17,16,8,.74), rgba(17,16,8,.42));
}
.next-class-card > * { position: relative; }
.next-class-card .eyebrow { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(250,250,248,.6); }
.next-class-card .tipo { font-family: var(--font-heading); font-size: 26px; line-height: 1.15; margin-top: 10px; }
.next-class-card .cuando { font-size: 14.5px; color: rgba(250,250,248,.8); margin-top: 4px; }

/* ---- Anillo de crédito (bono) ---- */
.credit-ring {
    position: relative;
    width: 92px; height: 92px;
    flex: none;
    border-radius: 50%;
    background: conic-gradient(var(--color-green) var(--pct, 50%), var(--color-bg-soft) var(--pct, 50%) 100%);
}
.credit-ring::before {
    content: '';
    position: absolute; inset: 9px;
    border-radius: 50%;
    background: var(--color-white);
}
.credit-ring .val {
    position: relative;
    height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}
.credit-ring .val strong { font-family: var(--font-heading); font-size: 22px; line-height: 1; }
.credit-ring .val span { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-muted); }
.credit-ring--dark::before { background: #151309; }
.credit-ring--dark { background: conic-gradient(#A8C08F var(--pct, 50%), rgba(250,250,248,.16) var(--pct, 50%) 100%); }
.credit-ring--dark .val strong { color: var(--color-white); }
.credit-ring--dark .val span { color: rgba(250,250,248,.55); }

/* ---- Auth split (login / registro) ---- */
.auth-split {
    display: grid;
    grid-template-columns: 1fr;
    min-height: calc(100vh - 64px);
}
.auth-split-art {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    background: var(--color-dark);
}
.auth-split-art::before { content: ''; position: absolute; inset: -50px; background: var(--hero-reformer); filter: blur(10px) saturate(.95); }
.auth-split-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,16,8,.3), rgba(17,16,8,.6)); }
.auth-split-art-content {
    position: relative;
    height: 100%;
    padding: 22px 24px;
    display: none;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--color-white);
}
.auth-split-art-content .kicker { font-family: var(--font-accent); font-style: italic; font-size: 19px; color: rgba(250,250,248,.72); margin-bottom: 8px; }
.auth-split-art-content h2 { color: var(--color-white); font-size: 38px; line-height: 1.06; }
.auth-split-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 22px 50px;
    background: var(--color-cream);
}
.auth-split-form-inner { width: 100%; max-width: 400px; }
.auth-split-form-inner img {
    height: clamp(84px, 11vw, 108px);
    width: clamp(84px, 11vw, 108px);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 26px rgba(17,16,8,.16);
    display: block;
    margin: 0 auto 22px;
}
@media (min-width: 900px) {
    .auth-split { grid-template-columns: 1.05fr .95fr; }
    .auth-split-art-content { display: flex; }
}

/* ---- Carrusel de intro (index.php sin sesión) ---- */
.intro-screen {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: var(--color-dark);
}
.intro-slide {
    position: absolute; inset: 0;
    opacity: 0;
    transition: opacity 1.1s ease;
}
.intro-slide.active { opacity: 1; }
.intro-slide::before { content: ''; position: absolute; inset: -60px; background: var(--bg); filter: blur(10px) saturate(.95); }
.intro-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,16,8,.28) 0%, rgba(17,16,8,.12) 38%, rgba(17,16,8,.72) 100%); }
.intro-slide--suelo { --bg: var(--hero-suelo); }
.intro-slide--reformer { --bg: var(--hero-reformer); }
.intro-slide--estudio { --bg: var(--hero-estudio); }
.intro-content {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px 22px 40px;
    max-width: 560px;
    margin: 0 auto;
    color: var(--color-white);
}
.intro-brand { display: flex; flex-direction: column; align-items: center; align-self: center; text-align: center; gap: 14px; }
.intro-brand img {
    height: clamp(92px, 12vw, 132px);
    width: clamp(92px, 12vw, 132px);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 34px rgba(17,16,8,.4);
}
.intro-brand span { font-weight: 300; font-size: 12px; letter-spacing: .34em; text-transform: uppercase; color: rgba(250,250,248,.86); }
.intro-body { display: flex; flex-direction: column; gap: 18px; padding-bottom: 6px; }
.intro-kicker { font-family: var(--font-accent); font-style: italic; font-size: 17px; color: rgba(250,250,248,.72); }
.intro-title { font-family: var(--font-heading); font-weight: 500; font-size: clamp(38px,10vw,58px); line-height: 1.02; letter-spacing: -.5px; color: var(--color-white); margin: 0; }
.intro-text { margin: 0; max-width: 30ch; font-size: 15px; color: rgba(250,250,248,.7); }
.intro-dots { display: flex; gap: 8px; margin-top: 4px; }
.intro-dots span { width: 14px; height: 3px; border-radius: 99px; background: rgba(250,250,248,.34); transition: all .4s ease; }
.intro-dots span.active { width: 34px; background: var(--color-white); }
.intro-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.intro-actions .btn-primary { background: var(--color-white); color: var(--color-dark); }
.intro-actions .btn-primary:hover { background: #fff; opacity: .92; }
.intro-actions .btn-outline { border-color: rgba(250,250,248,.4); color: var(--color-white); }
.intro-actions .btn-outline:hover { background: rgba(250,250,248,.12); color: var(--color-white); }

/* ---- Tarjetas de sesión rediseñadas ---- */
.clase-item {
    border-radius: 16px;
    box-shadow: var(--shadow);
}
.clase-item .btn-primary,
.clase-item .btn-danger,
.clase-item .btn-outline { flex: none; }
