/* ═══════════════════════════════════════════════════
   REUTER IT NETWORKS — Mejoras visuales + fix fotos
   ═══════════════════════════════════════════════════ */

/* ── FIX CABEZAS CORTADAS ────────────────────────────
   Para TODAS las imágenes con personas, forzamos
   object-position:top para que el recorte ocurra
   desde abajo, no desde arriba.
   ─────────────────────────────────────────────────── */

/* Hero: foto del equipo — mostrar siempre desde arriba */
.stage-primary img,
.editorial-stage img,
.hero-photo,
figure img {
  object-position: center top !important;
}

/* Fotos en photo-card: también desde arriba */
.photo-card img {
  object-position: center top !important;
}

/* Fotos en casos reales: desde arriba */
.case-image,
.mini-gallery-slide img,
.work-slide img {
  object-position: center top !important;
}

/* Fotos en nosotros / story: desde arriba */
.story-row-media img,
.team-feature img {
  object-position: center top !important;
}

/* Foto hero principal — más alta para mostrar cara completa */
.stage-primary img {
  aspect-ratio: auto !important;
  max-height: clamp(28rem, 62vw, 52rem) !important;
  object-fit: cover !important;
  border-radius: 1.5rem !important;
  width: 100% !important;
}

/* ── HERO MEJORADO ──────────────────────────────────── */

/* Foto del equipo más grande en el hero */
.editorial-stage {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.editorial-grid {
  gap: 3rem;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.stage-primary {
  position: relative;
}

/* Marco técnico alrededor de la foto hero */
.stage-primary::before {
  content: "" !important;
  position: absolute !important;
  inset: -10px !important;
  border: 1px solid rgba(101,215,208,0.25) !important;
  border-radius: 2.2rem !important;
  z-index: -1 !important;
  pointer-events: none !important;
}

/* Esquinas decorativas en la foto hero */
.stage-primary::after {
  content: "" !important;
  position: absolute !important;
  inset: 6px !important;
  border: 1px solid rgba(242,179,71,0.15) !important;
  border-radius: 1.6rem !important;
  pointer-events: none !important;
}

/* ── BRAND RIBBON MEJORADO ──────────────────────────── */
.brand-ribbon-section {
  background: rgba(0,0,0,0.2);
  border-top: 1px solid rgba(101,215,208,0.12);
  border-bottom: 1px solid rgba(101,215,208,0.12);
}

.brand-ribbon-item {
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  color: rgba(245,241,232,0.6) !important;
  padding: 0.3rem 1.2rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(101,215,208,0.15) !important;
  background: rgba(101,215,208,0.04) !important;
  white-space: nowrap !important;
}

/* ── SECCIÓN CASOS "THESIS" MEJORADA ─────────────────── */
.home-thesis {
  background: linear-gradient(180deg, transparent, rgba(101,215,208,0.04) 40%, transparent);
  border-top: 1px solid rgba(101,215,208,0.12);
  border-bottom: 1px solid rgba(101,215,208,0.12);
}

.thesis-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.thesis-copy h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.6rem) !important;
}

.mono-note {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
  color: rgba(168,234,103,0.7);
  line-height: 1.6;
  padding: 0.8rem 1rem;
  border-left: 2px solid rgba(168,234,103,0.3);
  margin-bottom: 1.2rem;
  display: block;
}

/* ── CTA FINAL MEJORADO ─────────────────────────────── */
.home-cta {
  background: radial-gradient(circle at 20% 50%, rgba(101,215,208,0.06), transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(242,179,71,0.05), transparent 50%);
}

.cta-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 2.5rem;
  border: 1px solid rgba(101,215,208,0.18);
  border-radius: 24px;
  background: rgba(19,24,23,0.6);
  position: relative;
  overflow: hidden;
}

/* Esquinas técnicas en el CTA */
.cta-row::before {
  content: "";
  position: absolute;
  top: 10px; left: 10px;
  width: 22px; height: 22px;
  border-top: 2px solid #65d7d0;
  border-left: 2px solid #65d7d0;
  border-radius: 2px 0 0 0;
  pointer-events: none;
}

.cta-row::after {
  content: "";
  position: absolute;
  bottom: 10px; right: 10px;
  width: 22px; height: 22px;
  border-bottom: 2px solid #f2b347;
  border-right: 2px solid #f2b347;
  border-radius: 0 0 2px 0;
  pointer-events: none;
}

.cta-copy h2 {
  font-size: clamp(1.5rem, 2.3vw, 2.2rem) !important;
}

.cta-row .actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  justify-content: center;
}

.cta-row .actions .button {
  width: 100%;
  justify-content: center;
}

/* ── FOOTER MEJORADO ─────────────────────────────────── */
.site-footer {
  border-top: 1px solid rgba(101,215,208,0.14);
}

.footer-card {
  background: rgba(0,0,0,0.2) !important;
}

/* ── CASOS REALES — fix fotos portrait ───────────────── */

/* Slider de trabajos: fotos con personas desde arriba */
.work-slide-image {
  overflow: hidden;
}

.work-slide img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center top !important;
}

/* Mini gallery en casos reales */
.mini-gallery-slide img {
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
  object-position: center top !important;
}

/* ── NOSOTROS — story media fix ──────────────────────── */
.story-row-media img {
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
  object-position: center top !important;
}

/* Foto grande de team feature */
.team-feature img,
.team-feature-wide img,
.team-feature-tall img {
  object-fit: cover !important;
  object-position: center top !important;
}

/* ── PHOTO CARDS ─────────────────────────────────────── */
.photo-card {
  overflow: hidden;
}

.photo-card img {
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
  object-position: center top !important;
  width: 100% !important;
}

/* ── MEJORAS GENERALES DE CARD ───────────────────────── */
.card:hover,
.metric:hover {
  border-color: rgba(101,215,208,0.35) !important;
}

/* ── HEADER MEJORADO ─────────────────────────────────── */
.site-header.header-scrolled {
  background: rgba(18,23,22,0.95) !important;
  border-bottom-color: rgba(101,215,208,0.25) !important;
}

/* ── MOBILE FIXES ────────────────────────────────────── */
@media (max-width: 1050px) {
  .editorial-grid {
    grid-template-columns: 1fr !important;
  }
  
  .thesis-row,
  .cta-row {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  .cta-row .actions {
    flex-direction: row !important;
    flex-wrap: wrap !important;
  }
  
  .cta-row .actions .button {
    width: auto !important;
    flex: 1 1 auto !important;
  }
}

@media (max-width: 720px) {
  .cta-row {
    padding: 1.8rem 1.4rem !important;
  }

  .cta-row .actions .button {
    width: 100% !important;
  }
}
