/* ============================= */
/* HERO                          */
/* ============================= */

.hero {
  min-height: 100svh;
  min-height: 100vh; /* fallback */
  background: url("../assets/images/empresa_printcreativos.png") center/cover no-repeat;
  background-attachment: scroll;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 120px 0 60px;
  overflow: hidden;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(84, 98, 129, 0.75);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  color: white;
  padding: 0 10%;
  width: 100%;
  max-width: 780px;
}

.hero-title {
  font-size: 64px;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-bottom: -10px;
}

/* "PRINT" — condensada, negrita, blanca, itálica */
/* Todos los valores en em para que escalen con el font-size del título */
.hero-print {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-style: italic;
  font-size: 1em;
  color: rgb(242, 240, 247);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 0.03em 0.03em 0 rgba(0,0,0,0.3);
  transform: skewX(-8deg);
  display: inline-block;
  margin-left: 1.33em; /* ~85px @ 64px base — escala solo */
}

/* "Creativos!" — imagen del logo con fondo transparente */
.hero-title .creativos {
  display: block;
  line-height: 1;
  margin-top: -1.08em;  /* ~-59px @ 64px base — escala solo */
  margin-left: -0.20em; /* ~-8px  @ 64px base — escala solo */
  position: relative;
  z-index: 2;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: unset;
  animation: none;
}

.creativos-img {
  display: block;
  width: auto;
  height: 1.85em;  /* relativo al font-size del título en cada breakpoint */
  object-fit: contain;
  object-position: left center;
  filter: brightness(1) invert(0);
  transform: scaleX(0.85);
  transform-origin: left center;
}

.hero-content p {
  margin-top: 14px;
  font-size: 20px;
  color: #e0e0e0;
}

/* Slogan con gradiente animado */
.hero-slogan {
  font-size: 26px;
  font-weight: 700;
  margin-top: 18px;
  letter-spacing: 0.5px;
  background: linear-gradient(
    90deg,
    #ff4d4d, #ff9f1a, #ffe600,
    #2ed573, #1e90ff, #3742fa, #ff4d4d
  );
  background-size: 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: creativosMove 6s linear infinite, heroFadeUp 0.8s ease 0.3s both;
}

/* Descripción — etiquetas de especialidades */
.hero-descripcion {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  animation: heroFadeUp 0.8s ease 0.6s both;
}


/* .hero-tag {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: white;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  transition: background 0.3s, border-color 0.3s;
} */

.hero-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: white;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  transition: background 0.3s, border-color 0.3s, transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
}

.hero-tag:hover {
  background: rgba(0, 194, 255, 0.2);
  border-color: var(--celeste-acento);
}

.hero-tag--highlight {
  position: relative;
  background: linear-gradient(135deg, var(--celeste-acento), #009ed6);
  color: white;
  border: none;
  box-shadow: 0 8px 22px rgba(0, 194, 255, 0.28);
  text-decoration: none;
  overflow: hidden;
  animation: heroChipGlow 2.2s ease-in-out infinite alternate;
}

.hero-tag--highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.15) 35%,
    rgba(255,255,255,0.55) 50%,
    rgba(255,255,255,0.15) 65%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: heroChipShine 3.2s ease-in-out infinite;
}

.hero-tag--highlight:hover {
  background: linear-gradient(135deg, #00b4ee, #008fc3);
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 194, 255, 0.38);
}

@keyframes heroChipGlow {
  from {
    box-shadow: 0 8px 22px rgba(0, 194, 255, 0.22);
  }
  to {
    box-shadow: 0 12px 28px rgba(0, 194, 255, 0.42);
  }
}

@keyframes heroChipShine {
  0% {
    left: -130%;
  }
  55% {
    left: 140%;
  }
  100% {
    left: 140%;
  }
}

.hero-tag-sep {
  color: rgba(255, 255, 255, 0.45);
  font-size: 20px;
  line-height: 1;
}

/* Animación de entrada */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  animation: heroFadeUp 0.7s ease both;
}

.hero-buttons {
  animation: heroFadeUp 0.8s ease 0.85s both;
}

.hero-busqueda {
  animation: heroFadeUp 0.8s ease 1.05s both;
}

.hero-buttons {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* Botón primario */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--celeste-acento);
  border: none;
  padding: 14px 30px;
  color: white;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #009ed6;
  transform: translateY(-2px);
}

/* Botón secundario */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: transparent;
  border: 2px solid white;
  padding: 14px 30px;
  color: white;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  transition: 0.3s;
}

.btn-secondary:hover {
  background: white;
  color: var(--azul-principal);
}

/* ============================= */
/* BARRA BÚSQUEDA EN HERO        */
/* ============================= */

.hero-busqueda {
  margin-top: 36px;
  display: flex;
  justify-content: flex-start;
}

.hero-busqueda-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.hero-busqueda-wrapper:focus-within {
  border-color: var(--celeste-acento);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 0 3px rgba(0, 194, 255, 0.25);
}

.hero-busqueda-icon {
  position: absolute;
  left: 18px;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.8);
  pointer-events: none;
}

.hero-busqueda-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 16px 48px 16px 50px;
  font-size: 16px;
  color: white;
  border-radius: 50px;
}

.hero-busqueda-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.hero-busqueda-clear {
  position: absolute;
  right: 130px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  font-size: 22px;
  display: none;
  align-items: center;
  padding: 2px;
  transition: color 0.2s;
}

.hero-busqueda-clear:hover {
  color: white;
}

.hero-busqueda-clear.visible {
  display: flex;
}

.hero-busqueda-btn {
  flex-shrink: 0;
  margin: 6px;
  padding: 10px 26px;
  background: var(--celeste-acento);
  color: white;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
  white-space: nowrap;
}

.hero-busqueda-btn:hover {
  background: #00a8dd;
  transform: translateY(-1px);
}

/* ============================= */
/* RESPONSIVE HERO               */
/* ============================= */

@media (max-width: 900px) {
  /* Solo mantener el tamaño del título cercano al desktop — sin tocar posición */
  .hero-title {
    font-size: 60px;
  }

  .hero-slogan {
    font-size: 22px;
  }

  .hero-tag {
    font-size: 13px;
    padding: 5px 13px;
  }
}

@media (max-width: 480px) {
  .hero {
    /* Más padding-top para que el contenido baje bien por debajo del navbar */
    padding: 250px 0 60px;
    align-items: flex-start;
    background-position: 35% center;
    image-rendering: crisp-edges;
  }

  .hero-content {
    padding: 0 6%;
  }

  .hero-title {
    font-size: 48px;
  }


  .hero-slogan {
    font-size: 17px;
  }

  .hero-tag-sep {
    display: none;
  }

  .hero-tag {
    font-size: 12px;
    padding: 4px 11px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  /* Barra de búsqueda: input arriba, botón abajo */
  .hero-busqueda-wrapper {
    flex-wrap: wrap;
    border-radius: 16px;
    padding-bottom: 6px;
  }

  .hero-busqueda-input {
    font-size: 14px;
    padding: 13px 40px 13px 46px;
    width: 100%;
    border-radius: 16px 16px 0 0;
  }

  .hero-busqueda-btn {
    width: calc(100% - 12px);
    text-align: center;
    margin: 0 6px 0;
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
  }

  .hero-busqueda-clear {
    right: 12px;
    top: 10px;
    position: absolute;
  }

  .hero-busqueda-icon {
    top: 14px;
    position: absolute;
  }

  .hero-tag--highlight {
  font-size: 12px;
}
}
