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

body{
    /* background-image: url(./imagen/pexels-photo-2387793.jpeg); */
    
    background-size: cover;
    background-position: center;
    height: 100vh;
    overflow-x: hidden;
    font-family: 'Times New Roman', Times, serif;
}

.sidebar{
    width: 80px;
    height: 100%;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
    background-color: rgba(9, 57, 72, 0.279);
    border-right: 1px solid #00000000;
    transition: 0.5s;
    backdrop-filter: blur(5px);
    position: fixed;

}

.sidebar a{

    display: block;
    color :rgb(0, 0, 0);
    text-decoration: none;
    padding: 12px 0px;
    text-align: center;
}

.sidebar a:hover{
    background-color: #17c5d5;
    border-radius: 10px;
}
.sidebar:hover{
    width: 250px;
}
.sidebar-nav{
    padding: 20px 0;
    list-style: none;
}

.nav-item{
    position: relative;
    padding: 15px 25px;
    margin: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}

.nav-item:hover{
    color: white;
    transform: translateX(10px);
}

.nav-item i{
    color: rgb(255, 255, 255);
    font-size: 1.5em;
    margin-right: 20px;
    margin-left: -15px;
    width: 25px;

}

.nav-item span{
    color: rgb(0, 0, 0);
    font-size: 1.1em;
    font-weight: 500;
    opacity: 0;
    transition: 0.3s;

}

.nav-item:hover span{
    opacity: 1;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: rgba(0, 221, 255, 0.442);
    transform:scale(0);
    transition: transform 0.3s;
}
.nav-item:hover::before {
    transform: scaleY(1);
}

.logo{
    color: #ffff;
    text-align: center;
    padding: 20px 0;
    font-size: 1.5em;
    border-bottom: 1px solid #00000048;
}

.container-img{
    width: 320px;
    height: 320px;
    position: relative;
    cursor: pointer;
    animation: float 4s ease-in-out infinite;
    align-items: center;
    display: flex;
    justify-content: center;
}
.center-img {
    position: fixed;
    display: flex;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    margin-left: 0;
    min-height: unset;
    z-index: 10;
    align-items: center;
    justify-content: center;

}
.profile{
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.container-img::before{
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: linear-gradient(45deg, #00eaff, #aa01ff);
    border-radius: 50%;
    z-index: -1;
    animation: rotate 4s linear infinite;
    filter: blur(5px);
    opacity: 0.7;

}

.status-indicador{
    position: relative;
    width: 20px;
    height: 20px;
    background-color: rgb(82, 0, 120);
    border: 2px solid #fff;
    border-radius: 50%;
    bottom: 10px;
    right: 10px;
    animation: pluse 2s infinite;

}

.container-img:hover .profile{
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(19, 165, 227, 0.5);
}

.container-img:hover::before{
    opacity: 1;
    filter: blur(25px);

}

.container-img:hover .status-indicador{
    background-color: #0dc1dc;
    animation: pluse 2s infinite;
    box-shadow: 0 0 10px rgb(13, 192, 220);
}

@keyframes float {
    0%, 100% {transform: translateY(0);}
    50% {transform: translateY(-10px);}
}

@keyframes rotate {
    0% {transform: rotate(0deg);}
    100% {transform: rotate(360deg);}
}

@keyframes pluse {
    0%, 100% {transform: scale(1);}
    50% {transform: scale(1.5);}
}

.container2{
    box-shadow:
    0 28px 24px 0 rgba(96, 224, 230, 0.5),
    18px 0 24px 0 rgba(96, 224, 230, 0.5),
    -18px 0 24px 0  rgba(96, 224, 230, 0.5);
    backdrop-filter: blur(10px);
    animation: float 5s ease-in-out infinite;
    opacity: 0.8;
    width: 30%;
    height: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    font-size: 2em;
    color: #fffdfd;
    left: 390px ;
    top: 4%;
    border-radius: 10px;
}
.container{
    padding: 24px 32px;
    box-sizing: border-box;
    box-shadow: 
    0 28px 24px 0 rgba(96, 224, 230, 0.5),
    18px 0 24px 0 rgba(96, 224, 230, 0.5),
    -18px 0 24px 0  rgba(96, 224, 230, 0.5);
    backdrop-filter: blur(10px);
    animation: float 5s ease-in-out infinite;
    opacity: 0.8;
    width: 50%;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    font-size: 2em;
    color: #fffdfd;
    left: 300px ;
    top: 35%;
}
.btn-flip {
opacity: 1;
outline: 0;
color: #1dd0eb;
line-height: 40px;
position: relative;
text-align: center;
letter-spacing: 1px;
display: inline-block;
text-decoration: none;
font-family: 'Open Sans', sans-serif;
text-transform: uppercase;
}

.btn-flip:hover::after {
opacity: 1;
transform: translateY(0) rotateX(0);
}

.btn-flip:hover::before {
opacity: 0;
transform: translateY(50%) rotateX(90deg);
}

.btn-flip::after {
top: 0;
left: 0;
opacity: 0;
width: 100%;
color: #7b7b94;
display: block;
transition: 0.5s;
position: absolute;
background: #0fe7e7;
content: attr(data-back);
transform: translateY(-50%) rotateX(90deg);
}

.btn-flip::before {
top: 0;
left: 0;
opacity: 1;
color: #8f8fb0;
display: block;
padding: 0 30px;
line-height: 40px;
transition: 0.5s;
position: relative;
background: #6e04c5;
content: attr(data-front);
transform: translateY(0) rotateX(0);
}
.word {
display: flex;
align-items: center;
justify-content: center;
width: 450px;
height: 80%;
padding: 24px 32px;
box-sizing: border-box;
}

.word:hover .char::before {
transition: 0.6s ease;
color: rgba(255, 255, 255, 0.8);
animation: falls 1s ease forwards;
}

.word:hover .char:nth-child(1)::before {
animation: falls 0.9s ease 0.2s forwards;
}

.word:hover .char:nth-child(2n + 3)::before {
animation: falls 1s ease 0.3s forwards;
}

.char {
flex: 1;
position: relative;
}

.char::before {
content: attr(data-content);
position: absolute;
top: 0;
color: transparent;
text-shadow: none;
}
@keyframes falls {
0% {
    opacity: 0;
    top: 0;
}
20% {
    opacity: 1;
}
100% {
    opacity: 0;
    top: 100px;
}
}


@keyframes infiniteLoop {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(calc(-200px * 10), 0, 0);
    }
}


.contact-form {
    width: 80vw;           
    max-width: 700px;      
    padding: 60px 50px;    
    margin: 60px auto;     
    background: rgba(255, 255, 255, 0.251);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    position: relative;    
    left: unset;           
    top: unset;            
    transform: none;       
}

.contact-form h2 {
    text-align: center;
    margin-bottom: 18px;
    color: #ffffff;
}

.contact-form label {
    display: block;
    margin-top: 12px;
    margin-bottom: 4px;
    color: #ffffff;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #17c5d55b;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 1em;
    background: #f8fafd53;
}

.contact-form button {
    width: 100%;
    padding: 10px;
    background: #17c5d5;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.2s ease;
}

.contact-form button:hover {
    background: #093948;
}


.hero-section {
    display: flex;
    min-height: 300px;
    align-items: center;
    justify-content: center;
    
}

.card-container {
    display: flex;
    gap: 50px;
    width: 100%;
    justify-content: center;
    margin-top: -270px;
}

.card {
    position: relative;
    list-style: none;
    width: 220px;
    transition: .3s ease;

}

.card::before{
    content: '';
    display: block;
    padding: 150%;
    width: 100%;
}

.card-background {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    top : 0;
    border-radius: 20px;
    background-size: 350px;
    background-position: center;
    filter: brightness(0.2) saturate(1) contrast(1);
    transform-origin: bottom;
    transform: scale(1) translateZ(0);
    transition: .3s ease;
}

.card:hover .card-background {
    transform: scale(1.15) translateZ(0);
    background-size: 260px;
    filter: brightness(1) saturate(1) contrast(1);
    
}

.card-container:hover .card:not(:hover)  {
    transform: scale(.9)
}

.card-container:hover > .card:not(:hover) .card-background,
.card-container:hover > .card:not(:hover) .card-category {
    filter: brightness(.5) saturate(0) contrast(1.2) blur(20px);
}


.content{
    top : 50%;
    left: 0;
    padding: 25px;
    position: absolute;

}

.card-category {
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.card-heading {
    color: #fff;
    font-size: 25px;
    line-height: 1;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, .2);
}

.spinner-box {
position: absolute;
top: 30%;
left: 50%;
transform: translate(-50%, -50%);
width: 800px;
height: 800px;
display: flex;
justify-content: center;
align-items: center;
background-color: transparent;
position: relative;
}

.leo {
width: 200px;
height: 200px;    
position: absolute;
display: flex;
justify-content: center;
align-items: center;
border-radius: 50%;
}


.blue-orbit {
width: 400px;
height: 400px;
border: 5px solid #91daffa5;
animation: spin3D 3s linear .2s infinite;
}


.green-orbit {
width: 320px;
height: 320px;
border: 5px solid #91ffbfa5;
animation: spin3D 2s linear 0s infinite;
}


.red-orbit {
width: 260px;
height: 260px;
border: 5px solid #ffca91a5;
animation: spin3D 1s linear 0s infinite;
}


.white-orbit {
width: 210px;
height: 210px;
border: 6px solid #ffffff;
animation: spin3D 10s linear 0s infinite;
}

.w1 {
transform: rotate3D(1, 1, 1, 90deg);
}

.w2 {
transform: rotate3D(1, 2, .5, 90deg);
}

.w3 {
transform: rotate3D(.5, 1, 2, 90deg);
}


@keyframes spin3D {
from {
    transform: rotate3d(0.5, 0.5, 0.5, 360deg);
}
to {
    transform: rotate3d(0deg, 0deg, 0deg, 0deg);
}
}

.wave-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -220px; 
    background: #10101000;
    color: #fff;
    font-family: 'Arial', sans-serif;
    height: auto; 
    min-height: 0px; 
}
.wave-text span {
    display: inline-block;
    font-size: 4rem;
    animation: wave 2s ease-in-out infinite;
}

.wave-text span:nth-child(1) {
    animation-delay: 0s;
}
.wave-text span:nth-child(2) {
    animation-delay: 0.2s;
}
.wave-text span:nth-child(3) {
    animation-delay: 0.4s;
}
.wave-text span:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}
