:root {
    --bg: #151515;
    --primary: white;
    --container: rgba(26, 25, 26, 0.9);
    --container-border: rgb(42, 41, 42);
    --width: 400px;
    --height: 250px;
    --border: 2px;
    --gradient-1-size: 25%;
    --gradient-2-size: 50%;
}

body {
    margin: 0;
    padding-top: 40px;
    background-color: var(--bg);
    color: var(--primary);
    font-size: 30px;
    min-height: 100vh;
    font-family: "Work Sans", sans-serif;
    -webkit-tap-highlight-color: transparent;
}

*,
*:before,
*:after {
    box-sizing: border-box;
    position: relative;
}

img {
    width: 42px;
    border-radius: 8px;
    margin-right: 8px;
    -khtml-user-select: none;
    -o-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-buttons {
    gap: 20px;
}

.social-btn {
    color: rgb(161, 156, 160);
    text-decoration: none;
    transition: color 0.2s;
}

.social-btn:hover {
    color: white;
}

.containers {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.card {
    display: flex;
    align-items: center;
    width: var(--width);
    height: var(--height);
}

.card:hover > .container-border::after {
    opacity: 1;
}

.card-content {
    display: flex;
    flex-direction: column;
    padding-left: 40px;
    z-index: 3;
}

.card-content > a {
    white-space: nowrap;
}

.container-border {
    --x-px: calc(var(--x) * 1px);
    --y-px: calc(var(--y) * 1px);
    background: var(--container-border);
    border-radius: 20px;
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.container-border::before,
.container-border::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    border-radius: inherit;
    background: url('....') no-repeat center center;
    background-size: cover;
    transition: opacity 0.4s ease;
}

.container-border::before {
    z-index: 0;
    opacity: 0;
}

.container-border::after {
    z-index: 1;
    opacity: 1;
    background: radial-gradient(circle at var(--x-px) var(--y-px), transparent 0%, transparent 20%, rgba(0, 0, 0, 0.8) 100%);
}

.card:hover > .container-border::before {
    opacity: 1;
}

.container {
    background: var(--container);
    border-radius: 18px;
    z-index: 1;
    position: absolute;
    padding: 0 1rem 0 2rem;
    inset: var(--border);
}

.container-tp {
    background: linear-gradient(90deg, rgba(26, 25, 26, 1) 0%, rgba(26, 25, 26, 0.2) 100%);
}

.tp-bg {
    background-image: url("/resources/tp2.png");
    background-size: cover;
    border-radius: 18px;
    z-index: 1;
    position: absolute;
    padding: 0 1rem 0 2rem;
    inset: var(--border);
    opacity: 0.5;
}

h1 {
    font-size: 25px;
    margin: 0px;
}

.link {
    display: flex;
    align-items: center;
    margin: 2px;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.678);
    transition: 0.2s;
    gap: 5px;
    text-decoration: none;
}

.link:hover {
    color: #6e3480;
}

.center img {
    width: 60px; 
    height: 60px;
    display: block;
    margin: 0 auto 10px;
}

.graphic-design-link {
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.graphic-design-link:hover {
    color: white;
}

.kat2-img {
    width: 140px !important; 
    height: auto !important; 
}

.kat-title {
    font-weight: bold;
    font-size: 50px;
    color: rgba(204, 48, 235, 0.6);
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.kat-title:hover {
    color: rgba(200, 114, 218, 0.6);
}

.version-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1); 
    color: #bebebe; 
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 8px;
    margin-right: 5px;
    text-transform: uppercase;
}

.card:hover > .container-border::after {
    opacity: 1;
}

.container-de-tecnic {
    --x-px: calc(var(--x) * 1px);
    --y-px: calc(var(--y) * 1px);
    background: var(--container-border);
    border-radius: 20px;
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.container-de-tecnic::before,
.container-de-tecnic::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    border-radius: inherit;
    background: url("resources/tp2.png") no-repeat center center;
    background-size: cover;
    transition: opacity 0.4s ease;
    border-style: solid;
    border-width: 2px;
    border-color: var(--container-border);
}

.container-de-tecnic::before {
    z-index: 0;
    opacity: 0;
}

.container-de-tecnic::after {
    z-index: 1;
    opacity: 1;
    background: radial-gradient(circle at var(--x-px) var(--y-px), transparent 0%, transparent 20%, rgba(0, 0, 0, 0.8) 100%);
}

.card:hover > .container-de-tecnic::before {
    opacity: 1;
}

/* Ajustes para móviles */
@media screen and (max-width: 768px) {
    body {
        font-size: 16px;
        padding: 20px 10px;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    /* Ajustes en el logo y título */
    .kat2-img {
        width: 90px !important;
    }

    .kat-title {
        font-size: 26px; 
        text-align: center;
        margin-top: 5px;
    }

    /* Centrar y distribuir social buttons */
    .social-buttons {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
        width: 100%;
        max-width: 400px;
    }

    .social-btn {
        width: 36px;
        height: 36px;
    }

    .social-btn i {
        font-size: 26px;
    }

    /* Asegurar que las tarjetas se vean bien */
    .containers {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 400px;
        gap: 15px;
    }

    .container-border {
        border: 2px solid rgb(0, 0, 0); /* Se reduce el grosor del borde */
        border-color: var(--container-border);
        /*filter: drop-shadow(1.5px 1.5px 0px black) drop-shadow(-1.5px -1.5px 0px black); /* Sombras más sutiles */
        padding: 12px; /* Ligero ajuste en el padding */
    }

    .link {
        font-size: 15px;
    }

    .version-badge {
        font-size: 10px;
        padding: 3px 6px;
    }

    /* Ajuste del enlace "Web design is my passion" */
    .graphic-design-link {
        bottom: 15px;
        right: 15px;
        font-size: 10px;
    }
}






/*Gracias por tanto chatgpt*/
