/* Estilos minimalistas y modulares para Valpoeira */
body {
    font-family: 'Cairo', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* Navbar */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo h2 {
    color: #198410;
    margin: 0;
    font-size: 1.8em;
}

.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu a {
    color: #000000;
    text-decoration: none;
    padding: 10px;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #198410;
}

.nav-menu a.active::after {
    content: '';
    display: block;
    height: 3px;
    background-color: #198410;
    margin-top: 5px;
}

.burger {
    position: relative;
    width: 35px;
    height: 25px;
    background: transparent;
    cursor: pointer;
    display: none;
}

.burger input {
    display: none;
}

.burger span {
    display: block;
    position: absolute;
    height: 4px;
    width: 100%;
    background: #198410;
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.burger span:nth-of-type(1) {
    top: 0px;
    transform-origin: left center;
}

.burger span:nth-of-type(2) {
    top: 50%;
    transform: translateY(-50%);
    transform-origin: left center;
}

.burger span:nth-of-type(3) {
    top: 100%;
    transform-origin: left center;
    transform: translateY(-100%);
}

.burger input:checked ~ span:nth-of-type(1) {
    transform: rotate(45deg);
    top: 0px;
    left: 4px;
}

.burger input:checked ~ span:nth-of-type(2) {
    width: 0%;
    opacity: 0;
}

.burger input:checked ~ span:nth-of-type(3) {
    transform: rotate(-45deg);
    top: 23px;
    left: 4px;
}

.nav-menu a {
    color: #000000;
    text-decoration: none;
    padding: 15px 0;
    display: block;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #198410;
}

.nav-menu a.active {
    color: #198410;
    font-weight: bold;
    position: relative;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #198410;
}

.nav-lang button {
    background: #ffffff;
    border: 2px solid #198410;
    color: #198410;
    padding: 10px 15px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-lang button.active {
    background-color: #198410;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-lang button:hover {
    background-color: #198410;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-lang-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.nav-lang-mobile button {
    background: #ffffff;
    border: 2px solid #198410;
    color: #198410;
    padding: 10px 15px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-lang-mobile button.active {
    background-color: #198410;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

    .nav-lang-mobile button:hover {
        background-color: #198410;
        color: #ffffff;
        transform: scale(1.1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

/* Desktop styles */
@media (min-width: 769px) {
    .nav-menu {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        background-color: transparent;
        box-shadow: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        padding: 0;
        width: auto;
        left: auto;
        top: auto;
        justify-content: center;
    }
    .nav-menu li {
        margin: 0 15px;
    }
    .nav-menu li a {
        color: #333333;
        text-decoration: none;
        font-weight: 400;
        transition: color 0.3s ease;
    }
    .nav-menu li a:hover {
        color: #145a0a;
    }
    .nav-lang-mobile {
        margin-left: 20px;
        margin-top: 0;
        display: flex;
    }
    .burger {
        display: none;
    }
}/* Hero */
.hero {
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 20px;
}

.hero-container {
    text-align: center;
    margin-bottom: 40px;
}

.hero-logo {
    width: 400px;
    height: auto;
    animation: fadeIn 1s ease-out;
}

.hero-title {
    color: #656565;
    font-size: 3em;
    margin: 20px 0;
    animation: fadeIn 1.5s ease-out;
}

.hero-subtitle {
    color: #000000;
    font-size: 1.2em;
    animation: fadeIn 2s ease-out;
}

.hero-image {
    width: 100%;
    max-width: 100%;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    animation: slideUp 2.5s ease-out;
}

/* Secciones generales */
.section {
    padding: 60px 20px;
    background-color: #ffffff;
    color: #000000;
}

.section.alt {
    background-color: #ffffff;
    color: #000000;
}

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

.section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #198410;
}

.section p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.section-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.section-img {
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    flex-shrink: 0;
    animation: fadeInRight 1s ease-out;
}

.section-img-side {
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    flex-shrink: 0;
    animation: fadeInRight 1s ease-out;
}

.text {
    flex: 1;
    min-width: 300px;
    animation: fadeInLeft 1s ease-out;
}

/* Contacto */
.contact {
    padding: 60px 20px;
    background-color: #ffffff;
    color: #000000;
    text-align: center;
}

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

.contact h2 {
    margin-bottom: 20px;
    color: #198410;
}

.contact p {
    margin-bottom: 30px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-btn {
    color: #000000;
    text-decoration: none;
    padding: 12px 24px;
    background-color: #ffffff;
    border: 2px solid #198410;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-btn:hover {
    background-color: #198410;
    color: #ffffff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.contact-btn:hover .icon {
    transform: rotate(5deg);
}

/* Footer */
.footer {
    background-color: #000000;
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
}

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

.footer p {
    margin: 0;
}

/* Galería */
.gallery {
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 20px;
}

.gallery .containergallery {
    text-align: center;
    margin-bottom: 40px;
}


.gallery-img {
    width: 100%;
    max-width: 100%;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    animation: slideUp 2.5s ease-out;
}


/* Grid de galería */
.gallery-grid {
    padding: 40px 20px;
    background-color: #ffffff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gallery-item {
    width: 100%;
    height: 50%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.right-column {
    display: flex;
    align-items: center;
}

.gallery-square {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        position: relative;
        justify-content: space-between;
    }
    .nav-logo {
        flex: 1;
        text-align: center;
    }
    .nav-logo h2 {
        font-size: 1.2em;
    }
    .nav-lang {
        display: none !important;
    }
    .burger {
        display: block;
    }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-menu li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }
    .nav-menu a {
        display: block;
        padding: 15px;
        width: 100%;
        text-align: center;
    }
    .hero {
        min-height: auto;
    }
    .gallery {
        min-height: auto;
        padding: 20px 20px 20px;
    }
    .hero-logo {
        width: 100%;
        max-width: 300px;
    }
    .hero-title {
        font-size: 2em;
    }
    .hero-subtitle {
        text-align: center;
    }
    .hero-image {
        max-width: 100%;
        height: auto;
    }
    .photos {
        flex-direction: column;
        align-items: center;
    }
    .photo {
        width: 100%;
        max-width: 300px;
    }
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .left-column,
    .right-column {
        gap: 15px;
    }
    .gallery-item,
    .gallery-square {
        height: auto;
        aspect-ratio: 1;
        max-width: 100%;
    }
    .section-content {
        flex-direction: column;
        text-align: center;
    }
    .section-img {
        max-width: 60%;
        height: auto;
    }

    .section-img-side {
        max-width: 100%;
        height: auto;
        border-radius: 10px;
    }

    .section {
        padding: 40px 20px;
    }
    .section h2 {
        font-size: 1.8em;
    }
    .section p {
        font-size: 1em;
        text-align: center;
    }
    .footer p {
        text-align: center;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}