/* =========================================
   CAMPO.CSS - VERSIÓN FINAL V14
   ========================================= */

:root {
    --primary: #2C4A34; 
    --accent: #D4A373; 
    --bg-body: #FAF9F6;
    --text-main: #333;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.08);
    /* CAMBIO TIPOGRAFÍA */
    --font-heading: 'Playfair Display', serif; 
    --font-body: 'Manrope', sans-serif;
}

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

html { 
    scroll-behavior: smooth; 
    scroll-padding-top: 100px; 
}

body { 
    font-family: var(--font-body); 
    color: var(--text-main); 
    background-color: var(--bg-body); 
    overflow-x: hidden;
    text-rendering: optimizeLegibility; 
}

img { width: 100%; display: block; object-fit: cover; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none !important; margin: 0; padding: 0; }

/* --- HEADER --- */
.header { position: fixed; top: 0; left: 0; width: 100%; height: 90px; background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent); z-index: 1000; display: flex; align-items: center; justify-content: center; transition: background 0.4s; }
.header.scrolled { background: rgba(44, 74, 52, 0.95); backdrop-filter: blur(10px); height: 80px; }
.header-inner { width: 90%; max-width: 1200px; display: flex; justify-content: space-between; align-items: center; }
.logo-img { height: 60px; width: auto; filter: brightness(0) invert(1); }
.nav-menu { display: none; }
.nav-list { display: flex; gap: 30px; }
.nav-link { color: #FFF; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; font-weight: 600; }
.nav-link:hover { color: var(--accent); }
.nav-btn-highlight { border: 1px solid #FFF; color: #FFF; padding: 10px 25px; border-radius: 50px; font-size: 0.8rem; text-transform: uppercase; }
.nav-btn-highlight:hover { background: #FFF; color: var(--primary); }
.hamburger { display: flex; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger .bar { width: 25px; height: 2px; background: #FFF; }
@media(min-width: 1024px) { .nav-menu { display: block; opacity: 1; visibility: visible; } .hamburger { display: none; } }
@media(max-width: 1024px) { .nav-menu { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: #111; z-index: 999; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: 0.4s; } .nav-menu.is-open { opacity: 1; visibility: visible; } .nav-list { flex-direction: column; text-align: center; } }

/* --- HERO VIDEO --- */
.hero-video-section { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 0; }
.hero-video-bg { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; transform: translate(-50%, -50%); z-index: 0; object-fit: cover; }
.video-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); z-index: 1; }
.hero-content { position: relative; z-index: 2; color: #FFF; text-align: center; }
.hero-subtitle { font-size: 0.9rem; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 20px; display: block; opacity: 0.9; }
.hero-content h1 { font-family: var(--font-heading); font-size: 4rem; line-height: 1.1; margin-bottom: 40px; }
.hero-content em { color: var(--accent); font-style: normal; }
.btn-hero { display: inline-block; padding: 15px 40px; background: rgba(255,255,255,0.1); backdrop-filter: blur(5px); border: 1px solid #FFF; color: #FFF; text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; transition: 0.3s; }
.btn-hero:hover { background: #FFF; color: var(--primary); }
.wave-bottom { position: absolute; bottom: 0; left: 0; width: 100%; line-height: 0; z-index: 2; }
.wave-bottom svg { width: 100%; height: 80px; }

/* --- INTRODUCCIÓN --- */
.intro-section { padding: 120px 20px 80px; background: #F4F4F0; position: relative; z-index: 2; }
.intro-wrapper { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 800px; margin: 0 auto; width: 100%; }
.section-title { font-family: var(--font-heading); font-size: 2.5rem; color: var(--primary); margin: 0; text-align: center; }
.separator-leaf { color: var(--accent); font-size: 1.5rem; margin: 20px 0; }
.intro-text { color: #666; font-size: 1.1rem; line-height: 1.8; text-align: center; }

/* --- TARIFAS (PROPUESTAS) --- */
.section-pricing { position: relative; padding: 120px 20px; overflow: hidden; margin-top: -1px; }
.video-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.video-base { z-index: 0; }
.video-fade { z-index: 1; animation: smoothFade 16s infinite; } 
@keyframes smoothFade { 0% { opacity: 0; } 10% { opacity: 1; } 50% { opacity: 1; } 60% { opacity: 0; } 100% { opacity: 0; } }
.relative-z { position: relative; z-index: 3; }
.pricing-deck { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; align-items: stretch; }
.pricing-glass { flex: 1 1 300px; max-width: 350px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); padding: 40px 30px; color: #FFF; text-align: center; transition: 0.3s; display: flex; flex-direction: column; justify-content: space-between; }
.pricing-glass:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-5px); }
.pricing-glass.featured { border-color: var(--accent); background: rgba(26, 60, 27, 0.6); }
.badge-glass { background: var(--accent); display: inline-block; padding: 4px 12px; font-size: 0.7rem; text-transform: uppercase; margin-bottom: 15px; align-self: center; }
.glass-header h4 { font-family: var(--font-heading); font-size: 1.8rem; margin-bottom: 5px; }
.sub-price { display: block; font-size: 0.9rem; opacity: 0.8; margin-bottom: 20px; font-style: italic; }
.glass-features { list-style: none; text-align: left; margin: 20px 0; font-size: 0.9rem; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.glass-features li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; opacity: 0.9; }
.glass-features i { color: var(--accent); }
.btn-glass { display: inline-block; padding: 10px 30px; border: 1px solid #FFF; color: #FFF; text-transform: uppercase; font-size: 0.8rem; margin-top: auto; transition: 0.3s; align-self: center; width: 100%; max-width: 220px; }
.btn-glass:hover { background: #FFF; color: var(--primary); }
.btn-glass.filled { background: var(--accent); border-color: var(--accent); }

/* --- GALERÍAS --- */
.section-container { padding: 80px 20px; }
.gallery-block { max-width: 1200px; margin: 0 auto 60px; }
.gallery-header { text-align: center; margin-bottom: 40px; }
.gallery-header h3 { font-family: var(--font-heading); font-size: 2.2rem; color: var(--primary); }
.gallery-header p { color: var(--accent); font-style: italic; font-family: 'Playfair Display', serif; }
.slider-wrapper { position: relative; display: flex; align-items: center; }
.slider-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; width: 100%; padding-bottom: 20px; scrollbar-width: none; }
.slider-track::-webkit-scrollbar { display: none; }
.slide-item { flex: 0 0 calc(33.333% - 14px); aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; scroll-snap-align: center; cursor: pointer; box-shadow: var(--card-shadow); transition: 0.3s; }
.slide-item:hover { transform: translateY(-5px); }
.slide-item img { height: 100%; width: 100%; object-fit: cover; transition: 0.5s; }
.slide-item:hover img { transform: scale(1.05); }
.slider-btn { background: #FFF; border: none; width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 5px 15px rgba(0,0,0,0.1); cursor: pointer; color: var(--primary); position: absolute; z-index: 10; transition: 0.3s; }
.slider-btn:hover { background: var(--primary); color: #FFF; }
.prev { left: -20px; } .next { right: -20px; }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.dot { width: 8px; height: 8px; background: #DDD; border-radius: 50%; cursor: pointer; transition: 0.3s; }
.dot.active { background: var(--primary); transform: scale(1.2); }
.btn-outline-dark { background: transparent; border: 1px solid var(--primary); color: var(--primary); padding: 10px 30px; cursor: pointer; transition: 0.3s; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }
.btn-outline-dark:hover { background: var(--primary); color: #FFF; }
.elegant-divider { border: 0; height: 1px; background: #EEE; width: 60%; margin: 60px auto; }
@media(max-width: 768px) { .slide-item { flex: 0 0 85%; } .slider-btn { display: none; } }

/* --- CINE --- */
.cinema-section { position: relative; height: 500px; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-top: 60px; }
.cinema-video-bg { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; transform: translate(-50%, -50%); z-index: 0; object-fit: cover; }
.cinema-gradient-overlay { position: absolute; inset: 0; background: radial-gradient(circle, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 70%, rgba(0,0,0,0.9) 100%); z-index: 1; }
.cinema-content { position: relative; z-index: 2; text-align: center; color: #FFF; text-shadow: 0 4px 15px rgba(0,0,0,0.5); }
.cinema-label { font-family: 'Cinzel', serif; letter-spacing: 3px; font-size: 0.8rem; color: var(--accent); text-transform: uppercase; margin-bottom: 10px; display: block; }
.cinema-content h2 { font-family: var(--font-heading); font-size: 3rem; margin-bottom: 30px; }
.btn-play-pulse { width: 70px; height: 70px; background: #FFF; border-radius: 50%; border: none; color: var(--primary); font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; margin: 0 auto; animation: pulse 2s infinite; transition: 0.3s; padding-left: 5px; }
.btn-play-pulse:hover { transform: scale(1.1); color: var(--accent); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); } 70% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }

/* --- UBICACIÓN --- */
.bg-pattern { background-image: radial-gradient(#E0E0E0 1px, transparent 1px); background-size: 20px 20px; }
.special-title { position: relative; margin-bottom: 50px; }
.watermark-title { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); font-size: 5rem; color: rgba(0,0,0,0.03); font-weight: 900; z-index: 0; pointer-events: none; }
.divider-center { width: 50px; height: 3px; background: var(--accent); margin: 20px auto; }
.location-split { display: grid; grid-template-columns: 350px 1fr; gap: 40px; max-width: 1200px; margin: 40px auto 0; position: relative; z-index: 1; }
.loc-list-visual { display: flex; flex-direction: column; gap: 15px; }
.loc-item-visual { display: flex; align-items: center; gap: 15px; padding: 10px; background: #FFF; border: 1px solid #EEE; border-radius: 8px; cursor: pointer; transition: 0.2s; overflow: hidden; }
.loc-item-visual:hover, .loc-item-visual.active { border-color: var(--accent); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.loc-thumb { width: 70px; height: 70px; border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.loc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.loc-content h4 { font-size: 0.95rem; margin: 0 0 5px; color: #333; }
.loc-content span { font-size: 0.8rem; color: #888; display: flex; align-items: center; gap: 5px; }
.btn-reset-map-small { margin-top: auto; padding: 12px; background: #333; color: #FFF; border: none; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.85rem; }
.loc-map-container { height: 500px; border-radius: 12px; overflow: hidden; position: relative; box-shadow: var(--card-shadow); background: #EEE; }
.map-loader-overlay { position: absolute; inset: 0; background: #EEE; display: flex; justify-content: center; align-items: center; z-index: 5; opacity: 0; visibility: hidden; }
.map-loader-overlay.active { opacity: 1; visibility: visible; }
.spinner { width: 30px; height: 30px; border: 3px solid #ccc; border-top-color: var(--accent); border-radius: 50%; animation: spin 1s infinite linear; }
@keyframes spin { to { transform: rotate(360deg); } }
@media(max-width: 900px) { .location-split { grid-template-columns: 1fr; } .loc-map-container { height: 350px; } }

/* --- CTA WHATSAPP (NUEVO) --- */
.cta-whatsapp {
    background-color: var(--primary);
    padding: 80px 20px;
    text-align: center;
    color: #FFF;
}
.cta-title { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 20px; }
.cta-text { font-size: 1.1rem; opacity: 0.9; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }
.btn-cta-big { 
    display: inline-flex; align-items: center; gap: 10px;
    background: #25D366; color: #FFF; padding: 15px 40px; 
    border-radius: 50px; text-transform: uppercase; font-weight: 600; 
    transition: 0.3s; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}
.btn-cta-big:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5); }

/* --- FOOTER --- */
.aldea-footer { background: #111; color: #999; padding: 80px 0 30px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; margin-bottom: 50px; max-width: 1200px; margin: 0 auto 50px; }
.footer-logo { max-width: 150px; height: auto; margin-bottom: 20px; filter: brightness(0) invert(1); opacity: 0.8; }
.social-icons a { width: 35px; height: 35px; border: 1px solid #444; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; margin-right: 10px; color: #FFF; transition: 0.3s; }
.social-icons a:hover { background: var(--accent); border-color: var(--accent); }
.footer-widget h4 { color: #FFF; font-family: var(--font-heading); margin-bottom: 25px; font-size: 1.1rem; }
.footer-widget ul li { margin-bottom: 12px; }
.footer-widget i { width: 20px; color: var(--accent); text-align: center; margin-right: 5px; }
.footer-bottom { border-top: 1px solid #222; padding-top: 20px; text-align: center; font-size: 0.8rem; opacity: 0.6; }
@media(max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 40px; } }

/* --- MODAL FULL GRID - ESTILO INSTAGRAM --- */
.modal-full-grid { display: none; position: fixed; inset: 0; background: rgba(255,255,255,1); z-index: 3000; flex-direction: column; overflow: hidden; opacity: 0; transform: scale(0.98); transition: opacity 0.3s ease, transform 0.3s ease; }
.modal-full-grid.open { opacity: 1; transform: scale(1); }
.modal-grid-header { height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid #dbdbdb; background: #FFF; flex-shrink: 0; }
.modal-grid-header h3 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 600; color: #000; margin: 0; }
.modal-grid-close { font-size: 2.5rem; cursor: pointer; color: #000; line-height: 1; transition: 0.2s; }
.modal-grid-content { flex: 1; overflow-y: auto; padding: 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; align-content: start; width: 100%; }
.grid-cell { width: 100%; aspect-ratio: 1 / 1; position: relative; overflow: hidden; cursor: pointer; border-radius: 0; background: #f0f0f0; }
.grid-cell img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; transition: transform 0.3s ease; }
.grid-cell:hover img { filter: brightness(0.9); }

/* --- MODALS GENERALES --- */
.video-modal-container { width: 90%; max-width: 1000px; aspect-ratio: 16 / 9; background: #000; position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.video-modal iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 4000; justify-content: center; align-items: center; }
.modal-content { max-width: 90vw; max-height: 90vh; }
.modal-close { position: absolute; top: 20px; right: 30px; color: #FFF; font-size: 40px; cursor: pointer; }
.modal-nav { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none; color: #FFF; font-size: 3rem; cursor: pointer; padding: 0 20px; }
.modal-prev { left: 10px; } .modal-next { right: 10px; }

/* --- UTILS --- */
.floating-actions { position: fixed; bottom: 20px; right: 20px; z-index: 1100; }
.action-bubble { width: 60px; height: 60px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #FFF; font-size: 1.8rem; box-shadow: 0 5px 15px rgba(0,0,0,0.3); transition: 0.3s; }
.action-bubble:hover { transform: scale(1.1); }
/* El preloader viejo está borrado del HTML, pero dejamos esto por si acaso */
.loader-hidden { opacity: 0; visibility: hidden; }
.reveal { opacity: 0; transform: translateY(30px); transition: 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ======================================================
   OPTIMIZACIÓN MÓVIL
   ====================================================== */
@media (max-width: 768px) {
    .hero-video-bg, .video-layer, .cinema-video-bg { display: none !important; }
    
    .hero-video-section { background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://res.cloudinary.com/dl3t6vykm/image/upload/v1778285662/exterior3_l4nwe7.webp') center/cover no-repeat; background-attachment: scroll !important; }
    .section-pricing { background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://res.cloudinary.com/dl3t6vykm/image/upload/v1778285661/exterior14_uvfjvk.webp') center 25% / cover no-repeat; background-attachment: scroll !important; }
    .cinema-section { background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://res.cloudinary.com/dl3t6vykm/image/upload/v1778285663/exterior8_akztor.webp') center/cover no-repeat; background-attachment: scroll !important; }

    .pricing-glass, .header.scrolled, .btn-hero, .modal-grid-header { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: none !important; }
    .pricing-glass { background: rgba(15, 30, 18, 0.95) !important; border: 1px solid rgba(255, 255, 255, 0.15); margin-bottom: 20px; }
    .pricing-glass.featured { background: rgba(44, 74, 52, 0.98) !important; border: 2px solid var(--accent); }

    .hero-content h1 { font-size: 2.8rem; }
    .section-title { font-size: 2rem; }
    .intro-section, .section-pricing, .section-container { padding: 60px 20px; }

    .modal-grid-content { grid-template-columns: repeat(3, 1fr) !important; gap: 2px !important; padding: 2px !important; }
    .modal-grid-header { height: 50px; }
    
    .slide-item { flex: 0 0 88%; margin-right: 10px; }
    .slider-btn { display: none !important; }

    * { box-shadow: none !important; text-shadow: none !important; }
    .reveal, .slide-item, .pricing-glass, .hero-content { transform: translateZ(0); will-change: opacity, transform; backface-visibility: hidden; }
    .video-overlay, .cinema-gradient-overlay { background: rgba(0,0,0,0.4) !important; backdrop-filter: none !important; }
}