﻿:root {
    --bg1: #B58CFF; /* lila claro */
    --bg2: #7A5CFF; /* violeta */
    --accent: #34D7F2; /* cyan */
    --glass: rgba(255,255,255,.14);
    --glass-b: rgba(255,255,255,.28);
    --txt: #fff;
    --txt-dim: rgba(255,255,255,.75);
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body {
    margin: 0;
    color: var(--txt);
    /*font-family: "Poppins",system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;*/
}

/* BG fijo */
.bg {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    z-index: -2;
}

/* Capa de gradiente */
.bg-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(900px 600px at 70% 15%, rgba(255,255,255,.25), transparent 60%), linear-gradient(135deg, var(--bg1), var(--bg2));
    mix-blend-mode: screen;
    opacity: .0;
    z-index: -1;
}

/* Escenario a la derecha */
.form-stage {
    position: fixed;
    right: clamp(28px, 5vw, 72px);
    /*top: 47%;*/
    top: clamp(72px, 50%, calc(100vh - 24px));
    /*    margin-top:7.3rem;*/
    transform: translateY(-50%);
    width: min(915px, 60vw);
    z-index: 1;
    pointer-events: auto;
}

/* Tarjeta glass */
.glass-card {
    pointer-events: auto;
    padding: 1rem;
    border-radius: 22px;
    /*background: var(--glass);*/
    border: 1px solid var(--glass-b);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    /*box-shadow: 0 18px 60px rgba(0,0,0,.25);*/
    position: relative;
    /*max-height: calc(60.5vh);*/
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable both-edges;
}

    .glass-card.done {
        padding: 1rem 1rem 1rem 1rem;
    }

/*    .glass-card::before {
        content: "✦";
        position: absolute;
        top: -26px;
        right: 40%;
        font-size: 24px;
        color: #fff;
        text-shadow: 0 0 16px rgba(255,255,255,.7);
    }*/

/* Utilidades */
.title-lg {
    display: block;
    font-weight: 600;
    font-size: clamp(20px, 2.2vw, 28px);
    margin-bottom: 1rem;
}
.title-md {
    display: block;
    font-weight: 400;
    font-size: clamp(20px, 2.2vw, 20px);
    margin-bottom: 0rem;
    text-align:center;
}

.hint {
    color: var(--txt-dim);
    margin-top: .25rem
}

/* Input “píldora” */
.pill-input {
    height: 58px;
    border-radius: 999px;
    padding: 0 1.25rem;
    font-size: clamp(16px,1.6vw,20px);
    color: #fff;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.35);
    outline: none;
}

    .pill-input::placeholder {
        color: rgba(255,255,255,.85)
    }

    .pill-input:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 4px rgba(52,215,242,.25);
        background: rgba(255,255,255,.22);
    }

/* Botones */
.btn-row {
    display: flex;
    gap: .75rem;
    margin-top: 1rem;
    align-items: center
}

.btn {
    border-radius: 999px;
    padding: .8rem 1.2rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.btn-accent {
    background: var(--accent);
    color: white;
    font-size: 1.1rem; /* más grande */
    /*font-weight: bolder;*/ /* más fuerte */
}

    .btn-accent:hover {
        filter: brightness(.96);
        color: dimgray;
    }

    .btn-accent.outline {
        background: transparent;
        color: var(--accent);
        border-color: var(--accent)
    }

.btn-ghost {
    background: rgba(255,255,255,.08);
    color: #fff;
    border-color: rgba(255,255,255,.25)
}

    .btn-ghost:hover {
        background: rgba(255,255,255,.14)
    }

/* Ajustes Bootstrap */
.form-label, .form-text, .invalid-feedback {
    margin-left: .3rem
}

/* Ocultar vistas no activas */
.hidden {
    display: none !important
}

.confirm-mail {
    /*border: 1px solid white;*/ /* grosor, estilo y color */
    /*padding: 4px 8px;*/ /* espacio interno para que no quede pegado */
    /*border-radius: 4px;*/ /* opcional: bordes redondeados */
    font-size: 1.3rem;
}

.codes {
    font-size: 1.1rem;
    /*font-weight: bolder;*/
}

code {
    color: var(--accent);
    font-weight: bolder;
}

.invalid-feedback {
    color: darkred;
}

.form-select {
    color: gray;
    background-color: white;
}

.form-control {
    background-color: white;
    color: black;
}

    .form-control:focus {
        background-color: white;
    }

    .form-control::placeholder {
        color: gray;
        font-weight: bolder;
        text-align: center
        /*font-style: italic;*/ /* opcional, para hacerlo más distintivo */
    }
.list-group-item{
    background-color: transparent !important;
    border-color: white !important;
    color: white !important;
}
/* Responsive */
@media (min-width:1600px) {
    .form-stage {
        width: min(1030px, 65vw);
    }
    /*    .glass-card {
        padding: 4.5rem;
    }*/
}

@media (min-width: 768px) and (max-width: 1599.98px) {
    .form-stage {
        width: min(915px, 60vw);
    }

    .glass-card {
        padding: 1.0rem;
        transform: translateY(5%);
        /*max-height: calc(54.9vh);*/
    }
}

@media (max-width: 767.98px) {
    .form-stage {
        position: static; /* saca el fixed para que fluya y se centre */
        right: auto;
        top: auto;
        transform: none;
        width: min(560px, 94vw); /* ocupa casi todo el ancho */
        margin: 20px auto; /* centra horizontal */
        padding: 0 8px; /* respiración lateral */
    }

    .glass-card {
        /*padding: 1.25rem;*/ /* compáctalo en móvil */
        border-radius: 16px;
        margin-top: 7.5rem !important;
    }

    .btn-row {
        flex-direction: column; /* botones uno debajo del otro */
        align-items: stretch;
        gap: .5rem;
    }

        .btn-row .btn {
            width: 100%; /* botones a todo el ancho */
        }

    .pill-input {
        height: 52px; /* un poco más bajo en móvil */
        font-size: 16px;
    }

    .bg {
        content: url("../img/euphoria_mobile.jpg");
    }

    .alert-compact {
        padding: .5rem .75rem;
        font-size: .875rem; /* similar a .small */
        border-radius: .375rem;
    }

        .alert-compact .btn-close {
            transform: scale(.85); /* botón cerrar más chico */
        }

    .alert-dismissible .btn-close {
        padding: 0.1rem 1rem;
    }
}
