/* ==========================================================================
   AZ INTEGRITY TAX & LEGAL ADVISORY
   Master Corporate Design System & Google Ads Compliance CSS
   República Argentina - CUIT 30-71829450-8 / CPCECABA T° 412 F° 89
   ========================================================================== */

:root {
    --primary: #D97706;
    --primary-hover: #B45309;
    --primary-light: #FEF3C7;
    --primary-glow: rgba(217, 119, 6, 0.18);
    --navy-deep: #0A192F;
    --navy-header: #071322;
    --navy-surface: #1E293B;
    --navy-card: #0F172A;
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --text-light: #F8FAFC;
    --bg-ice: #F8FAFC;
    --border-color: #E2E8F0;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --shadow-sm: 0 2px 8px rgba(10, 25, 47, 0.06);
    --shadow-md: 0 8px 24px rgba(10, 25, 47, 0.08);
    --shadow-lg: 0 16px 40px rgba(10, 25, 47, 0.14);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-dark);
    background-color: #FFFFFF;
    font-size: 15px;
    line-height: 1.65;
    overflow-x: hidden;
    padding-top: 108px; /* Top strip (34px) + Navbar (74px) */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    color: var(--navy-deep);
    letter-spacing: -0.3px;
}

/* ==========================================================================
   Header & Navigation Architecture (Fixed, Perfectly Scaled, No Overlaps)
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1020;
    background: #FFFFFF;
    box-shadow: 0 2px 15px rgba(10, 25, 47, 0.07);
    transition: all 0.3s ease;
}

/* Top Trust Strip */
.top-strip {
    background: var(--navy-deep);
    color: #94A3B8;
    font-size: 12px;
    height: 34px;
    line-height: 34px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-strip a {
    color: #CBD5E1;
    text-decoration: none;
    transition: color 0.2s;
}
.top-strip a:hover {
    color: #F59E0B;
}
.top-strip .strip-badge {
    background: rgba(217, 119, 6, 0.2);
    color: #FBBF24;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Main Navbar */
.main-navbar {
    min-height: 74px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.main-navbar .navbar-brand {
    padding: 0;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.main-navbar .navbar-nav {
    display: flex;
    align-items: center;
}
.main-navbar .navbar-nav .nav-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1E293B;
    padding: 8px 11px;
    letter-spacing: 0.1px;
    white-space: nowrap;
    transition: color 0.2s ease;
}
.main-navbar .navbar-nav .nav-link:hover,
.main-navbar .navbar-nav .nav-item.active .nav-link {
    color: var(--primary);
}
.main-navbar .navbar-nav .dropdown-menu {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
    margin-top: 10px;
    border-top: 3px solid var(--primary);
}
.main-navbar .dropdown-item {
    font-size: 13px;
    font-weight: 600;
    padding: 9px 18px;
    color: #334155;
    transition: background 0.2s, color 0.2s;
}
.main-navbar .dropdown-item:hover {
    background: #FEF3C7;
    color: #92400E;
}

.navbar-cta-btn {
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
    color: #FFFFFF !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    padding: 0 16px;
    height: 38px;
    line-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border: none;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-left: 12px;
    text-decoration: none !important;
}
.navbar-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.45);
    color: #FFFFFF !important;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.94) 0%, rgba(30, 41, 59, 0.90) 100%), url('../img/hero-bouchard.jpg') center/cover no-repeat;
    color: #FFFFFF;
    padding: 90px 0 80px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(217, 119, 6, 0.22);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #FBBF24;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.hero-title {
    font-size: 2.85rem;
    font-weight: 800;
    line-height: 1.18;
    color: #FFFFFF;
    margin-bottom: 20px;
}
.hero-subtitle {
    font-size: 1.12rem;
    color: #CBD5E1;
    margin-bottom: 32px;
    line-height: 1.65;
    max-width: 680px;
}
.hero-stats {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 25px;
    margin-top: 35px;
}
.hero-stat-item h3 {
    color: #FBBF24;
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 2px;
}
.hero-stat-item p {
    color: #94A3B8;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

/* ==========================================================================
   Interactive Tax & LLC Optimization Calculator
   ========================================================================== */

.tax-calc-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}
.calc-header {
    background: var(--navy-deep);
    color: #FFFFFF;
    padding: 24px 30px;
}
.calc-body {
    padding: 35px;
}
.calc-slider-wrapper {
    margin-bottom: 25px;
}
.calc-slider-wrapper label {
    font-weight: 700;
    font-size: 14px;
    color: var(--navy-deep);
    display: flex;
    justify-content: space-between;
}
.calc-slider-wrapper .slider-val {
    font-size: 20px;
    color: var(--primary);
    font-weight: 800;
}
.custom-range {
    height: 8px;
    border-radius: 5px;
    background: #E2E8F0;
    cursor: pointer;
}
.calc-results-box {
    background: var(--bg-ice);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border-color);
    height: 100%;
}
.calc-metric {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px dashed #CBD5E1;
}
.calc-metric:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.calc-metric-title {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}
.calc-metric-val {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy-deep);
}

/* ==========================================================================
   Service Cards & Features
   ========================================================================== */

.service-card {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 30px 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(217, 119, 6, 0.4);
}
.service-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: #FEF3C7;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    transition: all 0.3s;
}
.service-card:hover .service-icon-box {
    background: var(--primary);
    color: #FFFFFF;
}

/* ==========================================================================
   Case Studies / Casos de Éxito
   ========================================================================== */

.case-study-card {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 20px;
}
.case-badge {
    background: #E2E8F0;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* ==========================================================================
   Team & Leadership Cards
   ========================================================================== */

.team-card {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
}
.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.team-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}
.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-info {
    padding: 24px 20px;
}
.team-reg-badge {
    display: inline-block;
    background: #EFF6FF;
    color: #1D4ED8;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 6px;
    border: 1px solid #BFDBFE;
}

/* ==========================================================================
   Modals & Layering Hierarchy (100% Robust)
   ========================================================================== */

.modal {
    z-index: 1060 !important;
}
.modal-backdrop {
    z-index: 1050 !important;
}
.modal-content {
    border-radius: var(--radius-md);
    border: none;
    box-shadow: 0 25px 50px -12px rgba(10, 25, 47, 0.35);
    overflow: hidden;
}
.modal-header {
    background: var(--navy-deep);
    color: #FFFFFF;
    padding: 20px 24px;
    border-bottom: none;
}
.modal-header .close {
    color: #FFFFFF;
    opacity: 0.8;
}
.modal-header .close:hover {
    opacity: 1;
}
.modal-body {
    padding: 28px 24px;
}

/* ==========================================================================
   Corporate Concierge Desk (AZ Integrity Distinct Corporate Identity)
   ========================================================================== */
.corporate-dock {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.corporate-dock-btn {
    background: linear-gradient(135deg, #0A192F 0%, #1E293B 100%);
    color: #FFFFFF !important;
    border: 2px solid #D97706;
    padding: 10px 18px;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 8px 25px rgba(10, 25, 47, 0.35);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none !important;
}

.corporate-dock-btn:hover {
    background: #0F2744;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(10, 25, 47, 0.45);
    color: #FBBF24 !important;
}

.corporate-dock-status {
    width: 8px;
    height: 8px;
    background-color: #10B981;
    border-radius: 50%;
    margin-left: 8px;
    display: inline-block;
    box-shadow: 0 0 6px #10B981;
}

.corporate-dock-popover {
    position: absolute;
    bottom: 56px;
    right: 0;
    width: 320px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 16px 45px rgba(10, 25, 47, 0.25);
    border: 1px solid #CBD5E1;
    overflow: hidden;
    display: none;
    animation: fadeInDock 0.25s ease-out forwards;
}

.corporate-dock-popover.active {
    display: block;
}

@keyframes fadeInDock {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.corporate-dock-head {
    background: linear-gradient(135deg, #0A192F 0%, #1E293B 100%);
    color: #FFFFFF;
    padding: 14px 18px;
}

.corporate-dock-head h6 {
    color: #FFFFFF;
    margin: 0 0 3px 0;
    font-size: 13.5px;
    font-weight: 700;
}

.corporate-dock-head small {
    color: #94A3B8;
    font-size: 11px;
}

.corporate-dock-body {
    padding: 10px 12px;
    background: #FFFFFF;
}

.corporate-dock-link {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none !important;
    color: #1E293B;
    transition: background 0.2s;
    margin-bottom: 5px;
}

.corporate-dock-link:last-child {
    margin-bottom: 0;
}

.corporate-dock-link:hover {
    background: #FEF3C7;
    color: #92400E;
}

.corporate-dock-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 15px;
    margin-right: 12px;
    flex-shrink: 0;
}

.corporate-dock-link strong {
    display: block;
    font-size: 13px;
    color: #0F172A;
    line-height: 1.2;
}

.corporate-dock-link span {
    font-size: 11.5px;
    color: #64748B;
    line-height: 1.2;
}

/* ==========================================================================
   Footer & Argentina Legal Compliance
   ========================================================================== */

.site-footer {
    background: var(--navy-deep);
    color: #94A3B8;
    padding: 60px 0 30px;
    font-size: 14px;
}
.site-footer h6 {
    color: #FFFFFF;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.site-footer a {
    color: #CBD5E1;
    text-decoration: none;
    transition: color 0.2s;
}
.site-footer a:hover {
    color: #F59E0B;
}

.arrepentimiento-banner {
    background: #0D213E;
    border: 1px dashed var(--primary);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    body {
        padding-top: 68px;
    }
    .top-strip {
        display: none !important;
    }
    .hero-title {
        font-size: 2.1rem;
    }
    .main-navbar .navbar-collapse {
        background: #FFFFFF;
        padding: 15px;
        border-radius: 8px;
        box-shadow: var(--shadow-lg);
        margin-top: 10px;
    }
    .navbar-cta-btn {
        margin-left: 0;
        margin-top: 10px;
        text-align: center;
        display: block;
    }
    .tax-calc-card {
        margin-top: 20px;
    }
}
