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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0f0f1a; /* Fondo muy oscuro */
    background-image: 
        radial-gradient(at 0% 0%, rgba(124, 58, 237, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
    color: #e0e0e0;
}

/* Panel estilo cristal (Glassmorphism) */
.glass-panel {
    background: rgba(30, 30, 40, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Inputs personalizados */
.input-field {
    width: 100%;
    padding: 12px 16px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    outline: none;
    transition: all 0.3s ease;
}

.input-field:focus {
    border-color: #a855f7; /* Purple 500 */
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2);
}

.input-select {
    width: 100%;
    padding: 10px;
    background-color: #1f2937;
    border: 1px solid #374151;
    border-radius: 8px;
    color: white;
    outline: none;
}

.label-text {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 4px;
    display: block;
    font-weight: 600;
}

/* Botón Principal */
.btn-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
    color: white;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary:active {
    transform: scale(0.98);
}

/* Efecto de Carta 3D (Flip Card) */
.card-reveal {
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efecto rebote suave */
    transform-style: preserve-3d;
}

/* Clase que activa el giro */
.flipped {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    overflow: hidden;
}

.card-back {
    transform: rotateY(180deg);
}

.transform-style-3d {
    transform-style: preserve-3d;
}

.backface-hidden {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.rotate-y-180 {
    transform: rotateY(180deg);
}

/* Animaciones */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

.loader {
    border: 3px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    border-top: 3px solid #a855f7;
    width: 24px;
    height: 24px;
    -webkit-animation: spin 1s linear infinite; /* Safari */
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-pulse-border {
    animation: pulseBorder 2s infinite;
}

@keyframes pulseBorder {
    0% { border-color: rgba(234, 179, 8, 0.3); box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.2); }
    50% { border-color: rgba(234, 179, 8, 0.8); box-shadow: 0 0 10px 0 rgba(234, 179, 8, 0.2); }
    100% { border-color: rgba(234, 179, 8, 0.3); box-shadow: 0 0 0 0 rgba(234, 179, 8, 0); }
}

/* Utilidades extra */
.hidden { display: none !important; }