*{
    margin: 0 ;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;
}
:root{/*se define colores, cuidado con los :root*/
    --bg-color:#fefee3;
    --second-bg-color:#131313;
    --text-color: rgb(0, 0, 0);
    --main-color: #faad3d;
    --bg-darkmode: #831236;
    --text-color-darkmode: #fefee3;
    --main-color-darkmode: #fefee3;
}

html{
    font-size:60%;
    overflow: hidden;
    
    
}
body{
    background: var(--bg-color);
    color: var(--text-color);
    
}
.header{    
    position: fixed;
    display: flex;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 7%  2rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}
.header div {
    display: flex; /* Make the logo and text flex items */
    align-items: center; /* Center items vertically within this div */
}
.logo-img {
    
    width: 5.5vw;
}

.logo{
    font-size: 5rem;
    color: var(--text-color);
    font-weight: 800;
    cursor:pointer;
    transition: 0.3s ease;
} 
.logo:hover{
    transform: scale(1.1);
}  
.logo span{
    text-shadow: 0 0 25px var(--main-color);
}
#btn-dm{
    height: 50px;
    width: 50px;
    padding: 0;
    border-radius: 50%;
    background-color: #fefee3;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 20px;
    right: 20px;
    opacity: 60%;
}
#btn-dm svg{
    fill: #131313;
}
#btn-dm svg:last-child{
    display: none;
}
.dark-mode #btn-dm svg:first-child{
    display: none;
}

.dark-mode #btn-dm svg:last-child{
    display: block;
}

.switch {
    position: relative;
    display: inline-block;
    margin: 0 5px;
  }
  
.switch > span {
    position: absolute;
    top: 14px;
    pointer-events: none;
    font-family: 'Helvetica', Arial, sans-serif;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .06);
    width: 50%;
    text-align: center;
  }
  
input.check-toggle-round-flat:checked ~ .off {
   color: #faad3d;
  } 
  
input.check-toggle-round-flat:checked ~ .on {
    color: #fff;
  }
  
.switch > span.on {
    left: 0;
    padding-left: 2px;
    color: #faad3d;
  }
  
.switch > span.off {
    right: 0;
    padding-right: 4px;
    color: #fff;
  }
  
.check-toggle {
    position: absolute;
    margin-left: -9999px;
    visibility: hidden;
  }
.check-toggle + label {
    display: block;
    position: relative;
    cursor: pointer;
    outline: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  
input.check-toggle-round-flat + label {
    padding: 2px;
    width: 97px;
    height: 35px;
    background-color: #faad3d;
    -webkit-border-radius: 60px;
    -moz-border-radius: 60px;
    -ms-border-radius: 60px;
    -o-border-radius: 60px;
    border-radius: 60px;
  }
input.check-toggle-round-flat + label:before, input.check-toggle-round-flat + label:after {
    display: block;
    position: absolute;
    content: "";
  }
  
input.check-toggle-round-flat + label:before {
    top: 2px;
    left: 2px;
    bottom: 2px;
    right: 2px;
    background-color:#faad3d;
    -webkit-
    
    -moz-border-radius: 60px;
    -ms-border-radius: 60px;
    -o-border-radius: 60px;
    border-radius: 60px;
  }

input.check-toggle-round-flat + label:after {
    top: 4px;
    left: 4px;
    bottom: 4px;
    width: 48px;
    background-color: #fff;
    -webkit-border-radius: 52px;
    -moz-border-radius: 52px;
    -ms-border-radius: 52px;
    -o-border-radius: 52px;
    border-radius: 52px;
    -webkit-transition: margin 0.2s;
    -moz-transition: margin 0.2s;
    -o-transition: margin 0.2s;
    transition: margin 0.2s;
  }
  
input.check-toggle-round-flat:checked + label {
  }
  
input.check-toggle-round-flat:checked + label:after {
    margin-left: 44px;
  }







.navbar a{
    font-size: 2.5rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}
.navbar a:hover,
.navbar a.active{
    color: var(--main-color);
    border-bottom: 10px solid var(--main-color);
    border-radius: 12%;
}

main{
   display: flex;
   max-height: 100vh;
  
    
}
section{
    z-index: 9;
    min-height: 100vh;
    min-width: 50vw;
    padding: 10rem 7%  10rem;
    
    
}
.home{
    display: flex;
    align-items: center;
    justify-content: center;  
    
}
.home-content{ 
    display: flex;
    flex-direction: column;
    align-items: baseline;
    text-align: left;
    justify-content: center;
    margin-top: 0rem;
    
} 
.illa{
    display: flex;
    flex-direction: row;
    align-items: center;
} 
.illa img{
    width: 100%;
}
span{   
    color: var(--main-color);
}
.logo span{
    color: var(--main-color);
}
.home-content h3{
    margin-bottom: 4rem;
    margin-top: 1rem;
    font-size: 5.5rem;
}
.home-content h1{   
    font-size: 8rem;
    font-weight: 700;   
    margin-top: 1.5rem;
    line-height: 1;
}

.home-content p{    
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.8;
    max-width: 1000px;
}
.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background: transparent;
    font-size: 6.5rem;
    border-radius: 100%;
    color:var(--main-color);
    margin: 3rem 3rem 3rem 0;
    transition: 0.3s ease-in-out;
}
.social-icons a:hover{
    color: var(--text-color);
    transform: scale(1.3);
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
}
.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);  
    box-shadow: 0 0 25px var(--main-color);
    border-radius: 4rem;
    font-size: 2.2rem;
    color: black;
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;   
    transition: 0.3s ease-in-out;
    cursor: pointer;
}
.btn:hover{
    transform: scale(1.05);
    box-shadow: 0 0 100px var var(--main-color);
}
.btn-group{ 
    display: flex;
    align-items: center;
    gap: 1.5rem ;
}
.btn-group a:nth-of-type(1){
    background-color: var(--main-color);
    color: black;
    border: 2px solid var(--main-color);
    box-shadow: 0 0 25px transparent;
}
.btn-group a:nth-of-type(1):hover{
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
    color: black;
}

.mail{
    font-size:1.35rem;
    padding: 1rem 0.6rem;
}

.sun{
    display: flex;
    background: #fefee3;  
    align-items: center;         
}
.sun img{
    z-index: 2;
    position: relative;     
}
.sun img:nth-child(1){
    z-index: 6;
    width: 100vw;
    
}
.sun img:nth-child(2){
    z-index: 5;
    width: 100vw;
    margin: 0 0 0 -100vw ;
    animation: rotateR 110s infinite linear;
}
.sun img:nth-child(3){
    z-index: 4;
    width: 120vw;
    margin: 0 0 0 -110vw ;
    animation: rotateR 115s infinite linear;
       
}
.sun img:nth-child(4){
    z-index: 3;
    position: relative;
    width: 140vw;
    margin: 0 0 0 -130vw ;
    animation: rotateR 125s infinite linear;
       
}
.sun img:nth-child(5){
    z-index: 2;
    position: relative;
    width: 160vw;
    margin: 0 0 0 -150vw ;
    animation: rotateR 140s infinite linear;   
}
.sun img:nth-child(6){
    z-index: 1;
    position: relative;
    width: 180vw;
    margin: 0 0 0 -170vw ;
    animation: rotateR 160s infinite linear;   
}


#sun{
    position: absolute;
}
#sun *,#sun *:before, #sun *:after{
    position: absolute;
}


@keyframes rotateR{
    from{
        transform: rotate(0deg);
    }
    to{
        transform: rotate(360deg);
    }    
}
@keyframes rotateL{
    from{
        transform: rotate(360deg);
    }
    to{
        transform: rotate(0deg);
    }    
}

   
/* Responsive Styles */
@media (max-width: 768px) {
    
    body{
        overflow-y: auto;
        
    }
    .header {
        width: 100vw;
        flex-direction: column;
    }

    .header .logo-container {
        display: none;
    }
    main{
        
        flex-direction: column;
        

    }
    .navbar {
        display: flex;
        flex-direction: column;
        text-align: center;
        width: 100%;
        
    }

    .navbar a {
        margin: 2px 0;
    }
    section{
        display: flex;
        margin-top: 10rem;
        width: 100vw;
    
    }
    .illa {
        justify-items: center;
        
    }
    .illa img{
        width: 90vw;
    }
    .home-content{
        display: flex;
        align-items: center;
    }
    .home-content h1 {
        font-size: 14rem;
    }

    .home-content h3 {
        font-size: 2.8rem;
        justify-items: center;
    }

    .home-content p {
        font-size: 1.5rem;
        text-align: center;
    }
    .social-icons{
        margin-left: 3rem;
    }
    .sun{
        display: none;
    }   
    .dark-mode .sun{
        display: none;
    }
}

/* Dark-mode Styles */
.dark-mode {
    background-color: var(--bg-darkmode);
    color: var(--text-color-darkmode);
}
.dark-mode .navbar a:hover, /* hover*/
.dark-mode .navbar a.active{
    color: var(--bg-color);
    border-bottom: 10px solid var(--bg-color);
    border-radius: 12%;
}
.dark-mode #menu-icon{
    font-size: 3.6rem;
    color: var(--bg-color);
    display: none;
}
.dark-mode span{   
    color: var(--main-color-darkmode);
}
.dark-mode .logo span{
    color: var(--main-color-darkmode);
    text-shadow: 0 0 25px var(--main-color-darkmode);
}
.dark-mode .social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background: transparent;
    font-size: 6.5rem;
    border-radius: 100%;
    color:var(--main-color-darkmode);
    margin: 3rem 3rem 3rem 0;
    transition: 0.3s ease-in-out;
}
.dark-mode .social-icons a:hover{
    color: var(--bg-darkmode);
    transform: scale(1.3);
    box-shadow: 0 0 25px var(--main-color-darkmode);
    background-color: var(--main-color-darkmode);
    
}
.dark-mode .btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color-darkmode);  
    box-shadow: 0 0 25px var(--main-color-darkmode);
    border-radius: 4rem;
    font-size: 2.2rem;
    color: black;
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;   
    transition: 0.3s ease-in-out;
    cursor: pointer;
}
.dark-mode .btn:hover{
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color-darkmode);
}
.dark-mode .btn-group a:nth-of-type(1){
    background-color: var(--main-color-darkmode);
    color: black;
    border: 2px solid var(--main-color-darkmode);
    box-shadow: 0 0 25px transparent;
}
.dark-mode .btn-group a:nth-of-type(1):hover{
    box-shadow: 0 0 25px var(--main-color-darkmode);
    background-color: var(--main-color-darkmode);
    color: black;
}

.dark-mode .sun{
    background: var(--bg-darkmode);  
    align-items: center;         
}
.dark-mode .check-toggle-round-flat + label {
    padding: 2px;
    width: 97px;
    height: 35px;
    background-color: #831236;
    -webkit-border-radius: 60px;
    -moz-border-radius: 60px;
    -ms-border-radius: 60px;
    -o-border-radius: 60px;
    border-radius: 60px;
  }
.dark-mode .check-toggle-round-flat:checked ~ .off {
    color: #831236;
   } 
   
.dark-mode .check-toggle-round-flat:checked ~ .on {
     color: #fff;
   }
   
.dark-mode .switch > span.on {
     left: 0;
     padding-left: 2px;
     color: #831236;
   }
.dark-mode .switch > span.off {
    right: 0;
    padding-right: 4px;
    color: #fff;
  }

.dark-mode .check-toggle-round-flat + label:before {
    top: 2px;
    left: 2px;
    bottom: 2px;
    right: 2px;
    background-color:#831236;
    -webkit-
    
    -moz-border-radius: 60px;
    -ms-border-radius: 60px;
    -o-border-radius: 60px;
    border-radius: 60px;
  }
.dark-mode .check-toggle-round-flat + label:after {
    top: 4px;
    left: 4px;
    bottom: 4px;
    width: 48px;
    background-color: #fff;
    -webkit-border-radius: 52px;
    -moz-border-radius: 52px;
    -ms-border-radius: 52px;
    -o-border-radius: 52px;
    border-radius: 52px;
    -webkit-transition: margin 0.2s;
    -moz-transition: margin 0.2s;
    -o-transition: margin 0.2s;
    transition: margin 0.2s;
  }
