:root {
  --color-bg: #0f172a;

  --color-header: #1e293b;

  --color-text: #dfeefc;
  --color-subtitulos: rgb(170, 222, 252);
  --color-primary: #38bdf8;
  --color-muted: #64748b;
  --text-parrafos: "Inter", sans-serif; 
}



.lightModeTexts{
color: var(--color-header);
}

html, body {
  overflow-x: hidden;
  width: 100%;
}


body {
  margin: 0;
  font-family: 'Inter', sans-serif; 
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  
}


body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 25% 25%, rgba(56, 189, 248, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(56, 189, 248, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

header {
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-header) 100%);
  /* background: #040b1b; */
  padding: 2rem;
  text-align: center;
  /* border-bottom: 1px solid #38bdf8; */
  min-height: 100vh;
  box-sizing: border-box;
  display: flex; 
  align-items: center; 
  justify-content: center; 
  position: relative; 
}

.container-div{
  border-radius: 8px;
}

h2#projects_title{
  margin-left: .5rem;
}

.hero-content {
  max-width: 800px;
  padding: 0 2rem;
}

#name {
  font-size: clamp(4rem, 8vw, 7rem); 
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem; 
  background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0; 
  animation: slideUp 1s ease-out 0.2s forwards; 
}

.titulo-mclaro{
  background: linear-gradient(135deg, #1a365d 0%, #304364 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.sub-tit-mclaro{
  background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.descrip-mclaro{
  background: linear-gradient(135deg, #4a5568 0%, #718096 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}


#header_title {
  font-size: clamp(1.5rem, 3vw, 2.5rem); 
  font-weight: 300; 
  color: var(--color-primary);
  margin-bottom: 1rem; 
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--color-subtitulos) 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0; 
  animation: slideUp 1s ease-out 0.4s forwards; 
}

#header_subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem); 
  color: var(--color-muted);
  max-width: 600px; 
  margin: 0 auto 1.5rem; 
  opacity: 0; 
  animation: slideUp 1s ease-out 0.6s forwards; 
}

.botones-idiomas {
  margin-top: 1rem; 
  margin-bottom: 2rem; 
  opacity: 0; 
  animation: slideUp 1s ease-out 0.8s forwards; 
}

#header_title,
#header_subtitle {
  
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


.lightModeDivs{
background-color: #f8f8ff !important;
background: linear-gradient(135deg,  #f0f0f5 , #7676c0 );
}

main {
  padding: 2rem;
  max-width: 800px;
  margin: auto;
}



.modeDark{
  position: fixed;
  top: 20px;
  right: 50px;
}

    /* botones en modo claro */
.light-btn{
  background: #f8f8ff59 !important;
  color: var(--color-bg) !important;
  box-shadow: 0 4px 15px rgba(10, 10, 17, 0.322) !important;
  
}

.light-btn:hover{
  background: #f8f8ffd3 !important;
}

.light-enlace{
  color: rgba(20, 34, 224, 0.616) !important;
}

section {
  margin-bottom: 2rem;
  
}

h2 {
  color: var(--color-primary);
  border-bottom: 4px solid var(--color-primary);
  padding-bottom: 0.5rem;
  display: inline-block;
  width: auto;
}

h3{
    color: var(--color-subtitulos);
  }

  .btn-dark{
    background-color: #1a2941;
    border-radius: 50px;
    color: aqua;
    padding: 10px 20px;
    border: 1px solid rgb(77, 77, 80);
    box-shadow: 0px 1px 2px var(--color-primary) !important;
     transition: all 0.3s ease;
  }

  .btn-light{
    background-color: rgba(0, 0, 255, 0);

  color:var(--color-bg) !important;
  /* border: 1px solid green !important; */
  box-shadow: 1px 2px 4px var(--color-bg)!important;
  }

  .about-me{
    
    height: fit-content;
    text-align: center;
    padding-top: 10px;
  }

  h2#about_title{
    color: rgb(221, 223, 226);
    font-size: 4rem;
    
  }

   p#about_text{
    font-size: 1.3rem;
    color: #b8bdc5;
  }
  
.project {
  border: 1px solid var(--color-muted);
  box-shadow: 1px 1px 1px var(--color-primary);
  background: rgba(41, 41, 97, 0);
  padding: .5rem 1rem 0px;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  transition: all 0.5s ease;
  /* display: flex;
  flex-direction: column;
  gap: 1rem; */
}

.project:hover{
  border-color: 2px solid var(--color-primary);
      color: var(--color-primary);
      background:linear-gradient(135deg, rgba(56, 191, 248, 0.1) 0%, rgba(56, 191, 248, 0) 100%);
      
      box-shadow: 2px 2px 5px var(--color-primary);
      transform: translateY(-10px) !important;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

.project.light-project{
  background: linear-gradient(135deg, #fdfeff, #e9ecf1ea) !important;

  
  backdrop-filter: blur(20px);
            border: 2px solid rgba(255, 255, 255, 0.8);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.project.light-project:hover{
  background: #38bdf8;
  background:linear-gradient(135deg, rgba(255, 255, 255, 0.952) 0%, rgba(229, 240, 253, 0.918) 100%) !important;
    box-shadow: 8px 8px 32px rgba(0, 0, 0, 0.226),
    -2px -8px 32px rgba(255, 255, 255, 0.548);  
}

footer {
  text-align: center;
  padding: 1rem;
  background: var(--color-bg);
  font-size: 0.9rem;
  color: var(--color-muted);
}

/*  botones */
.btn-lang {
  padding: 10px 32px;
  margin-inline: 10px;
  border-radius: 25px;
  
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2);
  background: var(--color-bg);
  color: var(--color-primary);
}

.btn-lang:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
  background: var(--color-primary);
  color: var(--color-bg);
}

.btn-lang:active {
  transform: translateY(0);
}



p, footer{
  font-family:  "Source Serif 4", serif;
  font-size: 1em;
}



/* scroll indicator*/

.scroll-indicator {
  position: absolute;
  bottom: 1rem; 
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--color-primary), transparent);
  opacity: 0;
  animation: slideUp 1s ease-out 1s forwards; 
  border-radius: 2px;
}

.scroll-indicator::after {
  content: '';
  position: absolute;
  top: 0;
  left: -1px;
  width: 3px; 
  height: 20px;
  background: var(--color-primary);
  border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5); 
}

.indicator-mclaro{
  background: var(--color-bg);
}

.indicator-mclaro::after{
  background: var(--color-bg);
  box-shadow: none;
}



@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

    @keyframes scrollDot {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(40px); }
    }

    .project-footer {
      border-top: 1px solid var(--color-muted);
      
      margin: 1rem -1rem 0 -1rem; /* ← Agrega esto */
      padding: 1.1rem 1rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      background-color: rgba(255, 127, 80, 0);
      
    }




    .tags-technologies{
      
      display: flex;
      align-items: flex-end;
      justify-content: flex-end;
      
    }

    .modo-enlace{
      
      margin: 0;
    }

.tags-technologies span, .tags-about span {
  background: rgba(63, 62, 62, 0.192);
  
  
  color: var(--color-muted);
  padding: 0.5rem 1.2rem;
  margin-inline: 0.5rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
}



.tags-about{
  padding-block: 20px;
  margin-top: 3rem;
  height: fit-content;
  padding-block: 5px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.tags-about span {
  position: relative;
  overflow: hidden;
  z-index: 0;
  border: 1px solid var(--color-muted);
  padding: .7rem 2rem;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  margin-block: .3rem;
  
}

.tags-about span::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.tags-about span:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.tags-about span:hover::before {
  opacity: 1;
}

/*span technology modo claro*/

.tech-tags.light-techs {
  background-color: #dfe6e900; 
  color: var(--color-muted);
  box-shadow: 
    
    -2px -2px 6px rgba(255, 255, 255, 0.8),
    
    8px 8px 16px rgba(0, 0, 0, 0.1);
  border: none;
  transition: all 0.3s ease;
}

.tech-tags.light-techs:hover {
  color:var(--color-header);
  box-shadow: 
    
    inset -4px -4px 8px rgba(255, 255, 255, 0.5),
    inset 4px 4px 8px rgba(0, 0, 0, 0.05);
  transform: translateY(1px);
}

.tech-tags.light-techs::before {
  background: rgba(18, 18, 19, 0.062);
}

/* responsive  */

/* tablets */
@media (max-width: 768px) {
  header {
    padding: 1.5rem;
  }
  
  main {
    padding: 1.5rem;
  }
  
  .btn-lang {
    padding: 8px 40px;
    margin-inline: 6px;
    font-size: 0.9rem;

    
  }

  .modeDark{
    top: 10px;
    right: 10px;
  }

  #toggleDarkMode {
    padding: 8px 10px;
    font-size: .9rem;
  }

   #toggleDarkMode:hover {
    transform: none !important;
    box-shadow: none !important;
    

  }
  
  #toggleDarkMode.light-btn:hover {
    transform: none !important;
    box-shadow: none !important;
    

  }

.about-me span{
  font-size: .8rem;
}

.project{
  padding-top: 5px;
}

.project-footer{
  padding-block: 10px;
  height: fit-content;
}

.tags-technologies{
 
  width: 60%;
  height: fit-content;
  box-sizing: border-box;
}

.tags-technologies span{
  font-size: .7rem;
  padding-inline: .9rem;
  margin-inline: .2rem;
}


}

/* celular */
@media (max-width: 480px) {
  header {
    padding-bottom50px: .5rem;
    
  }

  .hero-content{
    padding-block: 1px;
  }

  #name{
    margin: 5px;

  }
  
  main {
    padding: 1rem;
  }
  
  /* div botones */
  .botones-idiomas {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
  }
  /* botones */
  .btn-lang {
    padding: 12px 40px;
    margin-inline: 0;
    font-size: .8rem;
    border-radius: 24px;
    width: 70%;
    max-width: 82%;
    
    cursor: default;
    transition: none;
    
  }
  
  .btn-lang:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(56, 189, 247, 0.2);
    background: var(--color-bg);
    color: var(--color-primary);
  }

  .contacto{
    margin-bottom: 0;
    /* border: 1px solid yellow; */
  }

  footer{
    margin-top: -12px;
    /* border: 1px solid rgb(10, 211, 144); */
  }

  .modeDark{
    top: 10px;
    right: 10px;
  }

  #toggleDarkMode {
    font-size: 0; 
    width: 50px;  
    height: 50px;
    padding: 1px;
  }
  
  #toggleDarkMode::before {
    font-size: 1.5rem; 
    content: '☀️'; 
  }
  
  #toggleDarkMode.btn-light::before {
    content: '🌙';
  }


   #toggleDarkMode:hover {
    transform: none !important;
    box-shadow: none !important;
    

  }
  
  #toggleDarkMode.light-btn:hover {
    transform: none !important;
    box-shadow: none !important;
    

  }



.project-footer {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  
 
}



.project-footer .tags-technologies {
  order: 1;
  width: 100% !important;
  justify-content: center;
  flex-wrap: wrap;
}



.tags-technologies span {
  margin: 5px;
}


.project-footer a {
  order: 2;
  width: 100%;
  text-align: center;
}


}

 /* smartwatch */

 @media (max-width: 320px) {
      html {
        box-sizing: border-box;
        max-width: 100vw;
        overflow-x: hidden;
        padding: 0;
      }

      body {
        font-size: 14px;
        box-sizing: border-box;
      }

      h1#name{
        line-height: 1.2;
      }
      
      header {
        padding: 1.5rem;
        box-sizing: border-box;
      }
      
      header h1 {
        font-size: .7em;
        margin-bottom: 1px;
      }
      
      main {
        padding: 0.05rem;
      }
      
      section {
        padding: 0.3rem;
        margin-bottom: 0.75rem;
      }
      
      .project {
        padding: 0.4rem;
      }
      
      h2 {
        font-size: 1.2rem;
      }

      p {
        font-size: 1.15em;
        font-weight: normal;
      }
      a{
        font-size: 1.2em;
      }

      .contacto{
        padding-inline: 0.5rem;
        margin-top: -15px;
        /* border: 1px solid orange; */
        margin-bottom: 0;
      }

      .botones-idiomas {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        margin-top: 15px;
      }
      
      .btn-lang {
        padding: 8px 25px;
        margin: 1px 0;
        font-size: 1.1rem;
        border-radius: 16px;
        font-size: .9em;
        width: 85%;
        font-style: normal;
        max-width: 95%;
        cursor: default;
        transition: none;
        box-shadow: 0 1px 1px rgba(56, 189, 248, 0.3);
      }
      
      .btn-lang:hover {
        transform: none;
        box-shadow: 0 3px 10px rgba(56, 189, 248, 0.3);
        background: rgba(255, 255, 255, 0.3);
        color: white;
      }


    
      
      footer {
        padding: 0.75rem;
        font-size: 0.8rem;
        
        
      }

      .scroll-indicator{
  display: none;
  position: fixed;
  z-index: 500;
  top: 40%;
  left: 25px;
  /* transform: translateY(-80%); */
}
    }


    .reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}


/* avatar */

.avatar {
    width: 170px;
    height: 170px;
    position: fixed;
    top: 75vh;
    right: 5px;
}

.light-dot {
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #3b82f6, #1e3a8a);
    border-radius: 50%;
    position: absolute;
    box-shadow: 
        0 0 15px rgba(30, 58, 138, 0.8),
        0 0 30px rgba(59, 130, 246, 0.6),
        0 0 45px rgba(59, 130, 246, 0.4);
    transition: all 0.8s ease-in-out;
}

.avatar .light-dot:nth-child(1) { top: 65px; left: 65px; }
.avatar .light-dot:nth-child(2) { top: 65px; right: 65px; }
.avatar .light-dot:nth-child(3) { bottom: 65px; right: 65px; }
.avatar .light-dot:nth-child(4) { bottom: 65px; left: 65px; }

.avatar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(30, 58, 138, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: neural-ring 2.2s linear infinite;
    transition: border-color 0.8s ease-in-out;
}

.avatar .light-dot {
    animation: neural-resonance 2.2s ease-in-out infinite;
}

/* Estado por defecto (neutral/activo) */
@keyframes neural-resonance {
    0%, 100% { transform: scale(1); filter: hue-rotate(0deg); }
    50% { transform: scale(1.3); filter: hue-rotate(20deg) brightness(1.3); }
}

@keyframes neural-ring {
    0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); opacity: 0.3; }
    50% { opacity: 0.7; transform: translate(-50%, -50%) rotate(180deg) scale(1.1); }
    100% { transform: translate(-50%, -50%) rotate(360deg) scale(1); opacity: 0.3; }
}

/* Estado Amable (verde) - activado con hover */
.avatar:hover .light-dot {
    background: radial-gradient(circle, #10b981, #059669);
    box-shadow: 
        0 0 25px rgba(16, 185, 129, 1),
        0 0 50px rgba(5, 150, 105, 0.8);
    animation: amable-glow 2s ease-in-out infinite;
}

.avatar:hover::before {
    border-color: rgba(16, 185, 129, 0.6);
    animation: amable-ring 2s ease-in-out infinite;
}

@keyframes amable-glow {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.1); filter: brightness(1.3); }
}

@keyframes amable-ring {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}