@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Open+Sans:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #3a3a3a;
    --secondary-color: #c8d5c4;
    --accent-color: #c85a3a;
    --accent-warm: #b8826f;
    --text-dark: #3a3a3a;
    --text-light: #636e72;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #c8d5c4;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    --font-header: 'Libre Baskerville', serif;
    --font-body: 'Open Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(58, 58, 58, 0.7), rgba(184, 130, 111, 0.5)), var(--hero-photo, url('/img/gallery/web/chata-v-lete.webp'));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-family: var(--font-header);
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1.2s ease;
}

.hero-location {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1.4s ease;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1.6s ease;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-warm);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--text-dark);
}

/* Sections */
.section {
    padding: 5rem 2rem;
}

.section-alt {
    background: var(--bg-light);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-header);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.section-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-dark);
    text-align: justify;
}

/* Gallery */
.gallery-section {
    padding: 5rem 2rem;
    background: #f5f4ef;
}

.gallery-eyebrow {
    text-align: center;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.gallery-section .section-title { margin-bottom: 1rem; }
.gallery-section .section-subtitle { max-width: 700px; margin: 0 auto 2.5rem; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 1.5rem;
}

.gallery-item { min-width: 0; }
.gallery-item-featured { grid-column: span 2; grid-row: span 2; }

.gallery-link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4 / 3;
    background: var(--secondary-color);
}

.gallery-item-featured .gallery-link { aspect-ratio: auto; height: calc(100% - 4.2rem); min-height: 300px; }
.gallery-link img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.gallery-link:hover img { transform: scale(1.03); }
.gallery-link:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 4px; }
.gallery-zoom { position: absolute; right: 0.75rem; bottom: 0.75rem; padding: 0.3rem 0.7rem; background: rgba(30, 35, 30, 0.85); color: white; border-radius: 4px; font-size: 0.8rem; }
.gallery-item figcaption { padding-top: 0.65rem; font-size: 0.95rem; line-height: 1.5; }
.gallery-category { display: block; color: var(--text-light); font-size: 0.75rem; margin-bottom: 0.2rem; }

.gallery-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(1100px, calc(100% - 2rem));
    max-height: calc(100dvh - 2rem);
    padding: 1rem;
    border: 0;
    border-radius: 10px;
    background: #202820;
    color: white;
}
.gallery-dialog::backdrop { background: rgba(0, 0, 0, 0.85); }
.gallery-dialog button { font: inherit; color: white; background: transparent; border: 1px solid #8d9b8d; padding: 0.5rem 0.8rem; border-radius: 5px; cursor: pointer; }
.gallery-dialog button:hover { background: #394639; }
.gallery-dialog button:focus-visible { outline: 3px solid var(--secondary-color); outline-offset: 3px; }
.gallery-close { display: block; margin: 0 0 0.75rem auto; }
.gallery-full-image { display: block; width: 100%; height: min(65dvh, 750px); object-fit: contain; }
.gallery-dialog figcaption { text-align: center; padding: 0.75rem 0; }
.gallery-controls { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
body:has(.gallery-dialog[open]) { overflow: hidden; }

@media (max-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery-item-featured { grid-row: auto; }
    .gallery-item-featured .gallery-link { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
}

@media (max-width: 600px) {
    .gallery-section { padding: 3rem 1rem; }
    .gallery-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .gallery-item-featured { grid-column: auto; }
    .gallery-item-featured .gallery-link { aspect-ratio: 4 / 3; }
    .gallery-dialog { width: calc(100% - 1rem); padding: 0.75rem; }
    .gallery-controls button { font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-link img { transition: none; }
}

/* Pricing */
.pricing-section {
    background: var(--bg-white);
}

.pricing-table {
    max-width: 1000px;
    margin: 3rem auto;
    overflow-x: auto;
}

.pricing-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: var(--shadow-md);
    border-radius: 12px;
    overflow: hidden;
}

.pricing-table thead {
    background: var(--primary-color);
    color: white;
}

.pricing-table th {
    padding: 1.5rem;
    text-align: left;
    font-family: var(--font-header);
    font-size: 1.1rem;
}

.pricing-table td {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.pricing-table tbody tr:hover {
    background: var(--bg-light);
}

.pricing-table tbody tr:last-child td {
    border-bottom: none;
}

.important-info {
    max-width: 1000px;
    margin: 3rem auto;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
}

.important-info h3 {
    font-family: var(--font-header);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.important-info ul {
    list-style: none;
    padding: 0;
}

.important-info li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.important-info li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.5rem;
}

/* Contact */
.contact-section {
    background: var(--bg-light);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.contact-item h3 {
    font-family: var(--font-header);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-item p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.contact-item a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-item a:hover {
    color: var(--accent-warm);
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 2rem;
    text-align: center;
}

.footer p {
    margin: 0;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        height: 80vh;
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-location {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .section {
        padding: 3rem 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-text {
        font-size: 1rem;
        text-align: left;
    }


    .pricing-table {
        font-size: 0.9rem;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 1rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

}

.hero-tagline {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.section-text + .section-text {
    margin-top: 1rem;
}

.contact-cta {
    margin: 1.5rem 0 2rem;
}
