/* ==========================================================
   CondoSuite PRO — Modern Mobile-First Rebirth (v3.0)
   Design Language: Premium, Fast, Inter-based
   ========================================================== */

/* --- Variables (Token System) --- */
:root {
    --primary:       #2563EB;
    --primary-dark:  #1D4ED8;
    --primary-light: #EFF6FF;
    --secondary:     #64748B;
    --dark:          #111827;
    --darker:        #030712;
    --surface:       #FFFFFF;
    --background:    #F8FAFC;
    --border:        #E2E8F0;
    --border-color:  #E2E8F0;
    --success:       #10B981;
    --warning:       #F59E0B;
    --danger:        #EF4444;
    --p-mobile:      24px;
    --p-desktop:     10%;
    --radius-sm:     0.5rem;
    --radius-md:     0.75rem;
    --radius-lg:     1.5rem;
    --radius-full:   9999px;
    --shadow-sm:     0 1px 3px 0 rgb(0 0 0 / 0.1);
    --shadow-md:     0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg:     0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-blue:   0 10px 30px -10px rgba(37, 99, 235, 0.35);
    --transition:    all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; overflow-x: hidden; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; color: var(--dark); line-height: 1.6; background: var(--surface); }
h1, h2, h3, h4, h5 { color: var(--darker); font-weight: 800; line-height: 1.2; letter-spacing: -0.025em; }
p { color: var(--secondary); word-wrap: break-word; overflow-wrap: break-word; }
img, video, iframe { max-width: 100%; height: auto; border: none; }

/* Utilities */
.container { width: 100%; padding: 0 var(--p-mobile); }
@media (min-width: 1200px) { .container { max-width: 1200px; margin: 0 auto; padding: 0; } }
.d-none { display: none !important; }
.d-md-block { display: none; }
@media (min-width: 768px) { .d-md-none { display: none !important; } .d-md-flex { display: flex !important; } .d-md-block { display: block !important; } }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 72px; background: transparent; transition: var(--transition); }
.navbar.scrolled, .navbar.navbar-solid { background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 0 var(--p-mobile); max-width: 100% !important; }
.nav-logo img { height: 38px; width: auto; transition: var(--transition); }
.nav-links { display: none; }
.nav-toggle { background: transparent; border: none; font-size: 1.5rem; color: var(--darker); cursor: pointer; padding: 8px; }
.navbar.navbar-transparent:not(.scrolled) .nav-toggle { color: #fff; }

/* Mobile Menu */
.nav-mobile-overlay { position: fixed; inset: 0; background: var(--surface); z-index: 1100; padding: 24px; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; }
.nav-mobile-overlay.active { transform: translateX(0); }
.nav-mobile-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.nav-close { width: 44px; height: 44px; border-radius: 50%; background: var(--background); border: none; font-size: 1.25rem; cursor: pointer; }
.nav-mobile-links { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.nav-mobile-links a { text-decoration: none; font-size: 1.75rem; font-weight: 800; color: var(--darker); }
.nav-mobile-links a.active { color: var(--primary); }
.nav-mobile-footer { margin-top: auto; padding-bottom: 24px; }

/* ============================================
   SECTIONS & HEROES
   ============================================ */
.section { padding: 64px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header.centered { text-align: center; }

.section-label {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-title { font-size: 2rem; margin-bottom: 20px; }
.section-sub { font-size: 1.1rem; max-width: 650px; margin: 0 auto; line-height: 1.5; color: var(--secondary); }

/* Hero */
.hero { padding: 120px 0 64px; text-align: center; position: relative; overflow: hidden; }
.hero-content { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.25rem, 10vw, 3.75rem); margin-bottom: 24px; }
.hero-sub { margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; flex-direction: column; gap: 16px; }
.hero-visual { margin-top: 48px; width: 100%; }

.hero-mockup {
    border-radius: var(--radius-lg);
    padding: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.3);
    animation: float 6s ease-in-out infinite;
}

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

/* Page Hero — Interior Pages */
.page-hero {
    padding: 140px 0 72px;
    text-align: center;
    background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.25) 0%, transparent 70%);
    top: -200px; right: -150px;
    border-radius: 50%;
    pointer-events: none;
}

.page-hero h1 { color: white; }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 640px; margin: 16px auto 0; }
.page-hero .section-label { background: rgba(255,255,255,0.12); color: #93c5fd; }

/* ============================================
   GRIDS
   ============================================ */
.grid-stack { display: flex; flex-direction: column; gap: 24px; }

/* Cards */
.card {
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(37,99,235,0.2); }

.card-icon {
    width: 54px; height: 54px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 24px;
    transition: var(--transition);
}

.card:hover .card-icon { background: var(--primary); color: white; transform: scale(1.1); }

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar { background: var(--surface); padding: 48px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; text-align: center; }
.stat-number { font-size: 2.25rem; font-weight: 800; color: var(--primary); display: block; margin-bottom: 4px; letter-spacing: -0.04em; }
.stat-label { font-size: 0.72rem; color: var(--secondary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }

/* ============================================
   HERO TRUST BADGES
   ============================================ */
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; justify-content: center; }
.trust-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.88);
    font-size: 0.76rem; font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-full);
}
.trust-badge i { color: #86efac; font-size: 0.7rem; }

/* ============================================
   BADGE NUEVO (animado)
   ============================================ */
.badge-new {
    display: inline-flex; align-items: center; gap: 5px;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: white;
    font-size: 0.68rem; font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    animation: pulse-badge 2.5s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(124,58,237,0); }
}

/* ============================================
   FEATURE CAPABILITIES
   ============================================ */
.capability-group {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

.capability-group:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.capability-group.featured-module {
    border-color: var(--primary);
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.08), var(--shadow-md);
}

.capability-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px dashed var(--border); }
.capability-header i { font-size: 1.5rem; color: var(--primary); }
.capability-header h3 { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--darker); flex: 1; }

.tech-badge {
    font-size: 0.65rem;
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.05em;
}

.tech-badge.badge-new-tag {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: white;
    animation: pulse-badge 2.5s ease-in-out infinite;
}

.capability-list { list-style: none; }
.capability-list li { display: flex; align-items: start; gap: 10px; font-size: 0.88rem; margin-bottom: 11px; color: var(--secondary); line-height: 1.45; }
.capability-list li i { color: var(--success); margin-top: 3px; flex-shrink: 0; font-size: 0.8rem; }

/* ============================================
   INTERIOR PAGES
   ============================================ */
.section-light { background: var(--surface); }
.section-muted { background: var(--background); }

/* Pricing */
.price-card { padding: 44px 36px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); position: relative; display: flex; flex-direction: column; transition: var(--transition); }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.price-card.featured { border-color: var(--primary); box-shadow: var(--shadow-blue); }
.price-badge { position: absolute; top: -12px; right: 24px; background: var(--primary); color: white; padding: 4px 14px; border-radius: var(--radius-full); font-size: 0.7rem; font-weight: 800; }
.price-name { font-size: 1.25rem; font-weight: 800; color: var(--darker); }
.price-divider { margin: 24px 0; border: none; border-top: 1px dashed var(--border); }
.price-features { list-style: none; margin-bottom: 32px; flex-grow: 1; }
.price-features li { display: flex; align-items: start; gap: 12px; font-size: 0.9rem; margin-bottom: 12px; color: var(--secondary); }
.price-features li i { color: var(--success); margin-top: 4px; }

/* Contact */
.contact-info-item { display: flex; gap: 20px; margin-bottom: 32px; }
.contact-info-icon { width: 44px; height: 44px; background: var(--primary-light); color: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-item h4 { font-size: 1rem; margin-bottom: 4px; }
.contact-form-card { background: var(--surface); padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 8px; color: var(--darker); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); font-family: inherit; font-size: 1rem; transition: var(--transition); background: var(--surface); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37,99,235,0.1); }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-row { display: flex; flex-direction: column; gap: 0; }

/* CTA */
.cta-section {
    background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 60%, #1e40af 100%);
    color: white; padding: 80px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-section::before { content: ''; position: absolute; width: 500px; height: 500px; background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%); top: -200px; left: -100px; border-radius: 50%; }
.cta-section h2 { color: white; font-size: 2rem; margin-bottom: 16px; position: relative; }
.cta-section p { color: rgba(255,255,255,0.8); position: relative; }
.cta-actions { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--radius-md); font-weight: 700;
    text-decoration: none; transition: var(--transition); border: 2px solid transparent;
    cursor: pointer; font-family: inherit; font-size: 0.95rem;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(37,99,235,0.5); }
.btn-ghost { border-color: var(--border); color: var(--dark); }
.btn-ghost:hover { background: var(--background); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: #f0f9ff; transform: translateY(-2px); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary-light); }
.btn-lg { padding: 16px 36px; font-size: 1.125rem; }

/* ============================================
   WHATSAPP FLOATING CTA (Mobile Only)
   ============================================ */
.wa-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 999;
    width: 56px; height: 56px;
    background: #25D366; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.6rem;
    box-shadow: 0 8px 24px rgba(37,211,102,0.5);
    text-decoration: none;
    animation: wa-bounce 3s ease infinite;
    transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.1); }
@keyframes wa-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ============================================
   TESTIMONIALS (ocultos — activar con display:block)
   ============================================ */
.testimonials-section { display: none; }
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; position: relative; transition: var(--transition); }
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.testimonial-card::before { content: '"'; position: absolute; top: 16px; left: 24px; font-size: 4rem; color: var(--primary-light); font-family: Georgia, serif; line-height: 1; }
.testimonial-text { font-size: 0.95rem; line-height: 1.75; color: var(--dark); margin-bottom: 20px; padding-top: 28px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; color: var(--primary); font-weight: 800; flex-shrink: 0; }
.testimonial-name { font-weight: 700; font-size: 0.9rem; color: var(--darker); }
.testimonial-role { font-size: 0.8rem; color: var(--secondary); }
.testimonial-stars { color: #F59E0B; font-size: 0.85rem; margin-bottom: 4px; letter-spacing: 2px; }

/* ============================================
   BLOG
   ============================================ */
.blog-header { padding: 140px 0 64px; background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 100%); color: white; text-align: center; position: relative; overflow: hidden; }
.blog-header::before { content: ''; position: absolute; width: 500px; height: 500px; background: radial-gradient(circle, rgba(37,99,235,0.2) 0%, transparent 70%); top: -200px; right: -100px; border-radius: 50%; }
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 60px var(--p-mobile); max-width: 1200px; margin: 0 auto; }
.blog-card { background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid var(--border); display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); border-color: rgba(37,99,235,0.2); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-content { padding: 24px; flex-grow: 1; }
.blog-category { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); margin-bottom: 10px; display: block; }
.blog-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--darker); line-height: 1.4; }
.blog-card p { color: var(--secondary); font-size: 0.9rem; line-height: 1.6; margin-bottom: 0; }
.blog-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--secondary); }
.read-more { color: var(--primary); font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 5px; font-size: 0.82rem; transition: gap 0.2s ease; }
.read-more:hover { gap: 10px; }

/* ============================================
   BLOG POST — READING EXPERIENCE
   ============================================ */
.post-header { padding: 140px 0 80px; background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%); color: white; text-align: center; position: relative; overflow: hidden; }
.post-header-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; opacity: 0.15; filter: blur(8px); background-size: cover; background-position: center; }
.post-container { max-width: 760px; margin: -60px auto 80px; background: white; padding: 48px var(--p-mobile); border-radius: var(--radius-lg); box-shadow: 0 20px 50px rgba(0,0,0,0.1); position: relative; z-index: 10; }
.post-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--secondary); font-size: 0.85rem; margin-bottom: 24px; border-bottom: 1px solid var(--border); padding-bottom: 20px; align-items: center; }
.post-reading-time { margin-left: auto; background: var(--primary-light); color: var(--primary); padding: 2px 10px; border-radius: var(--radius-full); font-weight: 700; font-size: 0.75rem; }
.post-content { color: #334155; line-height: 1.85; font-size: 1.05rem; }
.post-content h2 { margin: 40px 0 16px; color: var(--darker); font-size: 1.55rem; }
.post-content h3 { margin: 32px 0 12px; color: var(--darker); font-size: 1.2rem; }
.post-content p { margin-bottom: 20px; }
.post-content ul, .post-content ol { margin: 0 0 20px 20px; }
.post-content li { margin-bottom: 8px; color: #334155; }
.post-content blockquote { border-left: 4px solid var(--primary); padding: 16px 20px; background: var(--primary-light); border-radius: 0 var(--radius-md) var(--radius-md) 0; margin: 24px 0; font-style: italic; }
.back-btn { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); text-decoration: none; font-weight: 700; margin-bottom: 28px; font-size: 0.9rem; transition: gap 0.2s ease; }
.back-btn:hover { gap: 12px; }

/* ============================================
   ANIMATIONS — Scroll Triggered (via JS)
   ============================================ */
.animate-in { opacity: 0; transform: translateY(28px); transition: opacity 0.62s ease, transform 0.62s ease; }
.animate-in.visible { opacity: 1; transform: translateY(0); }
.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

/* ============================================
   DESKTOP (768px+)
   ============================================ */
@media (min-width: 768px) {
    .nav-inner { padding: 0 5%; }
    .nav-links { display: flex; list-style: none; gap: 32px; }
    .nav-links a { text-decoration: none; color: var(--darker); font-weight: 600; font-size: 0.95rem; position: relative; }
    .nav-links a.active::after { content: ''; position: absolute; bottom: -8px; left: 0; right: 0; height: 2px; background: var(--primary); border-radius: 2px; }
    .navbar.navbar-transparent:not(.scrolled) .nav-links a { color: #fff; }
    .nav-toggle { display: none; }

    .hero { text-align: left; padding: 180px 0 100px; min-height: 80vh; display: flex; align-items: center; }
    .hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
    .hero-sub { margin-left: 0; }
    .hero-actions { flex-direction: row; }
    .hero-visual { margin-top: 0; }
    .hero-trust { justify-content: flex-start; }

    .section { padding: 96px 0; }
    .section-title { font-size: 2.75rem; }

    .grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

    .stats-grid { grid-template-columns: repeat(4, 1fr); }
    .stat-number { font-size: 3rem; }

    .form-row { flex-direction: row; gap: 20px; }
    .form-row .form-group { flex: 1; }

    .cta-section h2 { font-size: 3rem; }
    .cta-actions { flex-direction: row; justify-content: center; }

    .wa-float { display: none; }

    .blog-grid { grid-template-columns: repeat(2, 1fr); padding: 60px 5%; }

    .post-container { padding: 56px 64px; }
}

@media (min-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(3, 1fr); }
}
