/* ==========================================================================
   R&C ASSESSORIA CONDOMINIAL - PREMIUM DESIGN SYSTEM
   Author: Senior UX/UI Web Designer
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* --- DESIGN TOKENS (Variables) --- */
:root {
    /* Color Palette */
    --color-primary: #172d45;         /* Navy Dark Blue */
    --color-primary-light: #223e5f;   /* Navy Medium Blue */
    --color-primary-dark: #0c1a29;    /* Deep Shadow Navy */
    --color-secondary: #ffffff;       /* Pure White */
    --color-accent: #c5a880;          /* Premium Gold Champagne */
    --color-accent-hover: #b39369;    /* Deep Champagne */
    --color-accent-light: #f5eedf;    /* Light Golden Wash */
    --color-bg-light: #f8fafc;        /* Slate Light Gray */
    --color-bg-alt: #f2f6fa;          /* Section Break Gray */
    --color-text: #1e293b;            /* Dark Slate Body Text */
    --color-text-muted: #57657a;      /* Muted Cool Gray */
    --color-text-white: #ffffff;
    --color-whatsapp: #25d366;        /* WhatsApp Official Green */
    --color-whatsapp-hover: #1fbe57;
    --color-whatsapp-dark: #128c7e;

    /* Typography */
    --font-title: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Shadow Systems */
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 30px rgba(23, 45, 69, 0.06);
    --shadow-lg: 0 20px 40px rgba(23, 45, 69, 0.1);
    --shadow-gold: 0 10px 25px rgba(197, 168, 128, 0.2);
    --shadow-whatsapp: 0 10px 25px rgba(37, 211, 102, 0.3);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease-in-out;
}

/* --- BASE STYLES & RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-secondary);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-light);
}
::-webkit-scrollbar-thumb {
    background: var(--color-primary-light);
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* --- TYPOGRAPHY SCALE --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.25;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    position: relative;
    padding-bottom: 15px;
}

/* Elegant gold line under H2 */
h2.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    border-radius: var(--radius-full);
}

h2.section-title-left::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--color-accent);
    border-radius: var(--radius-full);
}

h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 600;
}

p {
    font-family: var(--font-body);
    color: var(--color-text-muted);
    font-size: 1.05rem;
    font-weight: 400;
}

/* --- GLOBAL UTILITIES & REUSABLE LAYOUTS --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}

/* Button & Call to Action (CTA) Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.btn-whatsapp {
    background-color: var(--color-whatsapp);
    color: var(--color-secondary);
    gap: 10px;
}

.btn-whatsapp:hover {
    background-color: var(--color-whatsapp-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-whatsapp);
}

.btn-whatsapp svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-secondary:hover {
    background-color: var(--color-accent-light);
    color: var(--color-primary-dark);
    transform: translateY(-3px);
}

/* Pulse animation for high contrast */
.pulse-effect {
    position: relative;
}

.pulse-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-full);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    animation: cta-pulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
    pointer-events: none;
}

.pulse-effect-gold::before {
    box-shadow: 0 0 0 0 rgba(197, 168, 128, 0.6);
    animation: cta-pulse-gold 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes cta-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes cta-pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(197, 168, 128, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(197, 168, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(197, 168, 128, 0); }
}

/* Glassmorphism utility */
.glass-panel {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- HEADER & NAVIGATION --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: 20px 0;
}

/* Scrolled state applied via Javascript */
.header.scrolled {
    background: rgba(23, 45, 69, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
}

.header.scrolled .logo-img {
    height: 42px;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: var(--color-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.85;
    transition: var(--transition-fast);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    opacity: 1;
    color: var(--color-accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
}

.nav-cta .btn {
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* Mobile Hamburger Menu Icon */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1010;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-secondary);
    position: absolute;
    left: 0;
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 11px; }
.menu-toggle span:nth-child(3) { top: 22px; }

.menu-toggle.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Mobile Nav Styles */
@media (max-width: 991px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-primary-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: var(--transition-smooth);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
        z-index: 1005;
        padding: 40px;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-cta {
        display: none; /* Hide in mobile nav, show inside menu or page */
    }
}

/* --- HERO SECTION --- */
.hero {
    background-color: var(--color-primary);
    background-image: linear-gradient(135deg, rgba(23, 45, 69, 0.95) 0%, rgba(12, 26, 41, 0.98) 100%), url('https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    padding-bottom: 80px;
    color: var(--color-text-white);
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-tagline {
    background: rgba(197, 168, 128, 0.15);
    border: 1px solid rgba(197, 168, 128, 0.3);
    color: var(--color-accent);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    display: inline-block;
}

.hero h1 {
    color: var(--color-secondary);
    margin-bottom: 24px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    border-left: 3px solid var(--color-accent);
    padding-left: 20px;
    line-height: 1.7;
}

.hero-subtitle strong {
    color: var(--color-secondary);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

@media (min-width: 992px) {
    .hero-actions {
        flex-wrap: nowrap;
    }
    .hero-actions .btn {
        white-space: nowrap;
    }
}

.hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 48px;
    width: 100%;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-accent);
    flex-shrink: 0;
}

.hero-feature-icon svg {
    width: 18px;
    height: 18px;
}

.hero-feature-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Glass card on Hero */
.hero-glass-card {
    border-radius: var(--radius-lg);
    padding: 36px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    animation: float 6s ease-in-out infinite;
}

.hero-glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(197, 168, 128, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-glass-card > * {
    position: relative;
    z-index: 1;
}

.hero-glass-card-logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(197, 168, 128, 0.5);
    overflow: hidden;
}

.hero-glass-card-logo img {
    width: 85%;
    height: 85%;
    object-fit: contain;
}

.hero-glass-card h3 {
    color: var(--color-secondary);
    margin-bottom: 8px;
}

.hero-glass-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.hero-stats-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

.hero-stat-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 10px;
    border-radius: var(--radius-md);
}

.hero-stat-number {
    display: block;
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 4px;
}

.hero-stat-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 60px;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-subtitle {
        border-left: none;
        border-top: 2px solid var(--color-accent);
        padding-left: 0;
        padding-top: 20px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-glass-card {
        margin: 0 auto;
    }
}

/* --- AUTHORITY SECTION --- */
.authority {
    background-color: var(--color-secondary);
}

.authority-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: center;
}

.authority-visual {
    position: relative;
}

.director-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.director-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 5;
    filter: grayscale(10%) contrast(105%);
    transition: var(--transition-smooth);
}

.director-img:hover {
    transform: scale(1.03);
}

.badge-position {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(23, 45, 69, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(197, 168, 128, 0.3);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    color: var(--color-secondary);
}

.badge-position h4 {
    color: var(--color-secondary);
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.badge-position p {
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Elegant gold backing frames */
.authority-visual::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-top: 4px solid var(--color-accent);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--radius-md) 0 0 0;
    z-index: -1;
}

.authority-visual::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-bottom: 4px solid var(--color-accent);
    border-right: 4px solid var(--color-accent);
    border-radius: 0 0 var(--radius-md) 0;
    z-index: -1;
}

.authority-content {
    display: flex;
    flex-direction: column;
}

.authority-tag {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.authority h2 {
    margin-bottom: 24px;
}

.authority-intro {
    font-size: 1.15rem;
    color: var(--color-primary-light);
    font-weight: 500;
    margin-bottom: 24px;
    line-height: 1.6;
}

.authority-bio {
    margin-bottom: 32px;
}

.authority-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.authority-list-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.authority-list-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: var(--color-accent-light);
    border-radius: 50%;
    color: var(--color-accent-hover);
    flex-shrink: 0;
    margin-top: 2px;
}

.authority-list-icon svg {
    width: 14px;
    height: 14px;
}

.authority-list-text strong {
    color: var(--color-primary-dark);
}

.authority-list-text p {
    font-size: 0.98rem;
    line-height: 1.5;
}

@media (max-width: 991px) {
    .authority-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .authority-visual {
        max-width: 480px;
        margin: 0 auto;
    }
}

/* --- SERVICES SECTION --- */
.services {
    background-color: var(--color-bg-light);
    text-align: center;
}

.services-intro {
    max-width: 680px;
    margin: 0 auto 60px;
}

.services-intro h2 {
    margin-bottom: 20px;
}

.services-intro p {
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    background-color: var(--color-secondary);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    text-align: left;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(23, 45, 69, 0.03);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(197, 168, 128, 0.3);
}

.service-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--color-accent-light);
    border-radius: var(--radius-md);
    color: var(--color-primary);
    margin-bottom: 28px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-box {
    background-color: var(--color-primary);
    color: var(--color-accent);
}

.service-icon-box svg {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    margin-bottom: 16px;
    font-size: 1.35rem;
    transition: var(--transition-fast);
}

.service-card:hover h3 {
    color: var(--color-accent-hover);
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 24px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-accent-hover);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.service-link:hover {
    color: var(--color-primary);
}

.service-link svg {
    width: 14px;
    height: 14px;
    transition: var(--transition-fast);
}

.service-link:hover svg {
    transform: translateX(4px);
}

/* --- VISUAL SECTION: DASHBOARD --- */
.visual-dashboard {
    background-color: var(--color-secondary);
    position: relative;
    overflow: hidden;
}

.visual-dashboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(197, 168, 128, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: center;
}

.dashboard-content {
    display: flex;
    flex-direction: column;
}

.dashboard-tag {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.dashboard-content h2 {
    margin-bottom: 24px;
}

.dashboard-text {
    margin-bottom: 32px;
}

.dashboard-text p {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.dashboard-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.dashboard-bullet-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-bullet-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
    border-radius: 50%;
}

.dashboard-bullet-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-primary-light);
}

/* Dashboard Mockup render in CSS/HTML */
.dashboard-mockup {
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(23, 45, 69, 0.08);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    width: 100%;
}

.mockup-header {
    background-color: var(--color-primary-dark);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mockup-dot.red { background-color: #ef4444; }
.mockup-dot.yellow { background-color: #eab308; }
.mockup-dot.green { background-color: #22c55e; }

.mockup-title {
    color: var(--color-secondary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.8;
}

.mockup-header-logo {
    color: var(--color-accent);
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.9rem;
}

.mockup-body {
    padding: 24px;
}

.mockup-nav {
    display: flex;
    gap: 16px;
    border-bottom: 1px solid rgba(23, 45, 69, 0.08);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.mockup-tab {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.mockup-tab.active {
    color: var(--color-primary);
    position: relative;
}

.mockup-tab.active::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
}

.mockup-widgets {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
}

@media (max-width: 576px) {
    .mockup-widgets {
        grid-template-columns: 1fr;
    }
}

.mockup-widget {
    background-color: var(--color-secondary);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(23, 45, 69, 0.04);
}

.widget-title {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary-light);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Charts pure CSS */
.bar-chart {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 120px;
    padding-top: 10px;
}

.chart-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 90px;
    width: 32px;
}

.bar {
    width: 14px;
    border-radius: 4px 4px 0 0;
    transition: var(--transition-smooth);
}

.bar.real {
    background-color: var(--color-accent);
    height: 40%;
}

.bar.prev {
    background-color: var(--color-primary);
    height: 60%;
}

/* Dynamic height adjustments for demo */
.group-1 .bar.real { height: 75%; }
.group-1 .bar.prev { height: 70%; }
.group-2 .bar.real { height: 90%; }
.group-2 .bar.prev { height: 80%; }
.group-3 .bar.real { height: 85%; }
.group-3 .bar.prev { height: 85%; }

.chart-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 500;
}

.legend-color {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.legend-color.prev { background-color: var(--color-primary); }
.legend-color.real { background-color: var(--color-accent); }

.superavit-widget {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.superavit-value-box {
    margin-top: 12px;
    text-align: center;
}

.superavit-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 4px;
}

.superavit-val {
    font-family: var(--font-body);
    font-size: 1.8rem;
    font-weight: 700;
    color: #10b981; /* Emerald active green */
}

.superavit-val.percent {
    font-size: 0.95rem;
    font-weight: 600;
    background-color: #ecfdf5;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-top: 4px;
}

.mini-sparkline {
    height: 45px;
    margin-top: 16px;
    stroke: var(--color-accent);
    fill: rgba(197, 168, 128, 0.08);
}

@media (max-width: 991px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* --- TESTIMONIALS SECTION --- */
.testimonials {
    background-color: var(--color-bg-alt);
    text-align: center;
    overflow: hidden;
}

.testimonials-intro {
    max-width: 680px;
    margin: 0 auto 60px;
}

.testimonials-intro h2 {
    margin-bottom: 20px;
}

/* Carousel Engine */
.carousel-wrapper {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 40px;
}

.carousel-container {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.testimonial-card {
    min-width: 100%;
    width: 100%;
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    padding: 60px 48px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(23, 45, 69, 0.04);
    position: relative;
    text-align: left;
}

@media (max-width: 576px) {
    .testimonial-card {
        padding: 40px 24px;
    }
}

.quote-icon {
    position: absolute;
    top: 40px;
    right: 48px;
    font-size: 5rem;
    color: rgba(197, 168, 128, 0.12);
    font-family: Georgia, serif;
    line-height: 0;
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    color: var(--color-accent);
    margin-bottom: 24px;
}

.testimonial-stars svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.testimonial-text {
    font-family: var(--font-title);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-style: italic;
    color: var(--color-primary-light);
    line-height: 1.6;
    margin-bottom: 32px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-bg-alt);
    border: 2px solid var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.author-info h4 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-primary-dark);
}

.author-info p {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-accent-hover);
}

/* Nav Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background-color: var(--color-secondary);
    border: 1px solid rgba(23, 45, 69, 0.08);
    border-radius: 50%;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    z-index: 10;
}

.carousel-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-accent);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.carousel-btn.prev {
    left: -15px;
}

.carousel-btn.next {
    right: -15px;
}

.carousel-btn svg {
    width: 18px;
    height: 18px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(23, 45, 69, 0.15);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.carousel-dot.active {
    background-color: var(--color-accent);
    width: 24px;
    border-radius: var(--radius-full);
}

/* --- FOOTER & PERSISTENT CONVERSION --- */
.footer {
    background-color: var(--color-primary-dark);
    color: var(--color-text-white);
    padding-top: 80px;
    padding-bottom: 40px;
    border-top: 4px solid var(--color-accent);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.footer-logo-img {
    height: 52px;
    width: auto;
    border-radius: var(--radius-sm);
    background: var(--color-secondary);
    padding: 3px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: var(--color-secondary);
    font-size: 1.1rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-accent);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--color-accent);
    transform: translateX(4px);
}

.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.footer-contact-icon {
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 4px;
}

.footer-contact-icon svg {
    width: 16px;
    height: 16px;
}

.footer-contact-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.footer-contact-text strong {
    color: var(--color-secondary);
}

.footer-contact-text a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-contact-text a:hover {
    color: var(--color-accent);
}

/* --- CONTACT FORM SECTION --- */
.contact-form-section {
    background-color: var(--color-bg-light);
}

.contact-form {
    max-width: 860px;
    margin: 0 auto;
    background: var(--color-secondary);
    border: 1px solid rgba(23, 45, 69, 0.06);
    border-radius: var(--radius-lg);
    padding: 42px 36px;
    box-shadow: var(--shadow-md);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 576px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .contact-form {
        padding: 28px 20px;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group-full {
    margin-bottom: 24px;
}

.form-group label {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
}

.form-group label .required {
    color: #ef4444;
}

.form-group input,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-bg-light);
    border: 1px solid rgba(23, 45, 69, 0.1);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    transition: var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(87, 101, 122, 0.5);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    text-align: center;
}

.contact-success {
    max-width: 860px;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.2);
    border-radius: var(--radius-md);
    color: #15803d;
}

.contact-success p {
    color: #15803d;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
}

.footer-socials {
    margin-top: 22px;
}

.footer-social-icons {
    list-style: none !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 16px !important;
    margin: 18px 0 0 !important;
    padding: 0 !important;
}

.footer-social-icons li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.footer-social-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    text-decoration: none !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.footer-social-icon {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
    display: block !important;
    color: inherit !important;
    transition: transform var(--transition-fast);
}

.social-instagram {
    color: #e1306c !important;
    background: rgba(225, 48, 108, 0.12) !important;
    border-color: rgba(225, 48, 108, 0.22) !important;
}

.social-facebook {
    color: #1877f2 !important;
    background: rgba(24, 119, 242, 0.12) !important;
    border-color: rgba(24, 119, 242, 0.22) !important;
}

.social-linkedin {
    color: #0a66c2 !important;
    background: rgba(10, 102, 194, 0.12) !important;
    border-color: rgba(10, 102, 194, 0.22) !important;
}

.footer-social-link:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.footer-social-link:hover .footer-social-icon {
    transform: scale(1.08);
}

.footer-social-link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

.footer-col > div > a[href*="instagram"]:hover,
.footer-col > div > a[href*="facebook"]:hover,
.footer-col > div > a[href*="linkedin"]:hover {
    background: rgba(196, 168, 128, 0.18) !important;
    border-color: rgba(196, 168, 128, 0.35) !important;
    color: #d4b890 !important;
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 24px;
}

@media (max-width: 576px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
}

.footer-dev-row {
    display: flex;
    align-items: center;
    margin-left: auto;
    flex: 0 0 auto;
}

.footer-dev-row a {
    display: inline-flex;
    align-items: center;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal-link {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-legal-link:hover {
    color: var(--color-accent);
}

/* --- PERSISTENT FLOATING WHATSAPP CTA --- */
.floating-whatsapp {
    position: fixed;
    bottom: 55px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--color-whatsapp);
    color: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    text-decoration: none;
    transition: var(--transition-smooth);
    opacity: 0;
    transform: scale(0.5) translateY(20px);
    pointer-events: none; /* activated via scroll script */
}

.floating-whatsapp.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.floating-whatsapp:hover {
    background-color: var(--color-whatsapp-hover);
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
}

.floating-whatsapp svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* --- LEGAL PAGES --- */
.legal-page {
    background: var(--color-bg-light);
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.legal-back:hover {
    color: var(--color-accent-hover);
    transform: translateX(-3px);
}

.legal-card {
    max-width: 860px;
    margin: 0 auto;
    background: var(--color-secondary);
    border: 1px solid rgba(23, 45, 69, 0.06);
    border-radius: var(--radius-lg);
    padding: 48px 42px;
    box-shadow: var(--shadow-lg);
}

.legal-card h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 6px;
}

.legal-card h2 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-top: 32px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(23, 45, 69, 0.06);
}

.legal-card p,
.legal-card li {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.legal-card ul {
    margin: 12px 0 0 20px;
}

.legal-card a {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition-fast);
}

.legal-card a:hover {
    color: var(--color-accent-hover);
}

.legal-meta {
    margin-top: 4px;
    margin-bottom: 28px;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    font-style: italic;
}

@media (max-width: 576px) {
    .legal-card {
        padding: 28px 20px;
    }
}

.floating-whatsapp::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    animation: cta-pulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

.footer-copyright {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    line-height: 1;
    white-space: nowrap;
}

.footer-copyright > a {
    display: block;
    margin-right: 40px !important;
    flex-shrink: 0;
}

.footer-dev-logo {
    height: 20px;
    display: block;
    width: auto;
}
