/*
    Paleta de colores:
    #4488EE
    #E2EAFF
    #18233F
*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'montserrat', sans-serif;
}

body {
    background-color: #E2EAFF;
    color: #18233F;
}

*{
    scroll-behavior: smooth;
}

/* HEADER */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    background: white;
    position: sticky;
    top: 0;
    box-shadow: 0 2px 5px #0001;
    z-index: 10;
}

.header a {
    margin-left: 10px;
    text-decoration: none;
    color: #18233F;
}

.header__logo {
    width: 40px;
    height: 40px;
}

/* HERO */
.hero {
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.button_bc {
    margin: 10px;
    display: inline-block;
    height: 44px;
    border-radius: 8px;
    background-color: #48e;
    overflow: hidden;
    position: relative;
}

.button_bc::before {
    content: '';
    background-color: #0003;
    display: block;
    height: 200%;
    width: 140%;
    position: absolute;
    transition: top .6s, left .6s;
    border-radius: 50%;
    top: 100%;
    left: 30%;
}

.button_bc:hover::before {
    content: '';
    top: -35%;
    left: -20%;
}

.button{
    margin: 0;
    display: inline-block;
    background-color: transparent;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid #48e;
    overflow: hidden;
    position: relative;
}

/* SECTIONS */
.section {
    padding: 40px 15px;
    max-width: 1000px;
    margin: auto;
}

/* CARD */
.card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 10px #0001;
}

h2 {
    margin-bottom: 15px;
}

.card p {
    margin-bottom: 10px;
}

/* TECH */
.tech {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tech span {
    background: #18233F;
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
}

span[title="Aprendiendo"] {
    background-color: #183f35;
}

/* PROJECTS */
.projects__grid {
    display: grid;
    gap: 2rem;
}

.project-card {
    background: #111;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #222;
    transition: transform 0.2s ease;
}

.project-card:hover {
    transform: translateY(-2px);
}

/* CONTENEDOR */
.project-card__preview {
    display: flex;
    justify-content: center;
    padding: 2rem;
    background: radial-gradient(circle at top, #1a1a1a, #0a0a0a);
}

/* DEVICE */
.device {
    width: 100%;
    max-width: 800px;
    perspective: 1200px;
}

/* MACBOOK FRAME */
.device--macbook {
    background: #111;
    border-radius: 20px;
    padding: 12px;
    box-shadow:
        0 25px 50px rgba(0,0,0,0.6),
        0 0 0 1px #222;
    transition: all 0.4s ease;
    position: relative;
}

/* PANTALLA */
.device__screen {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: black;
}

/* IMAGEN */
.device__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* EFECTO HOVER */
.project-card:hover .device--macbook {
    transform: rotateX(5deg) rotateY(-5deg) scale(1.02);
}

.project-card:hover .device__image {
    transform: scale(1.05);
}

/* OVERLAY */
.device__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .device__overlay {
    opacity: 1;
}

/* BOTÓN */
.device__button {
    background: white;
    color: black;
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s;
}

.device__button:hover {
    transform: scale(1.05);
}

/* NOTCH FAKE */
.device--macbook::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #222;
    border-radius: 10px;
    z-index: 20;
}

@media (max-width: 700px) {
    .project-card__preview {
        padding: 0;
    }
    .project-card:hover .device__image {
        transform: scale(1.08);
    }

    .device--macbook {
        padding: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .device__screen {
        border-radius: 0;
        aspect-ratio: 9/12;
    }

    .device--macbook::before {
        display: none;
    }

}

/* CONTENIDO */
.project-card__header {
    padding: 1.5rem;
}

.project-card__title {
    color: #ededed;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.project-card__description {
    color: #bbb;
    font-size: 0.95rem;
}

/* TECNOLOGÍAS */
.project-card__tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1.5rem 1rem;
}

.project-card__tech-item {
    color: #fff;
    background-color: #ededed;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 0.8rem;
    align-self: center;
}

.tech-logo {
    width: 30px;
    height: 30px;
}

/* LINKS */
.project-card__links {
    padding: 1rem 1.5rem;
    border-top: 1px solid #222;
}

.project-card__link {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
}

.currently__card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.currently__features {
    padding-left: 1rem;
    color: #222;
}

.currently__features li {
    margin-bottom: 0.3rem;
}

.currently__tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.currently__tech span {
    background-color: #0001;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 0.8rem;
}

.currently__status {
    margin-top: 20px;
    font-weight: bold;
    color: #4caf50;
}

/* CONTACT */
.contact {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.contact a {
    background: #18233F;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    background: #18233F;
    color: white;
}