﻿:root {
    --mud-palette-primary: #4c4c4c; /* Gris oscuro */
    --mud-palette-secondary: #D4AF37; /* Dorado */
    --mud-palette-tertiary: #212529; /* Casi negro */
}

body::-webkit-scrollbar {
    width: 10px; /* Ancho de toda la barra de desplazamiento */
}

body::-webkit-scrollbar-track {
    background: var(--mud-palette-tertiary); /* Color del área de seguimiento */
    border-left: 2px solid #ddd; /* Crea un margen alrededor del pulgar */
}

body::-webkit-scrollbar-thumb {
    background-color: var(--mud-palette-primary); /* Color del pulgar de desplazamiento */
    border-radius: 20px; /* Redondez del pulgar de desplazamiento */
    border-left: 2px solid #ddd;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 3.5rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjY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YgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }


/*Editar y Eliminar defs label sección defs Administración*/

.posicion-tarjeta {
    position: relative;
    top: 10px;
    left: 0px;
    z-index: 1;
}

.posicion-tarjeta-eliminar {
    position: relative;
    top: 10px;
    left: 0px;
    z-index: 1;
}

/*Editar symbol Eliminar defs label sección defs Administración*/

.posicion-editar-local {
    position: relative;
    top: 10px;
    left: 0px;
    z-index: 1;
}

.posicion-eliminar-local {
    position: relative;
    top: 10px;
    left: 0px;
    z-index: 1;
}

.cursor{
    cursor:pointer;
}

.borde-evento {
    border-color: #212529;
    border-width: 1px;
    border-style: solid;
}

/*Tarjeta evento*/

.borde-foto-usuario {
    border-radius: 10px;
    border-color: #d4af37ff;
    border-width: 1px;
}

.borde-tarjeta-usuario {
    border-color: #d4af37ff;
    border-width: 3px;
    border-style: solid;
    border-radius: 30px
}

.borde-tarjeta-usuario {
    border-color: #d4af37ff;
    border-width: 3px;
    border-style: solid;
    border-radius: 30px
}

.color-texto-usuario {
    color: white;
}

.fondo-tarjeta-usuario {
    background-image: url(/img/Tarjetas/2.svg);
    background-size: cover;
    background-color: rgba(33,37,41,1)
}

.tarjeta-usuario {
    height: 210px;
    width: 320px;
}

/* Estétca de los Tickets que usa el usuario */

.borde-Experiencia-1 {
    border-end-end-radius: 15px;
    border-end-start-radius: 15px;
    border-block-end: dashed;
    border-color: rgba(33,37,41,1);
    border-width: 3px;
}

.borde-Imagen-Experiencia-1 {
    border-end-end-radius: 15px;
    border-end-start-radius: 15px;
    border-color: rgba(33,37,41,1);
    background-color: rgba(33,37,41,1);
}

.borde-superior-Experiencia-1 {
    border-start-end-radius: 15px;
    border-start-start-radius: 15px;
    border-block-start: none;
    border-width: 3px;
    border-color: rgba(33,37,41,1);
}

.fondo-Experiencia-1 {
    border-start-end-radius: 15px;
    border-start-start-radius: 15px;
    border-color: white;
    border-width: 16px;
}

.borde-fondo-Experiencia-1 {
    border-start-end-radius: 15px;
    border-start-start-radius: 15px;
}

@media (min-width: 600px) { /* sm y mayores */
    .carousel-container > div {
        width: 50%; /* 2 items en SM a MD */
    }
}

@media (min-width: 992px) { /* lg y mayores */
    .carousel-container > div {
        width: 25%; /* 4 items en LG y mayores */
    }
}

.scroll-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scrollbar-color: transparent transparent;
}

    .scroll-container::-webkit-scrollbar {
        display: none;
    }

.scroll-arrow {
    position: absolute;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
}

    .scroll-arrow.left {
        left: 0;
    }

    .scroll-arrow.right {
        right: 0;
    }

.card-black-opacity {
    background-color: rgba(0, 0, 0, 0.7) !important;
}

@keyframes textClip {
    to {
        background-position: 100%;
    }
}

@keyframes textColorChange {
    0%, 100% {
        color: white;
    }

    50% {
        color: rgba(239,82,65,1);
    }
}

@keyframes shifting-gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.logo-Inicial-Size {
    width: 100px;
}

.borde-foto-usuario {
    border-radius: 10px;
    border-color: #D4AF37;
    border-width: 1px;
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: linear-gradient(-45deg, var(--mud-palette-primary), var(--mud-palette-secondary), var(--mud-palette-primary), var(--mud-palette-tertiary), var(--mud-palette-primary));
    background-size: 400% 400%;
    animation: shifting-gradient 8s ease infinite;
    z-index: 9999;
    transition: opacity 0.3s ease; /* 👈 añadido */
}

.logo-inicial-size {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

.loader-text {
    font-size: 2em;
    font-weight: bold;
    background-image: linear-gradient(to right, #D4AF37 50%, white 50%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 100%;
    background-position: -100%;
    animation: textClip 3s linear infinite, textColorChange 3s steps(30, end) infinite;
}

#loader-inicial {
    transition: opacity 0.3s ease;
}

@keyframes textClip {
    to {
        background-position: 100%;
    }
}

@keyframes textColorChange {
    0%, 100% {
        color: white;
    }

    50% {
        color: rgba(239,82,65,1);
    }
}

@keyframes shifting-gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.9;
    }
}

/*#components-reconnect-modal {
    display: none !important;
}*/
/*Login*/
/* Contenedor general */
.custom-login-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center; /* Centra horizontalmente */
}

/* Contenedor del logo */
.custom-login-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1; /* Ocupará el espacio sobrante */
    width: 100%;
}

/* Contenedor de la card */
.custom-login-card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

/* Card blanca con bordes redondeados */
.custom-login-card {
    background: white;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* Móvil: Card pegada abajo con bordes redondeados arriba */
@media (max-width: 768px) {
    .custom-login-container {
        justify-content: flex-end;
    }

    .custom-login-logo {
        max-width: 60%;
        height: auto;
    }

    .custom-login-card-container {
        width: 100%;
        flex-grow: 0.7; /* Permite que crezca dinámicamente */
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px;
        min-height: auto; /* Ajuste dinámico en lugar de un valor fijo */
        border-top-left-radius: 30px;
        border-top-right-radius: 30px;
        border-top: 2px solid white;
    }

    .custom-login-logo-container-computer {
        display: none;
    }

    .custom-login-card {
        border-radius: 20px 20px 0 0;
        width: 100%;
        max-width: none;
    }
}

/* Escritorio: Card centrada con bordes redondeados arriba y abajo */
@media (min-width: 769px) {
    .custom-login-container {
        justify-content: center;
    }

    .custom-login-logo-container-computer {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .custom-login-card-container {
        max-width: 550px;
        border-radius: 30px;
        border: 2px solid white;
    }

    .custom-login-logo-container {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .custom-login-menu-container {
        display: none !important;
    }
}

/* Contenedor del contenido principal, que crecerá si es necesario */
.custom-login-content {
    flex-grow: 1; /* Permite que el contenido ocupe el espacio disponible */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra la card en PC */
    align-items: center;
    padding: 20px;
}

/* Título y descripción */
.custom-login-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: black;
}

.custom-login-description {
    font-size: 1rem;
    color: #666;
    margin-top: 5px;
}

/* Formulario */
.custom-login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 30px;
}

@media (min-width: 768px) {
    .custom-login-form {
        padding-top: 10px;
    }
}

/* Input de email */
.custom-login-input {
    background: white;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* Botón */
.custom-login-button {
    padding: 12px;
    font-size: 1rem;
    cursor: pointer;
}

.custom-change-link {
    color: #007BFF !important;
    text-decoration: underline;
    cursor: pointer !important;
}

    .custom-change-link:hover {
        color: #0056b3 !important;
    }

.custom-login-footer {
    display: flex;
    flex-direction: column; /* Asegura que los elementos se apilen */
    align-items: center; /* Centra horizontalmente */
    text-align: center;
    width: 100%;
}

.loading-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%
}

/*Menú Ordeandor: contraer 
*/
.texto-visible {
    opacity: 1;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.3s, max-width 0.3s;
}

.texto-oculto {
    opacity: 0;
    max-width: 0;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.3s, max-width 0.3s;
}

/*Menú aplicaciones
*/
.menu-content {
    width: 320px;
    padding: 12px;
}

@media (max-width: 768px) {
    .menu-content {
        max-width: 240px;
        padding: 12px;
    }
}

.menu-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.appbar-border {
    border-bottom: 2px solid #ddd;
}

.appbar-border-top {
    border-top: 2px solid #ddd;
}

.appbar-border-total {
    border: 2px solid #ddd;
}

.drawer-border {
    border-right: 2px solid #ddd;
}

@keyframes slideInLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.text-slide-in {
    animation: slideInLeft 2s ease-out forwards;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    padding: 0 2rem;
    width: 100%;
}

.hero-section {
    position: relative;
    height: 800px;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('/img/club.png') center 5% / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    z-index: 1;
}

.curve-overlay {
    position: absolute;
    bottom: -2px;
    width: 100%;
    line-height: 0;
    z-index: 3;
    pointer-events: none;
}

    .curve-overlay svg {
        display: block;
        width: 100%;
        height: 100%;
        vertical-align: bottom; /* ← previene línea blanca */
    }

.hero-text-animate {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards;
}

    .hero-text-animate.delay-1 {
        animation-delay: 0.2s;
    }

    .hero-text-animate.delay-2 {
        animation-delay: 0.4s;
    }

    .hero-text-animate.delay-3 {
        animation-delay: 0.6s;
    }

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

.section-below {
    margin-top: -1px;
}

.tarjeta-vip {
    height: 100%; /* se ajustará dentro del grid si usas align-stretch */
    border: 1px solid black;
    border-radius: 30px 30px 0 0;
    display: flex;
    flex-direction: column;
}

.section-observed {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.section-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Switch de colores */
/* Switch activo*/
.mud-switch-base.mud-checked ~ .mud-switch-track {
    background-color: var(--mud-palette-success) !important;
}

/* Switch inactivo*/
.mud-switch-base:not(.mud-checked) ~ .mud-switch-track {
    background-color: var(--mud-palette-error) !important;
}

.footer-link {
    text-decoration: underline;
    cursor: pointer;
}

.bottom-appbar {
    height: calc(58px + env(safe-area-inset-bottom));
}

ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    padding-left: 1.5rem;
}

ol {
    list-style-type: decimal;
    margin-left: 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.25rem;
}

.mud-menu-list {
    padding: 0 !important;
}

.mud-input-control.mud-input-control-margin-dense {
    padding-left: 20px;
    padding-right: 20px;
}

.mud-input-control.mud-input-outlined-with-label {
    margin-top: 0px !important;
}

/*Drawer pantalla completa
*/@media (max-width: 768px) {
    .fullscreen-drawer {
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        position: fixed !important;
        z-index: 1300;
        overflow: auto;
    }
}

.tap-bounce {
    transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

    .tap-bounce:active {
        transform: scale(1.2);
    }

.tap-bounce-active {
    transform: scale(1.2);
}

.tap-bounce-release {
    animation: tap-bounce-release 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.tap-bounce-full {
    animation: bounceEffect 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes bounceEffect {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

.contenido-principal {
    background-color: var(--mud-palette-primary);
    color: white !important;
    padding-top: 40px;
    padding-bottom: 115px; /* Valor por defecto (móvil) */
}

@media (min-width: 768px) {
    .contenido-principal {
        padding-bottom: 40px;
    }
}

.nav-link-inicio {
    color: white !important;
    text-decoration: none !important;
    background-color: transparent !important;
    transition: color 0.3s ease, text-decoration 0.2s ease;
}

    .nav-link-inicio.mud-nav-link-active {
        color: var(--mud-palette-secondary) !important;
    }

.margin-responsive {
    margin-bottom: 100px;
}

@media (max-width: 768px) {
    .margin-responsive {
        margin-bottom: 150px;
    }
}

.margin-default {
    margin-bottom: 100px;
}

#components-reconnect-modal {
    display: none;
}

    #components-reconnect-modal.components-reconnect-show,
    #components-reconnect-modal.components-reconnect-failed {
        display: flex;
        position: fixed;
        inset: 0;
        background: rgba(255,255,255,0.9);
        z-index: 9999;
        justify-content: center;
        align-items: center;
    }

    #components-reconnect-modal .modal-content {
        background: white;
        padding: 2rem;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.2);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    #components-reconnect-modal.components-reconnect-show {
        animation: fadeIn 300ms ease-out forwards;
    }

    #components-reconnect-modal.components-reconnect-failed {
        animation: fadeIn 300ms ease-out forwards;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}