/* Custom Styles for Xochimilco Vive */

:root {
    --color-primary: #F5811F;
    --color-secondary: #F5811F;
    --color-accent: #F5A623;
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';

    /* Light Theme */
    --light-bg: #FFF8E1;
    --light-text: #6D4C41;
    --light-shadow-1: #E0DACC;
    --light-shadow-2: #ffffff;

    /* Dark Theme */
    --dark-bg: #1a2c25;
    --dark-text: #F2EAD3; /* Warmer, brighter white for better contrast */
    --dark-shadow-1: #14221d;
    --dark-shadow-2: #20362d;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--light-bg);
    color: var(--light-text);
    transition: background-color 0.3s, color 0.3s;
}

.dark body {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.dark #services h3, .dark #glamping h3, .dark #trajineras h3 {
    color: var(--color-accent);
}

.neumorphic-outset {
    border-radius: 20px;
    background: var(--light-bg);
    box-shadow: 8px 8px 16px var(--light-shadow-1), -8px -8px 16px var(--light-shadow-2);
    transition: all 0.3s ease-in-out;
}

.dark .neumorphic-outset {
    background: var(--dark-bg);
    box-shadow: 8px 8px 16px var(--dark-shadow-1), -8px -8px 16px var(--dark-shadow-2);
}

.neumorphic-inset {
    border-radius: 12px;
    background: var(--light-bg);
    box-shadow: inset 4px 4px 8px var(--light-shadow-1), inset -4px -4px 8px var(--light-shadow-2);
}

.dark .neumorphic-inset {
    background: var(--dark-bg);
    box-shadow: inset 4px 4px 8px var(--dark-shadow-1), inset -4px -4px 8px var(--dark-shadow-2);
}

.neumorphic-button {
    border-radius: 50px;
    background: var(--light-bg);
    box-shadow: 5px 5px 10px var(--light-shadow-1), -5px -5px 10px var(--light-shadow-2);
    transition: all 0.2s ease-in-out;
}

.dark .neumorphic-button {
    background: var(--dark-bg);
    box-shadow: 5px 5px 10px var(--dark-shadow-1), -5px -5px 10px var(--dark-shadow-2);
}

.neumorphic-button:hover {
    transform: translateY(-2px);
}

.neumorphic-button:active {
    box-shadow: inset 3px 3px 6px var(--light-shadow-1), inset -3px -3px 6px var(--light-shadow-2);
    transform: translateY(1px);
}

.dark .neumorphic-button:active {
    box-shadow: inset 3px 3px 6px var(--dark-shadow-1), inset -3px -3px 6px var(--dark-shadow-2);
}

.form-input {
    appearance: none;
    border: none;
    outline: none;
    width: 100%;
    padding: 1rem;
    color: var(--light-text);
}

input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    filter: invert(0.5);
}

.dark input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

.dark .form-input {
    color: var(--dark-text);
}

.form-input:focus {
    box-shadow: inset 2px 2px 4px var(--light-shadow-1), inset -2px -2px 4px var(--light-shadow-2), 0 0 0 2px var(--color-secondary);
}

.dark .form-input:focus {
    box-shadow: inset 2px 2px 4px var(--dark-shadow-1), inset -2px -2px 4px var(--dark-shadow-2), 0 0 0 2px var(--color-secondary);
}

.fixed-header {
    background-color: rgba(255, 248, 225, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.dark .fixed-header {
    background-color: rgba(26, 44, 37, 0.7);
}

.hero-bg {
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.lang-en [data-lang-es], .lang-es [data-lang-en] {
    display: none;
}

.lang-es [data-lang-es], .lang-en [data-lang-en] {
    display: inline;
}

select.form-input option {
    background: var(--light-bg);
    color: var(--light-text);
}

.dark select.form-input option {
    background: var(--dark-bg);
    color: var(--dark-text);
}

/* Carousel Custom Styles */
.swiper-slide img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 1rem 1.5rem 1.5rem;
}

.faq-icon {
    transition: transform 0.3s ease-in-out;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

/* Bounce Animation for Floating CTA */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
