:root {
    --bg-color: #e8e6e1;
    --text-color: #1a1a1a;
    --accent-color: #0f2c3e; /* Azul náutico oscuro */
}

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

html.lenis { 
    height: auto; 
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

h1, h2, h3, .serif-font { 
    font-family: 'Playfair Display', serif; 
}

/* CURSOR & NOISE */
.noise-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    pointer-events: none; 
    z-index: 9000; 
    opacity: 0.05;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
}

@media (min-width: 1024px) {
    body { 
        cursor: none; 
    }
    
    .custom-cursor {
        position: fixed; 
        top: 0; 
        left: 0; 
        width: 20px; 
        height: 20px;
        border: 1px solid rgba(255, 255, 255, 0.8); 
        background: rgba(255, 255, 255, 0.2); 
        border-radius: 50%; 
        pointer-events: none;
        z-index: 9999; 
        transform: translate(-50%, -50%);
        transition: width 0.3s, height 0.3s, background 0.3s;
        mix-blend-mode: difference;
    }
    
    .custom-cursor.hovered {
        width: 50px; 
        height: 50px; 
        background: white; 
        border-color: transparent;
    }
}

/* NAVBAR */
nav {
    position: fixed; 
    top: 0; 
    width: 100%; 
    padding: 30px 5%;
    display: flex; 
    justify-content: space-between;
    z-index: 100; 
    mix-blend-mode: difference; 
    color: white;
}

.logo { 
    font-size: 1.5rem; 
    font-weight: 600; 
    letter-spacing: -1px; 
    text-transform: uppercase; 
}

/* HERO */

.hero {
    height: 90vh;
    min-height: 600px;
    overflow: hidden;
    position: relative;
    display: grid;
    place-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    color: #ffffff;
    padding: 0 20px;
    text-shadow: 0 4px 40px rgba(0,0,0,0.9);
}

.hero h1 { 
    font-size: clamp(2.5rem, 10vw, 7rem);
    line-height: 0.9; 
    margin-bottom: 2rem; 
    font-weight: 500; 
    letter-spacing: -3px;
}

.hero p { 
    font-size: 1.1rem; 
    text-transform: uppercase; 
    letter-spacing: 4px; 
    margin-bottom: 2rem; 
    font-weight: 600;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 3rem;
    border: 2px solid #ffffff;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    background: transparent;
    cursor: pointer;
}

.cta-button:hover {
    background: #ffffff;
    color: #1a1a1a;
}

/* MARQUEE */
.marquee-container {
    padding: 1.5rem 0; 
    background: #111; 
    color: #e8e6e1;
    overflow: hidden; 
    white-space: nowrap; 
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.marquee-content { 
    display: inline-block; 
    animation: scroll 30s linear infinite; 
}

.marquee-item {
    font-family: 'Manrope', sans-serif; 
    font-weight: 300; 
    font-size: 1.2rem; 
    margin-right: 4rem; 
    text-transform: uppercase; 
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .marquee-container {
        padding: 0.75rem 0;
        margin-bottom: -3rem;
    }
    
    .marquee-item {
        font-size: 0.9rem;
        margin-right: 2.5rem;
        letter-spacing: 1px;
    }
}

@keyframes scroll { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-50%); } 
}

/* GALERÍA */
section { 
    padding: 4rem 5%; 
}

.bento-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
    gap: 1.5rem; 
}

.grid-item {
    position: relative; 
    overflow: hidden; 
    height: 55vh; 
    width: 100%;
}

.grid-item img {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.grid-item:hover img { 
    transform: scale(1.1); 
}

.hover-text {
    position: absolute; 
    bottom: 20px; 
    left: 20px; 
    color: white;
    font-size: 1.5rem; 
    font-family: 'Playfair Display'; 
    font-style: italic;
    z-index: 2; 
    opacity: 0; 
    transform: translateY(20px); 
    transition: 0.4s;
}

.grid-item:hover .hover-text { 
    opacity: 1; 
    transform: translateY(0); 
}

.grid-item:nth-child(odd) { margin-top: 0; }
.grid-item:nth-child(even) { margin-top: 8vh; }

.hidden-gallery {
    display: none;
}

/* Contador de Fancybox */
.fancybox-counter {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 99999;
    color: white;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.gallery-note {
    margin: 0 0 1.5rem 0;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #4a4a4a;
    opacity: 0.8;
}

/* MAPA & UBICACIÓN */
.location-section {
    position: relative; 
    width: 100%; 
    height: 70vh;
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: flex-start;
    padding-left: 5%;
    background: #f4f4f4;
}

.map-frame {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    border: 0;
    filter: grayscale(100%) contrast(1.1); 
    transition: filter 0.5s ease;
}

.location-section:hover .map-frame { 
    filter: grayscale(0%); 
}

.location-card {
    position: relative; 
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem; 
    border: 1px solid white;
    color: #1a1a1a; 
    text-align: center; 
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.location-card h2 { 
    font-size: 2.5rem; 
    margin-bottom: 0.5rem; 
    color: #000; 
}

.location-card p { 
    font-size: 1.1rem; 
    margin-bottom: 1.5rem; 
    font-family: 'Manrope'; 
    color: #444; 
}

.coords { 
    font-family: monospace; 
    background: var(--accent-color); 
    color: white; 
    padding: 5px 10px; 
    font-size: 0.8rem; 
    display: inline-block; 
}

.map-link {
    display: inline-block; 
    margin-top: 20px;
    color: var(--accent-color); 
    text-decoration: none; 
    border-bottom: 1px solid var(--accent-color);
}

/* DETALLES */
.details { 
    border-top: 1px solid #ccc; 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: space-between; 
}

.detail-box { 
    width: 30%; 
    padding: 2rem 0; 
}

.detail-box h3 { 
    font-size: 1.5rem; 
    margin-bottom: 1rem; 
    font-family: 'Playfair Display', serif; 
    font-style: italic;
}

/* FOOTER */
footer { 
    background: #111; 
    color: white; 
    padding: 5rem 5%; 
    text-align: center; 
}

.footer-big { 
    font-size: clamp(3rem, 10vw, 8rem); 
    line-height: 1; 
    margin-bottom: 2rem; 
    font-family: 'Playfair Display'; 
    font-style: italic; 
}

.whatsapp-btn {
    display: inline-block; 
    padding: 20px 40px; 
    border: 1px solid white; 
    color: white; 
    text-decoration: none; 
    text-transform: uppercase;
    font-size: 0.9rem; 
    letter-spacing: 2px; 
    transition: 0.3s; 
    margin-top: 2rem;
}

.whatsapp-btn:hover { 
    background: white; 
    color: black; 
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero {
        height: 90vh;
        min-height: auto;
        background-image: url('../assets/images/hero/heromobile.png') !important;
        background-size: cover;
        background-position: center;
    }
    
    .hero h1 { 
        font-size: clamp(3rem, 10vw, 4rem);
    }
    
    .hero p { 
        font-size: 1rem; 
    }

    .bento-grid { 
        grid-template-columns: 1fr; 
        gap: 20px; 
    }
    
    .grid-item { 
        height: 400px; 
        width: 100%; 
        margin-top: 0 !important; 
    }
    
    .hover-text {
        opacity: 1;
        transform: translateY(0);
        font-size: 1.8rem;
        text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    }
    
    .detail-box { 
        width: 100%; 
        margin-bottom: 2rem; 
    }
    
    .location-section { 
        height: auto;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 0;
    }
    
    .location-card { 
        position: relative;
        width: 100%; 
        max-width: none;
        padding: 2.5rem 1.5rem 2rem;
        z-index: 3;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    
    .location-card h2 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .location-card p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .coords {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .map-frame {
        position: relative;
        width: 100%;
        height: 50vh;
        border-radius: 0;
    }
    
    .map-frame { 
        pointer-events: none; 
    }
}

/* DISPONIBILIDAD */
.availability-section {
    padding: 3rem 5%;
    background: var(--bg-color);
}

.availability-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.calendar-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    align-items: start;
}

.calendar-wrapper {
    background: white;
    padding: 1.5rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.calendar-month {
    font-size: 1.1rem;
    font-weight: 600;
    flex: 1;
    text-align: center;
    color: var(--text-color);
}

.calendar-btn {
    background: none;
    border: 1px solid rgba(0,0,0,0.2);
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s;
}

.calendar-btn:hover {
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.4);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: default;
    border: 1px solid rgba(0,0,0,0.1);
    position: relative;
}

.calendar-day.empty {
    opacity: 0.3;
    cursor: default;
}

.calendar-day.available {
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 600;
}

.calendar-day.unavailable {
    background: #ffebee;
    color: #c62828;
    font-weight: 600;
}

.calendar-day.today {
    border: 2px solid var(--accent-color);
}

.availability-legend {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    height: fit-content;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
}

.legend-color {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.1);
}

.legend-color.available {
    background: #e8f5e9;
}

.legend-color.unavailable {
    background: #ffebee;
}

@media (max-width: 768px) {
    .availability-section {
        padding: 4rem 5%;
    }
    
    .availability-section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .calendar-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .calendar-wrapper {
        padding: 1.5rem;
    }
    
    .calendar-day {
        font-size: 0.75rem;
    }
}
