/* =====================
   SHCQAMPO Website Styles
   ===================== */

/* Base styles */
body {
    font-family: 'Inter', sans-serif;
}

/* Custom gradient backgrounds */
.green-gradient {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
}

.hero-bg {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 50%, #86efac 100%);
}

.section-bg {
    background: linear-gradient(to bottom, #f0fdf4, #dcfce7);
}

.dark-footer {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
}

/* Interactive elements */
.card-hover:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.btn-green {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    border: none;
    transition: all 0.3s ease;
}

.btn-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

/* Typography */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Gallery styles */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Circular progress styles */
.circular-progress {
    position: relative;
    width: 200px;
    height: 200px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
}

.progress-bg {
    stroke: #e5e7eb;
}

.progress-fill {
    stroke: #1e3a8a; /* azul oscuro */
    stroke-dasharray: 628;
    stroke-dashoffset: 188;
    transition: stroke-dashoffset 0.3s ease;
}

/* Search tags hover effect */
.search-tag {
    transition: all 0.3s ease;
}

.search-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

/* Form input focus effects */
input:focus, 
textarea:focus, 
select:focus {
    outline: none;
    kerning: 2px solid #22c55e;
    border-color: transparent;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-bg h1 {
        font-size: 2.5rem;
    }
    
    .circular-progress {
        width: 150px;
        height: 150px;
    }
    
    .gallery-item {
        margin-bottom: 1rem;
    }
}

@media (max-width: 640px) {
    .hero-bg h1 {
        font-size: 2rem;
    }
    
    .hero-bg p {
        font-size: 1.125rem;
    }
    
    .grid {
        gap: 1rem;
    }
}

/* Animation for scroll reveal */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.6s ease forwards;
}

/* Loading state for images */
img {
    transition: opacity 0.3s ease;
}

img[src*="keys/"] {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #16a34a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #22c55e;
}

/* Focus states for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
}

/* Maintenance page specific styles */
.progress-bar-animate {
    transition: width 0.3s ease-in-out;
}

.maintenance-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.maintenance-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.maintenance-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.maintenance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.pulse-ring {
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Progress bar animation */
.progress-bar-animate {
    background: linear-gradient(
        90deg,
        #16a34a 0%,
        #22c55e 25%,
        #16a34a 50%,
        #22c55e 75%,
        #16a34a 100%
    );
    background-size: 200% 100%;
    animation: progress-shimmer 2s infinite;
}

@keyframes progress-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Print styles */
@media print {
    .sticky {
        position: static;
    }
    
    .shadow-md,
    .shadow-lg,
    .shadow-xl {
        box-shadow: none;
    }
    
    .bg-gradient-to-r,
    .bg-gradient-to-b,
    .green-gradient,
    .hero-bg,
    .section-bg,
    .dark-footer {
        background: #ffffff !important;
        color: #000000 !important;
    }
}