/* ============================================================
   Hero V1 · Inmersivo — Instituto Jiménez
   Scope: .ud-hero--v1 para no afectar otros componentes.
   Fuente: Poppins (ya cargada en el layout global).
   ============================================================ */

:root {
  --brand-deep: #00375d;
  --brand-soft: #e6f1f9;
}

/* --------- Layout base --------- */
.ud-hero.ud-hero--v1 {
  position: relative;
  width: 100%;
  background: var(--brand);
  color: var(--text);
  overflow: hidden;
  isolation: isolate;
}

.ud-hero--v1 *,
.ud-hero--v1 *::before,
.ud-hero--v1 *::after { box-sizing: border-box; }

.ud-hero--v1 .ud-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 40px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

/* --------- Decoraciones de fondo --------- */
.ud-hero--v1 .ud-hero__bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}
.ud-hero--v1 .ud-hero__bg-shape {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.ud-hero--v1 .ud-hero__bg-shape--a {
  right: -120px; top: -120px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.08), transparent 65%);
}
.ud-hero--v1 .ud-hero__bg-shape--b {
  left: 35%; bottom: -180px;
  width: 380px; height: 380px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
}

/* --------- Texto --------- */
.ud-hero--v1 .ud-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 12px;
  background: rgba(255,255,255,.12);
  color: var(--secondary-1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ud-hero--v1 .ud-hero__eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--secondary-1);
  box-shadow: 0 0 0 4px rgba(254,220,9,.2);
}

.ud-hero--v1 .ud-hero__title {
  margin: 0 0 16px;
  color: var(--text);
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.ud-hero--v1 .ud-hero__title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--secondary-1), var(--secondary-2));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.ud-hero--v1 .ud-hero__sub {
  margin: 0 0 28px;
  max-width: 480px;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(255,255,255,.85);
}

/* --------- Buscador --------- */
.ud-hero--v1 .ud-searchbar {
  display: flex;
  align-items: center;
  max-width: 480px;
  margin: 0 0 18px;
  padding: 6px 6px 6px 18px;
  background: #fff;
  color: var(--text-dark);
  border-radius: 12px;
  box-shadow: 0 16px 40px -12px rgba(0,40,80,.45);
}
.ud-hero--v1 .ud-searchbar > svg { color: #6b7280; flex-shrink: 0; }
.ud-hero--v1 .ud-searchbar input {
  flex: 1;
  min-width: 0;
  padding: 14px 12px;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: inherit;
}
.ud-hero--v1 .ud-searchbar input::placeholder { color: #9ca3af; }
.ud-hero--v1 .ud-searchbar__btn {
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: var(--secondary-1);
  color: var(--text-dark);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.ud-hero--v1 .ud-searchbar__btn:hover { background: var(--secondary-2); }

/* --------- Tags populares --------- */
.ud-hero--v1 .ud-hero__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 13px;
}
.ud-hero--v1 .ud-hero__tag-label {
  color: rgba(255,255,255,.7);
  font-weight: 600;
}
.ud-hero--v1 .ud-hero__tag {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dashed rgba(255,255,255,.4);
  padding-bottom: 1px;
  transition: color .15s, border-color .15s;
}
.ud-hero--v1 .ud-hero__tag:hover {
  color: var(--secondary-1);
  border-color: var(--secondary-1);
}

/* --------- Imagen --------- */
.ud-hero--v1 .ud-hero__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.95;
}
.ud-hero--v1 .ud-hero__img-wrap {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,30,60,.5);
  transform: rotate(-1.5deg);
  background: linear-gradient(135deg, rgba(0,0,0,.15), transparent 50%);
}
.ud-hero--v1 .ud-hero__img-wrap::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 6px rgba(255,255,255,.10);
  pointer-events: none;
}
.ud-hero--v1 .ud-hero__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --------- Sticker amarillo --------- */
.ud-hero--v1 .ud-hero__sticker {
  position: absolute;
  top: -30px; left: -30px;
  z-index: 3;
  width: 116px; height: 116px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--secondary-1);
  color: var(--text-dark);
  border: 3px solid #fff;
  border-radius: 50%;
  font-weight: 800;
  line-height: 1;
  transform: rotate(8deg);
  box-shadow: 0 12px 28px -8px rgba(0,0,0,.25);
  gap: 4px;
}
.ud-hero--v1 .ud-hero__sticker small {
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
}
.ud-hero--v1 .ud-hero__sticker strong { font-size: 20px; }

/* --------- Badges flotantes --------- */
.ud-hero--v1 .ud-hero__badge {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  color: var(--text-dark);
  border-radius: 14px;
  box-shadow: 0 18px 40px -10px rgba(0,30,60,.35);
}
.ud-hero--v1 .ud-hero__badge strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  line-height: 1;
}
.ud-hero--v1 .ud-hero__badge small {
  font-size: 11px;
  color: #6b7280;
  font-weight: 500;
}
.ud-hero--v1 .ud-hero__badge--tr { top: 28px; right: -12px; }
.ud-hero--v1 .ud-hero__badge--bl { bottom: 22px; left: -22px; }

.ud-hero--v1 .ud-badge-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  flex-shrink: 0;
  border-radius: 10px;
}
.ud-hero--v1 .ud-badge-icon--blue   { background: var(--brand-soft); color: var(--brand); }
.ud-hero--v1 .ud-badge-icon--yellow { background: #fff7d1; color: #a97400; }

/* --------- Responsive --------- */
@media (max-width: 900px) {
  .ud-hero--v1 .ud-hero__inner {
    grid-template-columns: 1fr;
    padding: 40px 24px;
    gap: 36px;
  }
  .ud-hero--v1 .ud-hero__visual {
    aspect-ratio: 4 / 3;
    max-width: 520px;
    margin: 0 auto;
  }
  .ud-hero--v1 .ud-hero__badge--tr { right: 8px; }
  .ud-hero--v1 .ud-hero__badge--bl { left: 8px; }
}

@media (max-width: 560px) {
  .ud-hero--v1 .ud-hero__title { font-size: 34px; }
  .ud-hero--v1 .ud-searchbar { padding-left: 14px; }
  .ud-hero--v1 .ud-searchbar__btn { padding: 0 16px; }
  .ud-hero--v1 .ud-hero__sticker { width: 92px; height: 92px; top: -18px; left: -18px; }
  .ud-hero--v1 .ud-hero__sticker strong { font-size: 16px; }
}
