/*
 * directivo_detail.css
 * Figma: 1014:15065 (desktop 1440px) / 852:35393 (mobile 320px)
 * All measurements taken directly from Figma spec.
 */

/* ── Layout helpers ──────────────────────────────────────────────── */
/*
 * FULL-BLEED OVERRIDE: Figma designs this page as 1440px full-width with 80px side padding.
 * We escape the alphinus-container using the same full-bleed trick as home sections:
 *   width: 100vw; left: 50%; transform: translateX(-50%)
 * This ensures the bg colour bands fill the entire viewport.
 * overflow-x: clip on body prevents the horizontal scrollbar from appearing.
 */
body:has(.dir-detail) {
    overflow-x: clip;
}

.alphinus-container:has(.dir-detail) {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* Also remove the top padding alphinus-main adds (Figma starts header-band immediately) */
.alphinus-main:has(.dir-detail) {
    padding-top: 0;
    padding-bottom: 0;
}

.dir-detail {
    background: #f9fafb;
    min-height: calc(100vh - var(--skin-header-height, 80px));
    width: 100%;
}

/* Inner wrapper: max 1280px centred, 80px side padding (matches Figma Container) */
.dir-detail__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 80px;
}

/* ── Header band (Figma: Frame 23426, 1440x243, bg #f9fafb) ─────── */
.dir-detail__header-band {
    background: #f9fafb;
    padding-top: 0;
    padding-bottom: 32px;
}

/* ── Breadcrumb (Figma: Frame 23423, 33px tall, pad 8/0/8/0) ───── */
.dir-detail__breadcrumb {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 8px 0;
    margin-bottom: 20px;
}

.dir-detail__breadcrumb-item {
    font-family: var(--skin-font-body, Inter, sans-serif);
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    color: var(--skin-text-muted);
    text-decoration: none;
}

.dir-detail__breadcrumb-item:hover {
    text-decoration: underline;
}

.dir-detail__breadcrumb-sep {
    font-family: var(--skin-font-body, Inter, sans-serif);
    font-size: 14px;
    font-weight: 400;
    color: var(--skin-text-muted);
    padding: 0 8px;
}

.dir-detail__breadcrumb-current {
    font-family: var(--skin-font-body, Inter, sans-serif);
    font-size: 14px;
    font-weight: 600;
    line-height: 17px;
    color: var(--skin-dark-900);
}

/* ── Profile card (Figma: Container 1440x130, pad 32/80/32/80, r=14, bg #f9fafb)
 * The card is the full-width container in Figma (1440px). The 80px horizontal padding
 * comes from dir-detail__inner — profile-card should NOT add additional horizontal padding.
 * Figma stroke: 1px solid rgba(#f3f4f6, 0.10) — near-invisible border at 10% opacity.
 * Figma effect: drop-shadow 0 1px 2px rgba(#0a0d12, 0.05).
 */
.dir-detail__profile-card {
    background: #f9fafb;
    border: 1px solid rgba(243, 244, 246, 0.10);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(10, 12, 18, 0.05);
    padding: 32px 0;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* ── Avatar (Figma: 64x64, bg var(--skin-darkblue-500), r=14) ──────────────────── */
.dir-detail__avatar {
    width: 64px;
    height: 64px;
    min-width: 64px;
    background: var(--skin-darkblue-500);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Profile info (Figma: Container 965x66, gap 12) ─────────────── */
.dir-detail__profile-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

.dir-detail__profile-top {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Remove profile-bottom from layout — not shown in profile hero per Figma */
.dir-detail__profile-bottom {
    display: none;
}

/* Name row (Figma: Frame 2147225928, 232x34, gap 12) */
.dir-detail__name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Director name (Figma: Manrope 28px fw=600 lh=34px color var(--skin-dark-900)) */
.dir-detail__name {
    font-family: var(--skin-font-display, Manrope, sans-serif);
    font-size: 28px;
    font-weight: 600;
    line-height: 34px;
    color: var(--skin-dark-900);
    margin: 0;
    text-transform: capitalize;
}

/* Meta row (Figma: Container 965x20, gap 20) */
.dir-detail__meta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.dir-detail__meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Meta label text (Figma: Inter 16px fw=700 color var(--skin-text-muted)) */
.dir-detail__meta-label {
    font-family: var(--skin-font-body, Inter, sans-serif);
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    color: var(--skin-text-muted);
}

/* Meta number (bold value) */
.dir-detail__meta-num {
    font-weight: 700;
    color: var(--skin-dark-900);
}

/* Location / sector (Figma: Frame Container 118x17, gap 8, icon 16x16) */
.dir-detail__location,
.dir-detail__sector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--skin-font-body, Inter, sans-serif);
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    color: var(--skin-text-muted);
}

.dir-detail__icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* ── Badges ──────────────────────────────────────────────────────── */
/* Active badge (Figma: bg #f0fdf4, border #00a63e, text #00a63e, 14px Inter 400, pad 4/12/4/12, r=16) */
.dir-detail__badge--active {
    background: #f0fdf4;
    border: 1px solid #00a63e;
    border-radius: 16px;
    padding: 4px 12px;
    font-family: var(--skin-font-body, Inter, sans-serif);
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    color: #00a63e;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Role badge on company card (Figma: pill, neutral blue-grey) */
.dir-detail__badge--role {
    background: #eef0fa;
    border: 1px solid #c7cce8;
    border-radius: 16px;
    padding: 4px 12px;
    font-family: var(--skin-font-body, Inter, sans-serif);
    font-size: 13px;
    font-weight: 500;
    line-height: 16px;
    color: var(--skin-darkblue-500);
    white-space: nowrap;
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

/* Small active badge for similar directors (Figma: pad 2/12/2/12 r=8, border #b9f8cf, 12px Inter fw=500) */
.dir-detail__badge--sm-active {
    background: #f0fdf4;
    border: 1px solid #b9f8cf;
    border-radius: 8px;
    padding: 2px 12px;
    font-family: var(--skin-font-body, Inter, sans-serif);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    color: #00a63e;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Notifications toggle (Figma: Component 2, 271x22, gap 14) ──── */
.dir-detail__notifications {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    margin-left: auto;
}

.dir-detail__toggle-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.dir-detail__toggle {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.dir-detail__toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Figma toggle base: bg #e7efff, pad 2, r=12 */
.dir-detail__toggle-track {
    position: absolute;
    inset: 0;
    background: #e7efff;
    border-radius: 12px;
    transition: background 0.2s;
}

.dir-detail__toggle-track.is-on {
    background: var(--skin-darkblue-500);
}

/* Figma toggle thumb: 16x16 Ellipse, bg #91b7ff */
.dir-detail__toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #91b7ff;
    border-radius: 50%;
    transition: transform 0.2s, background 0.2s;
}

.dir-detail__toggle-track.is-on .dir-detail__toggle-thumb {
    transform: translateX(16px);
    background: #ffffff;
}

/* Toggle label (Figma: Inter 14px fw=500 lh=20px color #414651) */
.dir-detail__toggle-label {
    font-family: var(--skin-font-body, Inter, sans-serif);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #414651;
}

.dir-detail__info-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--skin-darkblue-500);
    flex-shrink: 0;
}

.dir-detail__info-btn:hover {
    opacity: 0.7;
}

/* ── Main section (Figma: Untitled 1440x1262, bg #f9fafb, pad 39/80/39/80, gap 48) */
.dir-detail__main {
    background: #f9fafb;
    padding: 39px 0 60px;
}

/* Layout: left col 889px + right col 343px, gap 48px */
.dir-detail__layout {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

/* Left column — align to top so it doesn't stretch when content is short */
.dir-detail__col-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-self: flex-start;
}

/* Section title (Figma: Manrope 24px fw=600 lh=29px color var(--skin-dark-900)) */
.dir-detail__section-title {
    font-family: var(--skin-font-display, Manrope, sans-serif);
    font-size: 24px;
    font-weight: 600;
    line-height: 29px;
    color: var(--skin-dark-900);
    margin: 0;
}

/* ── Company cards (Figma: Container 889x455, bg #fff, pad 16/24/16/24, r=16, stroke var(--skin-white-500)) */
.dir-detail__companies-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dir-detail__company-card {
    background: #ffffff;
    border: 1px solid var(--skin-white-500);
    border-radius: 16px;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Company header (Figma: Frame 2147225888, gap 12) */
.dir-detail__company-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Company name (Figma: Manrope 24px fw=600 lh=29px color var(--skin-darkblue-500)) */
.dir-detail__company-name {
    font-family: var(--skin-font-display, Manrope, sans-serif);
    font-size: 24px;
    font-weight: 600;
    line-height: 29px;
    color: var(--skin-darkblue-500);
    text-decoration: none;
}

.dir-detail__company-name:hover {
    text-decoration: underline;
}

/* Company description (Figma: List Item text, Inter 16px fw=400, color var(--skin-text-muted)) */
.dir-detail__company-desc {
    font-family: var(--skin-font-body, Inter, sans-serif);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--skin-text-muted);
}

.dir-detail__company-desc p {
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
}

/* Company meta row (Figma: Container 841x17, gap 20) */
.dir-detail__company-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* CTA button (Figma: Button 197x41, pad 12, r=12, Inter 14px fw=600 color var(--skin-dark-900)) */
.dir-detail__company-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    font-family: var(--skin-font-body, Inter, sans-serif);
    font-size: 14px;
    font-weight: 600;
    line-height: 17px;
    color: var(--skin-dark-900);
    text-decoration: none;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    align-self: flex-start;
    transition: background 0.15s, border-color 0.15s;
}

.dir-detail__company-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* ── Right sidebar ───────────────────────────────────────────────── */
.dir-detail__col-aside {
    width: 343px;
    min-width: 343px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Sidebar product block (Figma: Frame 2147225930, 343x300, gap 12) ── */
.dir-detail__sidebar-product-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Intro text above the card (Figma: TEXT 343x40, Manrope 14px fw=500 lh=20px color var(--skin-text-muted)) */
.dir-detail__product-intro {
    font-family: var(--skin-font-display, Manrope, sans-serif);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: var(--skin-text-muted);
    margin: 0;
}

/* ── Product card (Figma: Cards Informes_Desktop 343x248, r=10) ── */
.dir-detail__product-card {
    width: 343px;
    min-height: 248px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--skin-darkblue-500);
    /* Subtle gradient variation matching Figma's card dark style */
    background-image: linear-gradient(145deg, var(--skin-darkblue-500) 0%, #243490 60%, #1a2570 100%);
}

/* Figma: content frame 311x218 inside 343x248 card
 * Horizontal padding = (343-311)/2 = 16px
 * Vertical padding = (248-218)/2 = 15px
 */
.dir-detail__product-card-content {
    padding: 15px 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: space-between;
    min-height: 218px;
}

/* Product card view container — chip is right-aligned in Figma */
.dir-detail__product-card-view {
    display: flex;
    justify-content: flex-end;
}

/* "View details" chip (Figma: Overlay 121x36, bg #fff, r=20, pad 8/12, gap 4) */
.dir-detail__product-view-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ffffff;
    border-radius: 20px;
    padding: 8px 12px;
    cursor: pointer;
}

.dir-detail__product-view-chip span {
    font-family: var(--skin-font-body, Inter, sans-serif);
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    color: var(--skin-text-muted);
}

.dir-detail__product-card-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Bottom row (Figma: Frame 23419, gap=62, HORIZONTAL)
 * "Ver detalles" toggle text on left + "Comprar ahora" button on right
 */
.dir-detail__product-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* "Ver detalles" toggle text (Figma: Toggle Details 122x20, Inter 16px fw=500 color var(--skin-white-500)) */
.dir-detail__product-toggle-text {
    font-family: var(--skin-font-body, Inter, sans-serif);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: var(--skin-white-500);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap !important;
    flex-shrink: 0;
}

/* "Comprar ahora" button (Figma: Button 119x48, bg #fff, r=12, pad 14/16, gap 10) */
.dir-detail__product-buy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 14px 16px;
    font-family: var(--skin-font-body, Inter, sans-serif);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: var(--skin-darkblue-500);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
}

.dir-detail__product-buy-btn:hover {
    background: #f0f4ff;
}

.dir-detail__product-buy-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Product title (Figma: Manrope 24px fw=700 lh=29px color var(--skin-white-500)) */
.dir-detail__product-title {
    font-family: var(--skin-font-display, Manrope, sans-serif);
    font-size: 24px;
    font-weight: 700;
    line-height: 29px;
    color: var(--skin-white-500);
    margin: 0;
}

/* Price (Figma: Inter 24px fw=600 lh=29px color var(--skin-white-500)) */
.dir-detail__product-price {
    font-family: var(--skin-font-body, Inter, sans-serif);
    font-size: 24px;
    font-weight: 600;
    line-height: 29px;
    color: var(--skin-white-500);
    margin: 0;
}

/* ── Related Management section (Figma: Frame 4, 1280px, pad 20/0, gap 32) ── */
/* Section is always in DOM to avoid x-for + x-show conflict in Alpine.
 * Visibility controlled via --visible modifier class (added by :class binding). */
.dir-detail__related {
    background: #f9fafb;
    padding: 0;
    overflow: hidden;
    max-height: 0;
}

.dir-detail__related--visible {
    padding: 0 0 60px;
    overflow: visible;
    max-height: none;
}

.dir-detail__related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0 32px;
}

.dir-detail__related-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Related title (Figma: Manrope 28px fw=700 lh=34px color var(--skin-dark-900)) */
.dir-detail__related-title {
    font-family: var(--skin-font-display, Manrope, sans-serif);
    font-size: 28px;
    font-weight: 700;
    line-height: 34px;
    color: var(--skin-dark-900);
    margin: 0;
}

/* Carousel arrows row */
.dir-detail__related-arrows {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Carousel arrow button (Figma: 36x36, bg #e9eaf2, r=18) */
.dir-detail__carousel-arrow {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: #e9eaf2;
    border: none;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
    padding: 0;
}

.dir-detail__carousel-arrow:hover:not(:disabled) {
    background: #d0d3e8;
}

.dir-detail__carousel-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Carousel track wrapper — clips overflow horizontally only */
.dir-detail__related-track-wrap {
    overflow-x: clip;
    overflow-y: visible;
}

/* Carousel track — horizontal flex, animated */
.dir-detail__related-track {
    display: flex;
    gap: 12px;
    transition: transform 0.3s ease;
}

/* Similar card (Figma: motion.div 230x187, bg #fff, pad 20, r=14, stroke var(--skin-white-500)) */
.dir-detail__similar-card {
    background: #ffffff;
    border: 1px solid var(--skin-white-500);
    border-radius: 14px;
    padding: 20px;
    width: 230px;
    min-width: 230px;
    min-height: 187px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-shrink: 0;
}

/* Similar avatar (Figma: Container 40x40, bg var(--skin-darkblue-500), r=24) */
.dir-detail__similar-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--skin-darkblue-500);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Info container (Figma: div 190x91, vertical gap 16) */
.dir-detail__similar-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Name+badge frame (Figma: 190x50, vertical gap 12) */
.dir-detail__similar-name-frame {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Name + badge row (Figma: h4 190x22, horizontal gap 8) */
.dir-detail__similar-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    min-width: 0;
}

/* Similar name (Figma: Inter 14px fw=600 lh=17px color var(--skin-dark-900)) */
.dir-detail__similar-name {
    font-family: var(--skin-font-body, Inter, sans-serif);
    font-size: 14px;
    font-weight: 600;
    line-height: 17px;
    color: var(--skin-dark-900);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex-shrink: 1;
}

.dir-detail__similar-name:hover {
    text-decoration: underline;
}

/* Context text (Figma: Inter 12px fw=400 lh=16px color var(--skin-text-muted)) */
.dir-detail__similar-context {
    font-family: var(--skin-font-body, Inter, sans-serif);
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: var(--skin-text-muted);
    margin: 0;
}

/* See more button (Figma: Button 88x25, pad 4/0, r=12, Inter 14px fw=600 var(--skin-dark-900), align-self flex-end) */
.dir-detail__similar-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    font-family: var(--skin-font-body, Inter, sans-serif);
    font-size: 14px;
    font-weight: 600;
    line-height: 17px;
    color: var(--skin-dark-900);
    text-decoration: none;
    align-self: flex-end;
    border-radius: 12px;
}

.dir-detail__similar-btn:hover {
    text-decoration: underline;
}

/* ── Skeleton loading ────────────────────────────────────────────── */
.dir-detail__skeleton-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dir-detail__skeleton-card {
    background: #ffffff;
    border: 1px solid var(--skin-white-500);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dir-detail__skeleton-line {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: dir-skeleton-shimmer 1.4s infinite;
    border-radius: 4px;
}

.dir-detail__skeleton-line--title {
    height: 24px;
    width: 60%;
}

.dir-detail__skeleton-line--text {
    height: 16px;
    width: 100%;
}

.dir-detail__skeleton-line--short {
    height: 16px;
    width: 40%;
}

@keyframes dir-skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── BORME narrative text (Figma: List Item, Inter 16px fw=400 lh=20px color var(--skin-text-muted)) ── */
.dir-detail__company-borme {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dir-detail__company-borme-line {
    font-family: var(--skin-font-body, Inter, sans-serif);
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    color: var(--skin-text-muted);
    margin: 0;
}

.dir-detail__company-borme-line a {
    color: var(--skin-darkblue-500);
    text-decoration: underline;
}

/* ── Shared company link in related card ── */
.dir-detail__similar-company-link {
    color: var(--skin-darkblue-500);
    text-decoration: underline;
    font-family: var(--skin-font-body, Inter, sans-serif);
    font-size: 12px;
    font-weight: 400;
}

/* ── Error state ─────────────────────────────────────────────────── */
.dir-detail__error {
    padding: 24px;
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 12px;
    color: #dc2626;
    font-family: var(--skin-font-body, Inter, sans-serif);
    font-size: 14px;
}

/* ── No results ──────────────────────────────────────────────────── */
.dir-detail__no-results {
    font-family: var(--skin-font-body, Inter, sans-serif);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--skin-text-muted);
    padding: 8px 0;
    margin: 0;
}


/* ── See More button ─────────────────────────────────────────────── */
.dir-detail__see-more {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.dir-detail__see-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--skin-darkblue-500);
    color: var(--skin-white-500);
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-family: var(--skin-font-base);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    cursor: pointer;
    transition: background 0.15s;
}

.dir-detail__see-more-btn:hover {
    background: var(--skin-navy-hover);
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .dir-detail__inner {
        padding: 0 40px;
    }

    .dir-detail__col-aside {
        width: 300px;
        min-width: 300px;
    }

    .dir-detail__product-card {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .dir-detail__layout {
        flex-direction: column;
    }

    .dir-detail__col-aside {
        width: 100%;
        min-width: unset;
    }

    .dir-detail__product-card {
        width: 100%;
    }

    .dir-detail__notifications {
        margin-left: 0;
        margin-top: 12px;
    }

    .dir-detail__profile-card {
        flex-wrap: wrap;
    }

    .dir-detail__related-header {
        flex-wrap: wrap;
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .dir-detail__inner {
        padding: 0 20px;
    }

    .dir-detail__name {
        font-size: 22px;
        line-height: 28px;
    }

    .dir-detail__company-name {
        font-size: 18px;
        line-height: 24px;
    }

    .dir-detail__company-card {
        gap: 20px;
    }

    .dir-detail__company-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .dir-detail__header-band {
        padding-bottom: 20px;
    }

    .dir-detail__related-title {
        font-size: 22px;
        line-height: 28px;
    }
}

/* ── Product card: "Ver detalles" as button ──────────────────────── */
.dir-detail__product-view-chip {
    border: none;
    cursor: pointer;
}

.dir-detail__product-toggle-text {
    background: none;
    border: none;
    cursor: pointer;
}

/* ── Director profile popup modal ────────────────────────────────── */
.dir-detail__popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 13, 18, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.dir-detail__popup {
    width: 503px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px 0 rgba(10, 13, 18, 0.25);
}

.dir-detail__popup-header {
    position: relative;
    height: 179px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--skin-darkblue-500);
    background-image: linear-gradient(145deg, var(--skin-darkblue-500) 0%, #243490 60%, #1a2570 100%);
}

.dir-detail__popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.14);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.dir-detail__popup-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.dir-detail__popup-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.dir-detail__popup-title {
    font-family: var(--skin-font-display, Manrope, sans-serif);
    font-size: 24px;
    font-weight: 700;
    line-height: 29px;
    color: var(--skin-white-500);
}

.dir-detail__popup-price {
    font-family: var(--skin-font-base);
    font-size: 24px;
    font-weight: 600;
    line-height: 29px;
    color: var(--skin-white-500);
}

.dir-detail__popup-body {
    padding: 24px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dir-detail__popup-desc {
    font-family: var(--skin-font-base);
    font-size: 16px;
    font-weight: 500;
    color: var(--skin-dark-900);
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

.dir-detail__popup-list {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dir-detail__popup-list li {
    font-family: var(--skin-font-base);
    font-size: 16px;
    font-weight: 500;
    color: var(--skin-text-muted);
    line-height: 1.5;
}

@media (max-width: 540px) {
    .dir-detail__popup {
        width: calc(100vw - 32px);
        max-height: 90vh;
        overflow-y: auto;
    }
}
