/* ═══════════════════════════════════════════════════════
   INNER.CSS — Páginas internas
═══════════════════════════════════════════════════════ */

/* Fondos históricos deshabilitados. Se conserva el fondo sólido de landing.css. */
.page-about .global-bg, .page-coming .global-bg,
.page-clients .global-bg, .page-work .global-bg { background-image: none; }

/* ── Stagger menú hasta 5 items ── */
.nav-menu.is-open .nav-menu__list li:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.33s; }
.nav-menu.is-open .nav-menu__list li:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.40s; }

/* ── Container wide (para Work) ── */
.container--wide { max-width: 1100px; }

/* ── Back link ── */
.inner-back {
  position: fixed; top: 1.4rem; left: 50%; transform: translateX(-50%);
  z-index: 999; display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); white-space: nowrap; pointer-events: all;
  transition: color 0.25s ease;
  animation: fadeInDown 0.9s ease both; animation-delay: 0.15s;
}
.inner-back:hover { color: #ffffff; }
.inner-back__arrow { display: inline-block; transition: transform 0.25s ease; }
.inner-back:hover .inner-back__arrow { transform: translateX(-4px); }

/* ── Layout ── */
.inner-main { padding-top: 8rem; padding-bottom: 6rem; min-height: 80vh; }

/* ── Header ── */
.inner-header {
  text-align: center; margin-bottom: 4rem;
  animation: fadeInDown 0.9s ease both; animation-delay: 0.1s;
}
.inner-header__logo { display: flex; justify-content: center; margin-bottom: 2.5rem; }
.inner-header__logo img { height: 42px; width: auto; opacity: 0.8; filter: drop-shadow(0 2px 12px rgba(0,0,0,0.5)); }
.inner-title {
  font-family: var(--font-display); font-size: clamp(1.6rem,4vw,2.8rem);
  font-weight: 300; letter-spacing: -0.02em; color: var(--color-white); line-height: 1.1;
}
.inner-title__line { width: 40px; height: 1px; background: rgba(255,255,255,0.3); margin: 1.5rem auto 0; }

/* ── Sección ── */
.inner-section {
  max-width: 640px; margin-inline: auto;
  animation: fadeInUp 0.8s ease both; animation-delay: 0.25s;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Texto ── */
.inner-body { font-size: 1rem; color: var(--color-text-muted); line-height: 1.9; margin-bottom: 1.25rem; }
.inner-body--credit {
  margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5); font-size: 0.85rem; line-height: 1.9;
}
.inner-body--credit a {
  color: rgba(255,255,255,0.6); border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.inner-body--credit a:hover { color: #ffffff; border-color: #ffffff; }

/* ── Link activo en menú ── */
.nav-menu__link--active         { color: #ffffff !important; }
.nav-menu__link--active::before { height: 55% !important; }

/* ═══════════════════════════════════════════════════════
   TEAM GRID (About Us)
═══════════════════════════════════════════════════════ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.team-member { display: flex; flex-direction: column; gap: 1rem; }

.team-member__photo-link {
  display: block; position: relative; overflow: hidden;
  border-radius: 2px; cursor: pointer;
  aspect-ratio: 3/4;
}
.team-member__photo {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  display: block;
}
.team-member__photo-link:hover .team-member__photo { transform: scale(1.04); }

.team-member__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease;
}
.team-member__photo-link:hover .team-member__overlay { opacity: 1; }
.team-member__overlay-icon { font-size: 1.8rem; color: #ffffff; }

.team-member__info { display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-start; }
.team-member__name {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 500;
  color: #ffffff; letter-spacing: -0.01em;
}
.team-member__role {
  font-size: 0.75rem; color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* Botón "See Work" — mismo estilo que btn-donate del home */
.btn-team {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: #ffffff;
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.7rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.35); border-radius: 2px;
  cursor: pointer; transition: all 0.3s ease;
}
.btn-team:hover {
  border-color: #ffffff; background: rgba(255,255,255,0.06);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .team-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ═══════════════════════════════════════════════════════
   PROJECT CARDS (Coming Soon) — con imagen
═══════════════════════════════════════════════════════ */
.project-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2.5rem; }

.project-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 3px;
  padding: 2rem 2rem 2rem 2rem;
  background: rgba(255,255,255,0.03); backdrop-filter: blur(8px);
  transition: border-color 0.3s ease, background 0.3s ease;
  align-items: start;
}
.project-card:hover { border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.05); }
.project-card--dim { opacity: 0.65; }
.project-card--dim:hover { opacity: 0.9; }

/* Columna izquierda: texto */
.project-card__body { display: flex; flex-direction: column; gap: 0; }

.project-card__tag {
  display: inline-block; font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.15); padding: 0.25rem 0.6rem;
  border-radius: 2px; margin-bottom: 0.9rem; width: fit-content;
}
.project-card__title {
  font-family: var(--font-display); font-size: clamp(1.2rem,3vw,1.55rem);
  font-weight: 500; color: #ffffff; letter-spacing: -0.01em; margin-bottom: 0.35rem;
}
.project-card__sub {
  font-size: 0.78rem; color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.9rem;
}
.project-card__desc {
  font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.75; margin-bottom: 1.25rem;
}
.project-card__status {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.status-dot--active  { background: #5dde8a; box-shadow: 0 0 6px rgba(93,222,138,0.6); }
.status-dot--pending { background: #f2c94c; box-shadow: 0 0 6px rgba(242,201,76,0.6); }

/* Columna derecha: imagen */
.project-card__thumb {
  width: 130px; height: 130px; object-fit: cover;
  border-radius: 2px; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 500px) {
  .project-card { grid-template-columns: 1fr; }
  .project-card__thumb { width: 100%; height: 180px; }
}

/* ═══════════════════════════════════════════════════════
   WORK GALLERY
═══════════════════════════════════════════════════════ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
  animation: fadeInUp 0.8s ease both; animation-delay: 0.2s;
}

.work-item {
  position: relative; display: block; overflow: hidden;
  border-radius: 2px; cursor: pointer;
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  text-decoration: none;
  transition: border-color 0.3s ease;
}
.work-item--wide { grid-column: span 2; aspect-ratio: 16/7; }

.work-item__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
}
.work-item:hover .work-item__img { transform: scale(1.05); }

.work-item__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%);
  transition: background 0.3s ease;
}
.work-item:hover .work-item__overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%);
}

.work-item__info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.25rem 1.5rem;
  transform: translateY(4px);
  transition: transform 0.3s ease;
}
.work-item:hover .work-item__info { transform: translateY(0); }

.work-item__cat {
  display: block; font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 0.3rem;
}
.work-item__title {
  display: block; font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.3rem); font-weight: 500;
  color: #ffffff; letter-spacing: -0.01em; line-height: 1.2;
}
.work-item__year {
  display: block; font-size: 0.7rem; color: rgba(255,255,255,0.4);
  margin-top: 0.3rem; letter-spacing: 0.06em;
}

/* Placeholder sin imagen */
.work-item--empty .work-item__overlay {
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,255,255,0.12);
}
.work-item--empty .work-item__info { top: 50%; bottom: auto; transform: translateY(-50%); text-align: center; }
.work-item--empty .work-item__title { color: rgba(255,255,255,0.3); font-size: 0.9rem; }

@media (max-width: 700px) {
  .work-grid { grid-template-columns: 1fr; gap: 1rem; }
  .work-item--wide { grid-column: span 1; aspect-ratio: 4/3; }
}

/* ═══════════════════════════════════════════════════════
   PORTAL FORM (Clients)
═══════════════════════════════════════════════════════ */
.portal-form { margin-top: 2.5rem; max-width: 420px; display: flex; flex-direction: column; gap: 1.1rem; }
.portal-form__field { display: flex; flex-direction: column; gap: 0.4rem; }
.portal-form__label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.portal-form__input {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 2px; color: #ffffff; font-family: var(--font-body); font-size: 0.95rem;
  padding: 0.85rem 1rem; outline: none; width: 100%;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.portal-form__input::placeholder { color: rgba(255,255,255,0.2); }
.portal-form__input:focus { border-color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.07); }
.portal-form__btn {
  margin-top: 0.5rem; background: transparent;
  border: 1px solid rgba(255,255,255,0.35); border-radius: 2px;
  color: #ffffff; font-family: var(--font-body); font-size: 0.85rem;
  font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.9rem 2rem; cursor: pointer; align-self: flex-start;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.portal-form__btn:hover { border-color: #ffffff; background: rgba(255,255,255,0.06); }
.portal-form__note { font-size: 0.78rem; color: rgba(255,255,255,0.3); line-height: 1.6; }
.portal-form__note a { color: rgba(255,255,255,0.55); border-bottom: 1px solid rgba(255,255,255,0.2); transition: color 0.2s ease; }
.portal-form__note a:hover { color: #ffffff; }

/* ── Responsive general ── */
@media (max-width: 600px) {
  .inner-main { padding-top: 7rem; }
  .inner-back { top: 1.1rem; }
  .portal-form__btn { width: 100%; text-align: center; align-self: stretch; }
}

/* v10.11.3: shared public type scale */
.inner-title {font-family:var(--font-display);font-size:var(--type-page-title);font-weight:var(--weight-medium);letter-spacing:var(--tracking-title);line-height:var(--leading-tight);}
.inner-body {font-family:var(--font-body);font-size:var(--type-body-large);font-weight:var(--weight-regular);line-height:var(--leading-body);}
.inner-back {font-size:var(--type-caption);font-weight:var(--weight-semibold);letter-spacing:var(--tracking-label);}

/* v10.11.6: restrained Work Sans editorial hierarchy on interior pages. */
.inner-title { font-size:var(--type-page-title);font-weight:var(--weight-display);text-transform:uppercase;line-height:var(--leading-tight);letter-spacing:var(--tracking-title);overflow-wrap:break-word; }
.inner-body { font-size:var(--type-body-large);font-weight:var(--weight-regular);text-transform:none;letter-spacing:normal;line-height:var(--leading-body); }
.project-card__title, .work-item__title { font-weight:var(--weight-semibold);text-transform:uppercase;line-height:var(--leading-title);overflow-wrap:break-word; }
.team-member__name { font-weight:var(--weight-semibold);text-transform:uppercase; }
@media(max-width:700px){.inner-title {font-size:clamp(1.75rem,5.4vw,2.25rem)} }

/* v10.11.7 — interior pages follow the same restrained scale. */
.inner-title {font-size:var(--type-page-title);font-weight:var(--weight-display);letter-spacing:var(--tracking-title);line-height:var(--leading-tight)}
.project-card__title,.work-item__title {font-size:var(--type-card-title);font-weight:var(--weight-semibold);line-height:var(--leading-title)}
.team-member__name {font-weight:var(--weight-semibold)}
.inner-body {font-size:var(--type-body);font-weight:var(--weight-regular);line-height:var(--leading-body)}
@media(max-width:700px) {.inner-title {font-size:clamp(1.75rem,5.4vw,2.25rem)}}

/* DREAM BEZIER v10.11.9 — coherent public inner-page headings */
.inner-page,.inner-page button,.inner-page input,.inner-page select,.inner-page textarea,
.inner-back,.inner-title,.inner-body,.project-card,.work-item,.team-member,
.portal-form,.portal-form__label {font-family:var(--font-body);}
.inner-title,.project-card__title,.work-item__title,.team-member__name,
.coming-card__title {text-transform:none;letter-spacing:-.018em;}
