/* Custom Styles for INMELA SRL */
/* Tailwind CSS is loaded via CDN, this file contains additional customizations */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #005587;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #003d66;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
}

/* Accessibility improvements */
*:focus {
    outline: 2px solid #FFB800;
    outline-offset: 2px;
}

/* Custom utility classes */
.text-balance {
    text-wrap: balance;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Banner Animado Styles */
#animatedBanner {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#animatedBanner a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

#bannerProgress {
    transition: width 0.1s linear;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 0.5;
    }
}

/* Ajuste para que el contenido no quede oculto cuando el banner está visible */
body {
    transition: padding-top 0.3s ease;
}

/* Responsive adjustments para el banner */
@media (max-width: 640px) {
    #animatedBanner {
        font-size: 0.875rem;
    }
    
    #animatedBanner p {
        line-height: 1.4;
    }
}

/* Accordion Premium Styles */
.accordion-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.accordion-item:hover {
    border-color: #005587;
    box-shadow: 0 4px 12px rgba(0, 85, 135, 0.08);
    transform: translateY(-1px);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: #005587;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.accordion-header:hover {
    background-color: rgba(0, 85, 135, 0.02);
}

.accordion-header svg {
    transition: transform 0.3s ease;
    color: #FF6B35;
}

.accordion-item.active {
    border-color: #005587;
    box-shadow: 0 10px 15px -3px rgba(0, 85, 135, 0.1);
}

.accordion-item.active .accordion-header svg {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 24px;
    background-color: #fcfcfd;
}

.accordion-item.active .accordion-content {
    padding-bottom: 24px;
    border-top: 1px solid #f1f5f9;
}

/* Ciclo de Legalidad / Flujo metrologico */
.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.flow-steps::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.flow-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #005587;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 6px rgba(0, 85, 135, 0.2);
}

.flow-step:nth-child(even) .step-num {
    background: #FF6B35;
    box-shadow: 0 4px 6px rgba(255, 107, 53, 0.2);
}

.step-text {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    flex-grow: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.step-text h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #005587;
    margin-bottom: 6px;
}

.step-text p {
    font-size: 0.925rem;
    color: #4A5568;
    line-height: 1.5;
}

