/* ==========================================================================
   Contabilidad Proactiva — Custom Styles over Boldo Theme
   Colors: Amarillo oscuro #C8A415, Café oscuro #4A2C0A, Negro azul #0A1628
   ========================================================================== */

:root {
    --intracoe-gold: #C8A415;
    --intracoe-gold-light: #D4B832;
    --intracoe-gold-dark: #A68A0F;
    --intracoe-brown: #4A2C0A;
    --intracoe-brown-light: #6B4420;
    --intracoe-brown-dark: #321D06;
    --intracoe-navy: #0A1628;
    --intracoe-navy-light: #142238;
    --intracoe-navy-mid: #1A2D4A;
}

/* ---- Override Boldo dark background ---- */
.bg-dark {
    background-color: var(--intracoe-navy) !important;
}

/* ---- Navbar ---- */
.navbar-dark {
    background-color: var(--intracoe-navy) !important;
    transition: all 0.4s ease;
}
.navbar-brand-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff !important;
    letter-spacing: -0.5px;
}
.navbar-brand-text span {
    color: var(--intracoe-gold);
}

/* ---- Buttons ---- */
.btn-intracoe {
    background-color: var(--intracoe-gold);
    border-color: var(--intracoe-gold);
    color: var(--intracoe-navy);
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.btn-intracoe::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}
.btn-intracoe:hover::after {
    width: 300px;
    height: 300px;
}
.btn-intracoe:hover {
    background-color: var(--intracoe-gold-dark);
    border-color: var(--intracoe-gold-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 164, 21, 0.35);
}
.btn-outline-intracoe {
    color: var(--intracoe-gold);
    border-color: var(--intracoe-gold);
    background: transparent;
    transition: all 0.3s ease;
}
.btn-outline-intracoe:hover {
    background-color: var(--intracoe-gold);
    color: var(--intracoe-navy);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 164, 21, 0.25);
}
.btn-brown {
    background-color: var(--intracoe-brown);
    border-color: var(--intracoe-brown);
    color: #fff;
    transition: all 0.3s ease;
}
.btn-brown:hover {
    background-color: var(--intracoe-brown-dark);
    border-color: var(--intracoe-brown-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 44, 10, 0.3);
}

/* Override Boldo success to gold */
.btn-success {
    background-color: var(--intracoe-gold) !important;
    border-color: var(--intracoe-gold) !important;
    color: var(--intracoe-navy) !important;
    font-weight: 700 !important;
}
.btn-success:hover {
    background-color: var(--intracoe-gold-dark) !important;
    border-color: var(--intracoe-gold-dark) !important;
}
.bg-success {
    background-color: var(--intracoe-gold) !important;
}

/* ---- Hero Section ---- */
.hero-intracoe {
    background-color: var(--intracoe-navy);
    position: relative;
    overflow: hidden;
}
.hero-intracoe::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(200, 164, 21, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroGlow 6s ease-in-out infinite alternate;
}
@keyframes heroGlow {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.6; }
    100% { transform: translate(-30px, 20px) scale(1.15); opacity: 1; }
}
.hero-intracoe #hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.hero-img-float {
    animation: heroFloat 4s ease-in-out infinite;
}
@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-18px); }
}

/* Typing cursor blink */
.typing-text::after {
    content: '|';
    animation: blink 0.8s step-end infinite;
    color: var(--intracoe-gold);
    font-weight: 300;
}
@keyframes blink {
    50% { opacity: 0; }
}

/* ---- Section headings ---- */
.section-title {
    color: var(--intracoe-navy);
    font-weight: 700;
}
.section-subtitle {
    color: var(--intracoe-brown);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* ---- Service cards (Boldo style) ---- */
.service-card {
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    border: 1px solid #f0f0f0;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(10, 22, 40, 0.1);
}
.service-card .icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(200, 164, 21, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.service-card .icon-circle i {
    font-size: 1.5rem;
    color: var(--intracoe-gold-dark);
}

/* ---- Plan / Pricing cards ---- */
.plan-card {
    border-radius: 16px;
    border: 1px solid #eee;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    background: #fff;
}
.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 50px rgba(10, 22, 40, 0.12);
}
.plan-card-featured {
    border: 2px solid var(--intracoe-gold) !important;
    position: relative;
}
.plan-card-featured::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    padding: 2px;
    background: linear-gradient(135deg, var(--intracoe-gold), var(--intracoe-gold-dark), var(--intracoe-gold));
    background-size: 200% 200%;
    animation: borderShimmer 3s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
@keyframes borderShimmer {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.plan-badge {
    background-color: var(--intracoe-gold) !important;
    color: var(--intracoe-navy) !important;
    font-weight: 700;
}

/* ---- Stat counters ---- */
.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--intracoe-gold);
    line-height: 1;
}
.stat-label {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    margin-top: 0.25rem;
}

/* ---- Wizard Progress ---- */
.wizard-progress {
    position: relative;
    padding: 0 20px;
}
.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    position: relative;
}
.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.wizard-step.active .step-circle {
    background: var(--intracoe-gold);
    color: var(--intracoe-navy);
    box-shadow: 0 0 0 6px rgba(200, 164, 21, 0.2);
}
.wizard-step.completed .step-circle {
    background: var(--intracoe-brown);
    color: #fff;
}
.step-label {
    margin-top: 8px;
    color: #999;
    font-size: 0.75rem;
    text-align: center;
}
.wizard-step.active .step-label {
    color: var(--intracoe-gold-dark);
    font-weight: 600;
}
.wizard-step.completed .step-label {
    color: var(--intracoe-brown);
}
.progress-line {
    position: absolute;
    top: 24px;
    left: 60px;
    right: 60px;
    height: 3px;
    background: #e0e0e0;
    z-index: 1;
}
.progress-line-fill {
    height: 100%;
    background: var(--intracoe-gold);
    transition: width 0.5s ease;
}

/* ---- Upload zone ---- */
.upload-zone {
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}
.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--intracoe-gold);
    background: rgba(200, 164, 21, 0.03);
    transform: scale(1.02);
}
.upload-zone.has-file {
    border-color: var(--intracoe-brown);
    border-style: solid;
    background: rgba(74, 44, 10, 0.03);
}
.upload-preview img {
    max-height: 160px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.upload-results .badge {
    font-size: 0.8rem;
    margin: 2px;
}

/* ---- Plan select cards (wizard paso 4) ---- */
.plan-select-card {
    cursor: pointer;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
}
.plan-select-card:hover {
    border-color: var(--intracoe-gold);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateY(-4px);
}
.plan-select-card.selected {
    border-color: var(--intracoe-gold);
    background: rgba(200, 164, 21, 0.06);
    box-shadow: 0 0 0 3px rgba(200, 164, 21, 0.2);
}

/* ---- Módulos y servicios (checkbox cards) ---- */
.modulo-card,
.servicio-card {
    border: 2px solid #e0e0e0;
    transition: all 0.25s ease;
    margin: 0;
}
.modulo-card:hover,
.servicio-card:hover {
    border-color: var(--intracoe-gold);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.modulo-card.selected,
.servicio-card.selected {
    border-color: var(--intracoe-gold);
    background: rgba(200, 164, 21, 0.06);
    box-shadow: 0 0 0 3px rgba(200, 164, 21, 0.2);
}
.modulo-card .form-check-input,
.servicio-card .form-check-input {
    margin-top: 0.3rem;
}
.combo-card.selected {
    border-color: var(--intracoe-gold);
    background: rgba(200, 164, 21, 0.08);
}

/* ---- Confirmation page ---- */
.check-animation {
    animation: checkPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes checkPop {
    0%   { transform: scale(0) rotate(-20deg); opacity: 0; }
    60%  { transform: scale(1.15) rotate(5deg); }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* ---- Form focus ---- */
.form-control:focus,
.form-select:focus {
    border-color: var(--intracoe-gold);
    box-shadow: 0 0 0 0.2rem rgba(200, 164, 21, 0.2);
}

/* ---- Offer / feature list (Boldo style) ---- */
.offer-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}
.offer-list-item:hover {
    box-shadow: 0 4px 20px rgba(10, 22, 40, 0.08);
    transform: translateX(8px);
}
.offer-list-item i {
    color: var(--intracoe-gold);
    transition: transform 0.3s ease;
}
.offer-list-item:hover i {
    transform: scale(1.25);
}

/* ---- CTA / promo banner ---- */
.cta-banner {
    background-color: var(--intracoe-navy);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(200,164,21,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

/* ---- Footer ---- */
.footer-intracoe {
    background-color: var(--intracoe-navy);
}
.footer-intracoe a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}
.footer-intracoe a:hover {
    color: var(--intracoe-gold);
    transform: translateX(4px);
}
.footer-intracoe h3, .footer-intracoe h5 {
    color: #fff;
}

/* ---- Text colors ---- */
.text-intracoe-gold {
    color: var(--intracoe-gold) !important;
}
.text-intracoe-brown {
    color: var(--intracoe-brown) !important;
}
.text-intracoe-navy {
    color: var(--intracoe-navy) !important;
}

/* ---- Confirmation table ---- */
.summary-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}
.summary-table td:first-child {
    color: var(--intracoe-brown);
    font-weight: 600;
    width: 40%;
}

/* ---- Pulse ring on CTA ---- */
.pulse-ring {
    position: relative;
}
.pulse-ring::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid var(--intracoe-gold);
    animation: pulseRing 2s ease-out infinite;
}
@keyframes pulseRing {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.15); opacity: 0; }
}

/* ---- Glow text ---- */
.glow-text {
    text-shadow: 0 0 30px rgba(200, 164, 21, 0.25);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .step-label {
        font-size: 0.6rem;
    }
    .step-circle {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }
    .upload-zone {
        padding: 16px;
        min-height: 150px;
    }
    .stat-number {
        font-size: 2rem;
    }
}
