/* © 2026 MpM42 - Todos los derechos reservados */
/* --- VARIABLES DE COLOR --- */
:root {
    --bg-color: #F8F5EE;
    /* Fondo crema original */
    --primary-brown: #5E4531;
    /* Marrón de los botones */
    --text-dark: #2C2C2C;
    --text-light: #737373;
    --border-color: #E0D6C8;
    --white: #FFFFFF;
}

/* --- ESTILOS GENERALES (MOBILE FIRST) --- */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    -webkit-tap-highlight-color: transparent;
    /* Quita el destello azul al tocar en celular */
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* --- ACCESO ADMIN DISCRETO --- */
.admin-access {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 40;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--primary-brown);
    text-decoration: none;
    padding: 3px 6px;
    border-radius: 8px;
    opacity: 0.5;
    transition: opacity 0.15s ease, background-color 0.15s ease;
}

.admin-access:hover,
.admin-access:focus {
    opacity: 1;
    background-color: rgba(94, 69, 49, 0.08);
    outline: none;
}

.admin-access span {
    font-size: 9px;
}

/* --- CONTENEDOR PRINCIPAL --- */
.app-container {
    width: 100%;
    min-height: 100vh;
    /* Ocupa toda la pantalla en móvil */
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;


}

/* --- ESTILOS PARA COMPUTADORA (PANTALLAS GRANDES) --- */
@media (min-width: 768px) {
    body {
        align-items: center;
        /* Fondo de pantalla para PC */
        background-image: url('../img/bg_danza_izq.webp?v=2');
        background-size: cover;
        background-position: center 73%;
        background-attachment: fixed;
        padding: 20px;
    }

    /* Capa oscura sobre el fondo de PC */
    body::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(8px);
        z-index: 0;
    }

    /* En PC, el contenedor parece un celular elegante centrado */
    .app-container {
        width: 100%;
        max-width: 440px;
        height: 85vh;
        min-height: 700px;
        border-radius: 32px;
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
        z-index: 1;
        overflow: hidden;
    }

    .step {
        overflow-y: auto;
        scrollbar-width: none;
        overflow-x: hidden;
    }

    .step::-webkit-scrollbar {
        display: none;
    }
}

/* --- PANTALLAS (PASOS) --- */
.step {
    display: none;
    flex-direction: column;
    padding: 30px 24px;
    flex: 1;
    animation: fadeIn 0.4s ease-in-out;
}

.step.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
           ESTILOS DE LAS IMÁGENES / LOGOS
           ========================================= */

/* Estilo para el logo blanco en la pantalla de inicio */
.logo-img-white {
    width: 280px;
    max-width: 90%;
    display: block;
    margin: 0 auto 60% auto;
    /* Sombra para que el logo blanco resalte sobre la foto de fondo */
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.5));
}

/* Estilo para el logo negro en el resto de pantallas */
.logo-img-black {
    width: 220px;
    max-width: 75%;
    display: block;
    margin: 0 auto 20px auto;
}

/* --- TEXTOS --- */
h2 {
    font-size: 22px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #F7F0E6;
    border: 1px solid #E5D5BE;
    color: var(--primary-brown);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    padding: 6px 12px;
    border-radius: 10px;
    margin: 12px auto 8px;
    width: fit-content;
    line-height: 1.3;
    text-align: center;
}

.price .price-icon {
    font-size: 14px;
    line-height: 1;
}

.price .price-texto {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    column-gap: 4px;
}

.price strong {
    color: var(--primary-brown);
    font-size: 14px;
    font-weight: 700;
}

p.subtitle {
    font-size: 12px;
    /* color: var(--text-light); */
    color: #583c25;
    font-weight: 600;
    margin-bottom: 24px;
    line-height: 1.4;
}

.motivation {
    font-family: 'Dancing Script', cursive;
    font-size: 42px;
    margin: -3% 0% 0% 0%;
    transform: rotate(-15deg);
    text-align: left;
}

/* --- BARRA DE PROGRESO --- */
.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 25px 0;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    z-index: 2;
    transition: all 0.3s ease;
}

.step-circle.active {
    background: var(--primary-brown);
    color: var(--white);
    border-color: var(--primary-brown);
}

/* --- FORMULARIOS --- */
.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 6px;
    font-weight: 500;
}

.input-field {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--white);
    font-size: 15px;
    color: var(--text-dark);
    outline: none;
    transition: border 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.input-field:focus {
    border-color: var(--primary-brown);
    box-shadow: 0 0 0 3px rgba(94, 69, 49, 0.1);
}

/* Placeholder simulado para el input de fecha (los navegadores
           no muestran el placeholder nativo en <input type="date">) */
.input-group.date-group {
    position: relative;
}

.date-placeholder {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 14px;
    pointer-events: none;
    opacity: 1;
    z-index: 1;
    transition: opacity 0.2s;
}

/* Oculta el texto nativo "dd/mm/aaaa" mientras el campo está vacío,
           así nuestro label es el único texto visible */
input.input-field[type="date"]:invalid {
    color: transparent;
}

input.input-field[type="date"]:valid {
    color: var(--text-dark);
}

input.input-field[type="date"]:invalid::-webkit-datetime-edit {
    color: transparent;
}

.input-group.date-group.has-value .date-placeholder {
    opacity: 0;
}

/* --- TARJETAS DE OPCIÓN (Paso 1) --- */
.option-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    background: var(--white);
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}



.option-card.selected {
    border-color: var(--primary-brown);
    background: #FDFBF7;
    box-shadow: 0 4px 15px rgba(94, 69, 49, 0.1);
}

.option-icon {
    font-size: 24px;
    margin-right: 14px;
    background: var(--bg-color);
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.option-info h3 {
    font-size: 15px;
    margin-bottom: 4px;
}

.option-info p {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.3;
}

/* --- BOTONES --- */
.btn-container {
    margin-top: auto;
    /* Empuja los botones al fondo */
    padding-top: 20px;
    margin-bottom: 80px;
    /* Despega los botones del borde inferior */
    display: flex;
    gap: 12px;
}

button {
    padding: 16px 20px;
    border-radius: 14px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: transform 0.1s, background 0.3s;
}

button:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--primary-brown);
    color: var(--white);
    flex: 1;
    box-shadow: 0 4px 15px rgba(94, 69, 49, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-brown);
    border: 1px solid var(--border-color);
}

/* =========================================
        HOVER DE BOTONES
        ========================================= */

.btn-primary {
    transition: transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #4a3526;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(94, 69, 49, 0.45);
}

.btn-secondary {
    transition: transform 0.2s ease,
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-brown);
    color: var(--white);
    border-color: var(--primary-brown);
    transform: translateY(-2px);
}

/* --- PANTALLA 0: LANDING PAGE --- ​‌​‌​‌​‌‌​‌‌​​‌​​​​‌‌‌‌​‌‌​​‌​​‌​‌‌​​‌​​‌‌​*/
#step-0 {
    padding: 0;
    justify-content: flex-end;

    background: url('../img/bg_danza.webp?v=2') center 20% /cover no-repeat;
    position: relative;
}

/* Capa degradada sobre la foto de fondo para que el texto se lea bien */
#step-0::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(248, 245, 238, 0) 35%, rgba(248, 245, 238, 0.7) 90%, rgba(248, 245, 238, 1) 100%);
}

/* Foto de la profe */
.profe-corner {
    position: absolute;
    top: 0;
    left: 0;
    width: clamp(140px, 45vw, 240px);
    height: auto;
    object-fit: contain;
    object-position: left top;
    transform: rotate(-5deg);
    transform-origin: left top;
    z-index: 1;
    pointer-events: none;
    filter: brightness(0.5);
}

/* En PC la foto se ajusta al ancho de la tarjeta */
@media (min-width: 768px) {
    .profe-corner {
        top: 10px;
        left: 0px;
        width: 48%;
        max-width: 200px;
    }
}

.landing-content {
    position: relative;
    z-index: 2;
    padding: 30px 24px;
    text-align: center;
}

/* Título y subtítulo de la pantalla de inicio */
.landing-title {
    font-family: 'Dancing Script', cursive;
    font-size: 42px;
    margin: 20% 0% 10% 0;
    transform: rotate(-5deg);
    color: var(--text-dark);
    text-align: center;
    font-weight: 700;
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(46, 33, 22, 0.35);
}

.landing-subtitle {
    margin: 0 0 14px 0;
}

/* --- TABLA DE CONFIRMACIÓN --- */
.review-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.review-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

.review-table tr:last-child td {
    border-bottom: none;
}

.review-table td:first-child {
    color: var(--text-light);
    width: 45%;
}

.review-table td:last-child {
    color: var(--text-dark);
    font-weight: 500;
}

/* --- PANTALLA 5: ÉXITO --- */
.success-screen {
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 40px 24px;

    position: relative;
}

.success-screen.active {
    background-image: url('../img/bg_danza_izq.webp?v=2');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Capa para oscurecer un poco el fondo final y que el texto resalte */
.success-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(248, 245, 238, 0.85);
    /* Fondo crema semitransparente */
    z-index: 1;
}

.success-content {
    position: relative;
    z-index: 2;
    /* Para que el contenido quede por encima del fondo */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.success-message {
    font-family: 'Dancing Script', cursive;
    font-size: 42px;
    margin-top: 20%;
    transform: rotate(-15deg);
    text-align: center;
    color: var(--text-dark);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-brown);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
    margin-bottom: 24px;
    box-shadow: 0 10px 20px rgba(94, 69, 49, 0.3);
}

/* =========================================
           MODO MÓVIL COMPACTO (pantallas pequeñas)
           ========================================= */
@media (max-width: 480px) {
    body {
        zoom: 0.95;
    }

    .step {
        padding: 20px 16px;
    }

    .landing-content {
        padding: 0 20px 24px 20px;
    }

    .landing-title,
    .success-message {
        font-size: 28px;
        margin-top: 10%;
    }

    h2 {
        font-size: 18px;
    }

    p.subtitle {
        font-size: 12px;
        margin-bottom: 18px;
    }

    .progress-bar {
        margin-bottom: 18px;
    }

    .step-circle {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .input-group {
        margin-bottom: 12px;
    }

    .input-field {
        padding: 12px;
        font-size: 14px;
        border-radius: 10px;
    }

    .date-placeholder {
        left: 12px;
    }

    button {
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 12px;
    }

    .option-card {
        padding: 12px;
        border-radius: 14px;
        margin-bottom: 10px;
    }

    .option-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
        margin-right: 12px;
    }

    .option-info h3 {
        font-size: 14px;
    }

    .option-info p {
        font-size: 11px;
    }

    .logo-img-black {
        width: 160px;
        margin-bottom: 14px;
    }

    .logo-img-white {
        width: 370px;
        margin-bottom: 16px;
    }

    .review-table td {
        padding: 12px 14px;
        font-size: 13px;
    }

    .success-icon {
        width: 64px;
        height: 64px;
        font-size: 30px;
        margin-bottom: 18px;
    }
}

/* Móviles muy chicos (<= 360px) */
@media (max-width: 360px) {

    .landing-title,
    .success-message {
        font-size: 24px;
    }

    .logo-img-black {
        width: 130px;
    }

    .logo-img-white {
        width: 170px;
        margin-top: -100%;
    }

    .footer-mobile {
        margin-bottom: 80%;
    }
}