/* ===== Hero subpágina (estático, sin CTA, no a pantalla completa) ===== */

.hero-section.hero-subpagina {
  position: relative;
  padding-top: 100px;      /* evita solape con header */
  max-width: 100%;
  margin: 10px auto 0;
  height:auto;
}

/* Contenedor con imagen de fondo (ajusta alturas aquí) */
.hero-section.hero-subpagina .hero-media {
  position: relative;
  width: 100%;
  height: 60vh;            /* altura principal (no full screen) */
  min-height: 380px;       /* seguridad en desktop bajo */
  overflow: hidden;

  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  filter: grayscale(0%) contrast(110%);
  border-top-left-radius: 0rem;
  border-bottom-right-radius: 0rem;
}

/* Overlay (usa la clase que necesites: .overlay-general, .overlay-tools, etc.) */
.hero-section.hero-subpagina .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-section.hero-subpagina .hero-overlay.overlay-general {
  background: linear-gradient(
    135deg,
    rgba(248, 173, 64, 0.6),
    rgba(149, 193, 33, 0.6),
    rgba(0, 172, 216, 0.6),
    rgba(219, 81, 133, 0.6),
    rgba(0, 62, 92, 0.6)
  );
}
.hero-section.hero-subpagina .hero-overlay.overlay-tools    { background: linear-gradient(135deg, rgba(0,0,0,.55), rgba(248,173,64,.65)); }
.hero-section.hero-subpagina .hero-overlay.overlay-cife     { background: linear-gradient(135deg, rgba(0,0,0,.55), rgba(149,193,33,.65)); }
.hero-section.hero-subpagina .hero-overlay.overlay-agente360{ background: linear-gradient(135deg, rgba(0,0,0,.55), rgba(0,172,216,.65)); }
.hero-section.hero-subpagina .hero-overlay.overlay-talentia { background: linear-gradient(135deg, rgba(0,0,0,.55), rgba(219,81,133,.65)); }
.hero-section.hero-subpagina .hero-overlay.overlay-neock    { background: linear-gradient(135deg, rgba(0,0,0,.55), rgba(0,62,92,.65)); }

/* Contenido centrado */
.hero-section.hero-subpagina .hero-content {
  position: relative;
  z-index: 2;

  /* centro vertical y horizontal dentro de .hero-media */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  height: 100%;
  max-width: 80%;
  margin: 0 auto;
  text-align: center;
}

/* Títulos/estructura */
.hero-section.hero-subpagina .hero-title-brackets-horizontal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 1.2rem 0;
}

/* Corchetes escalables */
.hero-section.hero-subpagina .corchete {
  width: clamp(120px, 22vw, 260px);
  height: auto;
  opacity: .9;
}
.hero-section.hero-subpagina .abajo { transform: rotate(180deg); }

.hero-section.hero-subpagina .hero-title-text { 
  max-width: 40rem; 
  color: #fff; 
  text-wrap: balance; 
  hyphens: none; 
}

.hero-section.hero-subpagina .hero-text { 
  max-width: 44rem; 
  color: #fff; 
  text-wrap: balance; 
  hyphens: none; 
}

.hero-section.hero-subpagina .hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin-bottom: .4rem;
}
.hero-section.hero-subpagina .hero-title .font-light { font-weight: 300; }
.hero-section.hero-subpagina .hero-title .font-bold  { font-weight: 700; }

.hero-section.hero-subpagina .hero-description {
  margin-top: .5rem;
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  font-weight: 300;
  max-width: 700px;
  line-height: 1.5;
  color: #fff;
}

/* Utilidades tipográficas */
.font-thin  { font-weight: 100; }
.font-light { font-weight: 300; }
.font-normal{ font-weight: 400; }
.font-bold  { font-weight: 700; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-section.hero-subpagina {
    padding-top: max(70px, env(safe-area-inset-top)); /* salva header y notch iOS */
  }

  .hero-section.hero-subpagina .hero-media {
    height: 55dvh;         /* altura visible real en móvil */
    min-height: 320px;
  }

  .hero-section.hero-subpagina .hero-content {
    max-width: 92vw;
    /* asegurar centrado vertical */
    min-height: 55dvh;
    padding: 0 1rem;
  }

  .hero-section.hero-subpagina .hero-title {
    font-size: clamp(1.4rem, 7vw, 2.8rem);
    margin-top: .2rem;
  }

  .hero-section.hero-subpagina .hero-description {
    font-size: clamp(1rem, 4vw, 1.3rem);
  }

  .hero-section.hero-subpagina .hero-subtitle {
    font-size:24px;font-weight:300;line-height:26px;font-family: Lato; color: #fff;
  }

  .hero-section.hero-subpagina .corchete {
    width: clamp(90px, 28vw, 160px);
  }
}

/* Teléfonos muy pequeños */
@media (max-width: 360px) {
  .hero-section.hero-subpagina .corchete { width: 80px; }
  .hero-section.hero-subpagina .hero-title { font-size: clamp(1.4rem, 7.2vw, 1.8rem); }
  .hero-section.hero-subpagina .hero-description { font-size: clamp(0.95rem, 4.2vw, 1.1rem); }
}

/* Ocultar corchetes si no caben (opcional) */
@media (max-width: 340px) {
  .hero-section.hero-subpagina .corchete { display: none; }
}

/* 2K */
@media (min-width: 2560px) {
  .hero-section.hero-subpagina .hero-title        { font-size: 3.6rem; }
  .hero-section.hero-subpagina .hero-description  { font-size: 1.3rem; }
}

/* 4K */
@media (min-width: 3840px) {
  .hero-section.hero-subpagina .hero-title        { font-size: 4rem; }
  .hero-section.hero-subpagina .hero-description  { font-size: 1.4rem; }
}


