:root {
    --primary: #008fa1;
    --accent: #ff9f1c;
    --text: #333;
    --light: #f4f7f6;
}

body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: var(--text); background: var(--light); margin: 0; }
.container { max-width: 1200px; margin: auto; padding: 0 20px; }

/* Header */
header { position: fixed; width: 100%; top: 0; padding: 20px 0; z-index: 100; transition: 0.4s; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { color: white; font-weight: bold; font-size: 1.4rem; }
.logo span { font-weight: 300; }
nav a { color: white; text-decoration: none; margin-left: 20px; font-size: 0.9rem; }
.btn-nav { background: var(--accent); padding: 10px 20px; border-radius: 5px; }

/* Hero */
.hero { 
    height: 90vh; 
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('img/hawaii-beach-landscape-with-nature-coastline.jpg');
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center; text-align: center; color: white;
}
.hero h1 { font-size: 3.5rem; margin-bottom: 10px; }
.hero h1 span { color: var(--accent); }

/* Search Box */
.search-box {
    background: white; padding: 30px; border-radius: 10px; 
    display: flex; gap: 20px; margin-top: 40px; box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    color: var(--text);
}
.input-group { display: flex; flex-direction: column; text-align: left; }
.input-group label { font-size: 0.8rem; font-weight: bold; margin-bottom: 5px; }
.input-group input, .input-group select { padding: 10px; border: 1px solid #ddd; border-radius: 5px; }
.btn-main { background: var(--primary); color: white; border: none; padding: 0 40px; border-radius: 5px; cursor: pointer; font-weight: bold; }

/* Propiedades */
.section { padding: 80px 0; }
.title { text-align: center; margin-bottom: 40px; font-size: 2.2rem; }
.property-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.property-card { background: white; border-radius: 15px; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.05); position: relative; }
.property-card img { width: 100%; height: 250px; object-fit: cover; }
.badge { position: absolute; top: 15px; right: 15px; background: var(--accent); color: white; padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; }
.card-content { padding: 25px; }
.specs { display: flex; gap: 15px; margin: 15px 0; font-size: 0.9rem; color: #666; }
.btn-outline { display: inline-block; padding: 10px 25px; border: 2px solid var(--primary); color: var(--primary); text-decoration: none; border-radius: 5px; transition: 0.3s; }
.btn-outline:hover { background: var(--primary); color: white; }

/* Floating WhatsApp */
.whatsapp-btn {
    position: fixed; bottom: 30px; right: 30px; background: #25d366; color: white;
    padding: 12px 25px; border-radius: 50px; text-decoration: none; display: flex; align-items: center; gap: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2); z-index: 1000;
}
/* Variables y Reset */
:root {
    --primary: #008fa1; /* Turquesa */
    --accent: #ff9f1c; /* Naranja para CTAs */
    --text: #333;
    --light-bg: #f4f7f6; /* Fondo general más claro */
    --dark-bg: #2c3e50; /* Fondo oscuro para secciones y headers */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; line-height: 1.6; color: var(--text); background: var(--light-bg); scroll-behavior: smooth; }
.container { max-width: 1200px; margin: auto; padding: 0 20px; }
.section { padding: 80px 0; }
.title { font-family: 'Playfair Display', serif; text-align: center; margin-bottom: 20px; font-size: 2.8rem; color: var(--dark-bg); }
.title span { color: var(--primary); }
.subtitle { text-align: center; margin-bottom: 50px; font-size: 1.1rem; color: #666; max-width: 700px; margin-left: auto; margin-right: auto; }

/* Botones */
.btn-main { background: var(--primary); color: white; border: none; padding: 12px 30px; border-radius: 5px; cursor: pointer; font-weight: bold; transition: background 0.3s ease; text-decoration: none; display: inline-block; }
.btn-main:hover

/* =========================
   GALERÍA DETALLE APARTAMENTO
========================= */

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 320px 320px;
    gap: 15px;
    margin-top: 40px;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Imagen principal más grande */
.gallery-grid .main-image {
    grid-row: span 2;
}

/* Efecto elegante al pasar el mouse */
.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Tablet */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 260px 260px 260px;
    }

    .gallery-grid .main-image {
        grid-column: span 2;
        grid-row: span 1;
    }
}

/* Móvil */
@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }

    .gallery-grid .main-image {
        grid-column: span 1;
    }
}

/* =========================
   GALERÍA DETALLE PREMIUM
========================= */

.gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

/* Imagen principal */
.gallery-main img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Grid inferior */
.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-thumbs img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Hover elegante */
.gallery-thumbs img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Tablet */
@media (max-width: 992px) {
    .gallery-main img {
        height: 350px;
    }

    .gallery-thumbs {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Móvil */
@media (max-width: 576px) {
    .gallery-main img {
        height: 250px;
    }

    .gallery-thumbs {
        grid-template-columns: 1fr;
    }

    .gallery-thumbs img {
        height: 200px;
    }
}

/* =========================
   HERO PÁGINAS INTERNAS
========================= */

.internal-hero {
    height: 45vh;
    min-height: 300px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('img/hawaii-beach-landscape-with-nature-coastline.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 80px; /* espacio por header fijo */
}

.internal-hero h1 {
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 10px;
}

.internal-hero p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: white;
    text-align: center;
    padding: 20px 0;
}

/* =========================
   HEADER TRANSPARENTE DINÁMICO
========================= */

#header {
    position: fixed;
    width: 100%;
    top: 0;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.4s ease;
    background: transparent;
}

/* Estado inicial sobre imagen */
#header .logo,
#header nav a {
    color: white;
    transition: color 0.3s ease;
}

/* Estado cuando se hace scroll */
#header.scrolled {
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

#header.scrolled .logo,
#header.scrolled nav a {
    color: #333;
}

/* Mantener botón visible */
#header.scrolled .btn-nav {
    background: var(--primary);
    color: white;
}