/* --- LINARES GROUP LUXURY ESTATES - CSS FINAL --- */

:root {
    --primary: #0D2447;       
    --gold: #FFD057;          
    --sunset: #F7941E;        
    --sand: #F9F7F4;          
    --white: #FFFFFF;
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
    
    --transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--primary); background: var(--white); line-height: 1.7; font-weight: 400; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.section-padding { padding: 100px 0; }
a { text-decoration: none; }

/* NAVBAR */
.navbar { position: fixed; top: 0; width: 100%; z-index: 1000; padding: 1.5rem 0; transition: var(--transition); }
.navbar.scrolled { background: rgba(255, 255, 255, 0.98); padding: 0.8rem 0; box-shadow: 0 5px 20px rgba(0,0,0,0.1); } 
.nav-container { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 5%; }
.nav-logo { height: 110px; width: auto; transition: var(--transition); } 
.navbar.scrolled .nav-logo { height: 80px; }
.nav-links { display: flex; list-style: none; gap: 3rem; }
.nav-links a { color: var(--white); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; position: relative; text-shadow: 0 2px 5px rgba(0,0,0,0.4); }
.navbar.scrolled .nav-links a { color: var(--primary); text-shadow: none; }
.nav-links a:hover { color: var(--gold); }
.btn-nav { background: var(--primary); color: white !important; padding: 0.8rem 2rem; font-size: 0.7rem; letter-spacing: 2px; font-weight: 700; text-transform: uppercase; border: 1px solid rgba(255,255,255,0.2); }
.navbar.scrolled .btn-nav { border: 1px solid var(--primary); }

/* HERO & PAGE HERO */
.hero { height: 100vh; background: linear-gradient(rgba(13,36,71,0.4), rgba(13,36,71,0.2)), url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1920&q=80'); background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: white; padding: 0 5%; }
.page-hero { height: 60vh; margin-top: 0; padding-top: 130px; background: linear-gradient(rgba(13,36,71,0.5), rgba(13,36,71,0.3)), url('https://images.unsplash.com/photo-1570535974020-f4728d1979fc?auto=format&fit=crop&w=1920&q=80'); background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: white; }
/* HERO ESPECÍFICO DE MAR AZUL */
.house-hero { height: 75vh; } /* Más alto para lucir la casa */

h1 { font-family: var(--font-serif); font-size: clamp(3.5rem, 9vw, 7rem); line-height: 1; margin: 1.5rem 0; font-weight: 400; text-shadow: 0 4px 10px rgba(0,0,0,0.3); }
h1 i { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--gold); }
.subtitle { font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 6px; font-size: 0.8rem; color: var(--gold); font-weight: 700; margin-bottom: 10px; display: block; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }

/* UTILIDADES */
.hero-btns { display: flex; gap: 1.5rem; margin-top: 2rem; justify-content: center; width: 100%; }
.btn-primary-gold { background: var(--gold); color: var(--primary); padding: 1.2rem 2.5rem; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 2px; font-weight: 700; border: none; cursor: pointer; display: inline-block; transition: 0.3s; }
.btn-primary-gold:hover { background: var(--white); color: var(--primary); transform: translateY(-3px); }
.btn-outline-white { border: 1px solid white; color: white; padding: 1.2rem 2.5rem; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 2px; transition: 0.3s; font-weight: 600; }
.btn-outline-white:hover { border-color: white; background: white; color: var(--primary); transform: translateY(-3px); }
.btn-text { color: var(--primary); font-weight: 600; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 2px; border-bottom: 1px solid var(--gold); padding-bottom: 2px; transition: 0.3s; }
.btn-text:hover { color: var(--gold); }
.btn-text-gold { color: var(--gold); font-weight: 600; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 2px; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 2px; transition: 0.3s; text-decoration: none; display: inline-block; margin-top: 1.5rem; }
.btn-text-gold:hover { color: var(--white); border-bottom-color: var(--gold); }

/* BOOKING BAR */
.booking-bar { position: absolute; bottom: 50px; background: white; padding: 1.5rem 3rem; display: flex; gap: 2rem; border-radius: 4px; box-shadow: 0 20px 50px rgba(0,0,0,0.15); align-items: center; z-index: 10; }
.booking-item { display: flex; flex-direction: column; text-align: left; }
.booking-item label { font-size: 0.65rem; text-transform: uppercase; font-weight: 800; color: var(--primary); margin-bottom: 5px; opacity: 0.6; }
.booking-item input, .booking-item select { border: none; outline: none; font-size: 0.9rem; color: #333; background: transparent; font-weight: 600; }
.btn-search { background: var(--primary); color: white; padding: 1rem 2rem; font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; transition: 0.3s; }
.btn-search:hover { background: var(--gold); color: var(--primary); }

/* SECCIONES */
.section-header h2 { font-family: var(--font-serif); font-size: 3rem; font-weight: 400; margin-bottom: 1rem; color: var(--primary); }
.about-section h2, .guide-section h2 { color: white; }
.tag { text-transform: uppercase; letter-spacing: 4px; font-size: 0.7rem; color: var(--gold); font-weight: 700; display: block; margin-bottom: 15px; }
.about-section { background: var(--primary); color: white; padding: 140px 5%; }
.about-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.about-image img { width: 100%; border-radius: 4px; box-shadow: -20px 20px 0 var(--gold); }
.guide-section { background: #071930; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 50px; }
.guide-item { background: rgba(255,255,255,0.03); padding: 30px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.05); }
.guide-pic { height: 250px; border-radius: 5px; margin-bottom: 1.5rem; background-size: cover; background-position: center; }
.guide-item h4 { font-family: var(--font-serif); font-size: 1.8rem; color: var(--gold); margin-bottom: 15px; }
.guide-item p { color: #ccc; font-weight: 300; font-size: 0.95rem; }
.property-card-vertical { display: grid; grid-template-columns: 1.2fr 1fr; background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.05); }
.property-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.property-details { padding: 4rem; display: flex; flex-direction: column; justify-content: center; }
.prop-meta { color: var(--primary); font-weight: 700; text-transform: uppercase; font-size: 0.75rem; margin-bottom: 10px; opacity: 0.6; }

/* CATALOGO */
.catalog-card { display: flex; flex-direction: column; margin-bottom: 80px; background: white; border-bottom: 1px solid #eee; padding-bottom: 50px; }
.catalog-img { position: relative; height: 450px; width: 100%; overflow: hidden; }
.catalog-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.7s; }
.catalog-card:hover .catalog-img img { transform: scale(1.03); }
.catalog-info { padding: 3rem 0; }
.catalog-header h3 { font-family: var(--font-serif); font-size: 2.8rem; color: var(--primary); font-weight: 400; margin-bottom: 0.2rem; }
.address { font-size: 0.9rem; color: #666; margin-bottom: 1rem; font-weight: 500; }
.price { font-family: var(--font-serif); font-size: 1.5rem; color: var(--gold); font-style: italic; }
.catalog-features { display: flex; gap: 3rem; margin: 2rem 0; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); font-weight: 600; border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding: 1.5rem 0; }
.catalog-actions { display: flex; gap: 30px; align-items: center; }
.coming-soon-card { background: #FAFAFA; border: 1px dashed #DDD; border-radius: 8px; padding: 80px 0; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.coming-soon-logo { width: 120px; opacity: 0.8; margin-bottom: 20px; }
.coming-soon-text { font-family: var(--font-serif); font-size: 1.8rem; color: var(--primary); margin-bottom: 5px; }

/* --- MAR AZUL DETALLES --- */

/* Mosaico de Galería */
.mosaic-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 250px 250px; gap: 10px; }
.mosaic-item { position: relative; overflow: hidden; border-radius: 4px; cursor: pointer; }
.mosaic-item.main { grid-column: span 2; grid-row: span 2; }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.mosaic-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(13,36,71,0.4); opacity: 0; transition: 0.3s; display: flex; align-items: center; justify-content: center; color: white; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; }
.mosaic-item:hover .mosaic-overlay { opacity: 1; }
.mosaic-item:hover img { transform: scale(1.05); }

/* Proximity / Ubicación */
.proximity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.prox-card { position: relative; border-radius: 8px; overflow: hidden; height: 200px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.prox-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.prox-info { position: absolute; bottom: 0; width: 100%; padding: 15px; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: white; }
.prox-info h4 { font-family: var(--font-serif); font-size: 1.2rem; margin-bottom: 5px; }
.prox-badge { background: var(--gold); color: var(--primary); font-size: 0.7rem; padding: 4px 10px; border-radius: 20px; font-weight: 700; text-transform: uppercase; }
.prox-card:hover img { transform: scale(1.1); }

/* Detalles & Form */
.property-content { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; }
.amenities-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin: 2rem 0; }
.amenity-item { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 500; }
.booking-form-box { background: white; padding: 40px; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); position: sticky; top: 120px; border: 1px solid #EEE; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; color: var(--primary); }
.form-group input, .form-group select { width: 100%; padding: 12px; border: 1px solid #DDD; border-radius: 4px; font-family: var(--font-sans); outline: none; }
.btn-block { width: 100%; }

/* LIGHTBOX */
.lightbox { display: none; position: fixed; z-index: 2000; padding-top: 50px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.9); }
.lightbox-content { margin: auto; display: block; width: 80%; max-width: 900px; max-height: 80vh; object-fit: contain; }
.close-lightbox { position: absolute; top: 30px; right: 50px; color: #f1f1f1; font-size: 40px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.close-lightbox:hover { color: var(--gold); }

/* STORY & ANIMATIONS */
.story-container { max-width: 1100px; margin: 0 auto; padding: 100px 5%; }
.story-block { display: flex; align-items: center; gap: 80px; margin-bottom: 150px; }
.story-block.reverse { flex-direction: row-reverse; }
.story-text { flex: 1; }
.story-text h2 { font-family: var(--font-serif); font-size: 2.5rem; margin-bottom: 1.5rem; color: var(--primary); }
.story-img { flex: 1; height: 500px; box-shadow: 20px 20px 0 var(--gold); border-radius: 4px; overflow: hidden; transition: transform 0.5s ease; }
.story-img img { width: 100%; height: 100%; object-fit: cover; }
.story-block.reverse .story-img { box-shadow: -20px 20px 0 var(--gold); }
.reveal-on-scroll { opacity: 0; transform: translateY(50px); transition: all 1s ease-out; }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* FOOTER */
.footer { background: var(--sand); padding: 80px 5%; text-align: center; }
.footer-logo { height: 100px; margin-bottom: 2rem; opacity: 1; } 
.footer-links a { margin: 0 15px; color: var(--primary); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; }
.concierge-fab { position: fixed; bottom: 35px; right: 35px; z-index: 1000; }
.btn-fab { background: var(--sunset); color: white; border: none; width: 65px; height: 65px; border-radius: 50%; cursor: pointer; box-shadow: 0 15px 30px rgba(247, 148, 30, 0.3); display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.btn-fab:hover { transform: scale(1.1); }

@media (min-width: 900px) {
    .catalog-card { flex-direction: row; gap: 50px; border: none; align-items: center; }
    .catalog-img { width: 60%; height: 500px; }
    .catalog-info { width: 40%; }
}
@media (max-width: 968px) {
    .nav-links, .btn-nav, .booking-bar { display: none; }
    .about-container, .property-card-vertical, .guide-grid, .story-block, .story-block.reverse, .property-content, .proximity-grid, .mosaic-grid { grid-template-columns: 1fr; flex-direction: column; }
    .story-img { width: 100%; height: 300px; }
    .mosaic-item.main { grid-column: span 1; grid-row: span 1; height: 300px; }
}