@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ======================= */
/* BODY */
/* ======================= */

body{

    font-family: 'Orbitron', sans-serif;

    min-height: 100vh;

    background:
    linear-gradient(
    rgba(0,0,0,.75),
    rgba(0,0,0,.85)),
    url("img/fondo.jpg");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    background-attachment: fixed;

    padding: 40px 20px;

    overflow-x: hidden;
}

/* ======================= */
/* TITULO */
/* ======================= */

.titulo{

    text-align: center;

    font-size: 3rem;

    color: #7dd3fc;

    margin-bottom: 40px;

    letter-spacing: 4px;

    text-shadow:
    0 0 10px #38bdf8,
    0 0 25px #0ea5e9,
    0 0 45px #0284c7;

    animation: brillo 2s infinite;

    word-break: break-word;
}

/* ======================= */
/* BOTON REGRESAR */
/* ======================= */

.btn-regresar{

    position: fixed;

    top: 20px;

    left: 20px;

    padding: 14px 20px;

    background:
    linear-gradient(
    135deg,
    #0f172a,
    #1e293b);

    border: 2px solid #38bdf8;

    border-radius: 12px;

    color: white;

    text-decoration: none;

    font-weight: bold;

    box-shadow:
    0 0 15px rgba(56,189,248,.5);

    transition: .3s;

    z-index: 999;
}

.btn-regresar:hover{

    background:
    linear-gradient(
    135deg,
    #1e3a8a,
    #2563eb);

    transform: scale(1.05);

    box-shadow:
    0 0 25px rgba(56,189,248,.9);
}

/* ======================= */
/* CONTENEDOR */
/* ======================= */

.container{

    width: 100%;

    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;

    justify-items: center;

    align-items: stretch;
}

/* ======================= */
/* TARJETAS */
/* ======================= */

.card{

    width: 100%;

    max-width: 260px;

    background:
    linear-gradient(
    145deg,
    rgba(15,23,42,.95),
    rgba(30,41,59,.95));

    border: 3px solid #334155;

    border-radius: 20px;

    overflow: hidden;

    text-decoration: none;

    color: white;

    transition: .35s;

    position: relative;

    box-shadow:
    0 0 15px rgba(0,0,0,.5);
}

/* EFECTO ILUMINADO */

.card::before{

    content: "";

    position: absolute;

    inset: 0;

    background:
    linear-gradient(
    45deg,
    transparent,
    rgba(56,189,248,.25),
    transparent);

    opacity: 0;

    transition: .4s;
}

.card:hover::before{

    opacity: 1;
}

.card:hover{

    transform:
    translateY(-10px)
    scale(1.03);

    border-color: #38bdf8;

    box-shadow:
    0 0 20px #38bdf8,
    0 0 40px rgba(56,189,248,.6),
    0 0 60px rgba(14,165,233,.5);
}

/* ======================= */
/* IMAGEN */
/* ======================= */

.card img{

    width: 100%;

    height: 190px;

    object-fit: cover;

    border-bottom: 3px solid #334155;
}

/* ======================= */
/* CONTENIDO */
/* ======================= */

.card-content{

    padding: 18px;
}

.card-content h3{

    font-size: 1.2rem;

    margin-bottom: 10px;

    color: #7dd3fc;

    text-shadow:
    0 0 10px rgba(56,189,248,.7);
}

.card-content p{

    font-size: .9rem;

    color: #cbd5e1;

    line-height: 1.5;
}

.centro{

    color: white;

    text-align: center;

    font-size: 1rem;

    line-height: 1.4;

    font-weight: bold;

    text-shadow: none;

    animation: none;
}

/* ======================= */
/* ANIMACION */
/* ======================= */

@keyframes brillo{

    0%{

        text-shadow:
        0 0 10px #38bdf8;
    }

    50%{

        text-shadow:
        0 0 20px #38bdf8,
        0 0 40px #0ea5e9,
        0 0 60px #0284c7;
    }

    100%{

        text-shadow:
        0 0 10px #38bdf8;
    }
}

/* ================================================= */
/* ===== TV / MONITORES GRANDES ===== */
/* ================================================= */

@media (min-width:1600px){

    .container{

        max-width: 1600px;

        grid-template-columns: repeat(4,1fr);
    }

    .titulo{

        font-size: 5rem;
    }

    .card{

        max-width: 320px;
    }

    .card img{

        height: 230px;
    }

}

/* ================================================= */
/* ===== LAPTOPS ===== */
/* ================================================= */

@media (max-width:1200px){

    .container{

        grid-template-columns: repeat(3,1fr);
    }

    .titulo{

        font-size: 2.6rem;
    }

}

/* ================================================= */
/* ===== TABLETS ===== */
/* ================================================= */

@media (max-width:900px){

    body{

        background-attachment: scroll;

        padding: 30px 15px;
    }

    .container{

        grid-template-columns: repeat(2,1fr);

        gap: 20px;
    }

    .titulo{

        font-size: 2.2rem;

        letter-spacing: 2px;
    }

    .card{

        max-width: 100%;
    }

    .card img{

        height: 200px;
    }

    .btn-regresar{

        padding: 10px 16px;

        font-size: .9rem;
    }

}

/* ================================================= */
/* ===== CELULARES ===== */
/* ================================================= */

@media (max-width:700px){

    body{

        padding: 90px 10px 25px;
    }

    .titulo{

        font-size: 1.8rem;

        margin-bottom: 25px;

        letter-spacing: 1px;
    }

    .container{

    width: 100%;

    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));

    gap: 25px;

    justify-items: center;

    align-items: stretch;
}

.card{

    width: 100%;

    max-width: 260px;
}
    .card img{

        height: 220px;
    }

    .card-content{

        padding: 15px;
    }

    .card-content h3{

        font-size: 1rem;
    }

    .card-content p{

        font-size: .85rem;
    }

    .btn-regresar{

        top: 10px;

        left: 10px;

        padding: 8px 14px;

        font-size: .8rem;
    }

}

/* ================================================= */
/* ===== CELULARES PEQUEÑOS ===== */
/* ================================================= */

@media (max-width:480px){

    body{

        padding: 80px 8px 20px;
    }

    .titulo{

        font-size: 1.4rem;
    }

    .card{

        border-radius: 16px;
    }

    .card img{

        height: 180px;
    }

    .card-content h3{

        font-size: .95rem;
    }

    .card-content p{

        font-size: .8rem;
    }

    .btn-regresar{

        font-size: .7rem;

        padding: 7px 10px;
    }

    /* ================================= */
/* ===== RESPONSIVE MOVIL ===== */
/* ================================= */

@media (max-width:768px){

    body{

        padding: 90px 12px 20px;

        background-attachment: scroll;
    }

    .titulo{

        font-size: 1.8rem;

        letter-spacing: 1px;

        margin-bottom: 25px;
    }

    .container{

        grid-template-columns: 1fr;

        gap: 18px;
    }

    .card{

        max-width: 100%;
    }

    .card img{

        height: 220px;
    }

    .btn-regresar{

        top: 10px;

        left: 10px;

        padding: 8px 12px;

        font-size: .8rem;
    }

}

}