/* ============================================
   KRAV MAGA PARA TODOS - Custom Styles
   ============================================ */

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Lexend', sans-serif;
    margin: 0;
    padding: 0;
}

/* Material Icons Configuration */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

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

/* Hover Scale Effect */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* Image Grayscale Hover Effect */
.grayscale-hover {
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.grayscale-hover:hover {
    filter: grayscale(0%);
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* Button Styles */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: #135bec;
    color: white;
    font-weight: 700;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 700;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Timeline Styles */
.timeline-line {
    position: relative;
    border-left: 4px solid rgba(19, 91, 236, 0.2);
    margin-left: 1rem;
}

.timeline-dot {
    position: absolute;
    left: -10px;
    width: 20px;
    height: 20px;
    background-color: #135bec;
    border-radius: 50%;
    border: 4px solid white;
}

/* Belt System Styles */
.belt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.belt-item {
    width: 4rem;
    height: 6rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    position: relative;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 0.5rem;
}

.belt-item::after {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.1);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    filter: brightness(0.75);
}

/* Featured Gallery Item */
.gallery-featured {
    grid-row: span 2;
    grid-column: span 2;
}

/* Testimonial Card */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid #f0f0f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Quote Icon */
.quote-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 3rem;
    opacity: 0.1;
    color: #135bec;
}

/* Map Container */
.map-container {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    min-height: 400px;
}

.map-container iframe {
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.map-container:hover iframe {
    filter: grayscale(0%);
}

/* Info Card Overlay */
.map-info-card {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #135bec;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(19, 91, 236, 0.4);
    border: none;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(19, 91, 236, 0.5);
}

/* Print Styles */
@media print {
    header, footer, .scroll-to-top {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Dark Mode Helpers */
@media (prefers-color-scheme: dark) {
    .testimonial-card {
        background: #1a2130;
        border-color: #374151;
    }
    
    .timeline-dot {
        border-color: #101622;
    }
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
}

/* Loading Animation */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 3px solid #e7ebf3;
    border-top-color: #135bec;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
