/* FONDO SUAVE CON DEGRADADO */
body {
    background: linear-gradient(135deg, #e0e7ff, #ede9fe, #f5f3ff);
    font-family: 'Segoe UI';
    color: #1e293b;
}

/* NAVBAR PRO */
.custom-navbar {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(12px);
    transition: 0.3s;
    padding: 12px 0;
}

/* SOMBRA AL HACER SCROLL */
.custom-navbar.scrolled {
    background: rgba(255,255,255,0.9);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* LINKS */
.nav-link {
    position: relative;
    font-weight: 500;
    color: #1e293b !important;
    margin-left: 15px;
    transition: 0.3s;
}

/* HOVER */
.nav-link:hover {
    color: #7c3aed !important;
}

/* SUBRAYADO ANIMADO */
.nav-link::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(135deg,#6366f1,#9333ea);
    transition: 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* LINK ACTIVO */
.nav-link.active {
    color: #7c3aed !important;
}

/* BOTÓN MOBILE */
.navbar-toggler {
    border: none;
    font-size: 24px;
}

/* HERO (pantalla completa) */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
}

/* TARJETAS (glassmorphism) */
.card {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: none;
    transition: 0.3s;
}

/* Efecto hover */
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* BOTÓN CON DEGRADADO */
.btn-custom {
    background: linear-gradient(135deg,#6366f1,#9333ea);
    color: white;
    border: none;
}

/* SECCIONES */
.section {
    padding: 80px 0;
}

/* ANIMACIÓN SCROLL */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* TEXTO DEGRADADO */
.gradient-text {
    background: linear-gradient(135deg,#6366f1,#9333ea);
    -webkit-background-clip: text;
    color: transparent;
}

/* TIMELINE */
.timeline {
    border-left: 3px solid #7c3aed;
    padding-left: 20px;
}

.timeline-item {
    margin-bottom: 20px;
}


/* IMAGENES TITULOS */
/* IMAGEN */
.academic-image img {

    width: 250px;

    border-radius: 16px;

    transition: 0.4s;

    cursor: pointer;

    box-shadow:
    0 10px 20px rgba(0,0,0,0.1);

}
/* HOVER IMAGEN */
.academic-image img:hover {

    transform:
    scale(1.05)
    rotate(-1deg);

}
.card .separador{
    width: 85%;
    height: 30px;
    margin-top: 10px;
}


/* ============================= */
/* PERFIL PROFESIONAL EXPANSIBLE */
/* ============================= */

/* CARD PERFIL */
.profile-card {

    background: rgba(255,255,255,0.65);

    backdrop-filter: blur(14px);

    border-radius: 24px;

    border: 1px solid rgba(255,255,255,0.3);

    box-shadow:
    0 10px 30px rgba(0,0,0,0.05);

}

/* BOTÓN */
.expand-btn {

    border: none;

    background:
    linear-gradient(135deg,#6366f1,#9333ea);

    color: white;

    padding: 12px 20px;

    border-radius: 14px;

    font-weight: 600;

    display: flex;

    align-items: center;

    gap: 10px;

    transition: 0.3s;

}

/* HOVER */
.expand-btn:hover {

    transform: translateY(-3px);

    box-shadow:
    0 10px 20px rgba(124,58,237,0.3);

}

/* FLECHA */
.arrow-icon {

    transition: 0.4s;

    font-size: 18px;

}

/* ROTACIÓN */
.arrow-icon.rotate {

    transform: rotate(180deg);

}

/* CONTENIDO OCULTO */
.about-extra {

    max-height: 0;

    overflow: hidden;

    opacity: 0;

    transition:
    max-height 0.7s ease,
    opacity 0.5s ease,
    margin-top 0.5s ease;

}

/* ACTIVO */
.about-extra.show {

    max-height: 800px;

    opacity: 1;

    margin-top: 30px;

}

/* DIVISOR */
.divider {

    width: 100%;

    height: 1px;

    background:
    linear-gradient(to right,
    transparent,
    rgba(99,102,241,0.4),
    transparent);

    margin-bottom: 30px;

}

/* MINI CARD */
.mini-card {

    background:
    rgba(255,255,255,0.5);

    padding: 20px;

    border-radius: 18px;

    border:
    1px solid rgba(255,255,255,0.4);

}

/* TAGS */
.tech-tags {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

}

/* TAG */
.tech-tags span {

    background:
    linear-gradient(135deg,#6366f1,#9333ea);

    color: white;

    padding: 8px 14px;

    border-radius: 999px;

    font-size: 14px;

    transition: 0.3s;

}

/* HOVER TAG */
.tech-tags span:hover {

    transform: scale(1.08);

}

/* ========================= */
/* SOBRE MÍ */
/* ========================= */

.about-card {

    background:
    rgba(255,255,255,0.65);

    backdrop-filter: blur(14px);

    border-radius: 28px;

    padding: 25px;

    border:
    1px solid rgba(255,255,255,0.4);

    box-shadow:
    0 10px 40px rgba(0,0,0,0.05);

}

/* MINI TITULO */
.about-mini-title {

    background:
    rgba(99,102,241,0.12);

    color: #6366f1;

    padding: 10px 18px;

    
    border-radius: 999px;

    font-size: 14px;

    font-weight: 600;

}

/* CABECERA */
.about-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    flex-wrap: wrap;

    gap: 20px;

}

/* BOTÓN */
.about-btn {

    border: none;

    background:
    linear-gradient(135deg,#6366f1,#9333ea);

    color: white;

    padding: 14px 24px;

    border-radius: 16px;

    font-weight: 600;

    display: flex;

    align-items: center;

    gap: 10px;

    transition: 0.3s;

}

/* HOVER */
.about-btn:hover {

    transform: translateY(-3px);

    box-shadow:
    0 10px 20px rgba(124,58,237,0.3);

}

/* FLECHA */
.about-arrow {

    transition: 0.4s;

}

/* ROTAR */
.about-arrow.rotate {

    transform: rotate(180deg);

}

/* CONTENIDO */
.about-content {

    max-height: 0;

    overflow: hidden;

    opacity: 0;

    transition:
    max-height 0.8s ease,
    opacity 0.5s ease,
    margin-top 0.5s ease;

}

/* ACTIVO */
.about-content.show {

    max-height: 900px;

    opacity: 1;

    margin-top: 35px;

}

/* DIVISOR */
.about-divider {

    width: 100%;

    height: 1px;

    background:
    linear-gradient(to right,
    transparent,
    rgba(99,102,241,0.5),
    transparent);

    margin-bottom: 30px;

}

/* GLOW VISUAL */
.about-glow {

    background:
    linear-gradient(135deg,
    rgba(99,102,241,0.1),
    rgba(147,51,234,0.1));

    border-radius: 24px;

    padding: 40px 20px;

    text-align: center;

    position: relative;

    overflow: hidden;

}

/* CÍRCULO */
.about-circle {

    width: 120px;

    height: 120px;

    margin: auto;

    border-radius: 50%;

    background:
    linear-gradient(135deg,#6366f1,#9333ea);

    animation: pulse 3s infinite;

}

/* ANIMACIÓN */
@keyframes pulse {

    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(124,58,237,0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(124,58,237,0.3);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(124,58,237,0.4);
    }

}

/* TAGS */
.about-tags {

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 12px;

    margin-top: 30px;

}

/* TAG */
.about-tags span {

    background:
    linear-gradient(135deg,#6366f1,#9333ea);

    color: white;

    padding: 10px 16px;

    border-radius: 999px;

    font-size: 14px;

    transition: 0.3s;

}

/* HOVER */
.about-tags span:hover {

    transform: scale(1.08);

}

/* ====================== */
/* IMAGEN TITULO TAMAÑO COMPLETO */
/* ====================== */

.image-modal {

    position: fixed;

    inset: 0;

    width: 100%;
    height: 100vh;

    background:
    rgba(0,0,0,0.85);

    backdrop-filter: blur(10px);

    display: flex;

    justify-content: center;
    align-items: center;

    opacity: 0;

    visibility: hidden;

    transition: 0.4s;

    z-index: 9999;

}

/* ACTIVO */
.image-modal.show {

    opacity: 1;

    visibility: visible;

}

/* IMAGEN */
.modal-image {

    max-width: 90%;

    max-height: 85vh;

    border-radius: 20px;

    transform: scale(0.8);

    transition: 0.4s;

    box-shadow:
    0 20px 60px rgba(0,0,0,0.5);

}

/* ANIMACIÓN */
.image-modal.show .modal-image {

    transform: scale(1);

}

/* BOTÓN CERRAR */
.close-modal {

    position: absolute;

    top: 30px;
    right: 40px;

    color: white;

    font-size: 40px;

    cursor: pointer;

    transition: 0.3s;

}

/* HOVER */
.close-modal:hover {

    transform: rotate(90deg);

    color: #c084fc;

}

/* ========================= */
/* BOTÓN CERTIFICADO */
/* ========================= */

.certificate-btn {

    border:
    1px solid rgba(124,58,237,0.2);

    background:
    rgba(255,255,255,0.45);

    backdrop-filter: blur(10px);

    color: #7c3aed;

    padding: 8px 14px;

    border-radius: 999px;

    font-size: 13px;

    font-weight: 600;

    margin-top: 10px;

    cursor: pointer;

    transition: 0.3s;

}

/* HOVER */
.certificate-btn:hover {

    background:
    rgba(124,58,237,0.08);

    transform:
    translateY(-2px);

    box-shadow:
    0 8px 18px rgba(124,58,237,0.12);

}


