/* =====================================================
   page-portafolio.css — Estilos exclusivos de /portafolio/
   ===================================================== */

/* ---- PAGE HERO ---- */
.page-hero--portafolio {
  padding: 140px 2rem 80px;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-glow {
  position: absolute; top: -20%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(249,115,22,0.15) 0%, transparent 65%);
  border-radius: 50%; z-index: 0; pointer-events: none;
}
.page-hero--portafolio .page-hero-inner { position: relative; z-index: 1; }
.page-hero--portafolio h1 { font-size: var(--text-4xl); margin-bottom: 1.25rem; }
.page-hero--portafolio h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero--portafolio .page-hero-lead {
  font-size: var(--text-lg); font-weight: 300;
  color: var(--muted); line-height: 1.75;
  max-width: 560px; margin-bottom: 2.5rem;
}

/* ---- FILTER TABS ---- */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tab {
  font-size: var(--text-sm); font-weight: 500;
  padding: 7px 16px; border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--dark2); color: rgba(255,255,255,0.5);
  cursor: pointer; transition: all 0.2s;
  font-family: var(--font-b);
}
.filter-tab.active,
.filter-tab:hover {
  background: rgba(249,115,22,0.1);
  border-color: rgba(249,115,22,0.3);
  color: var(--or3);
}

/* ---- SECTION ---- */
.section { padding: 4rem 0; }
.port-section-label {
  font-family: var(--font-d); font-size: var(--text-sm); font-weight: 700;
  color: rgba(255,255,255,0.35); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 12px;
}
.port-section-label::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ---- FEATURED CARD ---- */
.featured-card {
  background: var(--dark2); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 2.5rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
  margin-bottom: 2rem; position: relative; overflow: hidden;
  text-decoration: none; color: inherit;
  transition: border-color 0.3s;
}
.featured-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--grad);
}
.featured-card:hover { border-color: rgba(249,115,22,0.3); color: inherit; }
.fc-left {}
.fc-label {
  font-size: var(--text-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--or3);
  background: rgba(249,115,22,0.1); border: 1px solid rgba(249,115,22,0.2);
  padding: 3px 10px; border-radius: 100px;
  display: inline-flex; align-items: center; gap: 5px;
  margin-bottom: 1rem; width: fit-content;
}
.fc-label::before { content: '★'; font-size: 10px; }
.fc-title {
  font-family: var(--font-d); font-size: clamp(1.4rem,2.5vw,2rem);
  font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.75rem;
}
.fc-desc {
  font-size: var(--text-md); font-weight: 300; color: var(--muted);
  line-height: 1.75; margin-bottom: 1.25rem;
}
.fc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.25rem; }
.b-neutral {
  background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.4);
  border: 1px solid var(--border);
}
.fc-link { font-size: var(--text-md); font-weight: 600; color: var(--or3); }
.fc-visual {
  background: var(--dark3); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
}
.browser-bar {
  background: rgba(255,255,255,0.04); padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.browser-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.browser-url {
  flex: 1; background: rgba(255,255,255,0.05);
  border-radius: 6px; padding: 4px 10px;
  font-size: var(--text-xs); color: rgba(255,255,255,0.25);
  font-family: monospace;
}
.browser-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 8px; justify-content: center; min-height: 160px; }
.bb-line { height: 10px; border-radius: 4px; background: rgba(255,255,255,0.06); }
.bb-line.full  { width: 100%; }
.bb-line.med   { width: 80%; }
.bb-line.short { width: 60%; }
.bb-line.orange { background: rgba(249,115,22,0.2); width: 40%; }
.bb-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 8px; }
.bb-card { height: 60px; border-radius: 8px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); }
@media (max-width: 768px) { .featured-card { grid-template-columns: 1fr; gap: 1.5rem; } .fc-visual { display: none; } }

/* ---- OWN STRIP ---- */
.own-strip {
  background: rgba(249,115,22,0.04);
  border: 1px solid rgba(249,115,22,0.1);
  border-radius: var(--r-xl); padding: 2.5rem;
  margin-bottom: 0;
}
.own-strip-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 1.5rem; flex-wrap: wrap;
}
.own-strip-title {
  font-family: var(--font-d); font-size: 1.2rem; font-weight: 700;
  letter-spacing: -0.01em;
}
.own-badge {
  font-size: var(--text-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--or3);
  background: rgba(249,115,22,0.12); border: 1px solid rgba(249,115,22,0.25);
  padding: 3px 10px; border-radius: 100px;
}
.own-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.own-card {
  background: var(--dark2); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 1.25rem;
  text-decoration: none; color: inherit;
  transition: border-color 0.2s, transform 0.2s;
  display: flex; flex-direction: column;
}
.own-card:hover { border-color: rgba(249,115,22,0.35); transform: translateY(-2px); color: inherit; }
.own-card--wip { opacity: 0.6; cursor: default; }
.own-logo {
  width: 52px; height: 52px; border-radius: 12px; overflow: hidden;
  margin-bottom: 10px; background: rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: center;
}
.own-logo img { width: 100%; height: 100%; object-fit: cover; }
.own-placeholder { background: rgba(249,115,22,0.08); border: 1px solid rgba(249,115,22,0.15); font-size: 22px; }
.own-name  { font-family: var(--font-d); font-size: var(--text-base); font-weight: 700; margin-bottom: 4px; }
.own-desc  { font-size: var(--text-sm); font-weight: 300; color: var(--muted); line-height: 1.6; margin-bottom: 10px; flex: 1; }
.own-link  { font-size: var(--text-sm); color: var(--or3); }
.own-coming{ font-size: var(--text-sm); color: rgba(255,255,255,0.2); }
@media (max-width: 900px) { .own-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .own-grid { grid-template-columns: 1fr; } }

/* ---- PORTFOLIO GRID ---- */
.port-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 12px;
}
.port-card {
  background: var(--dark2); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.5rem;
  text-decoration: none; color: inherit;
  transition: border-color 0.25s, transform 0.25s;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.port-card::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  height: 2px; width: 0%; background: var(--grad);
  transition: width 0.3s;
}
.port-card:hover { border-color: rgba(249,115,22,0.3); transform: translateY(-3px); color: inherit; }
.port-card:hover::after { width: 100%; }
.pc-logo-area {
  display: flex; align-items: center; justify-content: center;
  height: 80px; background: rgba(255,255,255,0.02);
  border-radius: 10px; margin-bottom: 1rem; overflow: hidden;
}
.pc-logo-area img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 10px; }
.pc-logo-placeholder { font-size: 2rem; }
.pc-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.pc-country { font-size: var(--text-xs); color: rgba(255,255,255,0.3); }
.pc-title { font-family: var(--font-d); font-size: var(--text-base); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.pc-desc  { font-size: var(--text-sm); font-weight: 300; color: var(--muted); line-height: 1.6; margin-bottom: 12px; flex: 1; }
.pc-link  { font-size: var(--text-sm); color: var(--or3); margin-top: auto; }
.pc-link--confidential { color: rgba(255,255,255,0.2); }
.b-woo { background: rgba(99,102,241,0.1); color: var(--info); border: 1px solid rgba(99,102,241,0.2); }

@media (max-width: 900px) { .port-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .port-grid { grid-template-columns: 1fr; } }
