/* ═══════════════════════════════════════════════════════════════════════
   URBEMAX · CAPA VISUAL V3 (maquetación gráfica aprobada)
   Se carga DESPUÉS de home.css: hereda la escala de base.css y solo
   redefine la presentación del hero y de las secciones editoriales.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── HERO V3: fondo púrpura profundo + mascota a la derecha ──────────── */
.ub-hero {
  background: var(--ub-purple-950);
  color: #fff;
  padding: clamp(40px, 6vw, 86px) 0 clamp(48px, 7vw, 96px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* degradado diagonal de la maqueta */
.ub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 88% 10%, color-mix(in srgb, var(--ub-purple-600) 55%, transparent), transparent 65%),
    radial-gradient(700px 460px at 10% 95%, color-mix(in srgb, var(--ub-purple-800) 60%, transparent), transparent 62%),
    linear-gradient(115deg, var(--ub-purple-950) 0%, var(--ub-purple-950) 46%, var(--ub-purple-900) 100%);
}

/* el velo de la versión anterior no debe tapar el nuevo fondo */
.ub-hero::after { display: none; }

.ub-hero-grid {
  grid-template-columns: 1.06fr .94fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
}

.ub-hero .ub-eyebrow {
  color: var(--ub-orange-400);
  background: transparent;
  padding: 0;
  letter-spacing: .16em;
  font-size: .78rem;
  margin-bottom: 18px;
}

.ub-hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5.2vw, 4.35rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 800;
  margin: 0 0 20px;
  max-width: 20ch;
}

.ub-hero h1 em,
.ub-hero h1 span { color: var(--ub-orange-600); font-style: normal; }

.ub-hero p {
  color: color-mix(in srgb, #fff 82%, transparent);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  max-width: 52ch;
  margin: 0 0 28px;
}

.ub-hero .ub-actions { margin: 0; gap: 12px; }

/* CTA naranja de la maqueta */
.ub-hero .ub-btn--main {
  background: var(--ub-orange-600);
  border-radius: var(--ub-radius-pill);
  padding: 15px 28px;
  font-weight: 800;
  box-shadow: 0 12px 26px color-mix(in srgb, var(--ub-orange-600) 38%, transparent);
}
.ub-hero .ub-btn--main:hover { background: var(--ub-orange-500); }

.ub-hero .ub-btn--light {
  background: transparent;
  color: #fff;
  border: 1.5px solid color-mix(in srgb, #fff 42%, transparent);
}
.ub-hero .ub-btn--light:hover {
  background: color-mix(in srgb, #fff 10%, transparent);
  color: #fff;
  border-color: #fff;
}

/* la maqueta no muestra puntos ni badge en el hero */
.ub-hero .ub-hero-points,
.ub-hero .ub-hero-badge { display: none; }

/* mascota */
.ub-hero-mascot {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  align-self: end;
}
.ub-hero-mascot img {
  width: min(100%, 420px);
  height: auto;
  display: block;
  filter: drop-shadow(0 28px 36px rgba(0, 0, 0, .38));
}
.ub-hero-mascot::after {
  content: "";
  position: absolute;
  inset: auto 6% -6% 6%;
  height: 60px;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .32), transparent);
  z-index: -1;
}
.ub-hero-mascot-note {
  position: absolute;
  left: 0;
  bottom: 18%;
  background: #fff;
  color: var(--ub-purple-950);
  font-size: .78rem;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .22);
  max-width: 190px;
  line-height: 1.3;
}
.ub-hero-mascot-note::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 3px;
}

/* ── Secciones editoriales V3 ────────────────────────────────────────── */
.ub-v3-eyebrow {
  display: inline-block;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ub-orange-600);
  margin-bottom: 12px;
}

.ub-v3-title {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--ub-purple-800);
  margin: 0 0 12px;
  max-width: 24ch;
}

.ub-v3-sub {
  color: var(--ub-slate);
  max-width: 60ch;
  font-size: 1.02rem;
  margin: 0 0 32px;
}

/* tarjetas de servicio: icono en cuadro púrpura suave */
.ub-v3-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.ub-v3-card {
  background: var(--ub-white);
  border: 1px solid var(--ub-line);
  border-radius: var(--ub-radius-lg);
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ub-v3-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--ub-purple-950) 12%, transparent);
  border-color: color-mix(in srgb, var(--ub-purple-600) 40%, var(--ub-line));
}

.ub-v3-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--ub-purple-600) 12%, transparent);
  color: var(--ub-purple-800);
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.ub-v3-card h3 {
  margin: 0;
  font-size: 1.12rem;
  color: var(--ub-purple-800);
}

.ub-v3-card p {
  margin: 0;
  color: var(--ub-slate);
  font-size: .92rem;
  line-height: 1.55;
}

.ub-v3-card a {
  margin-top: auto;
  padding-top: 10px;
  font-weight: 800;
  font-size: .88rem;
  color: var(--ub-orange-600);
  text-decoration: none;
}
.ub-v3-card a:hover { color: var(--ub-orange-500); }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .ub-hero-grid { grid-template-columns: 1fr; }
  .ub-hero h1 { max-width: none; }
  .ub-hero-mascot { order: -1; }
  .ub-hero-mascot img { width: min(72%, 320px); }
  .ub-hero-mascot-note { display: none; }
  .ub-v3-cards { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .ub-hero { padding-top: 32px; }
  .ub-hero .ub-actions .ub-btn { width: 100%; justify-content: center; }
  .ub-hero-mascot img { width: min(86%, 280px); }
}

@media (prefers-reduced-motion: reduce) {
  .ub-v3-card { transition: none; }
  .ub-v3-card:hover { transform: none; }
}

/* ── LOGO CON ESLOGAN (2.4) ──────────────────────────────────────────────
   El logotipo con «Tu aliado en cada paso» es más alto que el anterior:
   se ajusta la altura para que el eslogan siga siendo legible. */
.ub-logo { height: 46px; max-width: 230px; object-fit: contain; }
@media (max-width: 1000px) { .ub-logo { height: 40px; max-width: 190px; } }
@media (max-width: 560px)  { .ub-logo { height: 34px; max-width: 160px; } }
