
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --verde-oscuro: #2e4f24;
    --madera: #8c6d4a;
    --beige: #f0ead2;
    --blanco: #ffffff;
    --verde-claro: #5a8a47;
    --sombra: rgba(0, 0, 0, 0.1);
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    
  
    --font-size-base: clamp(0.875rem, 2vw, 1rem);
    --font-size-h1: clamp(1.75rem, 5vw, 3rem);
    --font-size-h2: clamp(1.5rem, 4vw, 2.5rem);
    --font-size-h3: clamp(1.125rem, 3vw, 1.5rem);
    --font-size-logo: clamp(1.5rem, 4vw, 2.8rem);
}


body {
    font-family: 'Poppins', sans-serif;
    font-size: var(--font-size-base);
    color: var(--blanco);
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(#fdfdfd, #00ff4c, white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-image: url("https://cdn1.travelmarket.dk/images/dk/2024/08/1920_829_arucas.jpg");
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 10px var(--sombra);
    z-index: 1000;
    padding: 1rem 0;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-sm);
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: var(--font-size-logo);
    font-weight: 700;
    color: var(--blanco);
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-links {
    display: flex;
    gap: clamp(1rem, 3vw, 2rem);
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--blanco);
    font-weight: 500;
    font-size: clamp(0.875rem, 2vw, 1rem);
    transition: color 0.3s;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.nav-links a:hover {
    color: var(--madera);
}


.selector-idioma {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 9999;
}

.icono-idioma {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: rgba(255, 255, 255, 0.9);
    font-size: 22px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 2px 8px var(--sombra);
}

.icono-idioma:hover {
    background: #f3f3f3;
    transform: scale(1.05);
}

.lista-idiomas {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #ffffff;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    min-width: 120px;
}

.oculto {
    display: none;
}

.lista-idiomas button {
    border: none;
    background: none;
    font-size: 14px;
    cursor: pointer;
    padding: 5px 8px;
    text-align: left;
    transition: 0.2s;
    border-radius: 5px;
}

.lista-idiomas button:hover {
    background: #f0f0f0;
}


.hero {
    min-height: 70vh;
    background-image: url("imagines/661f356c-55ac-4d1e-bbfd-dfc5ea12ccb4.avif");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--blanco);
    margin-top: 80px;
    padding: var(--spacing-md);
}

.hero-content {
    max-width: 900px;
    padding: var(--spacing-md);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
}

.hero-content h1 {
    font-size: var(--font-size-h1);
    color: var(--blanco);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: clamp(0.875rem, 2.5vw, 1.125rem);
    color: var(--blanco);
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
    line-height: 1.6;
}


.btn {
    display: inline-block;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2.5rem);
    background: var(--madera);
    color: var(--blanco);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: clamp(0.875rem, 2vw, 1rem);
    transition: all 0.3s;
    box-shadow: 0 4px 15px var(--sombra);
}

.btn:hover {
    background: var(--verde-claro);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--sombra);
}


section {
    padding: clamp(3rem, 8vw, 5rem) var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    font-size: var(--font-size-h2);
    color: var(--verde-oscuro);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

#sobrenosotros {
    background: var(--beige);
}

.sobre-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.8;
    color: #555;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-sm);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: clamp(1rem, 3vw, 1.5rem);
    padding: 0;
    list-style: none;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}


.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--spacing-sm);
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

#servicios {
    background: var(--beige);
}

.servicios-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.servicio-card {
    background: var(--blanco);
    padding: var(--spacing-md);
    border-radius: 20px;
    box-shadow: 0 4px 15px var(--sombra);
    text-align: center;
    transition: transform 0.3s;
    color: #080808;
}

.servicio-card:hover {
    transform: translateY(-10px);
}

.servicio-card h3 {
    color: var(--verde-oscuro);
    margin-bottom: 1rem;
    font-size: var(--font-size-h3);
}

.servicio-card .precio {
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: var(--madera);
    font-weight: 700;
    margin: 1rem 0;
}

.servicio-card ul {
    list-style: none;
    text-align: left;
    margin-top: 1rem;
}

.servicio-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--beige);
    font-size: clamp(0.875rem, 2vw, 1rem);
}

.servicio-card li:before {
    content: "✓ ";
    color: var(--verde-oscuro);
    font-weight: bold;
}

.formulario-reserva {
    background-color: #121212;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.formulario-reserva label {
    text-align: left;
    font-weight: 600;
    color: var(--blanco);
    font-size: clamp(0.875rem, 2vw, 1rem);
}

.formulario-reserva input,
.formulario-reserva select {
    padding: clamp(0.625rem, 2vw, 0.875rem);
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: clamp(0.875rem, 2vw, 1rem);
    width: 100%;
    transition: border-color 0.3s;
}

.formulario-reserva input:focus,
.formulario-reserva select:focus {
    outline: none;
    border-color: var(--verde-claro);
}

.formulario-reserva button {
    background-color: var(--verde-oscuro);
    color: white;
    border: none;
    padding: clamp(0.75rem, 2vw, 1rem);
    border-radius: 30px;
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
}

.formulario-reserva button:hover {
    background-color: var(--verde-claro);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--sombra);
}

.resultado-precio {
    background: var(--beige);
    padding: 1.5rem;
    border-radius: 15px;
    margin: 1rem 0;
    text-align: center;
    color: #333;
}

.resultado-precio p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--verde-oscuro);
    font-weight: 600;
}

#precioTotal {
    color: var(--madera);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
}

footer {
    background-color: #080808;
    color: white;
    text-align: center;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    font-size: clamp(0.875rem, 2vw, 1rem);
}

footer p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.alerta {
    background: #ffe6e6;
    border-left: 4px solid #d32f2f;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
    display: none;
}

.alerta.activa {
    display: block;
}

@media (max-width: 1024px) {
    nav {
        padding: 0 var(--spacing-sm);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.75rem 0;
    }
    
    nav {
        flex-direction: column;
        gap: 0.75rem;
        padding: var(--spacing-sm);
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .hero {
        margin-top: 140px;
        min-height: 60vh;
    }
    
    .hero-content {
        padding: var(--spacing-sm);
    }
    
    section {
        padding: clamp(2rem, 6vw, 3rem) var(--spacing-sm);
    }
    
    .servicios-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .selector-idioma {
        top: 10px;
        right: 10px;
    }
    
    .icono-idioma {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

@media (max-width: 600px) {
    .nav-links {
        font-size: 0.875rem;
        gap: 0.5rem;
    }
    
    .hero {
        margin-top: 160px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-sm: 0.75rem;
        --spacing-md: 1.25rem;
    }
    
    body {
        font-size: 0.875rem;
    }
    
    header {
        padding: 0.5rem 0;
    }
    
    nav {
        padding: 0.5rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .nav-links {
        gap: 0.5rem;
        font-size: 0.8rem;
    }
    
    .hero {
        margin-top: 180px;
        min-height: 50vh;
        padding: var(--spacing-sm);
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    section {
        padding: 2rem 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .gallery-item {
        border-radius: 8px;
    }
    
    .gallery-item:hover {
        transform: none;
    }
    
    .gallery-item:hover img {
        transform: scale(1.02);
    }
    
    .servicio-card {
        padding: 1.5rem;
    }
    
    .formulario-reserva {
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .selector-idioma {
        top: 8px;
        right: 8px;
    }
    
    .icono-idioma {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .lista-idiomas {
        font-size: 13px;
        padding: 8px;
    }
    
    footer {
        padding: 1.5rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 320px) {
    .gallery-grid {
        gap: 0.5rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .servicios-container {
        gap: 1rem;
    }
}


@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}


.gallery-item,
.btn,
.servicio-card {
    will-change: transform;
}

.gallery-item:hover,
.btn:hover,
.servicio-card:hover {
    will-change: auto;
}