/* Estilos base y variables */
@layer base {

    html,
    body {
        @apply overflow-x-hidden;
    }
}

body {
    margin: 0;
    font-family: 'Roboto', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background-color: #EEE6DE;
    overflow-x: hidden;
}


/* Comportamiento de desplazamiento suave */
html {
    scroll-behavior: smooth;
}

/* Efectos de Scroll Reveal emulando Framer Motion */
.reveal {
    transition: all 0.8s cubic-bezier(0.21, 0.47, 0.32, 0.98);
}

.reveal-up {
    opacity: 0;
    transform: translateY(60px);
}

.reveal-left {
    opacity: 0;
    transform: translateX(60px);
}

.reveal-right {
    opacity: 0;
    transform: translateX(-60px);
}

.reveal-active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Retrasos para emular el atributo `delay` de Framer Motion */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

.delay-500 {
    transition-delay: 500ms;
}

.delay-600 {
    transition-delay: 600ms;
}

/* Carrusel Infinito (Animación puramente CSS) */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll {
    display: flex;
    width: max-content;
    animation: scroll 20s linear infinite;
}

/* Fondo del Hero Section fijo para Parallax básico */
.bg-hero {
    background-image: url('src/assets/images/8d14949b428e0340b75cfda2de12b207f0d5677d.png');
    background-color: #222;
    /* Fallback si la imagen no existe */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Fondo de Parallax en la sección Nosotros */
.bg-parallax {
    background-image: url('src/assets/images/aaea2a277f13146ed27202ef995e14622a25601f.png');
    background-color: #555;
    /* Fallback */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Ocultar scrollbar si el usuario no lo desea */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #EEE6DE;
}

::-webkit-scrollbar-thumb {
    background: #36483C;
    border-radius: 4px;
}

/* Dashboard y Autenticación */
/*#login-container {
    background-image: url('src/assets/images/8d14949b428e0340b75cfda2de12b207f0d5677d.png');
    background-color: #36483C;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: overlay;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 40;
}*/
#login-container {
    display: flex;
    justify-content: center;
}

#login-container > * {
    position: fixed;
    z-index: 1;
}

#dashboard-container {
    min-height: calc(100vh - 100px);
    display: none; /* Oculto por defecto */
}

/* Animación fade-in para el dashboard */
#dashboard-container.hidden {
    display: none !important;
}

#dashboard-container:not(.hidden) {
    display: block !important; /* Mostrar cuando NO tiene .hidden */
}

#login-container.hidden {
    display: none !important;
}

#login-container:not(.hidden) {
    display: block !important; /* Mostrar cuando NO tiene .hidden */
}

/* Estilos para tarjetas de apps */
.bg-white {
    background-color: #ffffff;
}

/* Input focus styling */
input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(54, 72, 60, 0.1);
}

textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(54, 72, 60, 0.1);
}

/* Respuesta de botones */
button {
    transition: all 0.3s ease;
}

button:active {
    transform: scale(0.98);
}

/* Animación para el contenedor de login */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-up:not(.reveal-active) {
    animation: none;
}

/* Grid responsive para aplicaciones */
@media (max-width: 640px) {
    #apps-grid {
        grid-template-columns: 1fr;
    }
}

/* Overlay para modales */
.bg-black/80 {
    background-color: rgba(0, 0, 0, 0.8);
}