/* =============================================
   HERO / BANNER TALENTO
   ============================================= */

.banner-talento {
    position: relative;
    width: 100%;
    min-height: 85vh;
    background-color: var(--azul-obscuro);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    perspective: 1000px;
}

.banner-talento::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(42, 171, 227, 0.1) 0%, rgba(3, 8, 22, 1) 70%);
    z-index: 1;
    pointer-events: none;
}

/* Imágenes Flotantes */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.float-item {
    position: absolute;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    opacity: 0.8;
    transition: transform 0.1s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}

.float-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.1);
}

.item-1 {
    top: 15%;
    left: 5%;
    width: 220px;
    height: 300px;
    transform: rotate(-5deg);
    z-index: 1;
}

.item-2 {
    top: 10%;
    right: 8%;
    width: 280px;
    height: 180px;
    transform: rotate(5deg);
    z-index: 1;
}

.item-3 {
    bottom: 15%;
    right: 12%;
    width: 200px;
    height: 250px;
    transform: rotate(-3deg);
    z-index: 3;
}

.item-decor {
    bottom: 20%;
    left: 15%;
    width: 100px;
    height: 100px;
    border: 4px solid var(--naranja);
    transform: rotate(45deg);
    z-index: 0;
}

/* Contenido Hero */
.content-wrapper {
    z-index: 10;
    text-align: center;
    position: relative;
    padding: 3rem;
    border-radius: 20px;
    background: rgba(3, 8, 22, 0.3);
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
}

.hero-title {
    color: var(--blanco);
    line-height: 1.1;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.text-line-1 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.9;
}

.text-line-2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
}

.text-line-3 {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 900;
    color: var(--azul);
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-top: 10px;
    text-shadow: 0 10px 30px rgba(42, 171, 227, 0.4);
}

.highlight-wrapper {
    margin: 1.5rem 0;
    transform: rotate(-2deg);
    display: inline-block;
}

.highlight-box {
    background-color: var(--naranja);
    padding: 1rem 3rem;
    display: flex;
    gap: 10px;
    align-items: center;
    box-shadow: 10px 10px 0px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.highlight-box:hover {
    transform: scale(1.05) rotate(1deg);
}

.highlight-box .text-white {
    color: var(--blanco);
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 500;
}

.highlight-box .text-accent {
    color: var(--azul-obscuro);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 900;
    text-transform: uppercase;
    background: var(--blanco);
    padding: 2px 10px;
    transform: skewX(-10deg);
}

.cta-container {
    margin-top: 3rem;
}

/* =============================================
   BENTO GRID (POR QUÉ DEART)
   ============================================= */

.bento-section {
    background-color: var(--azul-obscuro);
    padding: 100px 20px;
    color: var(--blanco);
    position: relative;
    overflow: hidden;
}

.bento-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(240, 90, 37, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.bento-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.bento-header {
    text-align: center;
    margin-bottom: 60px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 25px;
}

.bento-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 35px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.bento-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-wide {
    grid-column: span 2;
}

.card-large {
    grid-row: span 2;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(42, 171, 227, 0.1));
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    color: var(--blanco);
}

.icon-blue {
    color: var(--azul);
    background: rgba(42, 171, 227, 0.15);
}

.icon-orange {
    color: var(--naranja);
    background: rgba(240, 90, 37, 0.15);
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.bento-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--blanco);
}

.bento-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.bento-card strong {
    color: var(--blanco);
    font-weight: 600;
}

.card-header-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-row {
    display: flex;
    align-items: center;
    margin: 20px 0;
    gap: 20px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat .percentage {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--azul);
    line-height: 1;
}

.stat .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

/* CTA Wrapper */
.cta-wrapper {
    margin-top: 60px;
    background: linear-gradient(90deg, #1a1a1a 0%, #252525 100%);
    border-radius: 20px;
    padding: 40px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.6);
}

/* =============================================
   PERFIL ESTUDIANTES (ACORDEÓN)
   ============================================= */

#student-profile {
    width: 100%;
    background-color: var(--negro);
    padding: 80px 0 0 0;
    display: flex;
    flex-direction: column;
    min-height: 80vh;
    overflow: hidden;
}

.profile-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
    z-index: 5;
}

.profile-header .section-title {
    color: var(--blanco);
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.text-outline {
    color: transparent;
    -webkit-text-stroke: 1px var(--blanco);
    font-weight: 900;
    text-transform: uppercase;
}

.profile-accordion {
    display: flex;
    width: 100%;
    height: 60vh;
    overflow: hidden;
}

.profile-panel {
    position: relative;
    flex: 1;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-panel:last-child {
    border-right: none;
}

.panel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: grayscale(100%);
}

.panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
    transition: opacity 0.3s;
}

.panel-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    opacity: 0.7;
    transform: translateY(20px);
    transition: all 0.4s ease;
    max-width: 100%;
}

.panel-number {
    font-size: 4rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    line-height: 1;
    margin-bottom: 10px;
}

.panel-content h3 {
    font-size: 2rem;
    color: var(--blanco);
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 400px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.1s;
    display: block;
}

.profile-panel:hover {
    flex: 3;
}

.profile-panel:hover .panel-img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.profile-panel:hover .panel-content {
    opacity: 1;
    transform: translateY(0);
}

.profile-panel:hover .panel-desc {
    opacity: 1;
    transform: translateY(0);
    white-space: normal;
}

.profile-panel:hover .panel-content h3 {
    white-space: normal;
    color: var(--naranja);
}

.profile-panel:hover .panel-number {
    -webkit-text-stroke: 1px var(--azul);
    opacity: 1;
}

/* =============================================
   GALERÍA CAÓTICA
   ============================================= */

#trail-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
}

#chaos-gallery {
    position: relative;
    width: 100%;
    min-height: 80vh;
    background-color: #f8f9fa;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#chaos-gallery::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--azul-obscuro) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.05;
    z-index: 0;
}

.gallery-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: floatBlob 10s infinite alternate ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background-color: var(--azul);
    top: -10%;
    left: -10%;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background-color: var(--naranja);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

.scattered-photo {
    width: 280px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 8px solid white;
    border-bottom: 25px solid white;
    z-index: 5;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.scattered-photo:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    cursor: zoom-in;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    pointer-events: none;
}

.gallery-highlight {
    font-size: clamp(5rem, 18vw, 13rem);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--blanco);
    letter-spacing: -5px;
    line-height: 0.8;
    mix-blend-mode: exclusion;
    opacity: 0.8;
    background-image: linear-gradient(120deg, transparent 0%, transparent 60%, var(--naranja) 60%);
    background-size: 100% 40%;
    background-repeat: no-repeat;
    background-position: 0 85%;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Modal Lightbox */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(3, 8, 22, 0.98);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.modal-content {
    max-width: 80%;
    max-height: 80vh;
    border: 2px solid var(--blanco);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    object-fit: contain;
    animation: zoomIn 0.3s ease;
    position: relative;
    z-index: 10001;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--blanco);
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
    z-index: 10005;
    background: rgba(0, 0, 0, 0.3);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 5px;
}

.close-modal:hover {
    color: var(--naranja);
    background: rgba(255, 255, 255, 0.1);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10005;
    color: var(--blanco);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-nav:hover {
    background: var(--naranja);
    border-color: var(--naranja);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 40px; }
.next-btn { right: 40px; }

.modal-caption {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    letter-spacing: 2px;
    z-index: 10002;
}

/* =============================================
   RESPONSIVE HOME
   ============================================= */

@media (max-width: 768px) {
    .banner-talento {
        min-height: 70vh;
    }

    .floating-elements {
        opacity: 0.4;
    }

    .float-item {
        transform: none !important;
    }

    .item-1 {
        top: 5%;
        left: -10%;
        width: 150px;
        opacity: 0.6;
    }

    .item-2 {
        top: 10%;
        right: -10%;
        width: 150px;
        opacity: 0.6;
    }

    .item-3, .item-decor {
        display: none;
    }

    .content-wrapper {
        padding: 1.5rem;
        background: rgba(3, 8, 22, 0.6);
    }

    .cta-container {
        margin-top: 2rem;
    }

    .cta-container .btn-primary {
        display: block;
        width: 100%;
        padding: 16px 20px;
        font-size: 0.9rem;
        text-align: center;
        border-radius: 12px;
    }

    /* Bento */
    .bento-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .card-wide, .card-large {
        grid-column: auto;
    }

    .cta-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 20px;
    }

    .btn-glow {
        width: 100%;
        justify-content: center;
        font-size: 0.9rem;
        padding: 15px;
    }

    /* Perfil Estudiantes */
    .profile-accordion {
        flex-direction: column;
        height: auto;
        display: block;
    }

    .profile-panel {
        width: 100%;
        height: 350px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        flex: none;
        justify-content: flex-end;
    }

    .panel-img {
        filter: grayscale(0%);
        transform: scale(1.05);
    }

    .panel-overlay {
        background: linear-gradient(to top, rgba(3, 8, 22, 0.95) 10%, rgba(3, 8, 22, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
        opacity: 1;
    }

    .panel-content {
        opacity: 1;
        transform: translateY(0);
        padding: 30px 25px;
        width: 100%;
    }

    .panel-content h3 {
        white-space: normal;
        font-size: 1.6rem;
        line-height: 1.2;
        color: var(--naranja);
    }

    .panel-desc {
        opacity: 1;
        transform: translateY(0);
        white-space: normal;
        font-size: 1rem;
        line-height: 1.5;
        max-width: 90%;
    }

    .panel-number {
        font-size: 3rem;
        position: absolute;
        top: 20px;
        right: 20px;
        opacity: 0.5;
        margin: 0;
        -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
    }

    .profile-panel:last-child {
        border-bottom: none;
    }

    /* Gallery */
    .gallery-highlight {
        font-size: 20vw;
        letter-spacing: -2px;
        opacity: 0.5;
        mix-blend-mode: overlay;
    }

    /* Modal */
    .modal-content {
        max-width: 95%;
    }

    .modal-nav {
        width: 45px;
        height: 45px;
        background: rgba(0, 0, 0, 0.5);
    }

    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }

    .close-modal {
        top: 10px;
        right: 10px;
        font-size: 40px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-large {
        grid-row: auto;
        grid-column: span 2;
    }
}
