/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fadeInUp.delay-100 {
    animation-delay: 0.1s;
}

.animate-fadeInUp.delay-200 {
    animation-delay: 0.2s;
}

.animate-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Modo oscuro mejorado */
.dark {
    --tw-bg-opacity: 1;
    --tw-text-opacity: 1;
}

.dark .text-gray-300 {
    color: rgba(209, 213, 219, var(--tw-text-opacity));
}

.dark .text-gray-200 {
    color: rgba(229, 231, 235, var(--tw-text-opacity));
}

.dark .bg-gray-800 {
    background-color: rgba(30, 41, 59, var(--tw-bg-opacity));
}

.dark .bg-gray-700 {
    background-color: rgba(51, 65, 85, var(--tw-bg-opacity));
}

.dark .bg-opacity-10 {
    background-color: rgba(30, 41, 59, 0.7);
}

/* Botón flotante */
#back-to-top {
    transition: all 0.3s ease;
}

#back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

#back-to-top.hide {
    opacity: 0;
    transform: translateY(100px);
    pointer-events: none;
}

/* Efecto admin button */
.admin-btn {
    position: relative;
    overflow: hidden;
}

.admin-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.admin-btn:hover::after {
    left: 100%;
}
html {
    scroll-behavior: smooth;
}

/* Mejora las animaciones existentes */
.animate-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Efecto de desvanecimiento para secciones */
section {
    transition: all 0.5s ease;
}

/* Efecto de hover para enlaces de navegación */
nav a {
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ff7d00;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.dark nav a::after {
    background-color: #fb923c;
}
    /* Nuevos estilos mejorados para el slider */
.slider-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slider-slide.active {
    opacity: 1;
    z-index: 2;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.slider-dot.active {
    background-color: #ff7d00; /* Color naranja del tema */
    transform: scale(1.2);
    box-shadow: 0 0 5px rgba(255, 125, 0, 0.7);
}