/* Ajustes de unidad visual solicitados: menos aire, radios consistentes y subtitulos mas presentes. */
html {
  font-size: 80%;
}

:root {
  --radius-DEFAULT: 0.5rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.5rem;
  --radius-2xl: 0.5rem;

  /* Variables CSS Tipográficas y de Espaciado Fluidas con clamp() */
  --font-size-display: clamp(2.25rem, 4vw + 1rem, 3.75rem);
  --font-size-headline-lg: clamp(1.75rem, 2.5vw + 0.75rem, 2.5rem);
  --font-size-headline-md: clamp(1.25rem, 1.5vw + 0.5rem, 1.75rem);
  --spacing-section-py: clamp(3rem, 5vw, 5rem);
  --spacing-container-px: clamp(1rem, 4vw, 3rem);
}

.text-display {
  font-size: var(--font-size-display) !important;
}

.text-headline-lg {
  font-size: var(--font-size-headline-lg) !important;
}

.text-headline-md {
  font-size: var(--font-size-headline-md) !important;
}

.rounded,
.rounded-lg,
.rounded-xl,
.rounded-2xl,
.rounded-\[2rem\] {
  border-radius: 0.5rem;
}

.py-\[120px\] {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.py-24 {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.py-20 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

main .text-label-sm.text-secondary.uppercase,
footer .text-label-sm.text-secondary.uppercase {
  color: var(--color-primary);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}



.team-photo {
  object-fit: cover;
  object-position: 50% 34%;
}

.team-photo-facundo {
  object-position: 50% 42%;
  transform: scale(1.1);
  transform-origin: center top;
}

.team-photo-tomas {
  object-position: 50% 38%;
}

.team-photo-gonzalo {
  object-position: 50% 31%;
}

.team-photo-guadalupe {
  object-position: 50% 50%;
}

.about-blend-photo {
  object-position: 12% center;
}

@media (max-width: 767px) {
  .py-\[120px\],
  .py-24,
  .py-20 {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

/* Estilos para la sección de Alianzas */
.partner-card {
  border: 1px solid var(--color-primary) !important;
}

.partner-card-inviu {
  border: 2px solid var(--color-white) !important;
}

.partner-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 53, 39, 0.15) !important;
  padding: 0.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.partner-logo-container-large {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  padding: 0.35rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

/* Corrección de desplazamiento para enlaces de ancla (evita que el header fijo tape los títulos) */
#sobre-blend,
#equipo,
#servicios,
#research,
#asesoramiento,
#fci,
#corporativas,
#financiamiento {
  scroll-margin-top: 100px !important;
}

/* Gradiente verde para todas las tarjetas de servicios en el inicio */
.index-service-card .service-card-shade {
  background: linear-gradient(180deg, rgba(0, 53, 39, 0.25) 0%, rgba(0, 53, 39, 0.85) 100%) !important;
}

/* Prevenir cualquier desbordamiento horizontal o franja blanca lateral en mobile sin romper position: sticky */
html, body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: clip !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

*, *::before, *::after {
  box-sizing: border-box !important;
}

/* Layout Spacing & Container Utility Overrides */
.px-margin-mobile {
  padding-left: clamp(1.25rem, 5vw, 1.75rem) !important;
  padding-right: clamp(1.25rem, 5vw, 1.75rem) !important;
}

@media (min-width: 768px) {
  .md\:px-margin-desktop {
    padding-left: clamp(2rem, 5vw, 3rem) !important;
    padding-right: clamp(2rem, 5vw, 3rem) !important;
  }
}

.max-w-container-max {
  max-width: 1280px !important;
}

/* Navbar Estabilidad y Alineación Unificada (80px en Mobile y Desktop) */
#header-placeholder {
  position: relative;
  z-index: 50;
  height: 80px !important;
  display: block;
  width: 100% !important;
  max-width: 100% !important;
}

.blend-navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 80px !important;
  z-index: 9999 !important;
  background: rgba(249, 249, 255, 0.98) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(0, 53, 39, 0.08) !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  transform: none !important;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.blend-navbar.shadow-md {
  background: rgba(249, 249, 255, 0.98) !important;
  box-shadow: 0 4px 20px rgba(17, 28, 45, 0.08) !important;
}

.blend-navbar-inner {
  height: 80px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding-left: clamp(1.25rem, 5vw, 1.75rem) !important;
  padding-right: clamp(1.25rem, 5vw, 1.75rem) !important;
  box-sizing: border-box !important;
  position: relative !important;
}

/* Control de Visibilidad Navbar & Stats Desktop (>= 1024px) vs Mobile/Tablet (< 1024px) */
@media (min-width: 1024px) {
  #mobile-menu-toggle {
    display: none !important;
  }
  #mobile-menu {
    display: none !important;
  }
  .blend-navbar-links,
  .blend-navbar-action {
    display: flex !important;
  }
  .desktop-only-stats {
    display: block !important;
  }
  .mobile-only-stats {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .blend-navbar-links,
  .blend-navbar-action {
    display: none !important;
  }
  .desktop-only-stats {
    display: none !important;
  }
  .mobile-only-stats {
    display: flex !important;
  }
  
  #mobile-menu-toggle {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0.5rem !important;
    box-sizing: border-box !important;
    transition: background-color 0.15s ease !important;
  }
}

#mobile-menu-toggle #menu-icon {
  width: 24px !important;
  height: 24px !important;
  font-size: 24px !important;
  line-height: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  user-select: none;
}

/* Menú desplegable mobile independiente del layout del navbar */
#mobile-menu {
  position: fixed !important;
  top: 80px !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  background: rgba(249, 249, 255, 0.99) !important;
  border-bottom: 1px solid rgba(0, 53, 39, 0.1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
  z-index: 9998 !important;
  box-sizing: border-box !important;
}

/* Bloqueo de Scroll al abrir menú mobile */
html.menu-open,
body.menu-open {
  overflow: hidden !important;
  touch-action: none;
}

/* Eliminación total de destellos blancos y transiciones lentas entre páginas */
html.motion-enabled body,
html.motion-enabled body.page-ready,
html.motion-enabled body.page-exit,
body.page-exit {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  transition: none !important;
}

/* Estilos para Tarjeta Verde de Estadísticas en Escritorio (PC / Web) */
@media (min-width: 768px) {
  .desktop-only-stats {
    position: relative !important;
    z-index: 30 !important;
  }

  .desktop-stats-card {
    background: #003527 !important;
    color: #ffffff !important;
    border-radius: 1rem !important;
    padding: 2rem 1.5rem !important;
    box-shadow: 0 16px 36px -6px rgba(0, 53, 39, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 30 !important;
  }

  .desktop-stats-grid {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }

  .desktop-stat-item {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    border-left: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-sizing: border-box !important;
  }

  .desktop-stat-item:first-child {
    padding-left: 0 !important;
    border-left: none !important;
  }

  .desktop-stat-item .stat-number {
    font-size: 2.25rem !important;
    line-height: 2.5rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 0.35rem !important;
    display: block !important;
  }

  .desktop-stat-item .stat-label {
    font-size: 0.85rem !important;
    line-height: 1.25rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: rgba(255, 255, 255, 0.88) !important;
  }
}

/* Estilos para Tarjetas Apilables Mobile & Tablet (CodyHouse Stacking Cards) */
@media (max-width: 1023px) {
  .index-stats-green {
    margin-top: 0 !important;
  }

  #research {
    padding-top: 4.5rem !important;
  }

  .mobile-stack-cards {
    margin-top: 1rem !important;
    padding-bottom: 5rem !important;
    list-style: none !important;
    padding-left: clamp(1.25rem, 5vw, 1.75rem) !important;
    padding-right: clamp(1.25rem, 5vw, 1.75rem) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2.5rem !important;
  }

  .mobile-stack-card-item {
    position: sticky !important;
    transform-origin: center top !important;
    will-change: transform !important;
    transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  /* Escalonamiento de tope (20px entre cada una) para mostrar el borde superior de cada tarjeta apilada */
  .mobile-stack-card-item:nth-child(1) { top: 95px !important; z-index: 10 !important; }
  .mobile-stack-card-item:nth-child(2) { top: 115px !important; z-index: 20 !important; }
  .mobile-stack-card-item:nth-child(3) { top: 135px !important; z-index: 30 !important; }
  .mobile-stack-card-item:nth-child(4) { top: 155px !important; z-index: 40 !important; }

  .mobile-stat-card {
    background: linear-gradient(135deg, #003527 0%, #064e3b 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 1rem !important;
    padding: 1.5rem 1.25rem !important;
    box-shadow: 0 14px 30px -6px rgba(0, 53, 39, 0.45) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 1.25rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .mobile-stat-card .material-symbols-outlined {
    font-size: 2.5rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    flex-shrink: 0 !important;
  }

  .mobile-stat-card .stat-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .mobile-stat-card .stat-number {
    font-size: 2.25rem !important;
    line-height: 2.5rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    display: block !important;
    margin-bottom: 0.15rem !important;
    text-align: center !important;
  }

  .mobile-stat-card .stat-label {
    font-size: 0.85rem !important;
    line-height: 1.2rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: rgba(255, 255, 255, 0.88) !important;
    text-align: center !important;
  }
}

/* Despegar título y sección de la tarjeta verde flotante en Web/PC */
@media (min-width: 1024px) {
  #research {
    padding-top: 5.5rem !important;
  }
}

/* Unificación total de tipografía y proporciones compactas en las 4 tarjetas de Research */
.research-subcard {
  background-color: #f2f5f7 !important;
  border: 1px solid rgba(17, 28, 45, 0.12) !important;
  border-radius: 0.75rem !important;
  padding: 1rem 0.85rem !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 110px !important;
  height: 100% !important;
  box-sizing: border-box !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.research-subcard:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(17, 28, 45, 0.08) !important;
}

.subcard-label {
  font-family: inherit !important;
  font-size: 0.7rem !important;
  line-height: 0.9rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: #003527 !important;
  margin-bottom: 0.35rem !important;
  display: block !important;
}

.subcard-title {
  font-family: inherit !important;
  font-size: 0.8rem !important;
  line-height: 1.15rem !important;
  font-weight: 600 !important;
  color: #111c2d !important;
  margin: 0 !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  white-space: normal !important;
}

/* Altura de la tarjeta de la ficha de ajedrez en PC (coincidiendo con Financiamiento para Empresas) */
@media (min-width: 1024px) {
  .services-chess-card {
    height: 458px !important;
  }
}

/* Reserva de espacio para prevención de CLS en contenedores dinámicos y multimedia */
.index-hero-video {
  aspect-ratio: 16 / 9;
}

.index-service-card {
  aspect-ratio: 4 / 5;
}

.partner-logo-container {
  aspect-ratio: 1 / 1;
}

/* Centralización de utilidades tipográficas y estructurales */
.icon-sm {
  font-size: 1rem !important; /* 16px */
}

.icon-md {
  font-size: 1.125rem !important; /* 18px */
}

.icon-lg {
  font-size: 1.5rem !important; /* 24px */
}

.nav-header-height {
  height: 5rem !important; /* 80px */
}

.nav-header-offset {
  padding-top: 5rem !important; /* 80px */
}

.hero-min-height {
  min-height: 90vh !important;
}

.hero-mini-min-height {
  min-height: 40vh !important;
}

.hero-services-min-height {
  min-height: 600px !important;
}

.hero-services-height {
  height: 80vh !important;
}


.about-blend-card {
  height: 400px;
}
@media (min-width: 768px) {
  .about-blend-card {
    height: 480px;
  }
}

.map-iframe-min-height {
  min-height: 200px !important;
}

/* GPU Hardware Acceleration para animaciones fluidas a 60fps */
.hover-lift,
.card-hover,
.team-photo,
.index-service-card,
.mobile-stack-card-item,
.blend-brand img {
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}





/* Estilos específicos de la página de inicio (Index) */
.index-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.04);
}

.index-hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 53, 39, 0.74) 0%, rgba(0, 53, 39, 0.48) 44%, rgba(17, 28, 45, 0.18) 72%, rgba(17, 28, 45, 0.08) 100%),
    linear-gradient(180deg, rgba(17, 28, 45, 0.08) 0%, rgba(17, 28, 45, 0.2) 100%);
}

.index-stats-green {
  position: relative;
  z-index: 20;
  margin-top: -3rem;
  background: transparent;
  border: 0;
}

.index-team-green {
  background:
    linear-gradient(135deg, rgba(226, 231, 236, 0.98) 0%, rgba(242, 245, 247, 0.96) 46%, rgba(218, 224, 231, 0.92) 100%);
  border-color: rgba(17, 28, 45, 0.12);
}

.index-team-green .team-member > div {
  background-color: rgba(255, 255, 255, 0.72);
  border-color: rgba(17, 28, 45, 0.12);
  border-radius: 0.5rem;
}

.index-service-card img {
  opacity: 1 !important;
  filter: none;
}

.index-service-card .service-card-shade {
  background: linear-gradient(180deg, rgba(17, 28, 45, 0) 30%, rgba(17, 28, 45, 0.78) 100%);
}

.index-service-card h3,
.index-service-card p,
.index-service-card .service-link {
  color: #ffffff;
}

.index-service-card p {
  opacity: 1 !important;
  transform: none !important;
  color: rgba(255, 255, 255, 0.84);
}

.index-hero-copy .section-kicker,
.index-hero-copy h1,
.index-hero-copy p {
  color: #ffffff;
}

.index-hero-copy .section-kicker {
  display: inline-flex;
  width: auto;
  align-items: center;
  background: rgba(0, 53, 39, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  color: #ffffff !important;
  font-size: 0.875rem;
  line-height: 1.15;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.18);
}

.index-hero-copy p {
  color: rgba(255, 255, 255, 0.86);
}

.index-hero-actions a:last-child {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.index-hero-actions a:last-child:hover {
  background: rgba(255, 255, 255, 0.16);
}

.index-stats-panel {
  background: linear-gradient(135deg, #003527 0%, #064e3b 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.5rem;
  padding: 1.6rem clamp(1.25rem, 3vw, 2.5rem);
  box-shadow: 0 22px 50px rgba(0, 53, 39, 0.18);
}

.index-stats-panel .stat-number,
.index-stats-panel .stat-label {
  color: #ffffff;
}

.index-stats-panel .stat-label {
  color: rgba(255, 255, 255, 0.74);
}

.index-stats-panel .divide-surface-variant > :not(:last-child) {
  border-color: rgba(255, 255, 255, 0.18);
}

.index-section-kicker {
  display: block;
  color: var(--color-primary);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem) !important;
  line-height: 1.12 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

main .index-section-kicker.text-label-sm {
  font-size: clamp(1.6rem, 3vw, 2.4rem) !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
}

@media (max-width: 767px) {
  .index-hero-copy {
    max-width: min(22rem, calc(100vw - 2rem));
  }

  .index-hero-copy .text-display {
    font-size: clamp(1.9rem, 7.7vw, 2.25rem);
    line-height: 1.16;
  }

  .index-hero-copy p {
    max-width: min(21.5rem, 100%);
  }

  .index-hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .index-hero-actions a {
    width: min(100%, 20rem);
  }

  .index-hero-overlay {
    background:
      linear-gradient(90deg, rgba(0, 53, 39, 0.78) 0%, rgba(0, 53, 39, 0.58) 64%, rgba(17, 28, 45, 0.32) 100%),
      linear-gradient(180deg, rgba(17, 28, 45, 0.06) 0%, rgba(17, 28, 45, 0.22) 100%);
  }

  .index-stats-green {
    margin-top: 0;
  }
}




