/* ============================================================
   ACOMPAÑA-T — Home / Landing Page
   ============================================================ */

/* ── Body del home ── */
body.home-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Inter', 'Calibri', sans-serif;
    background: linear-gradient(160deg, #1a3410 0%, #2a4d1f 25%, #38662b 60%, #4d8c3a 100%);
    overflow-x: hidden;
}

/* Quitar padding del main-content en home */
body.home-body .main-container,
body.home-body #content.main-content {
    padding: 0 !important;
    background: transparent !important;
}

body.home-body .main-content .container {
    max-width: 100% !important;
    padding: 0 !important;
}

body.home-body #cancel-row {
    margin: 0 !important;
}

body.home-body .col-xl-12 {
    padding: 0 !important;
}

/* ── Orbes de fondo animados ── */
.home-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: homeOrbFloat 7s ease-in-out infinite alternate;
}

.home-orb-1 {
    width: 500px; height: 500px;
    top: -150px; right: -100px;
    background: radial-gradient(circle, rgba(248,216,0,.15) 0%, transparent 70%);
    animation-delay: 0s;
}

.home-orb-2 {
    width: 400px; height: 400px;
    bottom: -100px; left: -80px;
    background: radial-gradient(circle, rgba(77,140,58,.20) 0%, transparent 70%);
    animation-delay: -3.5s;
}

.home-orb-3 {
    width: 250px; height: 250px;
    top: 40%; left: 5%;
    background: radial-gradient(circle, rgba(248,216,0,.08) 0%, transparent 70%);
    animation-delay: -1.8s;
}

@keyframes homeOrbFloat {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(24px, -24px) scale(1.06); }
}

/* ── Hero section ── */
.home-hero {
    position: relative;
    min-height: calc(100vh - 64px); /* descontar topbar */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    z-index: 1;
}

.home-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    width: 100%;
    animation: homeEntrance .6s cubic-bezier(.34,1.56,.64,1) both;
}

@keyframes homeEntrance {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Badge ── */
.home-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    color: rgba(255,255,255,.9);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .8px;
    text-transform: uppercase;
    padding: 7px 18px;
    border-radius: 30px;
    backdrop-filter: blur(8px);
    margin-bottom: 28px;
}

.home-badge i {
    color: #f8d800;
    font-size: 14px;
}

/* ── Título principal ── */
.home-title {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 16px;
    line-height: 1.15;
    letter-spacing: -.5px;
    text-shadow: 0 2px 20px rgba(0,0,0,.2);
}

.home-title-highlight {
    color: #f8d800 !important;
    position: relative;
}

/* ── Subtítulo ── */
.home-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,.78);
    margin: 0 0 32px;
    line-height: 1.7;
    font-weight: 400;
}

.home-subtitle strong {
    color: rgba(255,255,255,.95);
    font-weight: 600;
}

/* ── Divisor ── */
.home-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #f8d800, rgba(248,216,0,.3));
    border-radius: 2px;
    margin: 0 auto 28px;
}

/* ── Label "¿Cómo deseas ingresar?" ── */
.home-select-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.6);
    letter-spacing: .6px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

/* ── Cards de acceso ── */
.home-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.home-access-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 20px;
    padding: 22px 28px;
    width: 300px;
    text-decoration: none !important;
    transition: all .28s cubic-bezier(.4,0,.2,1);
    text-align: left;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.home-access-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.08) 0%, transparent 60%);
    border-radius: 20px;
    opacity: 0;
    transition: opacity .28s;
}

.home-access-card:hover::before { opacity: 1; }

.home-access-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,255,255,.35);
    box-shadow:
        0 24px 48px rgba(0,0,0,.25),
        0 8px 16px rgba(0,0,0,.15);
    text-decoration: none !important;
    background: rgba(255,255,255,.16);
}

/* Ícono */
.hac-icon-wrap {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    transition: transform .28s;
}

.home-access-card:hover .hac-icon-wrap {
    transform: scale(1.08) rotate(-4deg);
}

.hac-admin {
    background: linear-gradient(135deg, #2a4d1f, #38662b);
    color: #f8d800;
    box-shadow: 0 8px 20px rgba(42,77,31,.5);
    border: 1px solid rgba(248,216,0,.25);
}

.hac-student {
    background: linear-gradient(135deg, rgba(248,216,0,.2), rgba(248,216,0,.1));
    color: #f8d800;
    border: 1px solid rgba(248,216,0,.35);
    box-shadow: 0 8px 20px rgba(248,216,0,.15);
}

/* Texto */
.hac-body {
    flex: 1;
}

.hac-body h3 {
    color: #ffffff !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    margin: 0 0 5px !important;
    display: block !important;
}

.hac-body p {
    color: rgba(255,255,255,.65);
    font-size: 12px;
    margin: 0;
    line-height: 1.5;
}

/* Flecha */
.hac-arrow {
    color: rgba(255,255,255,.4);
    font-size: 14px;
    transition: all .28s;
    flex-shrink: 0;
}

.home-access-card:hover .hac-arrow {
    color: #f8d800;
    transform: translateX(4px);
}

/* ── Footer note ── */
.home-footer-note {
    font-size: 11px;
    color: rgba(255,255,255,.45);
    letter-spacing: .3px;
    margin: 0;
}

.home-footer-note i {
    color: rgba(248,216,0,.6);
}

/* ============================================================
   ESTUDIANTE — Dashboard / Home
   ============================================================ */

/* ── Body override para la página home del estudiante ── */
body.est-home-body {
    background: linear-gradient(160deg, #1a3410 0%, #2a4d1f 25%, #38662b 60%, #4d8c3a 100%) !important;
}

body.est-home-body .main-container,
body.est-home-body #content.main-content {
    padding: 0 !important;
    background: transparent !important;
}

body.est-home-body .main-content .container {
    max-width: 100% !important;
    padding: 0 !important;
}

body.est-home-body #cancel-row {
    margin: 0 !important;
}

body.est-home-body .col-xl-12 {
    padding: 0 !important;
}

/* ── Hero section ── */
.est-hero {
    position: relative;
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    z-index: 1;
    overflow: hidden;
}

/* ── Contenido centrado ── */
.est-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 860px;
    width: 100%;
    animation: homeEntrance .6s cubic-bezier(.34,1.56,.64,1) both;
}

/* ── Título ── */
.est-title {
    font-size: clamp(22px, 3.5vw, 38px);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 14px;
    line-height: 1.2;
    letter-spacing: -.4px;
    text-shadow: 0 2px 20px rgba(0,0,0,.2);
}

/* ── Subtítulo ── */
.est-subtitle {
    font-size: 15px;
    color: rgba(255,255,255,.78);
    margin: 0 0 28px;
    line-height: 1.7;
    font-weight: 400;
}

.est-subtitle strong {
    color: rgba(255,255,255,.95);
    font-weight: 600;
}

/* ── Cards grid ── */
.est-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

/* ── Card individual ── */
.est-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 20px;
    padding: 32px 24px 24px;
    width: 200px;
    text-decoration: none !important;
    transition: all .28s cubic-bezier(.4,0,.2,1);
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.est-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.08) 0%, transparent 60%);
    border-radius: 20px;
    opacity: 0;
    transition: opacity .28s;
}

.est-card:hover::before { opacity: 1; }

.est-card:hover {
    transform: translateY(-8px);
    border-color: rgba(248,216,0,.45);
    box-shadow:
        0 24px 48px rgba(0,0,0,.3),
        0 8px 16px rgba(0,0,0,.15);
    text-decoration: none !important;
    background: rgba(255,255,255,.16);
}

/* ── Ícono / imagen de la card ── */
.est-card-icon {
    width: 84px;
    height: 84px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,255,255,.15), rgba(255,255,255,.08));
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    transition: transform .28s;
    overflow: hidden;
    flex-shrink: 0;
}

.est-card:hover .est-card-icon {
    transform: scale(1.1) rotate(-4deg);
}

.est-card-icon img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
}

/* ── Etiqueta de la card ── */
.est-card-label {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    display: block !important;
    text-decoration: none !important;
    letter-spacing: .2px;
    line-height: 1.3;
}

.est-card:hover .est-card-label {
    color: #f8d800 !important;
}
