*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*:no-button {
  border: none;  
}

body{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #212529;
    background: linear-gradient(120deg, #2a0a0a, #392020, #391919, #684848);
    background-size: 300% 300%;
    animation: gradienteRojizo 12s ease infinite;
}

header {
    background-color: #2c2c2c99;
    color: #fff;
    padding: 1rem;
    border-bottom: 1px solid #444;
    position: relative;
    z-index: 1;
}

header a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    width: 100%;
    transition: color 0.3s ease;
}

header a:hover {
    color: #ddd;
}

header a svg {
    margin-right: 0.5rem;
    margin-top: 0.2rem;
}

h1 {
    font-size: 1.5rem;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(100vh - 148px);
}

main #experiments {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    padding: 2.5% 5%;
}
.card-link {
    text-decoration: none;
    color: inherit;
}

.card{
    width: 300px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 4px 8px #00000033;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
    position: relative;
    animation: fadein .5s ease;
    background-color: #2c2c2caa;
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-15px) perspective(900px) rotateX(6deg) rotateY(-5deg);
    box-shadow: 0 8px 16px #00000066;
    opacity: 1;
}

.card-image{
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    opacity: 0.7;
}

.card-body {
    height: 80px;
    padding: 1rem;
    text-align: center;
    color: #fff;
    transition: background-color 0.3s ease;
}

.card-footer {
    padding: 0.5rem 1rem;
    border-top: 1px solid #444;
    color: #fff;
    text-align: right;
    transition: background-color 0.3s ease;
}


footer {
    background-color: #2c2c2c99;
    color: #fff;
    text-align: center;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #444;
    position: relative;
    z-index: 1;
}

footer p {
    font-size: 0.9rem;
    text-align: right;
}

footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ddd;
}

footer a img {
    border: 1px solid #444;
    transition: opacity 0.3s ease;
}

footer a img:hover {
    opacity: 0.8;
}

@keyframes fadein {
    0% {
        opacity: 0;
        transform: perspective(900px) rotateX(24deg) rotateY(-18deg) translateZ(-120px) translateY(24px) scale(0.9);
    }
    60% {
        opacity: 1;
        transform: perspective(900px) rotateX(-6deg) rotateY(5deg) translateZ(24px) translateY(-4px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: perspective(900px) rotateX(0deg) rotateY(0deg) translateZ(0) translateY(0) scale(1);
    }
}

@media (max-width: 800px) {
    .text {
        display: none;
    }
}

@keyframes gradienteRojizo {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}