@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

html {
    height: 100%;
}

body {
    background: linear-gradient(180deg, #000000 65%, #0B1320 85%, #20324B 100%);
    height: 100%;
}

/* paso 1 css */
.ps1-app {
    min-height: 100vh; 
    min-height: 100dvh;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.ps1-wrap {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.ps1-root {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Sección 1*/
.ps1-div {
    width: 100%;
    padding-top: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.ps1-img {
    width: 50%;
    max-width: 320px;
    object-fit: cover;
}

/* Sección 2: contenido central */
.ps1-div2 {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 20px;
}

.ps1-form {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
    max-width: 340px;
}

.ps1-p,.ps1-p2 {
    color: #7dc14b;
    font-family: 'League Spartan', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 0;
    text-align: center;
}

.ps1-p{
    font-size: 2.5rem;
}

.ps1-p2{
    font-size: 2rem;
}

/* paso 1 - campo de teléfono */
.ps1-field {
    display: flex;
    align-items: center;
    max-width: 340px;
    width: 100%;
    background: #333333;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* v-select de la lada dentro del pill */
.ps1-field .v-select {
    flex: 0 0 65px;
    width: 65px;
    background: transparent;
}

.ps1-field .vs__dropdown-toggle {
    border: none;
    background: transparent;
    padding: 6px 0 6px 14px;
}

.ps1-field .vs__selected {
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 0;
    background: transparent;
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

.ps1-field .vs__search {
    width: 0;
    margin: 0;
    padding: 0;
    border: none;
    opacity: 0;
    pointer-events: none;
}

.ps1-field .vs__clear {
    display: none;
}

.ps1-field .vs__actions {
    padding: 0 6px;
}

.ps1-field .vs__open-indicator {
    color: #9e9e9e;
}

.ps1-field .vs__dropdown-menu {
    min-width: 260px;
    background: #222222;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    max-height: 240px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px 0;
}

.ps1-field .vs__dropdown-option {
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    padding: 8px 12px;
}

.ps1-field .vs__dropdown-option--highlight {
    background: #7dc14b;
    color: #000000;
}

.ps1-field .flag-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ps1-lada-opt {
    color: #9cba66;
    margin-left: 4px;
}

.ps1-sep {
    width: 2px;
    height: 40px;
    background: rgb(255 255 255);
    flex-shrink: 0;
}

.ps1-icon {
    color: #9e9e9e;
    font-size: 1rem;
    padding: 0 10px;
    transform: rotate(90deg);
}

.ps1-icon-lock {
    color: #9e9e9e;
    font-size: 1rem;
    padding: 0 10px;
    transform: none;
}

.ps1-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    padding: 8px 0;
}

.ps1-input::placeholder {
    color: #A0A0A0;
}

/* Botón con el mismo ancho que el campo */
.ps1-btn {
    background: #1e2c00;
    color: #a6d34d;
    font-family: 'League Spartan', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 5px 10px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 20px;
    width: 100%;
    max-width: 340px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ps1-btn:hover {
    background: #2a3d00;
}

.ps1-btn:disabled {
    cursor: default;
    opacity: 0.85;
}

/* Login de contraseña */
.ps1-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    width: 100%;
    max-width: 340px;
}

.ps1-check input[type="checkbox"] {
    accent-color: #7dc14b;
    cursor: pointer;
}

.ps1-check label {
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    margin: 0;
    cursor: pointer;
}

.ps1-btn-link {
    background: transparent;
    color: #a6d34d;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    margin-top: 14px;
    padding: 0;
    transition: color 0.3s ease;
}

.ps1-btn-link:hover {
    color: #ffffff;
}

/* Subtítulo debajo del logo (perfil previo) */
.ps1-sub {
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    margin: 12px 0 0;
    text-align: center;
}

/* Tarjeta de perfil (sesión previa) */
.ps1-card {
    position: relative;
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

.ps1-card-foto {
    position: relative;
}

.ps1-card-close {
    position: absolute;
    top: -8px;
    right: -8px;
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 2;
}

.ps1-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-align: center;
}

.ps1-card-img {
    border-radius: 50%;
    object-fit: cover;
}

.ps1-card-nom {
    color: #99CC33;
    font-family: 'League Spartan', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    margin: 14px 0 0;
}

.ps1-otro {
    margin-top: 2.5rem;
}

.ps1-btn-outline {
    background: #1d2d00;
    color: #c4cfb6;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 999px;
    padding: 12px 24px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.ps1-btn-outline:hover {
    background: #43580e;
    color: #b4c27f;
}

/* Sección 3: banderas pegadas al bottom (50px de separación) */
.ps1-foot {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 5%;
}

/* Reset de contraseña - mensaje de instrucción */
.ps1-msg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 340px;
    margin-bottom: 1.2rem;
}

.ps1-msg-icon {
    color: #C0C7D0;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.ps1-msg-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #C0C7D0;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.4;
}

/* Reset de contraseña - cajas OTP */
.ps1-otp {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 340px;
}

.ps1-otp-input {
    width: 52px;
    height: 60px;
    background: #3A3A3A;
    border: none;
    border-radius: 12px;
    text-align: center;
    font-family: 'League Spartan', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #99CC33;
    caret-color: #C0C7D0;
    outline: none;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.3);
}

.ps1-otp-input:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35), inset 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Reset de contraseña - pie de ayuda */
.ps1-help {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 20px;
    color: #7C9A2A;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
}

.ps1-help-link {
    color: #7C9A2A;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ps1-help-link:hover {
    color: #ffffff;
}

/* Reset de contraseña - texto de ayuda debajo del input */
.ps1-hint {
    display: block;
    width: 100%;
    max-width: 340px;
    margin-top: 8px;
    color: #A0A0A0;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    text-align: center;
}

/* Vista de errores - mensaje de notificación */
.ps1-err-msg {
    display: block;
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Vista de errores - botón WhatsApp */
.ps1-btn-wa {
    background: #2c9f51;
    color: #ffffff;
    gap: 10px;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 000;
}

.ps1-btn-wa i {
    font-size: 1.5rem;
}

.ps1-btn-wa:hover {
    background: #239F56;
    color: #ffffff;
}

/* Vista de errores - botón Volver */
.ps1-btn-volver {
    background: #3B3B3B;
    color: #ffffff;
    gap: 10px;
    text-decoration: none;
    margin-top: 14px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
}

.ps1-btn-volver:hover {
    background: #4d4d4d;
    color: #ffffff;
}

/* Paso 2 - temporizador de reenvío */
.ps1-timer {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 340px;
    margin-top: 20px;
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    text-align: center;
}

.ps1-timer-status {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ps1-timer-link {
    color: #C0C7D0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.ps1-timer-link:hover {
    color: #ffffff;
}
