/* ==========================================================================
   professional.css — LegaliaPro Professional Design Overrides
   Loaded after style.css to transform the aggressive landing page aesthetic
   into a professional, serious law firm design.
   ========================================================================== */


/* ==========================================================================
   1. REFINED COLOR SYSTEM
   ========================================================================== */

:root {
    /* Refined palette — deeper, less saturated */
    --color-primary: #0d2240;        /* Deeper navy — more authoritative */
    --color-primary-light: #1a3a6b;
    --color-primary-rgb: 13, 34, 64;
    --color-secondary: #b8965a;       /* Warmer, more restrained gold */
    --color-secondary-light: #d4b07a;
    --color-secondary-rgb: 184, 150, 90;
    --color-accent: #2563eb;
    --color-text: #1a2332;
    --color-light: #f7f5f0;           /* Slightly warm white — more elegant */
    --color-lighter: #faf9f6;
    --color-border: #e8e4dc;          /* Warmer border */
}


/* ==========================================================================
   2. PROFESSIONAL HERO (replaces dark gradient hero)
   ========================================================================== */

.hero-professional {
    background: #faf9f6;
    color: var(--color-text);
    padding: 80px 24px 100px;
    min-height: auto;
    animation: none;
    position: relative;
}

/* Remove particle canvas and shapes on professional hero */
.hero-professional .hero-particles,
.hero-professional .hero-shapes {
    display: none;
}

/* Subtle top border accent */
.hero-professional::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-primary) 100%);
}

/* Hero grid: 55% text, 45% form */
.hero-professional .hero-grid {
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: center;
}

/* Hero eyebrow label */
.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-secondary);
}

.eyebrow-line {
    width: 32px;
    height: 2px;
    background: var(--color-secondary);
    flex-shrink: 0;
}

/* Hero H1 — large Playfair serif */
.hero-professional h1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 4.5vw, 58px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-primary);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-professional h1 em {
    font-style: italic;
    color: var(--color-secondary);
}

/* Hero subtitle */
.hero-professional .hero-subtitle {
    font-size: 17px;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 28px;
    font-weight: 400;
    max-width: 520px;
}

/* Practice area pills — clean, no emoji */
.hero-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
}

.area-pill {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 5px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text-light);
    text-transform: uppercase;
    background: transparent;
}

/* Hero CTAs */
.hero-professional .btn-hero-primary {
    background: var(--color-primary);
    color: white;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.02em;
    text-transform: none;
    box-shadow: 0 4px 20px rgba(13, 34, 64, 0.25);
    display: inline-block;
    transition: all 0.25s ease;
}

.hero-professional .btn-hero-primary:hover {
    background: var(--color-primary-light);
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(13, 34, 64, 0.3);
}

.hero-professional .btn-hero-ghost {
    color: var(--color-primary);
    font-weight: 500;
    font-size: 15px;
    border: none;
    background: none;
    padding: 14px 0;
    display: inline-block;
    border-bottom: 1.5px solid transparent;
    transition: border-color 0.2s;
}

.hero-professional .btn-hero-ghost:hover {
    border-bottom-color: var(--color-secondary);
}

/* Hero credentials — clean stat row */
.hero-credenciales {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 44px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.credencial-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0 28px;
}

.credencial-item:first-child {
    padding-left: 0;
}

.credencial-item strong {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.credencial-item span {
    font-size: 12px;
    color: var(--color-text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.credencial-divider {
    width: 1px;
    height: 36px;
    background: var(--color-border);
    flex-shrink: 0;
}

/* Hero form — professional card */
.form-header-pro {
    padding: 28px 32px 0;
}

.form-header-pro h3,
.form-title-pro {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.form-header-pro p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.5;
}

.hero-form-pro {
    padding: 20px 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: transparent;
}

/* Form container card */
.hero-professional .hero-form-container {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 0;
}

/* Override old form title */
.hero-professional .hero-form-container h3,
.hero-form-pro > h3 {
    display: none;
}

.hero-form-pro input,
.hero-form-pro select {
    background: #f9f8f5;
    border: 1.5px solid var(--color-border);
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--color-text);
    transition: border-color 0.2s;
}

.hero-form-pro input:focus,
.hero-form-pro select:focus {
    outline: none;
    border-color: var(--color-primary);
    background: white;
}

/* Submit button */
.btn-submit-pro {
    background: var(--color-primary) !important;
    color: white !important;
    border: none;
    border-radius: 6px !important;
    padding: 14px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
    width: 100%;
}

.btn-submit-pro:hover {
    background: var(--color-primary-light) !important;
    transform: translateY(-1px);
}

/* Form footnote */
.form-note-pro {
    font-size: 12px;
    color: var(--color-text-muted);
    text-align: center;
    line-height: 1.5;
}


/* ==========================================================================
   3. REFINED NAVIGATION
   ========================================================================== */

/* Outline button for nav CTA — less aggressive */
.btn-cta-outline {
    background: transparent !important;
    color: var(--color-primary) !important;
    border: 1.5px solid var(--color-primary) !important;
    box-shadow: none !important;
    font-weight: 600;
    padding: 9px 22px !important;
}

.btn-cta-outline:hover {
    background: var(--color-primary) !important;
    color: white !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Remove emoji from nav phone */
.nav-phone {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
}


/* ==========================================================================
   4. PROFESSIONAL STATS BAR
   ========================================================================== */

.stats-bar-pro {
    background: var(--color-primary);
    padding: 48px 0;
    border: none;
}

.stats-bar-pro .stat-number {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.stats-bar-pro .stat-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 6px;
}

.stats-bar-pro .stat-item {
    text-align: center;
    border: none;
}

.stats-bar-pro .stat-item + .stat-item {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}


/* ==========================================================================
   5. PROFESSIONAL SOCIAL PROOF BAR
   ========================================================================== */

.social-proof-pro {
    background: #f0ede6;
    border-top: 1px solid #e0dbd0;
    border-bottom: 1px solid #e0dbd0;
    padding: 14px 0;
    font-size: 13px;
    color: #5a5040;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.social-proof-pro .proof-divider {
    opacity: 0.4;
}


/* ==========================================================================
   6. PROFESSIONAL SECTION HEADERS
   ========================================================================== */

.section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--color-secondary);
    flex-shrink: 0;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 14px;
}

.section-header p {
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.7;
    max-width: 580px;
    margin: 0 auto;
}


/* ==========================================================================
   7. PROFESSIONAL SERVICE CARDS
   ========================================================================== */

.servicio-card {
    border-radius: 8px;
    border: 1px solid var(--color-border);
    padding: 32px;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
    background: white;
}

.servicio-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 30px rgba(13, 34, 64, 0.1);
    transform: translateY(-2px);
}

.servicio-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(13, 34, 64, 0.06);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 18px;
}


/* ==========================================================================
   8. PROFESSIONAL CALCULATOR CARDS
   ========================================================================== */

.calc-card {
    border-radius: 8px;
    border: 1px solid var(--color-border);
    padding: 28px 24px;
    background: white;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.calc-card:hover {
    border-color: var(--color-secondary);
    box-shadow: 0 6px 24px rgba(184, 150, 90, 0.15);
    transform: translateY(-2px);
}

.calc-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.calc-card p {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* Clean text-based calc icons */
.calc-icon-pro {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(13, 34, 64, 0.06);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--color-primary);
    margin-bottom: 16px;
    font-family: var(--font-main);
}

/* Hide old emoji icons when new ones present */
.calc-card .calc-icon {
    display: none;
}


/* ==========================================================================
   9. PROCESS STEPS
   ========================================================================== */

.process-step {
    padding: 32px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: white;
    position: relative;
}

.process-number {
    width: 36px;
    height: 36px;
    background: var(--color-primary);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 16px;
}

.process-step h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 10px;
}


/* ==========================================================================
   10. RESPONSIVE MOBILE OVERRIDES
   ========================================================================== */

@media (max-width: 768px) {
    .hero-professional {
        padding: 60px 20px 80px;
    }

    .hero-professional .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-professional h1 {
        font-size: 32px;
    }

    .hero-credenciales {
        gap: 0;
        margin-top: 32px;
        padding-top: 24px;
    }

    .credencial-item {
        padding: 0 16px;
    }

    .credencial-item strong {
        font-size: 22px;
    }

    .hero-areas {
        gap: 6px;
    }

    .area-pill {
        font-size: 11px;
        padding: 4px 10px;
    }

    .form-header-pro {
        padding: 24px 20px 0;
    }

    .hero-form-pro {
        padding: 16px 20px 24px;
    }
}

/* ========================================
   OUTLINE BUTTON (professional secondary)
   ======================================== */
.btn-outline-pro {
    display: inline-block;
    padding: 11px 28px;
    border: 1.5px solid var(--color-primary);
    border-radius: 6px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
    background: transparent;
    transition: background 0.25s, color 0.25s;
}

.btn-outline-pro:hover {
    background: var(--color-primary);
    color: white;
}

/* ========================================
   CASOS PREVIEW — Editorial results strip
   ======================================== */
.casos-preview {
    background: #f7f5f0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.caso-mini {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 28px 24px;
    text-align: center;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.caso-mini:hover {
    border-color: var(--color-secondary);
    box-shadow: 0 4px 20px rgba(184, 150, 90, 0.15);
}

.caso-mini .monto {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
    line-height: 1;
}

.caso-mini .tipo {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

/* ========================================
   TESTIMONIALS — Clean editorial style
   ======================================== */
.testimonials {
    background: white;
}

.testimonial-card {
    background: #faf9f6;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 32px;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.testimonial-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 24px rgba(13, 34, 64, 0.08);
}

.testimonial-stars {
    color: var(--color-secondary);
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text);
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.testimonial-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
}

.testimonial-info p {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* ========================================
   CTA FINAL — Professional call to action
   ======================================== */
.cta-final-pro {
    background: var(--color-primary);
    padding: 80px 24px;
    position: relative;
    overflow: hidden;
}

.cta-final-pro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
}

.cta-final-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.cta-final-pro .cta-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-secondary);
}

.cta-final-pro h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 700;
    color: white;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-final-pro p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 36px;
}

.btn-cta-pro {
    background: white !important;
    color: var(--color-primary) !important;
    padding: 14px 36px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    display: inline-block;
}

.btn-cta-pro:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2) !important;
}

.btn-wa-pro {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    padding: 14px 20px !important;
    border-bottom: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 0 !important;
    background: transparent !important;
    display: inline-block;
    transition: color 0.2s, border-color 0.2s !important;
}

.btn-wa-pro:hover {
    color: white !important;
    border-bottom-color: var(--color-secondary) !important;
}

/* ========================================
   FOOTER — Refined professional footer
   ======================================== */
.footer {
    background: #0d2240;
}

.footer h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col > p {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    margin-bottom: 6px;
}

.footer-link {
    color: rgba(255,255,255,0.7) !important;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--color-secondary) !important;
}

.footer ul li a {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    padding: 4px 0;
    display: block;
    transition: color 0.2s;
}

.footer ul li a:hover {
    color: white;
}

/* Footer Social Links */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    align-items: center;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
}

.footer-social-link:hover {
    background: rgba(184, 150, 90, 0.15);
    color: var(--color-secondary);
    border-color: rgba(184, 150, 90, 0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
    margin-top: 40px;
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    text-align: center;
    letter-spacing: 0.02em;
}

/* ========================================
   MOBILE NAV — SVG icons, professional
   ======================================== */
.mobile-nav-svg {
    width: 22px;
    height: 22px;
    display: block;
    margin: 0 auto 4px;
}

.mobile-nav-item span:not(.mobile-nav-svg) {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ========================================
   EXIT POPUP — Refined
   ======================================== */
.exit-popup {
    border-radius: 12px;
    padding: 40px 36px;
}

.exit-popup h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.exit-popup p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-light);
    margin-bottom: 24px;
}

.exit-popup-cta {
    display: block;
    background: var(--color-primary);
    color: white;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    margin-bottom: 12px;
    transition: background 0.25s;
}

.exit-popup-cta:hover {
    background: var(--color-primary-light);
}

.exit-popup-skip {
    font-size: 13px;
    color: var(--color-text-muted);
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    display: block;
    margin: 0 auto;
}

/* ========================================
   SECTION CATEGORY LABELS (Para Personas etc)
   ======================================== */
.servicios-category-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    text-align: center;
    margin: 40px 0 20px;
    position: relative;
}

.servicios-category-label::before,
.servicios-category-label::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 80px;
    height: 1px;
    background: var(--color-border);
}

.servicios-category-label::before { right: calc(50% + 100px); }
.servicios-category-label::after  { left:  calc(50% + 100px); }
