/* ─── Variables y Reset ─── */
:root { --navy: #0A2540; --accent: #FF7B00; --accent-hover: #e06c00; }
body { font-family: 'Inter', sans-serif; background-color: #F8F9FA; margin: 0; padding-top: 90px; overflow-x: hidden; }
html { scroll-behavior: smooth; }
* { box-sizing: border-box; }

/* ── NAVEGACIÓN ── */
#site-header { backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); background: rgba(10, 37, 64, 0.95); border-bottom: 1px solid rgba(255, 123, 0, 0.3); box-shadow: 0 4px 32px rgba(0, 0, 0, 0.22); height: 90px; transition: all 0.3s; }
.nav-link-anim { position: relative; padding-bottom: 2px; color: rgba(255, 255, 255, 0.72); font-family: Inter, sans-serif; font-size: 1rem; font-weight: 500; text-decoration: none; transition: color 0.2s; }
.nav-link-anim:hover, .nav-link-anim.active { color: white; }
.nav-link-anim::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.3s ease; }
.nav-link-anim:hover::after, .nav-link-anim.active::after { width: 100%; }

/* ── BOTONES CTA ── */
.nav-cta-btn, .cta-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: white !important; font-family: Inter, sans-serif; font-weight: 600; padding: 12px 28px; border-radius: 9999px; border: none; cursor: pointer; text-decoration: none; box-shadow: 0 4px 20px rgba(255, 123, 0, 0.35); transition: background 0.3s, transform 0.25s; font-size: 1rem; }
.nav-cta-btn:hover, .cta-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255, 123, 0, 0.50); }

/* ── MENÚ MOBILE ── */
#mobile-nav { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; border-top: 1px solid rgba(255, 255, 255, 0.08); background: var(--navy); }
#mobile-nav.open { max-height: 400px; padding-bottom: 20px; }

/* ── HERO CARRUSEL ── */
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease-in-out; z-index: 0; }
.hero-slide.is-active { opacity: 1; z-index: 1; }

/* ── ANIMACIONES DE SCROLL ── */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* ── TARJETAS MISIÓN Y VISIÓN ── */
.mv-card { background: linear-gradient(145deg, #ffffff, #f8fafc); border-radius: 20px; padding: 40px 30px; text-align: center; border: 1px solid rgba(10,37,64,0.05); box-shadow: 0 10px 30px rgba(0,0,0,0.04); transition: transform 0.4s ease, box-shadow 0.4s ease; position: relative; overflow: hidden; }
.mv-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--accent); transform: scaleX(0); transition: transform 0.4s ease; transform-origin: left; }
.mv-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(10,37,64,0.12); }
.mv-card:hover::before { transform: scaleX(1); }
.mv-icon { width: 70px; height: 70px; background: rgba(10,37,64,0.05); color: var(--accent); border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; margin-bottom: 20px; transition: transform 0.4s; }
.mv-card:hover .mv-icon { transform: scale(1.1) rotate(5deg); background: var(--navy); color: white; }
.mv-card h3 { font-family: Montserrat, sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--navy); margin-bottom: 15px; }
.mv-card p { font-family: Inter, sans-serif; font-size: 0.95rem; color: #64748b; line-height: 1.7; }

/* ── TARJETAS DE CATÁLOGO ── */
.card-casa { background: #ffffff; border: 1px solid rgba(10, 37, 64, 0.09); border-radius: 16px; cursor: pointer; display: flex; flex-direction: column; transition: 0.3s; overflow: hidden; height: 100%; box-shadow: 0 10px 20px rgba(0,0,0,0.03); }
.card-casa:hover { transform: translateY(-10px); box-shadow: 0 20px 48px rgba(10, 37, 64, 0.14); border-color: rgba(255, 123, 0, 0.3); }
.card-img-wrap { position: relative; overflow: hidden; height: 250px; width: 100%; flex-shrink: 0; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; border-bottom: 4px solid var(--accent); transition: transform 0.5s ease; display: block; }
.card-casa:hover .card-img-wrap img { transform: scale(1.08); }
.card-cat-badge { position: absolute; top: 15px; left: 15px; background: rgba(10, 37, 64, 0.85); backdrop-filter: blur(4px); color: white; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 6px 14px; border-radius: 9999px; z-index: 10; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.card-body-new { padding: 25px; display: flex; flex-direction: column; flex: 1; }
.card-area-chip { align-self: flex-start; background: rgba(255, 123, 0, 0.1); color: var(--accent); font-family: Montserrat, sans-serif; font-size: 0.8rem; font-weight: 800; padding: 4px 12px; border-radius: 6px; margin-bottom: 12px; }
.card-h3 { font-family: Montserrat, sans-serif; font-size: 1.4rem; font-weight: 800; color: #0A2540; margin-bottom: 10px; }
.card-p { font-family: Inter, sans-serif; font-size: 0.9rem; color: #718096; line-height: 1.6; margin-bottom: 20px; flex: 1; }
.card-stats-row { display: flex; align-items: center; gap: 15px; padding: 12px 15px; background: #F8F9FA; border-radius: 10px; margin-bottom: 20px; border: 1px solid #edf2f7; }
.card-stat-item { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: #4A5568; }
.card-stat-item i { color: var(--accent); font-size: 1.1rem; }
.card-btn-details { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px; border-radius: 12px; background: #0A2540; color: white; font-weight: 700; font-size: 0.95rem; border: none; cursor: pointer; transition: 0.3s; }
.card-btn-details:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255, 123, 0, 0.3); }

/* ── GALERÍA PREMIUM (ÁLBUMES) ── */
.gal-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 280px; gap: 20px; }
.gal-item { position: relative; border-radius: 16px; overflow: hidden; display: block; width: 100%; height: 100%; box-shadow: 0 8px 20px rgba(0,0,0,0.08); cursor: pointer; background: #0A2540; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s; display: block; }
.gal-item:hover img { transform: scale(1.1); opacity: 0.7; }
.gal-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,37,64,0.95) 0%, rgba(10,37,64,0.4) 50%, transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; opacity: 0; transition: 0.4s ease-in-out; }
.gal-item:hover .gal-overlay { opacity: 1; }
.gal-icon { align-self: flex-end; background: var(--accent); color: white; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; transform: translateY(20px); opacity: 0; transition: 0.4s; margin-bottom: auto; box-shadow: 0 5px 15px rgba(255,123,0,0.4); }
.gal-item:hover .gal-icon { transform: translateY(0); opacity: 1; transition-delay: 0.1s; }
.gal-overlay h4 { color: white; margin: 0; font-family: Montserrat, sans-serif; font-size: 1.4rem; font-weight: 800; transform: translateY(15px); transition: 0.4s; }
.gal-item:hover .gal-overlay h4 { transform: translateY(0); transition-delay: 0.2s; }
.gal-overlay p { color: rgba(255,255,255,0.8); font-size: 0.95rem; margin: 5px 0 0 0; transform: translateY(15px); opacity: 0; transition: 0.4s; }
.gal-item:hover .gal-overlay p { transform: translateY(0); opacity: 1; transition-delay: 0.3s; }
.gc-large { grid-column: span 2; grid-row: span 2; }
@media(max-width:900px) { .gal-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; } .gc-large { grid-column: span 2; grid-row: span 1; } }
@media(max-width:600px) { .gal-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; } .gc-large { grid-column: span 1; grid-row: span 1; } }

/* ── LIGHTBOX MULTI-FOTO AVANZADO ── */
#lightbox { position: fixed; inset: 0; background: rgba(10, 37, 64, 0.98); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 99999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
#lightbox.active { opacity: 1; pointer-events: all; }
.lightbox-content { max-width: 85%; z-index: 10; display: flex; flex-direction: column; align-items: center; }
#lightbox-img { max-width: 100%; max-height: 75vh; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); transform: scale(0.95); transition: transform 0.3s ease; border: 4px solid white; object-fit: contain; background: black; }
#lightbox.active #lightbox-img { transform: scale(1); }
#lightbox-close { position: absolute; top: 30px; right: 40px; color: white; font-size: 2rem; cursor: pointer; background: rgba(255,255,255,0.1); width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.2s; border: none; z-index: 20; }
#lightbox-close:hover { background: var(--accent); transform: rotate(90deg); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: none; color: white; font-size: 2rem; width: 60px; height: 60px; border-radius: 50%; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; z-index: 20; }
.lightbox-nav:hover { background: var(--accent); scale: 1.1; }
#lightbox-prev { left: 40px; }
#lightbox-next { right: 40px; }
#lightbox-counter { color: white; margin-top: 15px; font-weight: 800; tracking: widest; font-size: 1.1rem; background: rgba(0,0,0,0.5); padding: 5px 15px; border-radius: 20px; }
@media(max-width:600px) { .lightbox-content { max-width: 100%; padding: 0 10px; } #lightbox-prev { left: 10px; width: 45px; height: 45px; font-size: 1.2rem; } #lightbox-next { right: 10px; width: 45px; height: 45px; font-size: 1.2rem; } #lightbox-close { top: 15px; right: 15px; width: 40px; height: 40px; font-size: 1.5rem; } #lightbox-img { border-width: 2px; } }

/* ── COTIZACIÓN Y WHATSAPP ── */
#cotiz-overlay { position: fixed; inset: 0; background: rgba(10, 37, 64, 0.6); backdrop-filter: blur(5px); z-index: 9900; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
#cotiz-overlay.cotiz-open { opacity: 1; pointer-events: all; }
#cotiz-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(450px, 100vw); background: #fff; z-index: 9901; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); overflow-y: auto; box-shadow: -12px 0 60px rgba(10,37,64,0.2); }
#cotiz-panel.cotiz-open { transform: translateX(0); }
.cotiz-header { padding: 30px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; }
.cotiz-title { font-family: Montserrat, sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--navy); }
.cotiz-close { background: #f1f5f9; border: none; width: 35px; height: 35px; border-radius: 8px; cursor: pointer; font-size: 1.2rem; color: #64748b; transition: 0.2s; }
.cotiz-close:hover { background: rgba(255, 123, 0, 0.1); color: var(--accent); transform: rotate(90deg); }
.cotiz-form { padding: 30px; display: flex; flex-direction: column; gap: 20px; }
.cotiz-field label { font-size: 0.8rem; font-weight: 700; color: var(--navy); text-transform: uppercase; margin-bottom: 5px; display: block; }
.cotiz-input, .cotiz-select { width: 100%; padding: 14px; border-radius: 8px; border: 1.5px solid #e2e8f0; background: #f8fafc; outline: none; transition: 0.3s; font-family: Inter, sans-serif; font-size: 1rem; }
.cotiz-input:focus, .cotiz-select:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(255, 123, 0, 0.1); }

@keyframes wfPulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(2); opacity: 0; } }
#wf-btn { position: fixed; bottom: 30px; right: 30px; background: #25D366; width: 65px; height: 65px; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 9000; box-shadow: 0 4px 20px rgba(37,211,102,0.4); transition: transform 0.3s; cursor: pointer; border: none;}
#wf-btn:hover { transform: scale(1.1); }
#wf-btn::before, #wf-btn::after { content: ''; position: absolute; width: 100%; height: 100%; border-radius: 50%; border: 2px solid #25D366; animation: wfPulse 2s infinite; }
#wf-btn::after { animation-delay: 1s; }