/* ============================================
   Compañía — shared page styles
   ============================================ */

/* Page hero */
.page-hero {
  position: relative;
  padding: clamp(80px, 9vw, 140px) 0 clamp(48px, 6vw, 80px);
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .hero-bg { height: 600px; }
.page-hero-head {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.page-hero h1 {
  font-size: clamp(40px, 5.6vw, 72px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.page-hero h1 .gradient {
  background: linear-gradient(120deg, var(--accent) 30%, var(--cyan-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-hero-lede {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--text-muted);
  max-width: 620px;
}

/* Breadcrumbs */
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  margin-bottom: 4px;
}
.crumbs a:hover { color: var(--text); }
.crumbs .sep { opacity: 0.5; }

/* ============================================
   Sobre nosotros
   ============================================ */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 56px;
}
.about-stats .stat-cell {
  background: var(--bg-card);
  padding: 28px 24px;
}
.about-stats .v {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--accent);
  font-feature-settings: "tnum";
}
.about-stats .l {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
@media (max-width: 760px) {
  .about-stats { grid-template-columns: 1fr 1fr; }
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; gap: 32px; }
}
.story-grid p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.story-grid p:first-of-type::first-letter {
  font-size: 48px;
  font-weight: 600;
  float: left;
  line-height: 0.9;
  margin-right: 8px;
  margin-top: 4px;
  color: var(--accent);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .values-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .values-grid { grid-template-columns: 1fr; } }
.value-card {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .25s ease, transform .25s ease;
}
.value-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.value-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}
.value-card h3 {
  font-size: 18px;
  letter-spacing: -0.01em;
}
.value-card p { font-size: 14px; color: var(--text-muted); }

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr; } }
.member {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease;
}
.member:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.member-photo {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, oklch(0.55 0.20 305), oklch(0.62 0.16 330));
  position: relative;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -0.02em;
}
.member:nth-child(2) .member-photo { background: linear-gradient(135deg, oklch(0.55 0.18 265), oklch(0.65 0.18 305)); }
.member:nth-child(3) .member-photo { background: linear-gradient(135deg, oklch(0.60 0.18 330), oklch(0.55 0.20 305)); }
.member:nth-child(4) .member-photo { background: linear-gradient(135deg, oklch(0.50 0.22 285), oklch(0.65 0.14 220)); }
.member:nth-child(5) .member-photo { background: linear-gradient(135deg, oklch(0.62 0.16 30), oklch(0.55 0.20 305)); }
.member:nth-child(6) .member-photo { background: linear-gradient(135deg, oklch(0.58 0.18 200), oklch(0.55 0.20 305)); }
.member:nth-child(7) .member-photo { background: linear-gradient(135deg, oklch(0.55 0.20 305), oklch(0.65 0.18 270)); }
.member:nth-child(8) .member-photo { background: linear-gradient(135deg, oklch(0.65 0.14 80), oklch(0.55 0.20 305)); }
.member-meta { padding: 16px 18px; }
.member-meta .name { font-size: 15px; font-weight: 500; letter-spacing: -0.005em; }
.member-meta .role { font-size: 12px; color: var(--text-faint); font-family: var(--font-mono); margin-top: 2px; }

/* Timeline */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}
.tl-item { padding-bottom: 28px; position: relative; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 6px;
  width: 12px; height: 12px;
  border-radius: 999px;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}
.tl-year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.tl-item h3 { font-size: 17px; letter-spacing: -0.01em; }
.tl-item p { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* ============================================
   Blog
   ============================================ */
.blog-cats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.blog-cat {
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-family: var(--font-mono);
  transition: all .2s;
}
.blog-cat.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.blog-cat:hover:not(.active) { color: var(--text); border-color: var(--border-strong); }

.blog-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 900px) { .blog-featured { grid-template-columns: 1fr; gap: 24px; } }
.blog-featured-img {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 30% 30%, oklch(0.65 0.20 305 / 0.7), transparent 60%),
    radial-gradient(circle at 70% 70%, oklch(0.70 0.18 330 / 0.6), transparent 60%),
    linear-gradient(135deg, oklch(0.30 0.10 305), oklch(0.22 0.04 280));
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.blog-featured-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1.4px);
  background-size: 22px 22px;
  opacity: 0.6;
}
.blog-featured-meta { display: flex; flex-direction: column; gap: 14px; }
.blog-featured .blog-tag { color: var(--accent); }
.blog-featured h2 {
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.blog-featured p { font-size: 16px; color: var(--text-muted); }
.blog-featured .read-more {
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 14px;
}
.blog-featured .read-more:hover { color: var(--accent); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .25s ease;
}
.blog-card:hover { transform: translateY(-3px); }
.blog-card:hover .blog-card-img { border-color: var(--border-strong); }
.blog-card:hover h3 { color: var(--accent); }
.blog-card-img {
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  transition: border-color .25s;
}
.blog-card:nth-child(1) .blog-card-img { background: linear-gradient(135deg, oklch(0.40 0.18 305), oklch(0.55 0.16 330)); }
.blog-card:nth-child(2) .blog-card-img { background: linear-gradient(135deg, oklch(0.45 0.16 265), oklch(0.55 0.20 305)); }
.blog-card:nth-child(3) .blog-card-img { background: linear-gradient(135deg, oklch(0.50 0.20 330), oklch(0.40 0.16 290)); }
.blog-card:nth-child(4) .blog-card-img { background: linear-gradient(135deg, oklch(0.38 0.14 220), oklch(0.50 0.18 285)); }
.blog-card:nth-child(5) .blog-card-img { background: linear-gradient(135deg, oklch(0.48 0.20 305), oklch(0.62 0.14 200)); }
.blog-card:nth-child(6) .blog-card-img { background: linear-gradient(135deg, oklch(0.55 0.16 30), oklch(0.45 0.20 305)); }
.blog-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1.2px);
  background-size: 18px 18px;
  opacity: 0.5;
}
.blog-tag {
  font-size: 11px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}
.blog-card h3 {
  font-size: 18px;
  letter-spacing: -0.015em;
  line-height: 1.25;
  transition: color .2s;
}
.blog-card p { font-size: 14px; color: var(--text-muted); }
.blog-card .meta {
  font-size: 12px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  display: flex;
  gap: 12px;
}

/* ============================================
   Clientes
   ============================================ */
.clients-logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (max-width: 900px) { .clients-logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .clients-logos { grid-template-columns: 1fr 1fr; } }
.clients-logos .cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-card, #f9f9f9); /* Ajusta según tu tema */
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.2s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.cell:hover {
  transform: translateY(-5px);
}

.ico-cell {
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  color: var(--accent); /* El color azul de Mclouda */
  opacity: 0.8;
}
.clients-logos .cell::before {
  display: none !important;
  content: attr(data-mark);
  margin-right: 8px;
  color: var(--accent);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 760px) { .case-grid { grid-template-columns: 1fr; } }
.case {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color .25s ease, transform .25s ease;
}
.case:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.case-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.case-head .who-name { font-size: 16px; font-weight: 500; }
.case-head .who-loc { font-size: 12px; color: var(--text-faint); font-family: var(--font-mono); margin-top: 2px; }
.case-mark {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--cyan-500));
  display: grid;
  place-items: center;
  color: white;
  font-weight: 600;
  font-size: 18px;
  flex-shrink: 0;
}
.case-quote {
  font-size: 17px;
  letter-spacing: -0.005em;
  line-height: 1.5;
  margin: 4px 0 8px;
}
.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}
.case-metrics .m { display: flex; flex-direction: column; gap: 2px; }
.case-metrics .v { font-size: 22px; font-weight: 600; color: var(--accent); letter-spacing: -0.02em; font-feature-settings: "tnum"; }
.case-metrics .l { font-size: 11px; color: var(--text-faint); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; }

/* ============================================
   Carreras
   ============================================ */
.perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .perks-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .perks-grid { grid-template-columns: 1fr; } }
.perk {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.perk-ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  border: 1px solid oklch(from var(--accent) l c h / 0.15);
}
.perk h4 { font-size: 16px; letter-spacing: -0.01em; }
.perk p { font-size: 14px; color: var(--text-muted); }

.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-card);
}
.job {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr auto;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  transition: background .2s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.job:last-child { border-bottom: 0; }
.job:hover { background: var(--bg-mute); }
.job:hover .job-arrow { color: var(--accent); transform: translateX(4px); }
.job-title { font-size: 16px; font-weight: 500; letter-spacing: -0.005em; }
.job-team { font-size: 13px; color: var(--text-muted); }
.job-loc {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.job-loc .pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 11px;
}
.job-arrow {
  color: var(--text-faint);
  transition: color .2s ease, transform .2s ease;
}
@media (max-width: 760px) {
  .job { grid-template-columns: 1fr auto; row-gap: 6px; }
  .job-team, .job-loc { grid-column: 1; }
}

.dept-filter {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.dept-pill {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-family: var(--font-mono);
  transition: all .2s;
}
.dept-pill.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.dept-pill:hover:not(.active) { color: var(--text); border-color: var(--border-strong); }

.no-jobs-cta {
  margin-top: 48px;
  padding: 32px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.no-jobs-cta p { color: var(--text-muted); font-size: 15px; max-width: 460px; }

/* Blog — images inside card/featured divs */
.blog-card-img img,
.blog-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-featured:hover .blog-featured-img img { transform: scale(1.02); }

/* Article page */
.article-hero { padding: var(--space-20) 0 var(--space-10); }
.article-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-faint); font-family: var(--font-mono);
  margin-bottom: var(--space-6);
}
.article-hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: 820px;
  margin-bottom: var(--space-6);
}
.article-cover {
  width: 100%;
  aspect-ratio: 21 / 9;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: var(--space-10);
  background: linear-gradient(135deg, oklch(0.30 0.10 305), oklch(0.22 0.04 280));
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-body {
  max-width: 720px;
  margin: var(--space-12) auto var(--space-16);
  padding: 0 var(--space-4);
}
.article-body h2 {
  font-size: 1.35rem; font-weight: 600;
  margin: var(--space-10) 0 var(--space-4);
  letter-spacing: -0.02em;
}
.article-body h3 {
  font-size: 1.05rem; font-weight: 600;
  margin: var(--space-6) 0 var(--space-2);
}
.article-body p { font-size: 1.02rem; line-height: 1.8; color: var(--text-2); margin-bottom: var(--space-5); }
.article-body ul, .article-body ol {
  padding-left: 1.5rem; margin-bottom: var(--space-5);
}
.article-body li { font-size: 1rem; line-height: 1.75; color: var(--text-2); margin-bottom: var(--space-2); }
.article-body strong { color: var(--text); font-weight: 600; }
.article-callout {
  background: var(--surface-2); border-left: 3px solid var(--accent);
  padding: var(--space-5) var(--space-6);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: var(--space-8) 0;
}
.article-callout p { margin: 0; font-size: 1rem; color: var(--text-2); }
.article-divider { border: none; border-top: 1px solid var(--border); margin: var(--space-8) 0; }
.article-cta-box {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: var(--space-10) var(--space-8);
  text-align: center; margin: var(--space-6) 0;
}
.article-cta-box h3 { font-size: 1.4rem; margin-bottom: var(--space-3); }
.article-cta-box p { color: var(--text-2); margin-bottom: var(--space-6); max-width: 480px; margin-left: auto; margin-right: auto; }
.article-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--text-3); margin-bottom: var(--space-6);
  text-decoration: none;
}
.article-back:hover { color: var(--accent); }
