*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{
    --gold: gold;
    --dark-bg: #050505;
    --text-gray: #aaa;
}

body{
    background:var(--dark-bg);
    font-family:'Montserrat', sans-serif;
    overflow-x:hidden;
    line-height:1.6;
}


nav{
    position:fixed;
    width:100%;
    top:0;
    left:0;
    padding:25px 60px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:rgba(0,0,0,0.3);
    backdrop-filter:blur(20px);
    border-bottom:1px solid rgba(255,255,255,0.05);
    z-index:1000;
    transition: background 0.4s, backdrop-filter 0.4s;
}

nav:hover{
    background:rgba(0,0,0,0.6);
}

/* LOGO */

.logo{
    font-family:'Playfair Display', serif;
    font-size:2rem;
    letter-spacing:3px;
    position:relative;
    display:inline-block;
    padding-bottom:10px;
    color:#ff2400;
    animation:colorShiftPro 16s ease-in-out infinite;
    line-height:1.2;
}

@keyframes colorShiftPro{
    0%{ color:#ff1a1a; }
    10%{ color:#b30000; }
    20%{ color:#800000; }
    30%{ color:#ff0033; }
    40%{ color:#ff3366; }
    50%{ color:#ff66cc; }
    60%{ color:#cc66ff; }
    70%{ color:#6699ff; }
    80%{ color:#3366ff; }
    90%{ color:#ff0033; }
    100%{ color:#ff1a1a; }
}

.logo::before{
    content:"";
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    height:2px;

    background:linear-gradient(
        120deg,
        rgba(255,215,0,0.2),
        var(--gold),
        rgba(255,255,255,0.9),
        var(--gold),
        rgba(255,215,0,0.2)
    );

    background-size:200% 100%;
    
    box-shadow:
        0 0 8px var(--gold),
        0 0 15px rgba(255,215,0,0.6),
        0 0 25px rgba(255,215,0,0.4);

    animation:shineInternal 3s linear infinite;
}

@keyframes shineInternal{
    0%{ background-position:0% 50%; }
    100%{ background-position:200% 50%; }
}



.menu{
    display:flex;
    gap:50px;
}

.menu a{
    display:inline-block;
    color:var(--text-gray);
    text-decoration:none;
    font-size:0.9rem;
    letter-spacing:2px;
    position:relative;
    transition: color 0.4s, transform 0.4s;
    line-height:1.4;
}

.menu a::before{
    content:"";
    position:absolute;
    top:50%;
    left:-10px;
    width:5px;
    height:5px;
    background:var(--gold);
    border-radius:50%;
    opacity:0;
    transform:scale(0);
    transition:0.4s;
}

.menu a:hover{
    color:#fff;
    transform:translateY(-3px);
}

.menu a:hover::before{
    opacity:1;
    transform:scale(1);
}

.menu a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-8px;
    width:0;
    height:2px;
    background:linear-gradient(90deg, var(--gold), white);
    transition:0.5s;
}

.menu a:hover::after{
    width:100%;
}

.menu a:focus{
    outline:none;
}

.menu a:focus-visible{
    outline:2px solid var(--gold);
    outline-offset:4px;
}


.cta{
    padding:12px 26px;
    border-radius:30px;
    border:2px solid transparent;
    color:#fff;
    background:transparent;
    cursor:pointer;
    letter-spacing:1px;
    position:relative;
    overflow:hidden;
    z-index:1;
    transition: transform 0.3s ease;
    line-height:1.3;
}

.cta::before{
    content:"";
    position:absolute;
    inset:0;
    border-radius:30px;
    padding:2px;
    background:linear-gradient(270deg, #00f0ff, #8a2be2, #ff2d75, #00f0ff);
    background-size:400% 400%;
    animation:rgbBorder 6s linear infinite;
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    z-index:-1;
}

@keyframes rgbBorder{
    0%{background-position:0% 50%;}
    50%{background-position:100% 50%;}
    100%{background-position:0% 50%;}
}

.cta::after{
    content:"";
    position:absolute;
    inset:0;
    border-radius:30px;
    background:rgba(255,255,255,0.05);
    backdrop-filter:blur(6px);
    z-index:-1;
}

.cta:hover{
    transform:scale(1.05);
}



.hero{
    height:100vh;
    display:flex;
    align-items:center;
    gap:50px;
    padding:120px 80px;
}


.left img{
    width:280px;
    opacity:0;
    transform:translateX(-40px);
}

.left img.mostrar{
    animation:imageReveal 1.5s ease forwards;
}

/* TEXTO */

.reveal-text{
    font-family:'Playfair Display', serif;
    font-size:1.9rem;
    color:#b3001b;
    line-height:1.8;

    opacity:0;
    visibility:hidden;
}

.reveal-text.mostrar{
    opacity:1;
    visibility:visible;
}

.reveal-text span{
    opacity:0;
    animation:fadeLetter 0.3s ease forwards;
}


@keyframes imageReveal{
    from{
        opacity:0;
        transform:translateX(-60px);
    }
    to{
        opacity:1;
        transform:translateX(0);
    }
}

@keyframes fadeLetter{
    from{
        opacity:0;
        filter:blur(4px);
    }
    to{
        opacity:1;
        filter:blur(0);
    }
}

.frase-container{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.autor{
    color:#b3001b;
    font-size:1.2rem;
    align-self:flex-end;
    opacity:0;
    font-style:italic;
    transition:opacity 1s ease;
}

.autor.mostrar{
    opacity:1;
}

.reveal-text{
    white-space: pre-line;
}


@media (max-width:768px){

    body{
        background:
        radial-gradient(circle at center, #0a0a0a 0%, #050505 80%);
    }

    nav{
        padding:12px 15px;
    }

    .logo{
        font-size:1.2rem;
        letter-spacing:2px;
    }

    .hero{
        flex-direction:row;
        align-items:center;
        justify-content:center;
        gap:20px;
        padding:90px 15px;
        max-width:900px;
        margin:auto;
    }

    .left img{
        width:110px;
        border-radius:6px;
        box-shadow:
            0 0 20px rgba(0,0,0,0.8),
            0 0 10px rgba(255,255,255,0.05);
    }

    .right{
        max-width:65%;
    }

    .reveal-text{
        font-size:0.95rem;
    }

    .autor{
        font-size:0.7rem;
        color:#888;
    }

    .menu{
        position:fixed;
        top:0;
        left:0;
        width:100%;
        height:100vh;
        background:rgba(0,0,0,0.95);
        backdrop-filter:blur(20px);
        flex-direction:column;
        justify-content:center;
        align-items:center;
        gap:30px;
        transform:translateY(-100%);
        transition:0.4s;
    }

    .menu.active{
        transform:translateY(0);
    }

    .menu a{
        font-size:1.2rem;
        letter-spacing:3px;

        /* 🔥 ANDROID TOUCH */
        position:relative;
        overflow:hidden;
        padding:15px 25px;
        border-radius:12px;
        transition:transform 0.15s ease, background 0.2s;
    }

    .menu a:active{
        transform:scale(0.95);
        background:rgba(255,255,255,0.08);
    }

    .cta{
        display:none;
    }
}



.menu-icon{
    display:none;
    flex-direction:column;
    gap:5px;
    cursor:pointer;
    z-index:1100;
}

.menu-icon span{
    width:25px;
    height:2px;
    background:white;
    transition:0.3s;
}

.menu-icon.active span:nth-child(1){
    transform:rotate(45deg) translate(5px,5px);
}

.menu-icon.active span:nth-child(2){
    opacity:0;
}

.menu-icon.active span:nth-child(3){
    transform:rotate(-45deg) translate(5px,-5px);
}

@media (max-width:768px){
    .menu-icon{
        display:flex;
    }
}


@keyframes ripple{
    to{
        transform:translate(-50%, -50%) scale(3);
        opacity:0;
    }
}


@media (max-width:768px){

    .menu a{
    background:linear-gradient(
        90deg,
        #001f3f,
        #003366,
        #0059b3,
        #00aaff,
        #00e0ff,
        #ff4da6,
        #8a2be2
    );

    background-size:300%;

    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;

    animation:rgbTextMove 8s linear infinite;
}

    .menu a:active{
        transform:scale(0.95);
        filter:brightness(1.5);
    }
}

@keyframes rgbTextMove{
    0%{ background-position:0%; }
    100%{ background-position:200%; }
}
@media (max-width:768px){

    .autor{
        color:#ff2d55;

       

        opacity:0;
        transform:translateY(10px);

        transition:all 0.6s ease;
    }

    .autor.mostrar{
        opacity:1;
        transform:translateY(0);
    }

}

@media (max-width:768px){

    .reveal-text{
        font-size:clamp(0.95rem, 4vw, 1.15rem);
        line-height:1.6;

        text-align:left;

        word-break:normal;
        overflow-wrap:break-word;

        padding:0 8px;
    }

}
.reveal-text{
    word-break:keep-all;
    overflow-wrap:normal;
}

.reveal-text .word{
    display:inline-block; 
}

.reveal-text .word span{
    opacity:0;
    animation:fadeLetter 0.3s ease forwards;
}