/* Fuentes importadas en el HTML */

:root {
    /* Paleta Desbiens */
    --primary: #20384B; /* Azul Marino Profundo */
    --accent: #C19A6B; /* Marrón Camello Claro */
    --bg-light: #F8F8F8; /* Crema Suave / Blanco Roto */
    --bg-secondary: #E0E0E0; /* Gris Pizarra Muy Pálido */
    --white: #ffffff;
    --text-main: #333333;
    
    --glass: rgba(248, 248, 248, 0.95);
    --shadow: 0 15px 35px rgba(32, 56, 75, 0.08);
    --shadow-hover: 0 20px 40px rgba(32, 56, 75, 0.15);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --radius: 24px;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.8;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4 {
    font-weight: 400;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    color: var(--white);
}

h2 {
    font-size: 2.8rem;
}

.font-cursive {
    font-family: 'Pinyon Script', cursive;
    color: var(--accent);
    font-size: 1.5em;
    font-weight: normal;
    display: inline-block;
    margin: 0 10px;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    color: #555;
}

/* Utils */
.text-white { color: var(--white) !important; }
.bg-light { background-color: var(--bg-light); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-primary { background-color: var(--primary); }
.mb-4 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }

/* Botones */
.btn {
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    display: inline-block;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(32, 56, 75, 0.2);
}

.btn-primary:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(193, 154, 107, 0.3);
    color: var(--white);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--white);
}
.btn-accent:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
    color: var(--white);
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

header.scrolled {
    background: var(--glass);
    padding: 1rem 5%;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.logo-link {
    display: inline-block;
    transition: var(--transition);
}

.logo-img {
    height: 60px; /* Tamaño del logo */
    width: auto;
    transition: var(--transition);
    /* Cuando el header es transparente (fondo oscuro), volvemos el logo blanco */
    filter: brightness(0) invert(1);
}

header.scrolled .logo-img {
    /* Cuando hacemos scroll (fondo claro), restauramos los colores originales del logo */
    filter: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

nav a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
}

header.scrolled nav a {
    color: var(--primary);
}

nav a:hover, header.scrolled nav a:hover {
    color: var(--accent);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    background-image: url('../images/Gemini_Generated_Image_ay78xray78xray78.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(32,56,75,0.7) 0%, rgba(32,56,75,0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: var(--white);
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0.95;
    color: var(--white);
}

/* Antigravity Effects */
.antigravity {
    animation: float-content 7s ease-in-out infinite;
}

@keyframes float-content {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

.float-img {
    animation: float-img 9s ease-in-out infinite;
}

.float-img-reverse {
    animation: float-img 11s ease-in-out infinite reverse;
}

@keyframes float-img {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Fluid Dividers (Stitch Concept) */
.wave-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 3;
}

.wave-divider svg, .wave-divider-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 140px;
}

.wave-divider .shape-fill { fill: var(--bg-light); }
.wave-divider-top {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.wave-divider-top .shape-fill-sec { fill: var(--bg-secondary); }
.wave-divider-top .shape-fill-pri { fill: var(--primary); }

/* Layout Sections */
.section {
    padding: 120px 10%;
    position: relative;
}

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

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.section-grid.reverse {
    grid-template-columns: 1.2fr 1fr;
}

.content-block {
    max-width: 550px;
}

.icon-wrap {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(193, 154, 107, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    border: 1px solid rgba(193, 154, 107, 0.3);
}

.icon-wrap img {
    width: 35px;
}

.img-fluid {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius);
}

.shadow { box-shadow: var(--shadow); transition: var(--transition); }
.shadow:hover { box-shadow: var(--shadow-hover); }

/* Masonry / Advanced Gallery */
.masonry-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: center;
}

.masonry-gallery img:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    height: 100%;
    min-height: 450px;
}

.masonry-gallery img:nth-child(2) {
    height: 250px;
}

.masonry-gallery img:nth-child(3) {
    height: 350px;
    margin-top: -100px;
}

/* Full Gallery for Spaces */
.spaces-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.spaces-gallery img {
    height: 350px;
    width: 100%;
    object-fit: cover;
}

/* Footer */
.footer {
    padding: 120px 10% 60px;
}

.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
    transition: var(--transition);
    animation: float-content 4s ease-in-out infinite;
}

.whatsapp-float img {
    width: 70px;
    height: 70px;
    filter: drop-shadow(0 5px 15px rgba(37, 211, 102, 0.3));
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 1100px) {
    .section-grid, .section-grid.reverse {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .section-grid.reverse .masonry-gallery {
        grid-row: 2;
    }
    h1 { font-size: 3.2rem; }
}

@media (max-width: 768px) {
    nav, .btn-nav { display: none; }
    h1 { font-size: 2.5rem; }
    .section { padding: 80px 5%; }
    .masonry-gallery {
        grid-template-columns: 1fr;
    }
    .masonry-gallery img:nth-child(1),
    .masonry-gallery img:nth-child(2),
    .masonry-gallery img:nth-child(3) {
        grid-column: 1;
        grid-row: auto;
        height: 300px;
        margin-top: 0;
    }
}
