/* =============================================================
   HERO — Banner principal
   ============================================================= */

.hero {
    background: linear-gradient(130deg, var(--color-ubam-dark) 0%, #0b2a3d 55%, #0f3a52 100%);
    min-height: 100dvh;
    position: relative;
    overflow: hidden;
    padding: 132px 0 54px; /* 72px original + 60px navbar fijo */
}

.hero-grid {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(4, 178, 217, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(4, 178, 217, 0.05) 1px, transparent 1px);
    background-size: 54px 54px;
    animation: fadeIn 2s ease;
}

.hero-glow {
    position: absolute;
    width: 640px;
    height: 640px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(4, 178, 217, 0.13) 0%, transparent 68%);
    right: -80px;
    top: -80px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-left { animation: fadeUp 0.9s ease both; }

.hero-content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text-side {
    flex: 1;
    min-width: 300px;
}

.hero-image-side {
    flex: 1;
    display: flex;
}

/* ── BADGE ── */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(4, 178, 217, 0.11);
    border: 1px solid rgba(4, 178, 217, 0.28);
    border-radius: 100px;
    padding: 7px 18px;
    font-size: 11.5px;
    color: var(--color-ubam-blue);
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-top: 24px;
    margin-bottom: 24px;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-ubam-blue);
    animation: pulse 1.8s ease-in-out infinite;
}

/* ── TIPOGRAFÍA ── */
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(54px, 6.5vw, 84px);
    font-weight: 700;
    color: var(--color-ubam-white-pure);
    line-height: 0.96;
    margin-bottom: 8px;
    letter-spacing: -2px;
}

.hero-title-blue {
    background: linear-gradient(90deg, var(--color-ubam-blue) 0%, rgb(120, 220, 255) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-slogan {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 19px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 42px;
    padding-left: 16px;
    border-left: 3px solid var(--color-ubam-blue);
}

.hero-description {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 28px;
}

/* ── NIVEL BADGES ── */
.hero-badges-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.nivel-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(33, 37, 41, 0.85);
    border: 1px solid rgba(4, 178, 217, 0.3);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--color-ubam-white-pure);
    font-weight: 600;
    transition: all 0.3s ease;
}

.nivel-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-ubam-blue);
}

.nivel-badge:nth-child(2) .nivel-badge-dot { background: var(--color-ubam-dark-blue); }
.nivel-badge:nth-child(4) .nivel-badge-dot { background: var(--color-ubam-dark-blue); }

/* ── LADO DERECHO ── */
.hero-right {
    animation: fadeIn 1.2s ease 0.3s both;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 510px;
}

/* ── SPIRAL ── */
.spiral-duo {
    position: relative;
    width: 430px;
    height: 490px;
}

.spiral-wrapper { position: absolute; }

.spiral-wrapper.sz-lg {
    width: 360px;
    height: 360px;
    top: 0;
    left: 0;
}

.spiral-wrapper.sz-sm {
    width: 200px;
    height: 200px;
    bottom: 0;
    right: 0;
    z-index: 3;
}

.spiral-wrapper::before {
    content: '';
    position: absolute;
    inset: -28px;
    border-radius: 50%;
    pointer-events: none;
}

.sz-lg::before { background: radial-gradient(circle, rgba(4, 178, 217, 0.2) 0%, transparent 65%); }
.sz-sm::before { background: radial-gradient(circle, rgba(4, 178, 217, 0.2) 0%, transparent 65%); }

/* ── RINGS ── */
.ring-outer {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 1.5px dashed rgba(4, 178, 217, 0.22);
    animation: spin 38s linear infinite;
    pointer-events: none;
}

.ring-dot {
    position: absolute;
    top: 50%;
    left: -7px;
    margin-top: -7px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--color-ubam-blue);
    box-shadow: 0 0 12px var(--color-ubam-blue);
}

.ring-inner {
    position: absolute;
    inset: -42px;
    border-radius: 50%;
    border: 1px dotted rgba(4, 178, 217, 0.1);
    animation: spinRev 56s linear infinite;
    pointer-events: none;
}

.ring-outer-sm {
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    border: 1.5px dashed rgba(4, 178, 217, 0.3);
    animation: spinRev 30s linear infinite;
    pointer-events: none;
}

.ring-dot-sm {
    position: absolute;
    top: 50%;
    right: -5px;
    margin-top: -5px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--color-ubam-blue);
    box-shadow: 0 0 10px var(--color-ubam-blue);
}

.ring-inner-sm {
    position: absolute;
    inset: -34px;
    border-radius: 50%;
    border: 1px dotted rgba(4, 178, 217, 0.13);
    animation: spin 48s linear infinite;
    pointer-events: none;
}

/* ── IMAGE CONTAINER ── */
.image-container {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.35s, transform 0.25s;
}

.sz-lg .image-container {
    width: 360px;
    height: 360px;
    box-shadow: 0 0 0 3px rgba(4, 178, 217, 0.25), 0 0 0 7px rgba(4, 178, 217, 0.09), 0 28px 72px rgba(0,0,0,0.65);
}

.sz-sm .image-container {
    width: 200px;
    height: 200px;
    overflow: hidden;
    box-shadow: 0 0 0 3px rgba(4, 178, 217, 0.35), 0 0 0 7px rgba(4, 178, 217, 0.1), 0 20px 50px rgba(0,0,0,0.6);
}

.sz-lg .image-container:hover {
    box-shadow: 0 0 0 3px rgba(4, 178, 217, 0.55), 0 0 0 9px rgba(4, 178, 217, 0.18), 0 36px 90px rgba(0,0,0,0.75);
    transform: translateY(-3px);
}

.sz-sm .image-container:hover {
    box-shadow: 0 0 0 3px rgba(4, 178, 217, 0.65), 0 0 0 9px rgba(4, 178, 217, 0.2), 0 26px 60px rgba(0,0,0,0.7);
    transform: translateY(-3px);
}

/* ── BG IMG ── */
.bg-img {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: transform 0.8s ease;
}

.sz-lg .bg-img {
    background-image: url("/images/edificio.webp");
    background-position: center 35%;
}

.sz-sm .bg-img {
    background-image: url("/images/infraestructura.webp");
    background-position: center 41%;
}

.image-container:hover .bg-img { transform: scale(1); }

/* ── SPIRAL OVERLAY ── */
.spiral-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 50%;
}

.sp {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform-origin: 50% 50%;
    transition: transform 0.85s cubic-bezier(0.645, 0.045, 0.355, 1),
                opacity   0.85s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.sp-lg { background-image: url("/images/egresados.webp"); }
.sp-sm { background-image: url("/images/laboratorio.webp"); background-position: center 41%; }

.sp:nth-child(1)  { clip-path: polygon(50% 50%, 50% 0%, 62.94% 3.09%);      transition-delay: 0s; }
.sp:nth-child(2)  { clip-path: polygon(50% 50%, 62.94% 3.09%, 75% 6.70%);   transition-delay: 0.03s; }
.sp:nth-child(3)  { clip-path: polygon(50% 50%, 75% 6.70%, 85.36% 14.64%);  transition-delay: 0.06s; }
.sp:nth-child(4)  { clip-path: polygon(50% 50%, 85.36% 14.64%, 93.30% 25%); transition-delay: 0.09s; }
.sp:nth-child(5)  { clip-path: polygon(50% 50%, 93.30% 25%, 96.91% 37.06%); transition-delay: 0.12s; }
.sp:nth-child(6)  { clip-path: polygon(50% 50%, 96.91% 37.06%, 100% 50%);   transition-delay: 0.15s; }
.sp:nth-child(7)  { clip-path: polygon(50% 50%, 100% 50%, 96.91% 62.94%);   transition-delay: 0.18s; }
.sp:nth-child(8)  { clip-path: polygon(50% 50%, 96.91% 62.94%, 93.30% 75%); transition-delay: 0.21s; }
.sp:nth-child(9)  { clip-path: polygon(50% 50%, 93.30% 75%, 85.36% 85.36%); transition-delay: 0.24s; }
.sp:nth-child(10) { clip-path: polygon(50% 50%, 85.36% 85.36%, 75% 93.30%); transition-delay: 0.27s; }
.sp:nth-child(11) { clip-path: polygon(50% 50%, 75% 93.30%, 62.94% 96.91%); transition-delay: 0.30s; }
.sp:nth-child(12) { clip-path: polygon(50% 50%, 62.94% 96.91%, 50% 100%);   transition-delay: 0.33s; }
.sp:nth-child(13) { clip-path: polygon(50% 50%, 50% 100%, 37.06% 96.91%);   transition-delay: 0.36s; }
.sp:nth-child(14) { clip-path: polygon(50% 50%, 37.06% 96.91%, 25% 93.30%); transition-delay: 0.39s; }
.sp:nth-child(15) { clip-path: polygon(50% 50%, 25% 93.30%, 14.64% 85.36%); transition-delay: 0.42s; }
.sp:nth-child(16) { clip-path: polygon(50% 50%, 14.64% 85.36%, 6.70% 75%);  transition-delay: 0.45s; }
.sp:nth-child(17) { clip-path: polygon(50% 50%, 6.70% 75%, 3.09% 62.94%);   transition-delay: 0.48s; }
.sp:nth-child(18) { clip-path: polygon(50% 50%, 3.09% 62.94%, 0% 50%);      transition-delay: 0.51s; }
.sp:nth-child(19) { clip-path: polygon(50% 50%, 0% 50%, 3.09% 37.06%);      transition-delay: 0.54s; }
.sp:nth-child(20) { clip-path: polygon(50% 50%, 3.09% 37.06%, 6.70% 25%);   transition-delay: 0.57s; }
.sp:nth-child(21) { clip-path: polygon(50% 50%, 6.70% 25%, 14.64% 14.64%);  transition-delay: 0.60s; }
.sp:nth-child(22) { clip-path: polygon(50% 50%, 14.64% 14.64%, 25% 6.70%);  transition-delay: 0.63s; }
.sp:nth-child(23) { clip-path: polygon(50% 50%, 25% 6.70%, 37.06% 3.09%);   transition-delay: 0.66s; }
.sp:nth-child(24) { clip-path: polygon(50% 50%, 37.06% 3.09%, 50% 0%);      transition-delay: 0.69s; }

.image-container:hover .sp { transform: rotate(var(--sp-rot, 0deg)) scale(0); opacity: 0; }
.image-container:hover .sp:nth-child(1)  { transform: rotate(15deg)  scale(0); opacity: 0; }
.image-container:hover .sp:nth-child(2)  { transform: rotate(30deg)  scale(0); opacity: 0; }
.image-container:hover .sp:nth-child(3)  { transform: rotate(45deg)  scale(0); opacity: 0; }
.image-container:hover .sp:nth-child(4)  { transform: rotate(60deg)  scale(0); opacity: 0; }
.image-container:hover .sp:nth-child(5)  { transform: rotate(75deg)  scale(0); opacity: 0; }
.image-container:hover .sp:nth-child(6)  { transform: rotate(90deg)  scale(0); opacity: 0; }
.image-container:hover .sp:nth-child(7)  { transform: rotate(105deg) scale(0); opacity: 0; }
.image-container:hover .sp:nth-child(8)  { transform: rotate(120deg) scale(0); opacity: 0; }
.image-container:hover .sp:nth-child(9)  { transform: rotate(135deg) scale(0); opacity: 0; }
.image-container:hover .sp:nth-child(10) { transform: rotate(150deg) scale(0); opacity: 0; }
.image-container:hover .sp:nth-child(11) { transform: rotate(165deg) scale(0); opacity: 0; }
.image-container:hover .sp:nth-child(12) { transform: rotate(180deg) scale(0); opacity: 0; }
.image-container:hover .sp:nth-child(13) { transform: rotate(195deg) scale(0); opacity: 0; }
.image-container:hover .sp:nth-child(14) { transform: rotate(210deg) scale(0); opacity: 0; }
.image-container:hover .sp:nth-child(15) { transform: rotate(225deg) scale(0); opacity: 0; }
.image-container:hover .sp:nth-child(16) { transform: rotate(240deg) scale(0); opacity: 0; }
.image-container:hover .sp:nth-child(17) { transform: rotate(255deg) scale(0); opacity: 0; }
.image-container:hover .sp:nth-child(18) { transform: rotate(270deg) scale(0); opacity: 0; }
.image-container:hover .sp:nth-child(19) { transform: rotate(285deg) scale(0); opacity: 0; }
.image-container:hover .sp:nth-child(20) { transform: rotate(300deg) scale(0); opacity: 0; }
.image-container:hover .sp:nth-child(21) { transform: rotate(315deg) scale(0); opacity: 0; }
.image-container:hover .sp:nth-child(22) { transform: rotate(330deg) scale(0); opacity: 0; }
.image-container:hover .sp:nth-child(23) { transform: rotate(345deg) scale(0); opacity: 0; }
.image-container:hover .sp:nth-child(24) { transform: rotate(360deg) scale(0); opacity: 0; }