/* assets/css/home.css */

/* =========================
   HERO HOME
========================= */
.home-hero {
    position: relative;
    padding: 78px 0 42px;
    background: linear-gradient(180deg, #eef4f8 0%, #f6f9fc 100%);
    overflow: hidden;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 14% 18%, rgba(244, 180, 0, 0.10), transparent 18%),
        radial-gradient(circle at 88% 24%, rgba(48, 104, 196, 0.08), transparent 24%);
    pointer-events: none;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 36px;
    align-items: center;
    position: relative;
    z-index: 2;
    min-height: 680px;
}

.home-hero-copy {
    text-align: left;
    max-width: 620px;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 9px 15px;
    border-radius: 999px;
    background: rgba(244, 180, 0, 0.12);
    color: #a66b00;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    border: 1px solid rgba(244, 180, 0, 0.15);
}

.home-hero-title {
    margin: 0 0 18px;
    font-size: clamp(2.7rem, 5vw, 4.35rem);
    line-height: 1.03;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.text-highlight {
    color: var(--color-primario);
    position: relative;
    display: inline-block;
}

.home-hero-subtitle {
    max-width: 560px;
    margin-bottom: 28px;
    font-size: 1.08rem;
    line-height: 1.8;
    color: #5d6878;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.btn-primary,
.btn-secondary-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 24px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.25s ease;
}

.btn-primary {
    background: var(--color-primario);
    color: #fff;
    box-shadow: 0 14px 30px rgba(244, 180, 0, 0.28);
}

.btn-primary:hover {
    transform: translateY(-3px);
    filter: brightness(0.98);
}

.btn-secondary-outline {
    border: 1.5px solid #d7e0ea;
    background: rgba(255, 255, 255, 0.88);
    color: #0f172a;
    backdrop-filter: blur(6px);
}

.btn-secondary-outline:hover {
    border-color: var(--color-primario);
    color: var(--color-primario);
    transform: translateY(-3px);
}

.hero-mini-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.mini-stat {
    min-width: 145px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.mini-stat strong {
    display: block;
    font-size: 1.08rem;
    color: #0f172a;
    margin-bottom: 4px;
}

.mini-stat span {
    font-size: 0.92rem;
    color: #6b7280;
}

/* =========================
   HERO MEDIA
========================= */
.home-hero-media {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

/* Marco general para controlar todo el conjunto */
.hero-image-stage {
    position: relative;
    width: 520px;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Círculo amarillo decorativo */
.hero-image-circle {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #f4b400;
    box-shadow: 0 28px 55px rgba(244, 180, 0, 0.20);
    z-index: 1;
}

/* Máscara real que recorta la imagen */
.hero-image-mask {
    position: absolute;
    inset: 22px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 2;
    background:
        radial-gradient(circle at 35% 30%, rgba(255,255,255,0.28), transparent 28%),
        rgba(255, 214, 86, 0.22);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.20),
        inset 0 -20px 50px rgba(0,0,0,0.05);
}

.home-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
    display: block;
    transform: scale(1.06);
    filter: saturate(1.02) contrast(1.01);
}

/* Curva decorativa */
.hero-curve {
    position: absolute;
    width: 520px;
    height: 520px;
    border: 2px solid rgba(112, 132, 255, 0.35);
    border-left-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
    top: 72px;
    left: 42px;
    transform: rotate(15deg);
    z-index: 1;
}

.hero-accent {
    position: absolute;
    z-index: 1;
    border-radius: 999px;
}

.hero-accent-1 {
    width: 82px;
    height: 82px;
    background: #40d6c2;
    left: 72px;
    bottom: 92px;
    border-bottom-left-radius: 14px;
    clip-path: ellipse(58% 50% at 50% 50%);
}

.hero-accent-2 {
    width: 18px;
    height: 18px;
    background: #8da2ff;
    right: 118px;
    top: 132px;
}

/* =========================
   BADGES
========================= */
.hero-badge {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 240px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    padding: 13px 15px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.10);
    backdrop-filter: blur(10px);
}

.hero-badge strong {
    display: block;
    color: #0f172a;
    font-size: 0.94rem;
    line-height: 1.2;
}

.hero-badge small {
    display: block;
    color: #6b7280;
    font-size: 0.81rem;
    margin-top: 4px;
    line-height: 1.4;
}

.badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: rgba(244, 180, 0, 0.14);
    color: #a66b00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.badge-top {
    top: 116px;
    left: -10px;
}

.badge-bottom {
    right: -6px;
    bottom: 102px;
}

/* =========================
   ESTADÍSTICAS / CARDS SUPERIORES
========================= */
.home-stats {
    background: #ffffff;
    padding: 24px 0;
    color: #0f172a;
    margin-top: -35px;
    position: relative;
    z-index: 10;
    border-radius: 24px;
    width: 92%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    text-align: center;
}

.stat-item {
    display: block;
    padding: 18px 12px;
    border-radius: 18px;
    transition: 0.25s ease;
    text-decoration: none;
}

.stat-item:hover {
    transform: translateY(-4px);
    background: #f8fafc;
}

.stat-item h2 {
    font-size: 1.15rem;
    margin: 0 0 8px;
    color: #0f172a;
}

.stat-item-title {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.stat-item p {
    font-size: 0.95rem;
    color: #64748b;
    opacity: 1;
    margin: 0;
}

/* =========================
   SECCIÓN CARRERAS
========================= */
.home-carreras {
    padding: 100px 0;
    background: #f8fbff;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--color-primario);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title {
    font-size: 2.5rem;
    margin-top: 10px;
    color: var(--color-secundario);
}

.carreras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.carrera-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: 0.4s;
}

.carrera-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.carrera-img {
    position: relative;
    height: 220px;
}

.carrera-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carrera-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--color-primario);
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.carrera-content {
    padding: 25px;
}

.carrera-content h3 {
    margin-bottom: 12px;
    font-size: 1.4rem;
    color: var(--color-secundario);
}

.carrera-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.65;
}

.carrera-link {
    color: var(--color-primario);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* =========================
   SECCIÓN POR QUÉ RITZÉ
========================= */
.home-why {
    padding: 100px 0;
    background: #fff;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.why-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #5b6472;
    margin-top: 20px;
}

.why-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.why-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.why-icon {
    width: 50px;
    height: 50px;
    background: #e7f0fd;
    color: var(--color-primario);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.why-list h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--color-secundario);
}

.why-list p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.65;
}

.why-image {
    position: relative;
}

.img-pro {
    width: 100%;
    border-radius: 30px;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.05);
    display: block;
}

.experience-card {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--color-primario);
    color: #fff;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(10, 88, 202, 0.3);
}

.experience-card h3 {
    font-size: 2.5rem;
    margin: 0;
}

.experience-card p {
    margin: 8px 0 0;
}

/* =========================
   EGRESADOS HOME
========================= */
.home-egresados {
    padding: 90px 0 100px;
    background:
        radial-gradient(circle at top left, rgba(244, 180, 0, 0.08), transparent 22%),
        linear-gradient(180deg, #fffaf1 0%, #ffffff 100%);
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
}

.home-egresados::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 88% 18%, rgba(48, 104, 196, 0.07), transparent 20%);
    pointer-events: none;
}

.home-egresados .container {
    position: relative;
    z-index: 2;
}

.home-egresados-header {
    max-width: 860px;
    margin: 0 auto 55px;
}

.home-egresados-subtitle {
    margin: 14px auto 0;
    max-width: 760px;
    font-size: 1.08rem;
    color: #475569;
    line-height: 1.8;
}

.home-egresados-description {
    margin: 12px auto 0;
    max-width: 820px;
    font-size: 1rem;
    color: #64748b;
    line-height: 1.9;
}

.egresados-grid {
    display: grid;
    gap: 26px;
}

.egresados-grid--cards,
.egresados-grid--mix {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.egresados-grid--logos {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.egresado-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.egresado-card {
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.07);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    position: relative;
}

.egresado-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 45px rgba(15, 23, 42, 0.12);
    border-color: rgba(244, 180, 0, 0.28);
}

.egresado-card.is-destacado {
    border-color: rgba(244, 180, 0, 0.45);
    box-shadow: 0 20px 45px rgba(244, 180, 0, 0.16);
}

.egresado-card.is-destacado::after {
    content: "Destacado";
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f4b400;
    color: #fff;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    padding: 6px 10px;
    border-radius: 999px;
    z-index: 3;
}

.egresado-card--empresa {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.egresado-card--emprendimiento {
    background: linear-gradient(180deg, #ffffff 0%, #fffaf4 100%);
}

.egresado-card--logro {
    background: linear-gradient(180deg, #ffffff 0%, #fffdf6 100%);
}

.egresado-media {
    height: 210px;
    overflow: hidden;
    background: #eef2f7;
}

.egresado-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.egresado-card:hover .egresado-image {
    transform: scale(1.05);
}

.egresado-body {
    padding: 24px;
}

.egresado-top {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.egresado-logo-wrap {
    width: 74px;
    height: 74px;
    min-width: 74px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.egresado-logo-wrap--fallback {
    background: #f8fafc;
}

.egresado-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.egresado-meta {
    flex: 1;
    min-width: 0;
}

.egresado-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(244, 180, 0, 0.12);
    color: #9a6700;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
}

.egresado-title {
    margin: 0 0 8px;
    font-size: 1.22rem;
    line-height: 1.3;
    color: #0f172a;
}

.egresado-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: #475569;
    font-weight: 600;
    line-height: 1.55;
}

.egresado-description {
    margin: 0;
    font-size: 0.97rem;
    color: #64748b;
    line-height: 1.8;
}

.egresado-link-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--color-primario);
    font-weight: 800;
    font-size: 0.95rem;
}

/* =========================
   MODO LOGOS
========================= */
.home-egresados--logos .egresado-card {
    padding: 10px 0;
}

.home-egresados--logos .egresado-body {
    padding: 26px 20px;
    text-align: center;
}

.home-egresados--logos .egresado-top {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.home-egresados--logos .egresado-logo-wrap {
    width: 110px;
    height: 110px;
    min-width: 110px;
    border-radius: 22px;
}

.home-egresados--logos .egresado-meta {
    width: 100%;
}

.home-egresados--logos .egresado-badge {
    justify-content: center;
}

.home-egresados--logos .egresado-title,
.home-egresados--logos .egresado-subtitle,
.home-egresados--logos .egresado-description,
.home-egresados--logos .egresado-link-text {
    text-align: center;
}

/* =========================
   MODO MIX
========================= */
.home-egresados--mix .egresado-body {
    padding-top: 20px;
}

/* =========================
   RESPONSIVE EGRESADOS
========================= */
@media (max-width: 992px) {
    .home-egresados {
        padding: 80px 0 88px;
    }

    .home-egresados-header {
        margin-bottom: 40px;
    }

    .egresados-grid--cards,
    .egresados-grid--mix,
    .egresados-grid--logos {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

@media (max-width: 576px) {
    .home-egresados {
        padding: 65px 0 75px;
    }

    .home-egresados-subtitle,
    .home-egresados-description {
        font-size: 0.96rem;
        line-height: 1.75;
    }

    .egresados-grid {
        grid-template-columns: 1fr !important;
        gap: 18px;
    }

    .egresado-body {
        padding: 20px;
    }

    .egresado-top {
        gap: 12px;
    }

    .egresado-logo-wrap {
        width: 64px;
        height: 64px;
        min-width: 64px;
        border-radius: 16px;
    }

    .home-egresados--logos .egresado-logo-wrap {
        width: 90px;
        height: 90px;
        min-width: 90px;
    }

    .egresado-title {
        font-size: 1.08rem;
    }

    .egresado-subtitle,
    .egresado-description {
        font-size: 0.92rem;
    }
}

/* =========================
   BLOQUES OPCIONALES
========================= */
.home-features {
    padding: 60px 0;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 30px;
    border-radius: 15px;
    background: var(--color-fondo);
    transition: 0.3s;
    border-bottom: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primario);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--color-primario);
    margin-bottom: 15px;
    display: block;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: var(--color-secundario);
}

/* =========================
   RESPONSIVE
========================= */
@media (min-width: 993px) {
    .home-hero .container {
        max-width: 1240px;
        width: 92%;
        margin: 0 auto;
    }

    .home-hero-grid {
        grid-template-columns: 5fr 6fr;
        gap: 36px;
    }
}

@media (max-width: 1200px) {
    .hero-image-stage {
        width: 470px;
        height: 470px;
    }

    .hero-curve {
        width: 470px;
        height: 470px;
        left: 32px;
        top: 82px;
    }

    .badge-top {
        left: 0;
    }

    .badge-bottom {
        right: 0;
    }
}

@media (max-width: 992px) {
    .home-hero {
        padding: 64px 0 42px;
    }

    .home-hero-grid {
        grid-template-columns: 1fr;
        gap: 34px;
        min-height: auto;
        text-align: center;
    }

    .home-hero-copy {
        text-align: center;
        max-width: 100%;
    }

    .home-hero-title {
        font-size: 2.35rem;
    }

    .home-hero-title,
    .home-hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero-actions,
    .hero-mini-stats {
        justify-content: center;
    }

    .home-hero-media {
        min-height: 560px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .hero-image-stage {
        width: 360px;
        height: 360px;
        margin-top: 20px;
    }

    .hero-image-mask {
        inset: 16px;
    }

    .home-hero-img {
        object-position: center 24%;
        transform: scale(1.03);
    }

    .hero-curve {
        width: 360px;
        height: 360px;
        left: 50%;
        top: 86px;
        transform: translateX(-50%) rotate(14deg);
    }

    .hero-accent-1 {
        width: 64px;
        height: 64px;
        left: 40px;
        bottom: 120px;
    }

    .hero-accent-2 {
        right: 62px;
        top: 120px;
    }

    .badge-top,
    .badge-bottom {
        position: static;
        margin-top: 14px;
        max-width: 320px;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .experience-card {
        position: relative;
        left: 0;
        bottom: 0;
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .home-hero {
        padding: 56px 0 34px;
    }

    .home-hero-title {
        font-size: 2rem;
        line-height: 1.08;
    }

    .home-hero-subtitle {
        font-size: 1rem;
        line-height: 1.7;
    }

    .hero-mini-stats {
        gap: 10px;
    }

    .mini-stat {
        min-width: 100%;
    }

    .home-hero-media {
        min-height: 480px;
    }

    .hero-image-stage {
        width: 290px;
        height: 290px;
    }

    .hero-image-mask {
        inset: 13px;
    }

    .home-hero-img {
        object-position: center 22%;
        transform: scale(1.02);
    }

    .hero-curve {
        width: 290px;
        height: 290px;
        top: 92px;
    }

    .hero-accent-1 {
        width: 54px;
        height: 54px;
        left: 18px;
        bottom: 104px;
    }

    .hero-accent-2 {
        right: 34px;
        top: 110px;
    }

    .hero-badge {
        padding: 11px 13px;
        border-radius: 16px;
    }

    .hero-badge strong {
        font-size: 0.9rem;
    }

    .hero-badge small {
        font-size: 0.78rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .carreras-grid {
        grid-template-columns: 1fr;
    }
}