:root {
    --background: 43 55% 96%;
    --foreground: 25 24% 16%;
    --card: 43 55% 98%;
    --card-foreground: 25 24% 16%;
    --popover: 43 55% 99%;
    --popover-foreground: 25 24% 16%;
    --primary: 155 26% 20%;
    --primary-foreground: 43 55% 98%;
    --secondary: 40 30% 92%;
    --secondary-foreground: 25 24% 16%;
    --muted: 40 25% 90%;
    --muted-foreground: 25 14% 34%;
    --accent: 25 55% 56%;
    --accent-foreground: 43 55% 98%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --border: 40 18% 82%;
    --input: 40 18% 82%;
    --ring: 155 26% 20%;
    --radius: 0.5rem;
    --button: 135 22% 74%;
    --button-foreground: 25 24% 16%;
    --active-indicator: 155 28% 44%;
    --active-indicator-foreground: 43 55% 98%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
}

body.page-cabanas,
body.page-transporte,
body.page-reserva {
    --card: 40 20% 90%;
    --muted-foreground: 25 14% 32%;
}

body.page-admin > section.section > .container > .card {
    background: hsl(var(--secondary));
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navbar */
.navbar {
    background: hsl(var(--primary));
    border-bottom: none;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--primary-foreground));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: hsl(var(--primary-foreground));
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a.is-active {
    background: hsl(var(--active-indicator));
    color: hsl(var(--active-indicator-foreground)) !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
}

.nav-links a.is-active:hover {
    opacity: 0.9;
}

.btn-contact {
    background: transparent;
    color: hsl(var(--primary-foreground)) !important;
    padding: 0;
    border-radius: 0;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero */
.hero {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/PasoPehuenche.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 60px;
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Section */
.section {
    padding: 4rem 0;
}

html {
    scroll-padding-top: 110px;
}

#contacto {
    scroll-margin-top: 110px;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Grid */
.grid-cols-1 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media(min-width: 768px) {
    .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Card Styles */
.card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    overflow: hidden;
    transition: shadow 0.3s;
}

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

.card-img-wrapper {
    height: 200px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    color: hsl(var(--muted-foreground));
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.price {
    font-weight: 600;
    font-size: 1.1rem;
}

.btn-card {
    background: transparent;
    border: 1px solid hsl(var(--border));
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-card:hover {
    background: hsl(var(--secondary));
}

/* Details Modal & Carousel */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.details-modal-content {
    background: hsl(var(--background));
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: hsl(var(--muted-foreground));
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 60vh;
    max-height: 720px;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.carousel-slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

#prev-slide, #next-slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10;
}

#prev-slide { left: 1rem; }
#next-slide { right: 1rem; }

#carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: white;
}

/* Form Elements (Shared with Reserva) */
.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background: hsl(var(--popover));
    font-family: inherit;
    margin-top: 0.25rem;
}

.form-group {
    margin-bottom: 1rem;
}

.btn-primary {
    background: hsl(var(--button));
    color: hsl(var(--button-foreground));
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-primary.is-selected {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    opacity: 1 !important;
}

.btn-primary.is-selected:hover {
    opacity: 0.95;
}

/* Footer */
footer {
    background: hsl(var(--primary));
    padding: 1.25rem 0;
    margin-top: 2rem;
    text-align: center;
    color: hsl(var(--primary-foreground));
}

footer .grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
}

footer .grid > div {
    white-space: nowrap;
}

footer p {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    opacity: 0.95;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: hsl(var(--primary));
        flex-direction: column;
        padding: 1rem 0;
        text-align: center;
        gap: 1rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        color: hsl(var(--primary-foreground));
    }

    .hero-content h2 {
        font-size: 2rem;
    }
}

/* --- Utilities (Tailwind-like) --- */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:h-96 { height: 24rem; }
}

.w-full { width: 100%; }
.h-full { height: 100%; }
.h-64 { height: 16rem; }

.relative { position: relative; }
.absolute { position: absolute; }
.top-1\/2 { top: 50%; }
.left-2 { left: 0.5rem; }
.right-2 { right: 0.5rem; }
.bottom-4 { bottom: 1rem; }
.-translate-y-1\/2 { transform: translateY(-50%); }
.-translate-x-1\/2 { transform: translateX(-50%); }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.bg-primary { background-color: hsl(var(--primary)); }
.bg-secondary { background-color: hsl(var(--secondary)); }
.bg-gray-100 { background-color: hsl(var(--secondary)); }
.bg-gray-200 { background-color: hsl(var(--muted)); }
.bg-gray-300 { background-color: hsl(var(--border)); }
.bg-blue-50 { background-color: hsl(var(--secondary)); }
.bg-blue-200 { background-color: hsl(var(--button)); }
.bg-black\/50 { background-color: rgba(0, 0, 0, 0.5); }
.hover\:bg-black\/70:hover { background-color: rgba(0, 0, 0, 0.7); }
.hover\:bg-primary:hover { background-color: hsl(var(--primary)); }

.text-white { color: white; }
.text-primary { color: hsl(var(--primary)); }
.text-gray-500 { color: #6b7280; }
.text-gray-700 { color: #374151; }
.text-blue-900 { color: hsl(var(--primary)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.hover\:text-white:hover { color: white; }

.border-blue-200 { border-color: hsl(var(--border)); }
.border-blue-900 { border-color: hsl(var(--primary)); }

.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.rounded-md { border-radius: 0.375rem; }

.overflow-hidden { overflow: hidden; }
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-500 { transition-duration: 500ms; }
.transition-colors { transition-property: background-color, border-color, color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

.line-through { text-decoration: line-through; }
.opacity-50 { opacity: 0.5; }
.block { display: block; }
.hidden { display: none; }

/* Calendar Specific Overrides */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}
.calendar-day-header {
    font-weight: 600;
    text-align: center;
    padding: 0.5rem 0;
}
.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Custom Category Selection */
.category-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.category-card {
    background: hsl(var(--card));
    border: 2px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: hsl(var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.category-card.selected {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
}

.category-card.selected p {
    color: hsl(var(--primary-foreground));
    opacity: 0.9;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: hsl(var(--primary));
}

.category-card.selected .category-icon {
    color: hsl(var(--primary-foreground));
}

/* Navbar Button */
.btn-nav-reserve {
    background: transparent;
    color: hsl(var(--primary-foreground)) !important;
    padding: 0;
    border-radius: 0;
    font-weight: 500;
    transition: color 0.2s;
}

.btn-nav-reserve:hover {
    color: #ffffff !important;
}

/* Utilities */
.hidden-initially {
    display: none !important;
}

/* Animations */

/* Floating WhatsApp */
.float-wsp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.float-wsp:hover {
    transform: scale(1.1);
}
