/* ==========================================================================
   LIC. ESTEBAN VARGAS & ASOCIADOS - BUFETE LEGAL & NOTARÍA PÚBLICA
   Hoja de Estilos de Prestigio y Alta Conversión • Costa Rica
   ========================================================================== */

:root {
    --primary: #0a192f;        /* Azul noche corporativo de prestigio */
    --primary-light: #172a45;
    --gold: #c59b27;           /* Oro champagne notarial */
    --gold-hover: #d4ab37;
    --gold-light: #fdf8eb;
    --gold-border: rgba(197, 155, 39, 0.35);
    --dark: #070d19;
    --dark-muted: #334155;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 20px -2px rgba(10, 25, 47, 0.08);
    --shadow-gold: 0 10px 30px -4px rgba(197, 155, 39, 0.2);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    background-color: var(--light-bg);
}

body {
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* 1. Barra Superior Legal de Prestigio */
.top-legal-bar {
    background-color: var(--dark);
    color: #94a3b8;
    font-size: 12px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(197, 155, 39, 0.2);
}

.legal-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-bar-item strong {
    color: var(--gold);
}

.confidential-call a {
    color: #f1f5f9;
    text-decoration: none;
    font-weight: 700;
}

.confidential-call a:hover {
    color: var(--gold);
}

.office-badge i {
    color: var(--gold);
}

/* 2. Barra de Navegación */
.navbar-wrapper {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-emblem {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: 1px solid var(--gold);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(10, 25, 47, 0.25);
}

.brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--primary);
    display: block;
    line-height: 1.1;
}

.brand-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--gold);
    font-weight: 700;
}

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

.nav-link {
    text-decoration: none;
    color: var(--dark-muted);
    font-size: 13.5px;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--gold);
}

.btn-whatsapp-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary);
    border: 1px solid var(--gold-border);
    color: var(--gold);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    transition: all 0.25s;
    box-shadow: var(--shadow-sm);
}

.btn-whatsapp-nav:hover {
    background-color: var(--primary-light);
    border-color: var(--gold);
    color: white;
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--primary);
    cursor: pointer;
}

.mobile-only {
    display: none;
}

/* 3. Hero Section */
.hero-section {
    position: relative;
    padding: 70px 0 85px;
    background: linear-gradient(180deg, #f8f9fc 0%, #ffffff 100%);
    overflow: hidden;
}

.hero-bg-accent {
    position: absolute;
    top: -120px;
    right: -120px;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(197, 155, 39, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.authority-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background-color: white;
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
}

.authority-badge i {
    color: var(--gold);
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 46px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--gold), #9a7217);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 16px;
    color: var(--dark-muted);
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: 1px solid var(--gold);
    box-shadow: 0 4px 18px rgba(10, 25, 47, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 25, 47, 0.45);
    border-color: var(--gold-hover);
}

.btn-secondary {
    background-color: white;
    color: var(--primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

.hero-metrics {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.metric-number {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 21px;
    font-weight: 800;
    color: var(--primary);
}

.metric-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.metric-divider {
    width: 1px;
    height: 35px;
    background-color: var(--border-color);
}

/* Tarjeta Flotante de Consulta */
.hero-card-booking {
    position: relative;
}

.booking-card-inner {
    background-color: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(197, 155, 39, 0.3);
    position: relative;
}

.booking-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.booking-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background-color: var(--gold-light);
    color: var(--gold);
    border: 1px solid var(--gold-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.booking-badge {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 0.5px;
}

.booking-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.booking-form .form-group {
    margin-bottom: 16px;
}

.booking-form label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.booking-form input,
.booking-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13px;
    color: var(--dark);
    background-color: #f8fafc;
    transition: all 0.2s;
}

.booking-form input:focus,
.booking-form select:focus {
    outline: none;
    border-color: var(--gold);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.15);
}

.btn-booking-submit {
    width: 100%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    margin-top: 10px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-booking-submit:hover {
    background: #047857;
}

.form-disclaimer {
    font-size: 11px;
    color: #64748b;
    text-align: center;
    margin-top: 14px;
}

/* 4. Servicios Jurídicos */
.section-services {
    padding: 95px 0;
    background-color: white;
}

.section-header {
    max-width: 680px;
    margin: 0 auto 55px;
}

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

.section-badge {
    display: inline-block;
    padding: 5px 14px;
    background-color: var(--gold-light);
    color: var(--gold);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 34px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
}

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

.service-card {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    transform: translateY(-5px);
    background-color: white;
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

.service-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--primary);
    color: var(--gold);
    border: 1px solid var(--gold-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}

.service-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}

.service-name {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.service-desc {
    font-size: 13px;
    color: var(--dark-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    margin-bottom: 24px;
    font-size: 12px;
    color: #475569;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.service-features i {
    color: var(--gold);
    font-size: 11px;
}

.service-footer {
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.service-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: color 0.2s;
}

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

/* 5. Perfil Profesional del Abogado */
.section-profile {
    padding: 95px 0;
    background-color: #0b1526;
    color: white;
}

.profile-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.3fr;
    gap: 50px;
    align-items: center;
}

.profile-card-badge {
    background: linear-gradient(180deg, #132238 0%, #0c1728 100%);
    border: 1px solid var(--gold-border);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-gold);
}

.avatar-box {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--gold), #7a5c13);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    box-shadow: 0 4px 18px rgba(197, 155, 39, 0.4);
}

.lawyer-role {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 6px;
}

.lawyer-name {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
}

.lawyer-creds {
    font-size: 12px;
    color: #94a3b8;
    display: block;
}

.profile-text-wrap .section-title {
    color: white;
}

.profile-bio {
    font-size: 15px;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 30px;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 30px;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.value-item i {
    color: var(--gold);
    font-size: 20px;
    margin-top: 2px;
}

.value-item h4 {
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.value-item p {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
}

/* 6. Testimonios */
.section-reviews {
    padding: 85px 0;
    background-color: white;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.review-card {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 28px;
    border-radius: var(--radius-md);
}

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

.review-text {
    font-size: 13px;
    color: var(--dark-muted);
    line-height: 1.7;
    margin-bottom: 18px;
    font-style: italic;
}

.reviewer-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

.reviewer-tag {
    font-size: 11px;
    color: #64748b;
}

/* 7. Ubicación del Despacho */
.section-location {
    padding: 85px 0 100px;
    background-color: #f1f5f9;
}

.location-box {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 40px;
    background-color: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.location-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 22px;
}

.location-list {
    list-style: none;
    font-size: 13px;
    color: var(--dark-muted);
    margin-bottom: 24px;
}

.location-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.location-list i {
    color: var(--gold);
    font-size: 16px;
    margin-top: 3px;
}

.location-list strong {
    display: block;
    color: var(--primary);
    margin-bottom: 2px;
}

.btn-outline-map {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s;
}

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

.trust-box {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: var(--radius-md);
    text-align: center;
}

.trust-box i {
    font-size: 32px;
    color: var(--gold);
    margin-bottom: 14px;
}

.trust-box h4 {
    font-size: 16px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
}

.trust-box p {
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.pills-features span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.pills-features i {
    font-size: 12px;
    color: #10b981;
    margin-bottom: 0;
}

/* 8. Footer */
.footer-wrapper {
    background-color: var(--dark);
    color: #94a3b8;
    padding: 70px 0 0;
    border-top: 1px solid rgba(197, 155, 39, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo .brand-name {
    color: white;
}

.footer-desc {
    font-size: 13px;
    line-height: 1.7;
    margin-top: 14px;
    max-width: 360px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Outfit', sans-serif;
    color: white;
    font-size: 15px;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-contact p {
    font-size: 13px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom {
    padding: 24px 0;
    font-size: 12px;
}

.watermark strong {
    color: var(--gold);
}

/* 9. Botón Flotante Permanente de WhatsApp */
.floating-wa-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    z-index: 999;
    text-decoration: none;
    transition: transform 0.25s ease;
}

.floating-wa-btn:hover {
    transform: scale(1.08);
}

.wa-tooltip {
    position: absolute;
    right: 70px;
    background-color: var(--dark);
    color: var(--gold);
    border: 1px solid var(--gold-border);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.floating-wa-btn:hover .wa-tooltip {
    opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid,
    .profile-grid,
    .location-box {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 36px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
        gap: 16px;
    }

    .nav-menu.active {
        display: flex;
    }

    .top-legal-bar .confidential-call,
    .top-legal-bar .office-badge {
        display: none;
    }
}
