@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');


:root {
    --primary: #007aff;
    --color-bg: #000000;
    --color-text: #d3dcef;
    --border-color: #d3dcef91;
    --white: #fff;
    --accent-color: #009dff;
    --radius: 10px;

    --font: "Montserrat", sans-serif;
    --h1: 2rem;
    --h2: 1.5rem;
    --p: 1rem;
}

body {
    margin: 0;
    background: var(--color-bg);
}

* {
    font-family: var(--font);
    outline: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-tap-highlight-color: transparent;
}

.flash-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999 !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Estilos base */
.flash-message {
    position: fixed;
    top: 10px;
    right: 5px;
    padding: 14px 18px;
    border-radius: 6px;
    color: #fff;
    z-index: 999999 !important;
    font-size: 15px;
    /* Animación de entrada */
    transform: translateX(150%);
    opacity: 0;
    animation: slideIn 0.4s ease forwards;
}

/* Colores por categoría */
.flash-message.success {
    background: #00ff3c77;
    border: 1px solid #00ff3c;
}

.flash-message.error {
    background: #ff00196b;
    border: 1px solid #f00;
}

.flash-message.warning {
    background: #ffbf0096;
    border: 1px solid #fffb00;
    color: #222;
}

/* Animación de salida */
.flash-message.hide {
    animation: slideOut 0.4s ease forwards;
}

/* Keyframes */
@keyframes slideIn {
    from {
        transform: translateX(150%);
        opacity: 0;
    }

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

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(150%);
        opacity: 0;
    }
}


/* ==========================================================
   MODAL GLOBAL ELIMINAR USUARIO
========================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(3px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    transition: opacity .25s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

/* Caja del modal */
.modal-box {
    background: #121212;
    padding: 22px;
    border-radius: 14px;
    width: 80%;
    max-width: 360px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
    animation: modalPop .25s ease;
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-box h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 10px;
}

.modal-box p {
    color: #cfcfcf;
    font-size: .95rem;
    margin-bottom: 18px;
}

/* Botones del modal */
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #2b2b2b;
    padding-top: 10px;
}

.modal-cancel {
    background: #2b2b2b;
    border: none;
    padding: 9px 16px;
    border-radius: 8px;
    color: #ececec;
    cursor: pointer;
    font-size: .9rem;
    transition: .2s;
}

.modal-cancel:hover {
    background: #3a3a3a;
}

.modal-confirm {
    background: #d30000;
    border: none;
    padding: 9px 16px;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font-size: .9rem;
    font-weight: 600;
    transition: .2s;
}

.modal-confirm:hover {
    background: var(--primary);
}

.gender-segment {
    position: relative;
    display: flex;
    width: 100%;
    background: var(--color-bg);
    border-radius: 12px;
    padding: 4px;
    border: 1px solid var(--color-text);
    overflow: hidden;
}

/* Cada botón */
.gender-pill {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    cursor: pointer;
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
    color: var(--color-text);
    transition: color .25s ease, background .25s ease;
    user-select: none;
}


/* ======= CONTENEDOR GENERAL ======= */
.gender-segment {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-text);
    overflow: hidden;
    width: 95%;
}

/* ======= PÍLDORAS ======= */
.gender-pill {
    flex: 1;
    padding: 10px 14px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    z-index: 2;
    border-radius: 40px;
    user-select: none;
    transition: color .3s ease;
    color: var(--color-text);
}

.gender-pill.active {
    color: #fff;
}

/* ======= FONDO ANIMADO ======= */
.gender-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 33.3333%;
    height: 100%;
    background: linear-gradient(135deg, #007bff, #4f46e5);
    border-radius: 50px;
    transition: transform .35s ease, opacity .25s ease;
    opacity: 0;
    z-index: 1;
}


/* ======= RESPONSIVO ======= */
@media (max-width: 480px) {
    .gender-pill {
        font-size: 12px;
        padding: 8px 6px;
    }
}


input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px var(--color-bg) inset !important;
    box-shadow: 0 0 0px 1000px var(--color-bg) inset !important;
    -webkit-text-fill-color: var(--color-text) !important;
    caret-color: var(--color-text) !important;
    transition: background-color 9999s ease-in-out 0s;
}

.input-error {
    border: 1px solid #f00 !important;
}

.select-trigger.input-error {
    border: 1px solid #f00 !important;
}

.gender-segment.input-error {
    border: 1px solid #f00 !important;
}


body {
    margin-top: 50px;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    width: 100%;
    padding-right: 40px; /* espacio para el ícono */
}

.password-wrapper i {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: #666;
    cursor: pointer;
}


button {
    outline: none !important;
}


.invite-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.invite-modal-box {
    background: #090a0e;;
    width: 95%;
    max-width: 480px;
    border-radius: 12px;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.invite-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.invite-modal-close {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
}

.invite-modal-content {
    margin-top: 15px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

a {
    text-decoration: none !important;
}