/* 
  PortalChamba V2 - Master Stylesheet
  Design: Premium Minimalist / Mobile-First
*/

:root {
    --pc-navy: #0F2C43;
    --pc-orange: #FF5500;
    --pc-accent: #00BFA5;
    --pc-bg: #F8FAFC;
    --pc-card: #FFFFFF;
    --pc-text-main: #1E293B;
    --pc-text-muted: #64748B;
    --pc-border: #E2E8F0;
    --pc-radius: 12px;
    --pc-shadow: 0 10px 30px -15px rgba(15, 44, 67, 0.15);
    --pc-font: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--pc-bg);
    color: var(--pc-text-main);
    font-family: var(--pc-font);
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.5;
}

/* --- Layout --- */
.pc-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    width: 100% !important;
}

/* --- Barra Multicolor --- */
.pc-rainbow-bar {
    height: 4px;
    background: linear-gradient(90deg, #FF5500, #FF6B1A, #FFBA08, #22C55E, #0EA5E9, #6366F1, #8B5CF6, #EC4899);
    position: sticky;
    top: 0;
    z-index: 1001;
}

/* --- Header V2 --- */
.pc-header {
    background: var(--pc-navy);
    padding: 16px 0;
    position: sticky;
    top: 4px;
    z-index: 1000;
}

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

.pc-logo img {
    height: 48px;
    display: block;
}

.pc-nav {
    display: flex;
    gap: 24px;
}

.pc-nav__link {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
}

.pc-nav__link:hover {
    color: var(--pc-orange);
}

/* --- Job Cards --- */
.pc-job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.pc-card {
    background: var(--pc-card);
    border: 1px solid var(--pc-border);
    border-radius: var(--pc-radius);
    padding: 24px;
    box-shadow: var(--pc-shadow);
    transition: transform 0.2s, border-color 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pc-card:hover {
    transform: translateY(-4px);
    border-color: var(--pc-orange);
    box-shadow: 0 20px 40px -20px rgba(15, 44, 67, 0.25);
}

.pc-card__badge {
    background: #FFF1EB;
    color: var(--pc-orange);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
}

.pc-card__title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--pc-navy);
}

.pc-card__entity {
    color: var(--pc-text-muted);
    font-size: 14px;
    margin-top: -8px;
}

.pc-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--pc-text-muted);
}

.pc-btn-action {
    background: var(--pc-orange);
    color: #fff;
    text-align: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.pc-btn-action:hover {
    background: #E64A19;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 85, 0, 0.2);
}

.pc-btn-red {
    background: #E11D48;
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.pc-btn-red:hover {
    background: #BE123C;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.2);
}

/* --- Articulo / Reading Experience PREMIUM (Floating) --- */
.pc-reading-nav {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    padding: 20px 0;
    position: sticky;
    top: 84px; 
    z-index: 950;
    margin-bottom: 20px;
    box-shadow: none;
    pointer-events: none; /* Dejar pasar clics al fondo si es necesario, pero los hijos deben activarlos */
}

.pc-reading-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Equilibrado: izquierda y derecha */
    gap: 12px;
    pointer-events: auto;
}

.pc-nav-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pc-btn-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    color: var(--pc-navy);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    padding: 12px 20px;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.pc-btn-nav:hover {
    background: #FFFFFF;
    border-color: var(--pc-orange);
    color: var(--pc-orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 85, 0, 0.12);
}

/* --- Card Comunidad PREMIUM (Pixel-Perfect Image Match) --- */
.pc-side-card--rainbow { 
    position: relative; 
    overflow: hidden; 
    background: #FFFFFF; 
    border-radius: 32px; /* Curva más pronunciada según imagen */
    padding: 32px 24px; 
    box-shadow: 0 10px 40px rgba(15, 44, 67, 0.06); 
    margin-bottom: 32px; 
    border: 1px solid rgba(226, 232, 240, 0.6);
    text-align: center;
}

.pc-side-card--rainbow::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px; /* Barra más delgada y elegante */
    background: linear-gradient(90deg, #FF5500, #FFBA08, #22C55E, #0EA5E9);
    border-radius: 32px 32px 0 0;
    z-index: 10;
}

.pc-community-title { 
    color: #0F2C43; 
    font-size: 19px; 
    font-weight: 900; 
    margin-bottom: 24px; 
    line-height: 1.2; 
    letter-spacing: -0.01em;
}

.pc-side-wa--large { 
    background: #00D95F; 
    color: #FFFFFF; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
    padding: 16px; 
    border-radius: 14px; 
    text-decoration: none; 
    font-weight: 800; 
    font-size: 17px; 
    transition: all 0.2s ease; 
    margin-bottom: 32px; 
    border: none;
    box-shadow: 0 4px 12px rgba(0, 217, 95, 0.2);
}

.pc-side-wa--large:hover { 
    background: #00C456;
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(0, 217, 95, 0.3); 
}

.pc-side-label { 
    display: block; 
    color: #64748B; 
    font-size: 10px; 
    font-weight: 800; 
    letter-spacing: 0.12em; 
    margin-bottom: 20px; 
    text-transform: uppercase;
}

.pc-social-grid { 
    display: flex; 
    justify-content: center;
    gap: 16px; 
}

.pc-social-circle { 
    width: 52px; 
    height: 52px; 
    border-radius: 50%; 
    background: #FFFFFF; 
    border: 1px solid #F1F5F9;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-decoration: none; 
    transition: all 0.2s ease; 
}

.pc-social-circle:hover { 
    transform: translateY(-3px); 
    border-color: rgba(15, 44, 67, 0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
}

.pc-social-circle svg {
    width: 20px;
    height: 20px;
}

/* --- Contenido del Articulo --- */
.pc-article-body {
    font-size: 18px;
    line-height: 1.8;
    color: var(--pc-text-main);
}

.pc-article-body p {
    margin-bottom: 24px;
}

.pc-article-body h2 {
    color: var(--pc-navy);
    font-size: 28px;
    font-weight: 800;
    margin: 48px 0 24px;
}

.pc-article-body h3 {
    color: var(--pc-navy);
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 16px;
}

.pc-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    margin: 32px 0;
    box-shadow: var(--pc-shadow);
}

/* --- Tablas Especiales V2 --- */
.pc-reader-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 32px 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--pc-navy);
}

.pc-reader-table thead {
    background: var(--pc-navy);
    color: #fff;
}

.pc-reader-table th {
    padding: 16px;
    text-align: left;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
}

.pc-reader-table td {
    padding: 16px;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    font-size: 15px;
}

.pc-reader-table tr:last-child td {
    border-bottom: none;
}

.pc-article-body ul, .pc-article-body ol {
    padding-left: 24px;
    margin-bottom: 32px;
}

.pc-article-body li {
    margin-bottom: 12px;
}


/* --- Suite Calculadora de Sueldo V2 --- */
.pc-salary-wrap { margin-top: 40px; margin-bottom: 80px; }
.pc-salary-head { text-align: center; margin-bottom: 48px; }
.pc-salary-head h1 { font-size: 36px; font-weight: 900; color: var(--pc-navy); margin-bottom: 12px; letter-spacing: -0.02em; }
.pc-salary-head h1 span { color: var(--pc-orange); }
.pc-salary-head p { color: var(--pc-text-muted); font-size: 17px; max-width: 800px; margin: 0 auto; line-height: 1.6; }

.pc-salary-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: start; }
.pc-calc-stack { display: grid; gap: 24px; }

/* Tarjetas y Campos de Entrada */
.pc-input-group { display: grid; gap: 20px; }
.pc-field-label { display: block; font-weight: 800; font-size: 13px; color: var(--pc-navy); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.pc-input-text, .pc-select-custom { 
    width: 100%; 
    padding: 16px; 
    border-radius: 16px; 
    border: 1.5px solid var(--pc-border); 
    font-family: var(--pc-font); 
    font-size: 16px; 
    font-weight: 700; 
    color: var(--pc-navy);
    transition: all 0.2s;
    outline: none;
    background: #fff;
    box-sizing: border-box; /* Prevenir desbordamiento */
}

/* Input Hero (Llamativo) */
.pc-field--hero {
    margin-bottom: 8px;
}

/* Header */
.pc-header {
    background: #002237;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    height: 85px;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column; /* Barra arriba, contenido abajo */
}

.pc-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
}

.pc-nav__link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 8px 0;
    position: relative;
}

.pc-nav__link:hover, .pc-nav__link.active {
    color: #ffffff;
}

.pc-nav__link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--pc-orange);
    border-radius: 10px;
}

.pc-salary-hero-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid var(--pc-border);
    border-radius: 20px;
    padding: 4px 20px;
    transition: all 0.3s ease;
    width: fit-content;
    min-width: 280px;
    box-shadow: 0 4px 10px rgba(15, 44, 67, 0.04);
}

.pc-salary-hero-wrap:focus-within {
    border-color: var(--pc-orange);
    box-shadow: 0 8px 24px rgba(255, 85, 0, 0.1);
    transform: translateY(-2px);
}

.pc-currency-label {
    font-size: 24px;
    font-weight: 900;
    color: var(--pc-orange);
    margin-right: 12px;
    user-select: none;
}

.pc-input--hero {
    border: none !important;
    background: transparent !important;
    font-size: 32px !important;
    font-weight: 950 !important;
    color: var(--pc-navy) !important;
    padding: 12px 0 !important;
    width: 100%;
    outline: none;
}

.pc-input--hero::placeholder {
    color: #CBD5E1;
}
.pc-input-text:focus, .pc-select-custom:focus { 
    border-color: var(--pc-orange); 
    box-shadow: 0 0 0 4px rgba(255, 85, 0, 0.1); 
}

/* Toggles e Interruptores Premium */
.pc-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.pc-toggle-info { display: flex; align-items: center; gap: 12px; }
.pc-toggle-text strong { display: block; font-size: 15px; color: var(--pc-navy); font-weight: 800; }
.pc-toggle-text span { font-size: 12px; color: var(--pc-text-muted); line-height: 1.4; display: block; margin-top: 2px; }

.pc-switch {
    width: 60px;
    height: 32px;
    background: #E2E8F0;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}
.pc-switch::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.pc-switch.is-active { background: var(--pc-orange); }
.pc-switch.is-active::before { transform: translateX(28px); }

/* Sistema de Radio y Tabs */
.pc-radio-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
.pc-radio-opt { 
    padding: 20px; 
    border-radius: 20px; 
    border: 1.5px solid var(--pc-border); 
    background: #fff; 
    cursor: pointer; 
    transition: all 0.2s; 
    position: relative;
}
.pc-radio-opt:hover { border-color: var(--pc-orange); transform: translateY(-2px); }
.pc-radio-opt.is-active { border-color: var(--pc-orange); background: #FFF5F0; }
.pc-radio-opt strong { display: block; font-size: 16px; color: var(--pc-navy); margin-bottom: 4px; }
.pc-radio-opt p { font-size: 12px; color: var(--pc-text-muted); margin: 0; line-height: 1.4; }

.pc-tab-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.pc-tab-item { 
    padding: 10px; 
    border-radius: 12px; 
    border: 1.5px solid var(--pc-border); 
    background: #fff; 
    font-size: 13px; 
    font-weight: 700; 
    text-align: center; 
    cursor: pointer;
    transition: all 0.2s;
}
.pc-tab-item.is-active { background: var(--pc-navy); border-color: var(--pc-navy); color: #fff; }

/* Resumen Dinámico (Sidebar) */
.pc-summary-card { background: #fff; border-radius: 24px; border: 1.5px solid var(--pc-border); overflow: hidden; box-shadow: var(--pc-shadow); }
.pc-summary-head { 
    background: var(--pc-navy); 
    color: #fff; 
    padding: 20px 24px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
}
.pc-summary-head h3 { margin: 0; font-size: 18px; font-weight: 800; }
.pc-live-badge { background: rgba(255,85,0,0.2); color: var(--pc-orange); padding: 4px 10px; border-radius: 99px; font-size: 11px; font-weight: 900; }

.pc-summary-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 16px 24px; background: #F8FAFC; }
.pc-summary-tab { 
    padding: 12px; 
    border-radius: 12px; 
    border: 1.5px solid var(--pc-border); 
    background: #fff; 
    font-weight: 800; 
    font-size: 14px; 
    text-align: center; 
    cursor: pointer;
    transition: all 0.2s;
}
.pc-summary-tab.is-active { border-color: var(--pc-orange); color: var(--pc-orange); background: #FFF5F0; }

.pc-summary-lines { padding: 24px; display: grid; gap: 14px; }
.pc-summary-line { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.pc-summary-line span { color: var(--pc-text-muted); }
.pc-summary-line strong { color: var(--pc-navy); font-weight: 800; }
.pc-summary-line.is-neg strong { color: #E11D48; }

.pc-summary-total { text-align: center; padding: 12px 24px 32px; }
.pc-summary-total span { color: var(--pc-text-muted); font-size: 13px; font-weight: 600; display: block; margin-bottom: 8px; }
.pc-summary-total h2 { font-size: 44px; font-weight: 950; color: var(--pc-orange); margin: 0; letter-spacing: -0.04em; }

/* Modales y Reporte PDF */
.pc-modal-overlay { 
    position: fixed; 
    inset: 0; 
    background: rgba(15, 44, 67, 0.6); 
    backdrop-filter: blur(8px); 
    display: none; 
    align-items: center; 
    justify-content: center; 
    z-index: 2000; 
    padding: 24px;
}
.pc-modal-overlay.is-active { display: flex; }
.pc-modal { 
    width: 100%; 
    max-width: 1100px; 
    height: 90vh; 
    background: #fff; 
    border-radius: 24px; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    box-shadow: 0 40px 100px rgba(0,0,0,0.3);
}
.pc-modal-head { background: var(--pc-navy); padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; color: #fff; }
.pc-modal-content { flex: 1; background: #F1F5F9; }
.pc-report-frame { width: 100%; height: 100%; border: none; }


/* Tarjeta Promo Premium (Llamativa) */
.pc-side-card--premium {
    background: var(--pc-navy);
    border-radius: 24px;
    padding: 32px 24px;
    position: relative;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 20px 40px rgba(15, 44, 67, 0.4);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pc-side-card--premium:hover {
    transform: translateY(-8px) scale(1.02);
}

.pc-side-card--premium::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, #FF5500, #FFBA08, #22C55E, #0EA5E9);
}

.pc-side-card--premium .pc-promo-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--pc-orange);
}

.pc-side-card--premium h4 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
    color: #fff;
}

.pc-side-card--premium p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
}

.pc-btn-premium {
    background: #fff;
    color: var(--pc-navy);
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.pc-btn-premium:hover {
    background: var(--pc-orange);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 85, 0, 0.3);
}

/* Adaptaciones Mobile */
@media (max-width: 1024px) {
    .pc-salary-grid { grid-template-columns: 1fr; }
    .pc-summary-card { position: static; }
}

@media (max-width: 600px) {
    .pc-salary-head h1 { font-size: 28px; }
    .pc-tab-grid { grid-template-columns: repeat(2, 1fr); }
    .pc-summary-total h2 { font-size: 32px; }
}

/* --- Suite Comunidad & Foro V2 --- */
.pc-forum-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; margin-top: 40px; align-items: start; }
.pc-forum-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; padding: 24px; background: #fff; border-radius: 20px; border: 1.5px solid var(--pc-border); box-shadow: var(--pc-shadow); }
.pc-forum-header h2 { margin: 0; font-size: 22px; font-weight: 900; color: var(--pc-navy); }

/* Tarjetas de Reseña Foro */
.pc-review-stack { display: grid; gap: 24px; }
.pc-review-card { background: #fff; border: 1.5px solid var(--pc-border); border-radius: 24px; padding: 24px; transition: all 0.2s ease; box-shadow: 0 4px 12px rgba(15, 44, 67, 0.03); }
.pc-review-card:hover { border-color: var(--pc-orange); transform: translateY(-3px); box-shadow: 0 12px 24px rgba(15, 44, 67, 0.08); }

.pc-review-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; position: relative; }
.pc-review-avatar { width: 48px; height: 48px; min-width: 48px; background: #F1F5F9; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--pc-text-muted); }
.pc-review-info { flex: 1; }
.pc-review-company { margin: 0; font-size: 17px; font-weight: 800; color: var(--pc-navy); display: flex; align-items: center; gap: 6px; }
.pc-review-company svg { color: var(--pc-accent); } /* Verified Badge */
.pc-review-role { font-size: 13px; color: var(--pc-text-muted); font-weight: 600; margin-top: 2px; display: block; }
.pc-review-time { font-size: 11px; color: var(--pc-text-muted); position: absolute; top: 0; right: 0; font-weight: 600; }

.pc-review-rating { display: flex; align-items: center; gap: 8px; margin: 12px 0; }
.pc-stars { display: flex; gap: 2px; color: #FFBA08; }
.pc-tag { font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: #F1F5F9; color: var(--pc-text-muted); }

.pc-review-body { font-size: 15px; line-height: 1.6; color: var(--pc-text-main); margin-bottom: 20px; }

/* Barra de Interacción */
.pc-interaction-bar { display: flex; align-items: center; gap: 16px; border-top: 1.5px solid #F8FAFC; padding-top: 16px; }
.pc-int-btn { 
    background: transparent; border: none; padding: 6px 12px; border-radius: 8px; 
    font-size: 13px; font-weight: 700; color: var(--pc-text-muted); cursor: pointer;
    display: flex; align-items: center; gap: 6px; transition: all 0.2s;
}
.pc-int-btn:hover { background: #F1F5F9; color: var(--pc-navy); }
.pc-int-btn.is-voted { color: var(--pc-orange); background: #FFF5F1; }
.pc-int-btn svg { width: 16px; height: 16px; stroke-width: 2.5; }

/* Modales Especiales V2 */
.pc-modal-body--rules { padding: 32px; }
.pc-rules-list { list-style: none; padding: 0; margin: 24px 0 32px; }
.pc-rules-item { position: relative; padding-left: 32px; margin-bottom: 20px; }
.pc-rules-item::before { 
    content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; 
    border-radius: 50%; background: var(--pc-orange); box-shadow: 0 0 0 4px rgba(255, 85, 0, 0.15);
}
.pc-rules-item strong { display: block; font-size: 16px; color: var(--pc-navy); }
.pc-rules-item p { margin: 4px 0 0; font-size: 14px; color: var(--pc-text-muted); line-height: 1.4; }

/* Widget Reglas Lateral */
.pc-rules-widget { background: #fff; border-radius: 20px; border: 1.5px solid var(--pc-border); padding: 24px; box-shadow: var(--pc-shadow); }
.pc-rules-widget h4 { margin: 0 0 16px; font-size: 15px; font-weight: 900; color: var(--pc-navy); text-transform: uppercase; letter-spacing: 0.05em; display: flex; align-items: center; gap: 8px; }
.pc-rules-widget h4 svg { color: var(--pc-orange); }
.pc-mini-rule { border-bottom: 1.5px solid #F8FAFC; padding: 12px 0; font-size: 13px; }
.pc-mini-rule:last-child { border-bottom: none; }
.pc-mini-rule strong { display: block; color: var(--pc-navy); margin-bottom: 2px; }
.pc-mini-rule span { color: var(--pc-text-muted); }


/* Hilos de Respuesta (Replies) */
.pc-replies-list { margin: 16px 0 0 32px; padding-left: 20px; border-left: 2.5px solid #F1F5F9; display: grid; gap: 12px; }
.pc-reply-item { background: #F8FAFC; padding: 12px 16px; border-radius: 14px; position: relative; }
.pc-reply-item::before { content: ""; position: absolute; left: -22.5px; top: 18px; width: 20px; height: 1.5px; background: #F1F5F9; }
.pc-reply-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 11px; font-weight: 800; color: var(--pc-navy); }
.pc-reply-meta span { color: var(--pc-text-muted); font-weight: 500; }
.pc-reply-text { font-size: 14px; line-height: 1.5; color: var(--pc-text-main); }

/* Caja de Respuesta Dinámica */
.pc-reply-box { margin-top: 16px; display: none; background: #fff; border: 1.5px solid var(--pc-border); border-radius: 16px; padding: 12px; animation: pcSlideDown 0.3s ease; }
.pc-reply-box.is-active { display: block; }
.pc-reply-input { width: 100%; border: none; outline: none; background: transparent; font-family: var(--pc-font); font-size: 14px; min-height: 60px; resize: none; margin-bottom: 8px; }
.pc-reply-actions { display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid #F1F5F9; padding-top: 8px; }

@keyframes pcSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Adaptaciones Mobile Comunidad */
@media (max-width: 900px) {
    .pc-forum-layout { grid-template-columns: 1fr; }
    .pc-forum-header { flex-direction: column; gap: 16px; align-items: flex-start; }
}

/* --- CV BUILDER --- */
.pc-cv-builder-wrap { padding: 40px 0; background: #fdfdfd; min-height: 100vh; }
.pc-cv-step { display: none; width: 100%; margin: 0 auto; animation: pcFadeIn 0.4s ease; }
.pc-cv-step.is-active { display: block; }

/* Involucrar pc-container para el ancho */
.pc-cv-step-inner { max-width: 1240px; margin: 0 auto; }
.pc-cv-step-content { max-width: 900px; margin: 0 auto; }

/* Landing CV */
.pc-cv-hero { background: #fff; border: 1px solid var(--pc-border); border-radius: 32px; padding: 60px; display: flex; align-items: center; gap: 80px; box-shadow: var(--pc-shadow); margin-bottom: 60px; width: 100%; box-sizing: border-box; }
.pc-cv-hero__content { flex: 1; }
.pc-cv-hero__tag { background: var(--pc-accent); color: #fff; padding: 6px 14px; border-radius: 8px; font-size: 11px; font-weight: 800; text-transform: uppercase; margin-bottom: 24px; display: inline-block; }
.pc-cv-hero h1 { font-size: 52px; font-weight: 900; line-height: 1.1; margin: 0 0 24px; color: var(--pc-navy); letter-spacing: -2px; }
.pc-cv-hero p { font-size: 18px; color: var(--pc-text-muted); margin-bottom: 32px; line-height: 1.6; }

/* Header/Sections de Form */
.pc-cv-section { background: #fff; border: 1px solid var(--pc-border); border-radius: 20px; padding: 32px; margin-bottom: 24px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02); }
.pc-cv-section-title { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 800; color: var(--pc-navy); margin-bottom: 24px; border-bottom: 1px solid #F1F5F9; padding-bottom: 16px; }
.pc-cv-section-title span { background: #fee2e2; color: #ef4444; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 6px; font-size: 14px; }

/* Grid de Form */
.pc-cv-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.pc-cv-form-group { display: flex; flex-direction: column; gap: 8px; }
.pc-cv-label { font-size: 13px; font-weight: 700; color: var(--pc-text-main); }
.pc-cv-input { padding: 14px 16px; border: 1.5px solid var(--pc-border); border-radius: 10px; font-family: var(--pc-font); font-size: 14px; transition: border-color 0.2s; }
.pc-cv-input:focus { border-color: var(--pc-orange); outline: none; }

/* Bloques Dinámicos */
.pc-cv-block { border: 1px solid #F1F5F9; padding: 20px; border-radius: 12px; margin-bottom: 16px; position: relative; background: #FAFAFA; }
.pc-cv-block-remove { position: absolute; top: 12px; right: 12px; color: #ef4444; cursor: pointer; opacity: 0.6; transition: opacity 0.2s; }
.pc-cv-block-remove:hover { opacity: 1; }
.pc-cv-add-btn { background: #FFF1EB; color: var(--pc-orange); border: 1.5px dashed var(--pc-orange); width: 100%; padding: 14px; border-radius: 12px; font-weight: 700; font-size: 14px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pc-cv-add-btn:hover { background: var(--pc-orange); color: #fff; }

/* Photo Upload */
.pc-cv-photo-wrap { text-align: center; margin-bottom: 30px; }
.pc-cv-photo-preview { width: 120px; height: 120px; border-radius: 50%; background: #F1F5F9; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 2px dashed #CBD5E1; color: #94A3B8; cursor: pointer; }
.pc-cv-photo-preview img { width: 100%; height: 100%; object-fit: cover; }

/* Selector de Plantilla */
.pc-tpl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 40px; }
.pc-tpl-card { background: #fff; border: 2px solid var(--pc-border); border-radius: 16px; padding: 30px; text-align: center; cursor: pointer; transition: all 0.2s; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.pc-tpl-card:hover { border-color: var(--pc-orange); transform: translateY(-3px); }
.pc-tpl-card.is-active { border-color: var(--pc-orange); background: #FFF1EB; }
.pc-tpl-card-icon { width: 48px; height: 32px; background: #e2e8f0; border-radius: 4px; display: flex; gap: 4px; padding: 4px; }
.pc-tpl-card-icon span { background: var(--pc-orange); border-radius: 2px; }

/* Selector de Color */
.pc-color-strip { display: flex; justify-content: center; gap: 16px; margin: 30px 0; }
.pc-color-dot { width: 36px; height: 36px; border-radius: 50%; cursor: pointer; border: 3px solid #fff; box-shadow: 0 0 0 1px #e2e8f0; transition: transform 0.2s; }
.pc-color-dot:hover { transform: scale(1.2); }
.pc-color-dot.is-active { box-shadow: 0 0 0 2px var(--pc-navy); }

/* --- ENGINE PREVIEW (A4) --- */
.pc-cv-preview-container { 
    width: 210mm; 
    min-height: 297mm; 
    background: #fff; 
    margin: 0 auto 40px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.1); 
    padding: 0;
    overflow: hidden;
    position: relative;
    transform-origin: top center;
}

/* Plantilla 1: Modern Sidebar */
.pc-cv-tpl--modern { display: grid; grid-template-columns: 280px 1fr; min-height: 297mm; }
.pc-cv-sidemenu { background: var(--cv-primary, #0F2C43); color: #fff; padding: 40px 30px; }
.pc-cv-mainbody { padding: 40px 40px; }

/* Plantilla 2: Top Banner */
.pc-cv-tpl--top { padding: 0; }
.pc-cv-header-banner { background: var(--cv-primary, #0F2C43); color: #fff; padding: 50px; text-align: center; }
.pc-cv-content-banner { padding: 40px 60px; display: grid; grid-template-columns: 1fr 240px; gap: 40px; }

/* Plantilla 3: Corporate Dark */
.pc-cv-tpl--corporate { background: #f8fafc; padding: 50px; }
.pc-cv-corp-header { border-left: 8px solid var(--cv-primary); padding-left: 24px; margin-bottom: 40px; }

/* Plantilla 4: Minimalist Elegant */
.pc-cv-tpl--minimalist { padding: 60px; font-family: 'Georgia', serif; }
.pc-cv-min-rule { height: 1px; background: #e2e8f0; margin: 20px 0; }

/* Plantilla 5: Classic Revamped */
.pc-cv-tpl--classic { padding: 50px; border: 20px solid #f1f5f9; min-height: calc(297mm - 40px); }

/* Plantilla 6: Profesional Ejecutivo */
.pc-cv-tpl--ejecutivo { padding: 0; }
.pc-cv-exec-top { border-bottom: 4px solid var(--cv-primary); padding: 40px 60px; display: flex; justify-content: space-between; align-items: center; }

/* Estilos de Texto CV */
.cv-name { font-size: 32px; font-weight: 900; margin-bottom: 4px; line-height: 1.1; }
.cv-role { font-size: 16px; font-weight: 500; opacity: 0.9; margin-bottom: 24px; text-transform: uppercase; letter-spacing: 1px; }
.cv-section-h { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--cv-primary, #0F2C43); margin: 30px 0 15px; border-bottom: 2px solid #f1f5f9; padding-bottom: 8px; }
.pc-cv-sidemenu .cv-section-h { color: #fff; border-color: rgba(255,255,255,0.15); }
.cv-item-title { font-size: 15px; font-weight: 700; color: #1e293b; }
.cv-item-meta { font-size: 12px; color: #64748b; margin-bottom: 4px; }
.cv-item-period { font-size: 11px; font-weight: 600; color: var(--cv-primary); }

/* Adaptaciones Mobile Builder */
@media (max-width: 900px) {
    .pc-cv-preview-container { transform: scale(0.4); margin-bottom: -400px; }
    .pc-tpl-grid { grid-template-columns: 1fr; }
    .pc-cv-hero { flex-direction: column; padding: 30px; text-align: center; }
}

@keyframes pcFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   SUITE PUBLICITARIA DE ADSENSE (BLINDAJE YIELD MANAGEMENT ANTI-BANEO)
   ========================================================================== */
.pc-ad-container {
    margin: 45px auto;
    padding: 15px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    text-align: center;
    position: relative;
    min-height: 280px; /* Evita Cumulative Layout Shift (CLS) */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.pc-ad-container::before {
    content: "PUBLICIDAD";
    display: block;
    font-size: 10px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .pc-ad-container {
        margin: 25px auto;
        padding: 10px;
        min-height: 120px; /* Dimensiones para banners móviles */
    }
}
