
@media (min-width: 769px)  {
  .cs_main_header {
    padding: 0 3rem;
    display: block;
  }
  .cs_nav {
    position: static;       /* ✅ ya no absoluto */
    transform: none;
    padding: 0;
    background: transparent;
    transform: translateY(0);
  }
  .cs_main_header_in {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
   
  }
  .cs_main_header_center {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 20px;
  }
  .cs_nav_list {
    display: flex;
    flex-direction: row;
    list-style: none;
    gap: 30px;
    padding: 0;
    margin: 0;
  }
  .cs_nav_list li {
    position: relative;
  }
  .cs_nav_list a {
    color: var(--color-text);
    padding: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
  }
  .cs_nav_list li.active > a,
  .cs_nav_list a:hover {
    color: var(--color-accent);
  }
  .cs_nav_list li.menu-item-has-children ul {
    
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-dropdown);
    padding: 10px 0;
    min-width: 180px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }
  .cs_nav_list li.menu-item-has-children:hover ul {
    display: block;
  }
  .cs_nav_list li.menu-item-has-children ul li a {
    display: block;
    padding: 10px 20px;
    color: var(--color-text);
  }
  .cs_nav_list li.menu-item-has-children ul li a:hover {
    background-color: var(--color-accent);
  }

  .cs_btn {
    background: var(--color-accent);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: perspective(500px) translateZ(0);
  }

  .cs_btn:hover {
    background: var(--color-accent-hover);
    transform: perspective(500px) translateY(-5px) scale(1.05);
    box-shadow: 0 12px 24px rgba(255, 111, 97, 0.4);

  }
  .cs_style_2 {
    position: relative;
    /* display: inline-block; */
    padding: 12px 20px;
    margin: 30px 0;
    color: #fff;
    background-color: transparent;
    border: 2px solid var(--color-accent);
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    transition: color 0.6s ease;
}

.cs_style_2::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: var(--color-accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  transition: width 0.6s ease, height 0.6s ease;
}

.cs_style_2:hover::before {
  width: 200%;
  height: 500%;
}

.cs_style_2:hover {
  color: #fff;
}

  .cs_hamburger {
    display: none;
  }

  #hireMe {
    display: block;
  }
  .hero {
    height: calc(100vh - 80px); 
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }

  .text-container-hero {
    width: 90%;
    padding: 0 15px;
    row-gap: 18px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .cs-logo {
    width: 200px;
  }
  .cs_hi {
    font-size: 2.8em;
    margin-top: 1rem;
  }
  h1 {
    font-size: 3.5em;
    margin: 20px 0;
  }
  p {
    font-size: 1.5em;
    margin: 20px 0;
  }
  
  .cs_socials svg {
    width: 2rem;
    height: 2rem;
  }

  .cs-hero-image {
    width: 100%;

  }

  .cs-hero-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .buttons_container {
    flex-direction: row; /* mantener en fila si hay espacio */
    flex-wrap: wrap; /* que se rompa si es necesario */
    gap: 18px;
    justify-content: center;
  }
  .about_wrapper {
    flex-direction: row;
    justify-content: space-between;
  }
  .skills_wrapper {
    grid-template-columns: 1fr 1fr;
  }
  .portfolio_title {
    font-size: 3.2rem;
  }
  .footer_content.container {
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }
  .footer_top {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
  }
  .another_conatiner {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    row-gap: 30px;
  }
  .footer_bottom {
    display: flex;
    position: relative;
    width: 100%;
    justify-content: center;
  }
  .sroll_up_button {
    position: absolute;
    width: 50px;
    right: 0px;
    bottom: 10px;
    border-radius: 50%;
    padding: 10px;
    font-size: 1.2rem;
  }
  .scroll_top i {
    font-size: 24px; /* <-- ¡Ajusta este valor como quieras! */
  }
  .icon img {
    max-width: 200px;
    height: auto;
  }
}

@media (min-width: 769px) {
  .hero {
    display: flex;
    flex-direction: row; /* texto a la izquierda, imagen a la derecha */
    justify-content: space-between;
    align-items: center;
    height: calc(100vh - 80px); 
    text-align: left;
    gap: 2rem;
  }
  .cs_nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .cs_nav_list {
    display: flex;
    list-style: none;
    gap: 30px;
    padding: 0;
    margin: 0;
  }
  .cs_nav_list li {
    position: relative;
  }
  .cs_nav_list a {
    color: var(--color-text);
    padding: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
  }
  .cs_nav_list li.active > a,
  .cs_nav_list a:hover {
    color: var(--color-accent);
  }
  .cs_nav_list li.menu-item-has-children ul {
    
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-dropdown);
    padding: 10px 0;
    min-width: 180px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }
  .cs_nav_list li.menu-item-has-children:hover ul {
    display: block;
  }
  .cs_nav_list li.menu-item-has-children ul li a {
    display: block;
    padding: 10px 20px;
    color: var(--color-text);
  }
  .cs_nav_list li.menu-item-has-children ul li a:hover {
    background-color: var(--color-accent);
  }
  .text-container-hero {
    flex: 1; /* ocupa la mitad izquierda */
    max-width: 600px;
    padding: 0;
    margin: 0;
  }

  .hero {
  display: flex;
  justify-content: center; 
  align-items: center;    
  height: calc(100vh - 80px); 
  padding: 0 2rem;
  position: relative;
  }

  .cs-hero-image img {
    width: 100%;
    height: calc(100vh - 80px);
    object-fit: contain;
  }
  .cs_subtitle {
    margin: 0;
  }

  /* Ajustes de tipografía para laptops */
  .cs_hi {
    font-size: 3em;
  }

  h1 {
    font-size: 4em;
    margin: 0.5rem 0;
  }

  p {
    font-size: 1.5em;
  }

  .cs_title {
    font-size: 3.5em;
  
  }

  .text-container-hero {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* ajusta la separación interna */
  max-width: 600px; /* ancho máximo */
  width: 100%;
  align-items: flex-start;
} 
  .cs_socials {
    justify-content: flex-start;
  }

  .buttons_container {
    justify-content: flex-start;
  }


  .about_wrapper {
    justify-content: center;
    gap: 6rem;
   }

  .skills-wrapper {
    grid-template-columns: repeat(2, 1fr); /* Dos columnas iguales */
    gap: 2.5rem;
  }
}