/* Portafolio de contenido para redes sociales (público) */
.social-hero { padding: 150px 0 50px; background-color: var(--cream-bg); }
.social-breadcrumb { font-size: 0.88rem; color: rgba(18, 18, 16, 0.65); margin-bottom: 20px; }
.social-breadcrumb a { color: var(--brand-red); }
.social-breadcrumb a:hover { text-decoration: underline; }
.social-hero h1 {
    font-family: var(--font-body); font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.1rem);
    line-height: 1.15; letter-spacing: 0; color: var(--dark-charcoal); margin: 0 0 14px;
}
.social-hero h1 .red-text { color: var(--brand-red); }
.social-lead { font-size: 1.1rem; line-height: 1.7; max-width: 760px; margin-bottom: 18px; }
.social-ext-link { color: var(--brand-red); font-weight: 600; text-decoration: underline; }

.social-company-head { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.social-head-logo { max-height: 90px; max-width: 200px; width: auto; background: var(--white); padding: 12px 16px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }

.social-section { padding: 56px 0; }
.social-alt { background-color: var(--white); }
.social-title { font-family: var(--font-body); font-weight: 800; font-size: 1.5rem; letter-spacing: 0; margin: 0 0 20px; color: var(--dark-charcoal); }
.social-empty { text-align: center; font-size: 1.05rem; padding: 40px 0; }

.social-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.social-chip {
    border: 1px solid var(--warm-gray); background: var(--white); color: var(--dark-charcoal);
    font-family: var(--font-body); font-weight: 600; font-size: 0.9rem; padding: 8px 18px; border-radius: 50px; cursor: pointer;
    transition: var(--transition-fast);
}
.social-chip:hover { border-color: var(--brand-red); color: var(--brand-red); }
.social-chip.active { background: var(--brand-red); border-color: var(--brand-red); color: var(--white); }
.social-chip:focus-visible, .social-tile:focus-visible { outline: 3px solid var(--brand-cyan); outline-offset: 2px; }

/* Empresas */
.social-companies { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.social-company {
    display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-md);
    overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid rgba(208, 201, 195, 0.4); transition: var(--transition-normal);
}
.social-company:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.social-company-cover { display: block; aspect-ratio: 4 / 3; background: var(--dark-charcoal); overflow: hidden; }
.social-company-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.social-company-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 20px; }
.social-company-body strong { font-family: var(--font-body); font-size: 1.15rem; color: var(--dark-charcoal); }
.social-company-logo { max-height: 34px; max-width: 120px; width: auto; margin-bottom: 6px; object-fit: contain; }
.social-company-meta { font-size: 0.88rem; color: rgba(18, 18, 16, 0.7); }
.social-company-nets { font-size: 0.82rem; color: var(--brand-cyan-dark); font-weight: 600; }
.social-tile-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 120px; color: var(--white); font-weight: 700; letter-spacing: 1px; text-align: center; padding: 10px; background: var(--dark-charcoal); }

/* Piezas */
.social-period { margin-bottom: 38px; }
.social-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.social-tile {
    position: relative; display: block; padding: 0; border: 0; cursor: pointer; background: var(--dark-charcoal);
    border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-sm); transition: var(--transition-normal);
}
.social-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.social-tile img, .social-tile video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.social-tile-net {
    position: absolute; left: 10px; bottom: 10px; background: rgba(18, 18, 16, 0.78); color: var(--white);
    font-family: var(--font-body); font-size: 0.74rem; font-weight: 600; padding: 4px 10px; border-radius: 50px;
}
.social-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.92); color: var(--brand-red); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; padding-left: 3px;
}
.social-hidden { display: none !important; }
.social-period.social-hidden { display: none !important; }

.social-cta { text-align: center; max-width: 720px; }
.social-cta h2 { font-family: var(--font-body); font-weight: 800; font-size: 1.6rem; letter-spacing: 0; margin-bottom: 10px; }
.social-cta p { margin-bottom: 20px; }
.social-cta .btn { margin: 4px 6px; }

/* Visor */
.social-viewer { position: fixed; inset: 0; z-index: 3000; background: rgba(12, 12, 10, 0.92); display: none; align-items: center; justify-content: center; padding: 20px; }
.social-viewer.open { display: flex; }
.social-viewer-box { position: relative; max-width: 960px; width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.social-viewer-media { width: 100%; display: flex; justify-content: center; }
.social-viewer-media img, .social-viewer-media video { max-width: 100%; max-height: 74vh; border-radius: var(--radius-sm); background: #000; }
.social-viewer-media iframe { width: min(100%, 880px); aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-sm); background: #000; }
.social-viewer-info { color: var(--white); text-align: center; max-width: 720px; }
.social-viewer-info strong { display: block; font-family: var(--font-body); font-size: 1.05rem; }
.social-viewer-info span { display: block; font-size: 0.9rem; opacity: 0.8; margin-top: 2px; }
.social-viewer-info p { color: rgba(255, 255, 255, 0.85); font-size: 0.92rem; margin: 8px 0 0; }
.social-viewer button.sv-btn {
    position: absolute; background: rgba(255, 255, 255, 0.14); color: var(--white); border: 0; width: 44px; height: 44px;
    border-radius: 50%; font-size: 1.1rem; cursor: pointer;
}
.social-viewer button.sv-btn:hover { background: rgba(255, 255, 255, 0.28); }
.sv-close { top: -6px; right: -6px; }
.sv-prev { left: -6px; top: 40%; }
.sv-next { right: -6px; top: 40%; }
@media (max-width: 900px) {
    .sv-prev { left: 4px; } .sv-next { right: 4px; } .sv-close { top: 4px; right: 4px; }
}

/* Bloque en /portafolio */
.social-feature { padding: 70px 0; background-color: var(--cream-bg); }
.social-feature-head { text-align: center; max-width: 720px; margin: 0 auto 32px; }
.social-feature-head h2 { font-family: var(--font-body); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: 0; margin-bottom: 10px; }
.social-feature .social-grid { margin-bottom: 28px; }
.social-feature-actions { text-align: center; }

@media (max-width: 768px) {
    .social-hero { padding: 120px 0 40px; }
    .social-section { padding: 40px 0; }
    .social-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .social-companies { grid-template-columns: 1fr; }
}
