:root {
    --beige: #FDF6F0;
    --green: #A8C0A0;
    --green-dark: #7A9E6F;
    --blue: #BFD4E7;
    --gray: #888888;
    --gray-light: #F5F0EB;
    --gray-dark: #4A4A4A;
    --text: #3A3A3A;
    --white: #FFFFFF;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
    --max-width: 1100px;
    --header-height: 140px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--beige);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--green-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--green);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.3;
    color: var(--gray-dark);
}

h1 { font-size: 1.8rem; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(253, 246, 240, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(168, 192, 160, 0.3);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    max-height: 120px;
    width: auto;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: var(--beige);
    padding: calc(var(--header-height) + 2rem) 2rem 2rem;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
}

.main-nav.open {
    right: 0;
}

.main-nav ul {
    list-style: none;
}

.main-nav li {
    margin-bottom: 1rem;
}

.main-nav a {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--gray-dark);
    padding: 0.5rem 0;
    display: block;
    border-bottom: 1px solid rgba(168, 192, 160, 0.2);
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--green-dark);
    border-bottom-color: var(--green);
}

.site-main {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

.hero {
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--beige) 0%, var(--gray-light) 100%);
}

.hero-deco-moon {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 60px;
    height: 60px;
    opacity: 0.08;
    pointer-events: none;
}

.hero-deco-star {
    position: absolute;
    opacity: 0.07;
    pointer-events: none;
}

.hero-deco-star-1 {
    top: 40px;
    left: 10%;
    width: 20px;
}

.hero-deco-star-2 {
    top: 15%;
    right: 20%;
    width: 14px;
}

.hero-deco-star-3 {
    bottom: 20%;
    left: 15%;
    width: 18px;
}

.hero-deco-star-4 {
    bottom: 30%;
    right: 8%;
    width: 12px;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 560px;
}

.hero-text h1 {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.5;
    margin: 0 auto 1.2rem;
    color: var(--gray-dark);
}

.hero-text h1 strong {
    font-weight: 500;
}

.hero-text .subtitle {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--green-dark);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.hero-text .tagline {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 1.8rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.hero-image {
    flex-shrink: 0;
    max-width: 320px;
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: -8px;
    border: 2px solid rgba(168, 192, 160, 0.2);
    border-radius: 20px;
    pointer-events: none;
}

.wave-separator {
    display: block;
    width: 100%;
    height: auto;
    line-height: 0;
    margin-top: -1px;
}

.wave-separator svg {
    display: block;
    width: 100%;
    height: 40px;
}

.wave-separator.wave-flip {
    transform: scaleY(-1);
    margin-top: 0;
    margin-bottom: -1px;
}

.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.7rem 1.6rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    border: none;
}

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

.btn-primary:hover {
    background: var(--green-dark);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--green-dark);
    border: 1.5px solid var(--green);
}

.btn-outline:hover {
    background: var(--green);
    color: var(--white);
}

.section {
    padding: 3rem 0;
    position: relative;
}

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

.section-beige {
    background: var(--beige);
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--gray);
    font-size: 0.95rem;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
}

.card-image {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-body {
    padding: 1.5rem 1.8rem 1.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-body h3 {
    font-weight: 500;
    margin-bottom: 0.6rem;
    color: var(--green-dark);
}

.card-body p {
    font-size: 0.93rem;
    color: var(--gray);
    margin-bottom: 1rem;
    flex: 1;
}

.card-body .btn {
    align-self: flex-start;
}

.page-content {
    padding: 3rem 0;
    position: relative;
}

.page-content .content-wrapper {
    max-width: 750px;
    margin: 0 auto;
}

.page-header-deco {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.page-header-deco h1 {
    font-weight: 300;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.page-header-deco .page-subtitle {
    color: var(--green-dark);
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.page-header-deco .deco-illustration {
    max-width: 200px;
    margin: 0 auto 1rem;
    opacity: 0.7;
}

.page-content h2 {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--green-dark);
    margin-top: 2.5rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(168, 192, 160, 0.3);
}

.page-content p {
    margin-bottom: 1rem;
}

.page-content ul {
    margin: 1rem 0 1rem 1.5rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

.page-content blockquote {
    border-left: 3px solid var(--green);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(168, 192, 160, 0.08);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--gray-dark);
}

.cta-box {
    text-align: center;
    padding: 2.5rem;
    margin-top: 3rem;
    background: linear-gradient(135deg, rgba(168, 192, 160, 0.15), rgba(191, 212, 231, 0.15));
    border-radius: 16px;
    position: relative;
}

.cta-box p {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    color: var(--gray-dark);
}

.deco-bombilla {
    display: block;
    margin: 0 auto 1rem;
    width: 36px;
    opacity: 0.15;
}

.gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.gallery-tab {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    padding: 0.5rem 1.2rem;
    border: 1.5px solid var(--green);
    border-radius: 25px;
    background: transparent;
    color: var(--green-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-tab:hover,
.gallery-tab.active {
    background: var(--green);
    color: var(--white);
}

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

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
}

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

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

.gallery-panel {
    display: none;
}

.gallery-panel.active {
    display: block;
}

.gallery-empty {
    text-align: center;
    color: var(--gray);
    padding: 2rem;
    font-style: italic;
}

.blog-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
}

.blog-card-body {
    padding: 1.5rem;
}

.blog-card h3 {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.blog-card .blog-date {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 0.8rem;
}

.blog-card p {
    font-size: 0.93rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.blog-entry {
    max-width: 750px;
    margin: 0 auto;
}

.blog-entry h1 {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 0.3rem;
}

.blog-entry .blog-meta {
    text-align: center;
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.blog-entry h2 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--green-dark);
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

.blog-entry p {
    margin-bottom: 1rem;
}

.contact-form {
    max-width: 550px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--gray-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid rgba(168, 192, 160, 0.4);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--white);
    color: var(--text);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--green);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-info {
    max-width: 550px;
    margin: 2rem auto 0;
    text-align: center;
}

.contact-info p {
    color: var(--gray);
    font-size: 0.95rem;
}

.site-footer {
    background: var(--gray-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 1.5rem;
    position: relative;
    overflow: hidden;
}

.footer-deco-moon {
    position: absolute;
    top: 20px;
    right: 40px;
    width: 50px;
    opacity: 0.06;
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.footer-col p {
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.3rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--green);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
}

.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    transition: opacity 0.3s ease;
    opacity: 0.7;
    z-index: 2001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
}

.lightbox-close {
    top: 0;
    right: 0;
    font-size: 2.5rem;
}

.lightbox-prev {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-caption {
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    padding: 1rem;
    text-align: center;
}

.divider {
    width: 60px;
    height: 2px;
    background: var(--green);
    margin: 1.5rem auto;
    border-radius: 1px;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
}

.features-list {
    list-style: none;
    margin: 1rem 0;
}

.features-list li {
    padding: 0.4rem 0 0.4rem 1.8rem;
    position: relative;
}

.features-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--green);
    border-radius: 50%;
    opacity: 0.6;
}

.section-deco-stars {
    position: absolute;
    pointer-events: none;
    opacity: 0.06;
}

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

    h1 { font-size: 2rem; }
    .hero-text h1 { font-size: 1.8rem; }
}

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

    .blog-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }

    h1 { font-size: 2.2rem; }
    .hero-text h1 { font-size: 2rem; }
    .hero { padding: 4rem 0; }
    .section { padding: 4rem 0; }
    .page-content { padding: 4rem 0; }

    .hero-inner {
        flex-direction: row;
        text-align: left;
        align-items: center;
    }

    .hero-text {
        flex: 1;
    }

    .hero-text h1 {
        margin: 0 0 1.2rem 0;
    }

    .hero-image {
        flex: 0 0 320px;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .page-header-deco h1 { font-size: 2rem; }
}

@media (min-width: 992px) {
    .menu-toggle {
        display: none;
    }

    .main-nav {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        box-shadow: none;
        flex: 1;
        margin-left: 1.5rem;
    }

    .main-nav ul {
        display: flex;
        gap: 0.3rem;
        justify-content: flex-end;
    }

    .main-nav li {
        margin-bottom: 0;
    }

    .main-nav a {
        font-size: 0.82rem;
        padding: 0.4rem 0.65rem;
        border-bottom: 2px solid transparent;
        white-space: nowrap;
    }

    .main-nav a:hover,
    .main-nav a.active {
        border-bottom-color: var(--green);
    }

    .gallery {
        grid-template-columns: repeat(var(--cols, 4), 1fr);
        gap: 1rem;
    }

    .hero-image {
        flex: 0 0 360px;
    }

    .hero-text h1 { font-size: 2.2rem; }

    h1 { font-size: 2.5rem; }
    .page-header-deco h1 { font-size: 2.2rem; }

    .wave-separator svg {
        height: 50px;
    }
}

@media (min-width: 1200px) {
    .blog-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .main-nav a {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
    }

    .main-nav ul {
        gap: 0.4rem;
    }

    .hero-image {
        flex: 0 0 400px;
    }
}
