/* ===================================
   Cámara Gastronómica de Caracas Miranda
   Custom Styles - Modern & Elegant
   =================================== */

/* ============ Base Styles ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0d2b25;
    --secondary: #2E4F46;
    --accent: #044508;
    --accent-light: #0a4a26;
    --sand: #F3F0EB;
    --gray-olive: #9BA39C;
    --gray-charcoal: #1E1E1E;
    --white: #FFFFFF;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--gray-charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============ Custom Scrollbar ============ */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--sand);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}

/* ============ Header Scroll Effect ============ */
#header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
}

/* ============ Hero Section ============ */
#hero {
    position: relative;
}

#hero img {
    animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* ============ Swiper Customization ============ */
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-pagination-bullet {
    background: var(--accent) !important;
    opacity: 0.5;
    transform: translateY(10px);
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
    transform: scale(1.2);
    transform: translateY(10px);
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--accent-light) !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: var(--accent) !important;
}

/* ============ FAQ Accordion ============ */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px !important;
    padding-top: 0.5rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-question {
    cursor: pointer;
    user-select: none;
}

.faq-question:hover {
    background-color: rgba(198, 161, 91, 0.05);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

/* ============ Animations ============ */

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

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

/* Pulse */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-pulse-slow {
    animation: pulse 3s ease-in-out infinite;
}

/* Float */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Bounce Arrow */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

.animate-bounce {
    animation: bounce 2s ease-in-out infinite;
}

/* Gradient Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.bg-gradient-animated {
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

/* ============ Hover Effects ============ */

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

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

/* Button Glow */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-glow:hover::before {
    width: 300px;
    height: 300px;
}

/* Image Overlay */
.img-overlay {
    position: relative;
    overflow: hidden;
}

.img-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(97, 97, 15, 0.3), rgba(7, 42, 9, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.img-overlay:hover::after {
    opacity: 1;
}

/* ============ Glass Morphism ============ */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============ Gradient Text ============ */
.text-gradient {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============ Custom Shapes ============ */

/* Diagonal Section */
.diagonal-section {
    position: relative;
}

.diagonal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: inherit;
    transform: skewY(-2deg);
    transform-origin: top left;
}

/* Wave Section */
.wave-section {
    position: relative;
}

.wave-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23F3F0EB'%3E%3C/path%3E%3C/svg%3E") no-repeat;
    background-size: cover;
}

/* ============ Loading Animation ============ */
.loader {
    border: 4px solid var(--sand);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============ Form Styles ============ */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--gray-olive);
    opacity: 0.6;
}

/* Custom File Input */
input[type="file"]::file-selector-button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

input[type="file"]::file-selector-button:hover {
    background: var(--accent-light);
}

/* ============ Utility Classes ============ */

/* Shadows */
.shadow-soft {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.shadow-strong {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Borders */
.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--accent), var(--accent-light)) 1;
}

/* Text Shadows */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Backdrop Blur */
.backdrop-blur {
    backdrop-filter: blur(10px);
}

/* ============ Responsive Utilities ============ */

/* Hide on mobile */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

/* Hide on desktop */
@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* ============ Print Styles ============ */
@media print {
    header,
    footer,
    .no-print {
        display: none !important;
    }
}

/* ============ Accessibility ============ */

/* Focus Visible */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --accent: #0a3106;
        --primary: #000000;
        --gray-charcoal: #000000;
    }
}

/* ============ Custom Selections ============ */
::selection {
    background: var(--accent);
    color: white;
}

::-moz-selection {
    background: var(--accent);
    color: white;
}

/* ============ Image Optimization ============ */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lazy Loading Placeholder */
img[loading="lazy"] {
    background: var(--sand);
}

/* ============ Performance Optimizations ============ */

/* GPU Acceleration */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* Prevent Layout Shift */
.aspect-ratio-box {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.aspect-ratio-box > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============ Dark Mode Support (Future) ============ */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode */
    /*
    :root {
        --primary: #F3F0EB;
        --secondary: #D4B578;
        --accent: #C6A15B;
        --sand: #1E1E1E;
        --gray-charcoal: #F3F0EB;
    }
    */
}
