/*General Styles*/
:root{
    --headers:#ffffff;
    --p:#ffffff;
    --bg-color:#0C0C0C;
    --bg-button:#072C63;
}

.date{
    background-color: #131313;
    padding:10px 20px;
    border-radius: 16px;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 14px;
    font-family: 'Arial';
    font-weight: 700;
    color: #ffffff
}

/*Fonts*/
    @font-face {
        font-family: 'DM-Sans';
        src: url(./fonts/DMSans.ttf);
    }
    @font-face {
        font-family: 'Momo';
        src: url(./fonts/Momo.ttf);
    }
    @font-face {
        font-family: 'Pattaya';
        src: url(./fonts/Pattaya.ttf);
    }
/*Fonts End*/

h2{
    font-size: 52px;
    font-weight: 500;
}
h3{
    font-size: 21px;
    font-weight: 400;
}
body{
    margin: 0 auto;
    background-color: var(--bg-color);
    font-family:'DM-Sans';
    color:var(--headers);
    max-width:1600px;
    padding:1rem;
    padding-bottom:50px;
    display:flex;
    flex-direction: column;
    gap:50px;
}
main{
    display:flex;
    flex-direction: column;
    gap:55px;
}
.button{
    background-color: var(--bg-button);
    color:#ffffff;
    text-decoration: none;
    padding:12px 40px;
    border-radius: 100px;
    font-size: 18px;
    font-weight: 500;
}
.button:hover{
    background-color: #0A4AC0;
    transition: background-color 0.3s ease;
}
    .code-box-default{
        
        padding: 16px;
        border-radius: 12px;
        border:1px solid #222222;
        text-align: left !important;
        width: 60% ;
        margin:auto;
        background-color: #131313;
        box-shadow: rgba(255, 255, 255, 0.1) 0px 4px 16px, rgba(255, 255, 255, 0.05) 0px 8px 32px;
    
    }
    .code-box{
        display:none;
        padding: 16px;
        border-radius: 12px;
        border:1px solid #222222;
        text-align: left !important;

        background-color: #131313;
    }

    .code-box.show{
        display:block;
    }

.card{
    position: relative;

    background-color: #131313;
    border-radius: 20px;
    padding:20px;
    border:1px solid #222222;
    height: 100%;
}
.card ::before{
    content: '';
    position: absolute;
    top: 10px;
    right:10px;
    width: 20px;
    height: 20px;
    border-radius: 200px;
    background: linear-gradient(45deg, #373B44, #4286f4);
    pointer-events: none;
    z-index: 1;
}
.img-box{
    img{
        max-width: 500px;
        border-radius: 16px;
    }
}

/*Header Section*/
.menup{
    display:flex;
    justify-content: space-between;
    align-items: flex-end;
    padding:20px 0;
}
.logodiv{
    display:flex;
    align-items: center;
    gap:0px;
}
.logotxt{
    display:flex;
    flex-direction: column;
     h1{
        margin:0;
        font-size:24px;
     }
     h3{
        margin:0;
        font-size:16px;
        font-weight: 300;
     }
}

/*Hero Section*/

.hero{
    background-image: url(./img/hero-bg.png);
    background-size: cover;
    background-position: center;
    background-attachment:fixed;
    border-radius: 26px;
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap:20px;
    padding:50px 20px;
    height: 60vh;
}

/*Content Section*/
.content-classes{
    display:flex;
    flex-direction: column;
    gap:20px;
    div{
        text-align: center;
        max-width:800px;
        margin:auto;
    }
    .code-box{
        box-shadow: rgba(255, 255, 255, 0.1) 0px 4px 16px, rgba(255, 255, 255, 0.05) 0px 8px 32px;

    }
}
.bg-txt{
    position: absolute;
    font-size: 120px;
    color: rgba(255, 239, 239, 0.05);
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

/*Section Flex*/
.section-flex{
    
    display:flex;
    gap:20px;
    justify-content: center;
    align-items: stretch;
}
.content{
    width: 95%;
    display:flex;
    flex-direction: column;
    gap:20px;
    .code-box-default{
        width: auto;
        box-shadow: none;
    }
}

.img-box.constructor{
    text-align: center;
    background-image: url(./img/blue-green-grad.jpg);
    background-size: cover;
    border-radius:16px;
    padding: 20px;
    h3{
        padding:20px;
        background-color:#22222260;
        border-radius: 12px;
    }
}

/*Section Break*/
.break{
    margin-top:20vh;
    margin-bottom:20vh;
    position: relative;
    display:flex;
    height:25vh;
    flex-direction: column;
    gap:20px;
    div{
        text-align: center;
        max-width:800px;
        margin:auto;
    }
}

.break::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, #66E4E3 0%, transparent 40%),
              radial-gradient(circle at 70% 35%, #031E6D 0%, transparent 40%),
              radial-gradient(circle at 45% 75%, #09B7E9 0%, transparent 40%),
              radial-gradient(circle at 65% 65%, #008AD3 0%, transparent 40%),
              radial-gradient(circle at 50% 55%, #062B64 0%, transparent 40%);
  background-blend-mode: screen;
  filter: blur(90px);
  z-index: -1;
}

/*pegolete alien*/
#alien{
    width:120px;
    position: absolute;        
    pointer-events: none;  
    transform: translate(-50%, -50%);

}

/*Toggle button*/
.toggle-btn {
  background: rgb(216, 216, 216); 
  border-radius: 200px;    
  border: none;             
  cursor: pointer;          
  font-size: 20px;        
  width: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #072C63;       
  transition: color 0.2s;
  margin-bottom:15px;
}

.toggle-btn:hover {
  color: #0A4AC0;
}

/*section-grid*/
.section-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    gap: 50px;
}

footer{
    text-align: center;
    small{
        color: #555555;
    }
}

/*Test pop-up*/
.popup{
    display:none;
    width: 900px;
    border:solid 1px white;
    box-shadow: rgba(255, 255, 255, 0.1) 0px 4px 16px, rgba(255, 255, 255, 0.05) 0px 8px 32px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #131313;
    overflow: hidden;
    .head-popup{
        display:flex;
        justify-content: space-between;
        align-items: center;
        border-bottom:solid 1px white;
        color:#ffffff;
        padding:12px 20px;
        font-size: 14px;
        font-weight: 500;
    }
    .btn-pop{ 
        width: auto;
        background-color:red;
        border-radius: 12px;
        padding: 6px 12px;
        cursor: pointer;
    }
    .url-def{
        width: 100%;
        background-color:white;
        color:black;
        border-radius:53px;
        
        width: auto;
        padding:2px 12px;
    }
    .pop-content{
        display:flex;
        align-items: center;
        justify-content: center;
        gap:30px;
        padding:30px;
        color:#ffffff;
        font-size: 14px;
    }
}
.popup.show{
    display:block;
    z-index:10;
}
/*responsive*/
@media (max-width: 815px){
    
    .content-classes{
        .bg-txt{
            font-size: 90px;
        }
    }
    .break{
        height: auto;
        .bg-txt{
            font-size: 65px;
        }
    }
    .section-grid{
        grid-template-columns: 1fr;
        gap:25px;
        .content{
            max-width: 100%;
        }
    }
}

@media (max-width: 768px) {
   main{
    gap: 25px;
   }
  .button{font-size:14px;}
  .break { pointer-events: none; }
  #alien { display: none !important; }
}
@media (max-width: 500px){
    h2{
        font-size: 28px;
    }
    .hero{
        height: auto;
        h2{
            font-size: 36px;
            span{
                font-size: 38px !important;
            }
        }
    }
    .content-classes{
        .bg-txt{
            font-size: 60px;
        }
    }
    .break{
        margin-top:12vh;
        margin-bottom:12vh;
        .bg-txt{
            font-size: 36px;
        }
    }

    .section-flex{
        flex-direction: column;
        gap:25px;
    }
    
}

/*Animations*/
.fade-in, .slide-up, .pop-in {
  opacity: 0;
  transform: translateY(20px); /* solo para slide-up y pop-in, fade-in puede ignorar */
  transition: all 0.8s ease;
}

/* animación activada */
.fade-in.animate {
  opacity: 1;
  transform: none;
}

.slide-up.animate {
  opacity: 1;
  transform: translateY(0);
}

.pop-in.animate {
  opacity: 1;
  transform: scale(1);
}