body {
    font-family: 'Segoe UI', sans-serif;
    padding: 16px;

    /*Background*/
    background-color: rgba(255, 255, 255, 0.65);
    background-image: url(img/style/background.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: lighten;
}

.bento {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-areas:
        "hero   right"
        "apps   right"
        "robots right"
        "club   right"
        "extra  right"
        "time   time";
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.kikiprofile {grid-area: hero;}
.right-col {grid-area: right;}
.apps-card{grid-area: apps;}
.robotics-card{grid-area: robots;}
.club-card{grid-area: club;}
.more{grid-area: extra;}
.timeline{grid-area: time;}

/*Kiki Profile*/
.kikiprofile {
    border: 1px solid;
    border-radius: 15px;
    padding: 35px;
    display: flex;
    align-items: center;
    gap: 32px;
    position: relative;
    overflow: hidden;
}

.avatar {
    flex-shrink: 0;
}

.avatar img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid;
    display: block;
}

.textspace h3 {
    font-size: 21px;
    font-weight: 9000;
    line-height: 0;
}

.textspace h1 {
    font-size: 38px;
    line-height: 0,5px;
    font-weight: 9000;
}

/*67 | Right Column*/
.right-col {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
}

.derecha {
    flex: 1;
    border: 1px solid;
    border-radius: 35px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.derecha h3,
.award-name {
    font-weight: bolder;
}

.award-item {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border-bottom: 1px solid;
}

.award-icon {
    width: 22px;
    height: 27px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    margin-top: 2px;
    margin-right: 6px;
}

/*Apps*/
.apps-card {
    border: 1px solid;
    border-radius: 15px;
    padding: 15px;

    display: flex;
    flex-direction: column;

    align-items: center;
    gap: -60px;
    position: relative;
    overflow: hidden;
}

.apps-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.app-item {
    border: 1px solid;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.app-item img {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.app-item span {
    font-size: 25px;
    font-weight: bold;
}

/*Robots*/

.robotics-card {
    border: 1px solid;
    border-radius: 15px;
    padding: 15px;

    display: flex;
    flex-direction: column;

    align-items: center;
    gap: -60px;
    position: relative;
    overflow: hidden;
}

.robotics-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
}

.robots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.robot-item {
    border: 1px solid;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.robot-item img {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.robot-item span {
    font-size: 25px;
    font-weight: bold;
}

/*Club Steam*/

.club-card {
    border: 1px solid;
    border-radius: 15px;
    padding: 15px;

    display: flex;
    flex-direction: column;

    align-items: center;
    gap: -60px;
    position: relative;
    overflow: hidden;
}

.club-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
}

.club-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.club-item {
    border: 1px solid;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.club-item img {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.club-item span {
    font-size: 25px;
    font-weight: bold;
}

/*Ciencia Ciudadana*/
.more {
    border: 1px solid;
    border-radius: 15px;
    padding: 15px;

    display: flex;
    flex-direction: column;

    align-items: center;
    gap: -60px;
    position: relative;
    overflow: hidden;
}

.more h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.more-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.more-item {
  border: 1px solid;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;  
}

.more-item img {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.more-item span {
    font-size: 25px;
    font-weight: bold;
}


/*Carousel*/
.timeline {
    background-image: url(img/style/background2.png);
    background-size: cover;
    background-position: center; 
    background-repeat: no-repeat;

    border-radius: 18px;
    padding: 20px;
    overflow: hidden;
}

/* HEADER */

.timeline-header {
    margin-bottom: 18px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* BOTONES */

.carousel-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.carousel-btn {
    width: 42px;
    height: 42px;

    border-radius: 50%;
    border: 1.5px solid rgba(79,110,247,0.25);

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

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

    cursor: pointer;

    transition:
        transform .2s ease,
        background .2s ease,
        opacity .2s ease;
}

.carousel-btn img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.carousel-btn:hover {
    transform: scale(1.08);
    background: var(--accent);
}

.carousel-btn:hover img {
    filter: brightness(0) invert(1);
}

.carousel-btn:disabled {
    opacity: .35;
    cursor: default;
    transform: none;
}

/* CONTADOR */

.carousel-counter {
    font-size: 12px;
    color: var(--text-muted);
}

/* VIEWPORT */

.carousel-viewport {
    overflow: hidden;
    width: 100%;
}

/* TRACK */

.carousel-track {
    display: flex;
    gap: 14px;

    transition: transform .45s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

/* CARD */

.carousel-slide {
    flex: 0 0 calc((100% - 28px) / 3);

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

    max-height: 450px;

    border-radius: 16px;
    padding: 12px;

    display: flex;
    flex-direction: column;
    gap: 10px;

    box-sizing: border-box;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.carousel-slide:hover {
    transform: translateY(-4px);

    box-shadow:
        0 10px 28px rgba(0,0,0,.08);
}

/* IMAGENES CUADRADAS */

.slide-img,
.slide-img-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;

    border-radius: 12px;

    object-fit: cover;

    flex-shrink: 0;
}

/* PLACEHOLDER */

.slide-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(79,110,247,0.08);

    font-size: 32px;
}

/* TEXTOS */

.slide-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.slide-desc {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted);

    flex: 1;
}

/* PREMIO */

.slide-award {
    width: fit-content;

    font-size: 11px;
    font-weight: 600;

    color: var(--accent);

    background: var(--accent-soft);

    padding: 5px 9px;

    border-radius: 8px;
}

/* LINKS */

.slide-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.slide-link {
    font-size: 11px;

    padding: 5px 10px;

    border-radius: 8px;

    border: 1px solid rgba(79,110,247,0.3);

    color: var(--accent);

    transition:
        background .15s ease,
        color .15s ease;
}

.slide-link:hover {
    background: var(--accent);
    color: #fff;
}

/* DOTS */

.carousel-dots {
    display: flex;
    justify-content: center;

    gap: 7px;

    margin-top: 16px;
}

.carousel-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;
    border: none;

    background: rgba(79,110,247,0.25);

    cursor: pointer;

    transition:
        transform .2s ease,
        background .2s ease;
}

.carousel-dot:hover {
    transform: scale(1.15);
}

.carousel-dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

/*FOOTER*/
footer {
    margin-top: 60px;
    width: 100%;
    border: 3px solid #fff4cd;
    border-radius: 20px;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

footer h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #101820;
    font-weight: normal;
}

footer button {
    margin-top: 15px;
    padding: 5px;
    border: 1px solid #101820;
    border-radius: 5px;
    background-color: #fff4cd;
}

/* RESPONSIVE */

@media (max-width: 1020px) {

    .carousel-slide {
        flex: 0 0 calc((100% - 14px) / 2);
    }

    .bento {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "hero"
            "apps"
            "robots"
            "club"
            "extra"
            "right"
            "time"
        ;
    }

    .right-col {
        padding-left: 0;
    }

    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .robots-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .club-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .bento {
        gap: 12px;
    }

    .kikiprofile {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
        gap: 16px;
    }

    .avatar img {
        width: 130px;
        height: 130px;
    }

    .textspace h1 {
        font-size: 26px;
    }

    .textspace h3 {
        font-size: 16px;
    }

    .apps-grid,
    .robots-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .club-grid,
    .more-grid {
        grid-template-columns: 1fr;
    }

    .app-item img,
    .club-item img {
        width: 100px;
        height: 100px;
    }

    .robot-item img {
        width: 70px;
        height: 70px;
    }

    .app-item span,
    .robot-item span,
    .club-item span {
        font-size: 18px;
    }

    .carousel-slide {
        flex: 0 0 100%;
    }

    .timeline-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

