*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
h1, h2, h3{
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}
.title{
    text-align: center;
    margin-top: 2%;
    text-decoration: solid;
    text-shadow: 2px 2px #000000;
    color: white;
}
.animation-iframe{
    border-image-repeat: stretch;
    width: 100%;
    max-width: none;
    user-select: none;
}
.frameContainer{
    border: 2px solid #fff0;
    border-radius: 25px;
    display: block;
    position: relative;
    width: 55%;
    height: 45%;
    max-width: 600px;
    max-height: 500px;
    margin: 5% auto;
    padding: 10px 0;
    overflow: hidden;
}
.frameContainer iframe {
    width: 100%;
    height: 100%;
    border: 2px solid #fff0;
    position: relative;
    display: block;
}
.music-player {
    border: 2px solid #fff0;
    display: grid;
    place-items: center;
    z-index: 3;
}
.music-player iframe {
    opacity: 0.8;
}
.logo {
    width: 46px;
    height: 46px;
    align-items: center;
    padding-left: 5px;
    padding-top: 3px;
}
.logo svg {
    height: 100%;
    width: auto;
}
nav {
    display: flex;
    align-items: center;
    padding: 5px 5px;
    z-index: 2;
}
.nav-links{
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif, sans-serif;
}
.nav-links li{
    margin: 0 5px;
}
.nav-links a {
    text-decoration: none;
    color: #000000;
    font-size: 1.3rem;
    transition: color 0.3s;
}
.menu-toggle{
    display: none;
}
.hamburger{
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 21px;
    position: relative;
    margin-left: auto;
}
.hamburger span {
    background: rgb(0, 0, 0);
    height: 3px;
    width: 100%;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}
.modal-overlay{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.6);
    z-index:1000;
    justify-content:center;
    align-items:center;
}
.modal-window{
    background:#1e1e2e;
    border-radius:12px;
    padding:2rem;
    max-width:400px;
    width:90%;
    color:white;
    position:relative;
}
.modal-window h2{
    text-align: center;
}
.modal-window p{
    margin-top: 10px;
    font-size: larger;
}
.modal-button{
    position:absolute;
    top:1rem;
    right:1rem;
    background:none;
    border:none;
    color:white;
    font-size:1.2rem;
    cursor:pointer;
}


/*Responsive*/
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 44px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 44px);
        background: #33577a !important;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: left 0.3s ease;
    }
    .nav-links li {
        margin: 1rem 0;
    }
    .nav-links a {
        font-size: 1.5rem;
    }
    .menu-toggle:checked ~ .nav-links {
        left: 0;
    }
    /* Animación hamburguesa a X */
    .menu-toggle:checked ~ .hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .menu-toggle:checked ~ .hamburger span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle:checked ~ .hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    .container{
        min-height: calc(100vh - 44px);
        height: auto;
        padding: 0;
        margin: 0;
    }
    .frameContainer{
        width: 55%;
        height: 32%;
    }
}
/* Backgrounds */
.animated-gradient {
    background: linear-gradient(-45deg, #234cd54f, #d523a54f, #d5ab234f, #23d5524f);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.nav-background{
    background-color: white;
    opacity: 0.8;
}
.parallax-background {
    background: linear-gradient(135deg, #ff6b6b, #9e45d1, #4ecdc4, #5845d1);
    background-size: 200% 200%;
    position: relative;
    height: 100%;
    animation: parallaxShift 20s ease infinite;
    z-index: -2;
}
@keyframes parallaxShift {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}
.background-layer {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgb(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgb(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: layerMove 15s ease-in-out infinite;
    will-change: transform;
    transform: translateZ(0);
    contain: strict; 
    z-index: -1;
}
@keyframes layerMove {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(0, -100%); }
    50% { transform: translate(0, 0); }
    75% {transform: translate(-100%, 0); }
}
.border-rainbow {
    box-shadow: 2px 4px 15px rgba(0,0,0,0.3);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.3);
    padding: 6px;
    border: 2px solid transparent;
    animation: colorful 4s ease-in-out infinite alternate;
}
.border-rainbow:hover{
    background: rgba(24, 95, 208, 0.8);
}
.border-rainbow:hover span{
    color: #eaff00;
}
@keyframes colorful {
    0%, 100% {border-color: transparent;}
    12% {border-color: red}
    24% {border-color: orange}
    36% {border-color: yellow}
    48% {border-color: green}
    60% {border-color: blue}
    72% {border-color: indigo}
    84% {border-color: purple}
}
/* Palabras y Emojis */
.container{
    height:  calc(100vh - 57px);
    width: 100%;
    position: relative;
    overflow: hidden;
    z-index: -1;
}
.symbols {
    position: absolute;
    user-select: none;
    pointer-events: none;
    will-change: transform;
    animation: opacity 3s ease-in-out infinite;
}
@keyframes opacity {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}
.words {
    position: absolute;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: bold;
    user-select: none;
    z-index: -1;
}
.words-layer {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.91);
    transition: top 0.8s ease, left 0.8s ease, opacity 2s ease-in-out;
}
.glow {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
                0 0 20px rgba(132, 132, 132, 0.6),
                0 0 30px rgba(0, 0, 0, 0.4);
    animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.025; }
    50% { opacity: 0.95; }
}
.rotate {
    animation: rotation 10s ease-in-out infinite;
}
@keyframes rotation {
    0%, 100% { transform: rotate(-20deg); }
    50% { transform: rotate(20deg); }
}
.floating{
    animation: floatSlow 8s ease-in-out infinite;
}
@keyframes floatSlow {
    0%, 100% { 
        transform: translate(0, 0);
    }
    33% { 
        transform: translate(0, -8px);
    }
    66% { 
        transform: translate(0, 8px);
    }
}
.glow.floating{
    animation:
        glowPulse 3s ease-in-out infinite,
        floatSlow 8s ease-in-out infinite;
}