/* Tipografía general */
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #111;
}

/* === Override de colores Bootstrap (primary -> amarillo) === */
:root {
    --bs-primary: #f5b800;                  /* Amarillo principal */
    --bs-primary-rgb: 245, 184, 0;

    --bs-primary-bg-subtle: #fff7d1;        /* Fondo suave amarillo */
    --bs-primary-border-subtle: #f5b80033;
    --bs-primary-text-emphasis: #7a5b00;
}

/* Botón principal amarillo */
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #111;
    font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #d39d00;
    border-color: #d39d00;
    color: #111;
}

/* Botón secundario en negro con borde amarillo */
.btn-outline-secondary {
    color: #111;
    border-color: #444;
    font-weight: 500;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background-color: #111;
    color: #f5b800;
    border-color: #111;
}

/* Badge suave amarillo del héroe */
.bg-primary-subtle {
    background-color: var(--bs-primary-bg-subtle) !important;
    color: var(--bs-primary-text-emphasis) !important;
}

/* Textos primary en amarillo oscuro */
.text-primary {
    color: var(--bs-primary-text-emphasis) !important;
}

/* Navbar */
.navbar-brand {
    font-weight: 700;
    color: #111 !important;
}

.navbar-brand span {
    color: var(--bs-primary-text-emphasis);
}

.nav-link {
    color: #444 !important;
    font-weight: 500;
}

.nav-link:hover,
.nav-link:focus {
    color: #000 !important;
}

/* Sección hero con imagen de fondo */
.hero-section {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    background-image:
        linear-gradient(90deg,
            rgba(4, 15, 26, 0.92) 0%,
            rgba(4, 15, 26, 0.82) 42%,
            rgba(4, 15, 26, 0.36) 72%,
            rgba(4, 15, 26, 0.18) 100%),
        url("../img/palacio-tribunales-bg.8b5a06992b2c.webp");
    background-size: cover;
    background-position: center center;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 45%, rgba(255, 255, 255, 0.08), transparent 30%);
    pointer-events: none;
}

.hero-section .container {
    z-index: 1;
}

.hero-badge {
    background: rgba(245, 184, 0, 0.95);
    color: #111;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.hero-section h1 {
    max-width: 780px;
    font-size: clamp(2.3rem, 5vw, 4.7rem);
    line-height: 1.08;
    color: #fff;
    text-shadow: 0 4px 22px rgba(0, 0, 0, 0.32);
}

.hero-section .lead {
    max-width: 720px;
    font-size: clamp(1.08rem, 1.8vw, 1.45rem);
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
}

.hero-checklist {
    display: grid;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.hero-checklist li {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.check-icon {
    width: 2.25rem;
    height: 2.25rem;
    min-width: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #58ad3d;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.btn-outline-light {
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
        background-image:
            linear-gradient(90deg,
                rgba(4, 15, 26, 0.94) 0%,
                rgba(4, 15, 26, 0.88) 62%,
                rgba(4, 15, 26, 0.58) 100%),
            url("../img/palacio-tribunales-bg.8b5a06992b2c.webp");
        background-position: center center;
    }
}

/* Tarjetas y testimonios */
.card {
    border-radius: 0.75rem;
}

.testimonial-card {
    border-left: 4px solid var(--bs-primary);
}

/* Footer negro con texto claro */
footer {
    background-color: #111 !important;
    color: #f5f5f5;
}

footer p {
    margin-bottom: 0;
}

/* Pequeños detalles */
.badge.bg-primary {
    background-color: var(--bs-primary) !important;
    color: #111 !important;
}

.contacto-section {
    background: linear-gradient(135deg, #fffdf5 0%, #ffffff 45%, #fff7d1 100%);
}

.alert-error {
    --bs-alert-color: #842029;
    --bs-alert-bg: #f8d7da;
    --bs-alert-border-color: #f5c2c7;
}


.hero-section {
    background-color: #0c1623;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.hero-section .btn-outline-light {
    border-width: 2px;
}


/* Especialistas: texto visible sobre fondo oscuro */
#especialistas .especialista-card,
#especialistas .especialista-card .card-body,
#especialistas .especialista-card p {
    color: #ffffff !important;
}

#especialistas .especialista-card p {
    line-height: 1.55;
}
