/* =========================================
   VARIABLES & RESET
   ========================================= */
:root {
    --bg-main: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-dark: #121513;
    
    --primary: #0F5132;       /* Verde base */
    --primary-light: #18774b;
    --accent: #25D366;        /* WhatsApp */
    
    --text-dark: #1A1D1A;
    --text-gray: #6C757D;
    
    --radius-lg: 24px;
    --font: 'Outfit', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
    font-family: var(--font); color: var(--text-dark);
    background-color: var(--bg-main); line-height: 1.6;
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

h1, h2, h3, h4 { font-weight: 800; line-height: 1.1; letter-spacing: -0.5px; }
a { text-decoration: none; color: inherit; }

/* UTILIDADES */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 100px 0; }
.text-center { text-align: center; }
.bg-light { background-color: var(--bg-light); }
.bg-white { background-color: #FFF; }
.bg-dark { background-color: var(--bg-dark); }
.mb-30 { margin-bottom: 30px; }
.mb-50 { margin-bottom: 50px; }
.text-white { color: #FFF; }
.grid-50-50 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* TÍTULOS */
.section-title { font-size: 3rem; color: var(--text-dark); margin-bottom: 10px; }
.subtitle { font-size: 1.1rem; color: var(--text-gray); font-weight: 400; }

/* BOTONES */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px 32px; border-radius: 50px; font-weight: 700; font-size: 1rem;
    transition: all 0.3s ease; cursor: pointer; border: none;
}
.btn-primary { background: var(--primary); color: #FFF; box-shadow: 0 8px 20px rgba(15, 81, 50, 0.3); }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-3px); box-shadow: 0 12px 25px rgba(15, 81, 50, 0.4); }
.btn-secondary { background: #FFF; color: var(--text-dark); border: 2px solid transparent; box-shadow: 0 8px 20px rgba(0,0,0,0.05); }
.btn-secondary:hover { border: 2px solid var(--primary); color: var(--primary); transform: translateY(-3px); }
.btn-outline-light { border: 2px solid #FFF; color: #FFF; padding: 10px 24px; border-radius: 50px; font-weight: 700; transition: all 0.3s; }
.btn-outline-light:hover { background: #FFF; color: var(--primary); }
.btn-block { width: 100%; }

/* =========================================
   HEADER TIPO PASTILLA (Pill Header)
   ========================================= */
.pill-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1000px;
    background-color: var(--primary);
    border-radius: 50px;
    z-index: 1001; /* Alto para estar arriba del menu movil */
    padding: 12px 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
.pill-container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 35px; transition: height 0.3s; }

.nav-menu ul { display: flex; gap: 30px; list-style: none; }
.nav-menu a { font-weight: 600; color: #FFF; transition: opacity 0.2s; font-size: 0.95rem; }
.nav-menu a:hover { opacity: 0.7; }

.header-cta { display: flex; align-items: center; gap: 20px; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: #FFF; cursor: pointer; }
.mobile-socials { display: none; }

/* =========================================
   HERO
   ========================================= */
.hero { height: 100vh; min-height: 700px; position: relative; display: flex; align-items: center; background: url('../img/hero green park.jpg') center/cover no-repeat; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 100%); }
.hero-content { position: relative; z-index: 2; color: #FFF; max-width: 800px; }
.badge { display: inline-block; padding: 6px 12px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 50px; font-size: 0.85rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 20px; backdrop-filter: blur(5px); }
.hero h1 { font-size: 4.5rem; margin-bottom: 20px; }
.text-gradient { background: linear-gradient(90deg, #FFFFFF, #B9E6C9); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.2rem; font-weight: 300; opacity: 0.9; margin-bottom: 40px; max-width: 600px; }
.hero-buttons { display: flex; gap: 15px; }

/* =========================================
   BENTO GRID & DEPARTAMENTOS
   ========================================= */
.bento-grid, .grid-3-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.bento-card { padding: 40px; border-radius: var(--radius-lg); box-shadow: 0 20px 40px rgba(0,0,0,0.03); transition: transform 0.3s; }
.bento-card:hover { transform: translateY(-10px); }
.icon-box { width: 60px; height: 60px; border-radius: 12px; background: rgba(15, 81, 50, 0.1); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; }
.bento-card h3 { font-size: 1.4rem; margin-bottom: 15px; }
.bento-card p { color: var(--text-gray); font-size: 0.95rem; }

.apt-card { background: #FFF; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.05); display: flex; flex-direction: column; transition: transform 0.3s; }
.apt-card:hover { transform: translateY(-10px); box-shadow: 0 25px 45px rgba(0,0,0,0.1); }
.apt-img { height: 250px; background-size: cover; background-position: center; position: relative; padding: 20px; display: flex; align-items: flex-end; }
.apt-tags { display: flex; gap: 10px; }
.tag { background: rgba(0,0,0,0.6); color: #FFF; padding: 6px 12px; border-radius: 8px; font-size: 0.8rem; font-weight: 600; backdrop-filter: blur(4px); }
.apt-info { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.apt-info h3 { font-size: 1.5rem; margin-bottom: 10px; }
.apt-info p { color: var(--text-gray); font-size: 0.95rem; margin-bottom: 20px; flex-grow: 1; }
.btn-link { color: var(--primary); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; transition: gap 0.3s; }
.btn-link:hover { gap: 12px; }

/* =========================================
   GALERÍA
   ========================================= */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.gallery-item { width: 100%; aspect-ratio: 1; object-fit: cover; cursor: pointer; border-radius: 12px; transition: transform 0.3s, filter 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.gallery-item:hover { transform: scale(1.03); filter: brightness(0.8); }

/* =========================================
   SERVICIOS
   ========================================= */
.list-card { background: #FFF; padding: 40px; border-radius: var(--radius-lg); box-shadow: 0 15px 35px rgba(0,0,0,0.03); height: 100%; }
.check-list-modern { list-style: none; }
.check-list-modern li { padding: 12px 0; border-bottom: 1px solid #f1f1f1; font-size: 0.95rem; color: var(--text-dark); display: flex; align-items: flex-start; gap: 15px; }
.check-list-modern li:last-child { border-bottom: none; padding-bottom: 0; }
.check-list-modern li i { color: var(--primary); font-size: 1.1rem; margin-top: 3px; }

/* =========================================
   MARQUEE (Sin bordes ni fondos extraños)
   ========================================= */
.marquee-wrapper { width: 100%; overflow: hidden; background-color: var(--bg-dark); }
.marquee-track { display: inline-flex; gap: 60px; animation: scrollMarquee 25s linear infinite; padding-left: 60px; }
.marquee-item { display: flex; align-items: center; gap: 15px; font-size: 1.2rem; font-weight: 600; color: #FFF; white-space: nowrap; }
.marquee-item i { color: var(--primary-light); font-size: 1.5rem; }
@keyframes scrollMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* =========================================
   FORMULARIO MODERN
   ========================================= */
.flex-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.contact-methods { margin-top: 40px; display: flex; flex-direction: column; gap: 20px; }
.method { display: flex; align-items: center; gap: 20px; }
.method .icon { width: 50px; height: 50px; background: #FFF; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--primary); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.method h4 { font-size: 0.9rem; color: var(--text-gray); margin-bottom: 2px; }
.method a { font-size: 1.2rem; font-weight: 700; transition: color 0.2s; }
.method a:hover { color: var(--primary); }

.contact-form-wrapper { background: #FFF; padding: 50px; border-radius: var(--radius-lg); box-shadow: 0 25px 50px rgba(0,0,0,0.05); }
.input-group { margin-bottom: 20px; }
.modern-form input, .modern-form textarea { width: 100%; padding: 18px 20px; background: var(--bg-light); border: 2px solid transparent; border-radius: 12px; font-family: var(--font); font-size: 1rem; transition: all 0.3s; }
.modern-form input:focus, .modern-form textarea:focus { outline: none; border-color: var(--primary); background: #FFF; box-shadow: 0 5px 15px rgba(15,81,50,0.1); }
.form-status { margin-top: 15px; font-weight: 700; text-align: center; display: none; }

/* =========================================
   FOOTER
   ========================================= */
.modern-footer { background: var(--bg-dark); color: #FFF; padding-top: 80px; }
.footer-content { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 40px; margin-bottom: 20px; }
.footer-logo img { height: 40px; margin-bottom: 15px; }
.footer-logo p { color: var(--text-gray); font-size: 0.9rem; max-width: 300px; }
.footer-social { display: flex; gap: 15px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.footer-social a:hover { background: var(--primary); transform: translateY(-3px); }
.footer-bottom { text-align: center; padding-bottom: 20px; color: var(--text-gray); font-size: 0.8rem; }
.footer-bottom a { color: #FFF; font-weight: 600; }

/* =========================================
   FLOTANTES & LIGHTBOX
   ========================================= */
.float-wa { position: fixed; bottom: 30px; right: 30px; width: 65px; height: 65px; background: var(--accent); color: #FFF; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4); z-index: 100; transition: transform 0.3s; }
.float-wa::before { content: ''; position: absolute; width: 100%; height: 100%; background: var(--accent); border-radius: 50%; z-index: -1; animation: pulseGlow 2s infinite; }
.float-wa:hover { transform: scale(1.1); }
@keyframes pulseGlow { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.5); opacity: 0; } }

/* Lightbox con fondo transparente oscuro */
.lightbox { display: none; position: fixed; z-index: 9999; top: 0; left: 0; width: 100vw; height: 100vh; background-color: rgba(0,0,0,0.85); justify-content: center; align-items: center; backdrop-filter: blur(5px); }
.lightbox-content { max-width: 85%; max-height: 85vh; border-radius: 10px; box-shadow: 0 15px 40px rgba(0,0,0,0.5); animation: zoomIn 0.3s ease; object-fit: contain; }
.close-lightbox { position: absolute; top: 30px; right: 40px; color: #FFF; font-size: 35px; cursor: pointer; transition: transform 0.2s; z-index: 10000; }
.close-lightbox:hover { transform: scale(1.2); }
.nav-lightbox { position: absolute; top: 50%; transform: translateY(-50%); color: #FFF; font-size: 40px; cursor: pointer; padding: 20px; transition: transform 0.2s; z-index: 10000; }
.nav-lightbox:hover { transform: translateY(-50%) scale(1.2); }
.prev-lightbox { left: 20px; }
.next-lightbox { right: 20px; }

@keyframes zoomIn { from {transform: scale(0.9); opacity: 0;} to {transform: scale(1); opacity: 1;} }

/* =========================================
   CURSOR PERSONALIZADO
   ========================================= */
@media (pointer: fine) {
    body, a, button, input, textarea { cursor: none; }
    .cursor-dot { position: fixed; top: 0; left: 0; width: 6px; height: 6px; background: var(--primary); border-radius: 50%; pointer-events: none; z-index: 999999; }
    .cursor-circle { position: fixed; top: 0; left: 0; width: 36px; height: 36px; border: 1px solid var(--primary); border-radius: 50%; pointer-events: none; z-index: 999998; transition: width 0.2s, height 0.2s, background 0.2s; }
    .cursor-circle.cursor-hover { width: 50px; height: 50px; background: rgba(15,81,50,0.1); border-color: transparent; }
}

/* =========================================
   RESPONSIVE & MENÚ MÓVIL FULLSCREEN
   ========================================= */
@media (max-width: 992px) {
    .section-title { font-size: 2.5rem; }
    .hero h1 { font-size: 3.5rem; }
    .bento-grid, .grid-3-cols, .grid-50-50, .flex-contact { grid-template-columns: 1fr; gap: 30px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { flex-direction: column; align-items: flex-start; gap: 30px; }
}
@media (max-width: 768px) {
    .pill-header { width: 90%; top: 15px; }
    .desktop-only { display: none; }
    .menu-toggle { display: block; }
    
    /* MENÚ MÓVIL FULLSCREEN TIPO OVERLAY */
    .nav-menu {
        position: fixed;
        top: 0; left: 0;
        width: 100vw; height: 100vh;
        background: rgba(15, 81, 50, 0.98); /* Verde semi-transparente */
        backdrop-filter: blur(10px);
        display: flex; flex-direction: column; justify-content: center; align-items: center;
        opacity: 0; visibility: hidden;
        transition: all 0.4s ease;
        z-index: -1; /* Para que quede atrás de la pastilla pero cubra la pantalla */
    }
    .nav-menu.active { opacity: 1; visibility: visible; }
    
    .nav-menu ul { flex-direction: column; align-items: center; gap: 35px; }
    .nav-menu a { font-size: 1.8rem; font-weight: 700; }
    
    .mobile-socials { display: flex; gap: 30px; margin-top: 50px; }
    .mobile-socials a { font-size: 1.8rem; color: #FFF; opacity: 0.8; transition: opacity 0.3s; }
    .mobile-socials a:hover { opacity: 1; }

    .hero { text-align: center; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; }
    .contact-form-wrapper { padding: 30px 20px; }
}