/* ─── Botones ────────────────────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn--primary {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.btn--primary:hover {
    background: #030712;
    border-color: #030712;
    color: #fff;
}

.btn--accent {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.btn--accent:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: #fff;
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn--outline:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn--outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}

.btn--outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
}

/* ─── Badges ─────────────────────────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 20px;
    background: var(--color-bg-alt);
    color: var(--color-text-muted);
}

.badge--area {
    background: rgba(201,168,76,0.12);
    color: var(--color-accent-dark);
}

/* ─── Cards genéricas ────────────────────────────────────────────────────────── */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* ─── Area card ──────────────────────────────────────────────────────────────── */
.area-card {
    display: flex;
    flex-direction: column;
    padding: var(--space-lg) var(--space-md);
    text-decoration: none;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.area-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transform: translateY(-3px);
    border-color: var(--color-accent);
    color: inherit;
}

.area-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
    color: var(--color-accent);
    flex-shrink: 0;
}

.area-card__icon svg {
    width: 100%;
    height: 100%;
}

.area-card__title {
    font-size: 1.15rem;
    margin-bottom: var(--space-xs);
    color: var(--color-primary);
}

.area-card__desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    flex: 1;
}

.area-card__link {
    margin-top: var(--space-md);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-accent);
}

/* ─── Blog card ──────────────────────────────────────────────────────────────── */
.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}

.blog-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.blog-card__img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.blog-card__img-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-border);
}

.blog-card__body {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card__area {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
}

.blog-card__title {
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
    color: var(--color-primary);
    line-height: 1.3;
}

.blog-card__title a {
    color: inherit;
}

.blog-card__title a:hover {
    color: var(--color-accent);
}

.blog-card__excerpt {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    flex: 1;
    margin-bottom: var(--space-sm);
}

.blog-card__link {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-accent);
}

/* ─── Servicio card ──────────────────────────────────────────────────────────── */
.servicio-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.servicio-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border-color: var(--color-accent);
}

.servicio-card__icon {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 3px;
}

.servicio-card__content { flex: 1; }

.servicio-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 4px;
    font-family: var(--font-heading);
}

.servicio-card__desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* ─── Testimonio card ────────────────────────────────────────────────────────── */
.testimonio-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-md);
}

.testimonio-card__stars {
    display: flex;
    gap: 3px;
    margin-bottom: var(--space-sm);
    color: var(--color-accent);
    font-size: 1rem;
}

.testimonio-card__text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    font-style: italic;
    margin-bottom: var(--space-md);
}

.testimonio-card__author {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
}

.testimonio-card__meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ─── Paso / how-it-works ────────────────────────────────────────────────────── */
.paso {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-sm);
}

.paso__num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    flex-shrink: 0;
}

.paso__title {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin: 0;
}

.paso__desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.6;
}

/* ─── CTA block ──────────────────────────────────────────────────────────────── */
.cta-block {
    text-align: center;
    padding: var(--space-2xl) 5%;
    background: #f3f4f6;
}

.cta-block__eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.cta-block__title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: #111827;
    margin-bottom: var(--space-md);
}

.cta-block__subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: var(--space-lg);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.cta-block__actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Foto del abogado — componentes de confianza ───────────────────────────── */

/* Tarjeta flotante en el hero */
.abogado-hero-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 12px;
    padding: 12px 18px 12px 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    max-width: 280px;
}

.abogado-hero-card__foto {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e5e7eb;
}

.abogado-hero-card__nombre {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 2px;
    line-height: 1.2;
}

.abogado-hero-card__cargo {
    font-size: 11px;
    color: #6b7280;
    margin: 0 0 4px;
    line-height: 1.3;
}

.abogado-hero-card__frase {
    font-size: 11px;
    color: #2563eb;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

/* CTA con foto — inline-cta y cta-block */
.cta-con-foto {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.cta-con-foto__img-wrap {
    flex-shrink: 0;
}

.cta-con-foto__foto {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #bfdbfe;
    display: block;
}

.cta-con-foto__content {
    text-align: left;
}

.cta-con-foto__frase {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 6px;
    font-style: italic;
}

/* Sidebar con foto */
.sidebar-cta__foto-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #bfdbfe;
}

.sidebar-cta__foto {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #bfdbfe;
}

.sidebar-cta__foto-nombre {
    font-size: 12px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 2px;
    line-height: 1.2;
}

.sidebar-cta__foto-cargo {
    font-size: 11px;
    color: #6b7280;
    margin: 0;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .cta-con-foto {
        flex-direction: column;
        text-align: center;
    }
    .cta-con-foto__content {
        text-align: center;
    }
    .abogado-hero-card {
        max-width: 240px;
    }
}
