:root {
    --color-nonmetal: #FFB6C1;         
    --color-noble-gas: #87CEEB;         
    --color-alkali-metal: #FFA07A;     
    --color-alkaline-earth: #98FB98;   
    --color-metalloid: #DDA0DD;         
    --color-halogen: #F0E68C;           
    --color-transition-metal: #E6E6FA;  
    --color-post-transition: #B0C4DE;   
    --color-lanthanide: #FFE4B5;        
    --color-actinide: #FFDAB9; 
    --color-electron: #333333;
    --color-proton: #f57777;
    --color-neutron: #62b6d0;
  }
  
  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
  }
  
  body {
      font-family: 'Arial', sans-serif;
      background-color: #f0f2f5;
      color: #333;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
  }
  
  .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 2rem;
      flex: 1;
      position: relative;
      overflow: hidden;
      text-align: center;
  }
  
  h1 {
      text-align: center;
      margin-bottom: 2rem;
      color: #2c3e50;
  }
  
  .centered-text {
      text-align: center;
  }


.carbon-nav {
    background: transparent;
    box-shadow: none;
    margin-top: 0.5rem;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.title-nav-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.back-arrow {
    color: #333;
    text-decoration: none;
    margin-left: 1rem;
    transition: transform 0.3s ease;
}

.back-arrow:hover {
    transform: translateX(-5px);
    color: var(--color-nonmetal);
}

.back-arrow i {
    font-size: 1.2em;
}
.carbon-title-nav {
    color: var(--color-nonmetal);
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-left: 0.5rem;
    border-color: var(--color-nonmetal);
    text-decoration: none;

  }
.carbon-nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 0;
    margin-bottom: 0;

    align-items: center;
}
.carbon-nav ul li {
    margin-top:1rem;
    display: inline;
    margin-bottom: 0;
}
.carbon-nav ul li a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 1rem 1.2rem;
    border-radius: 20px 20px 0 0;
    transition: background 0.2s, color 0.2s;
    background: transparent;
    display: inline-block;
    margin-bottom: 0;
}
.carbon-nav ul li:nth-child(1) a {
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),var(--color-nonmetal);

}
.carbon-nav ul li:nth-child(2) a{
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), var(--color-noble-gas);

}
.carbon-nav ul li:nth-child(3) a{
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), var(--color-alkali-metal);
}
.carbon-nav ul li:nth-child(4) a{
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), var(--color-halogen);
}
.carbon-nav ul li:nth-child(5) a{
    background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)), var(--color-transition-metal);
}



.carbon-nav ul li:nth-child(1) a:hover,
.carbon-nav ul li:nth-child(1) a.active {
    background: var(--color-nonmetal);
    color: #2c3e50;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
}
.carbon-nav ul li:nth-child(2) a:hover,
.carbon-nav ul li:nth-child(2) a.active {
    background: var(--color-noble-gas);
    color: #2c3e50;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
}
.carbon-nav ul li:nth-child(3) a:hover,
.carbon-nav ul li:nth-child(3) a.active {
    background: var(--color-alkali-metal);
    color: #2c3e50;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
}
.carbon-nav ul li:nth-child(4) a:hover,
.carbon-nav ul li:nth-child(4) a.active {
    background: var(--color-halogen);
    color: #2c3e50;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
}
.carbon-nav ul li:nth-child(5) a:hover,
.carbon-nav ul li:nth-child(5) a.active {
    background: var(--color-transition-metal);
    color: #2c3e50;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
}
main{
    height: 100%;
}
.como-soy{
    background: var(--color-nonmetal);
    padding-top: 0;
    width: 100%;

}
.donde-estoy{
    background: var(--color-noble-gas);
    padding-top: 0;
    width:100%;
}
.historia{
    background: var(--color-alkali-metal);
    padding-top: 0;
    width: 100%;

}
.jugamos{
    background: var(--color-halogen);
    padding-top: 0;
    width: 100%;
}
.creadoras{
    background: var(--color-transition-metal);
    padding-top: 0;
    width: 100%;
}

/* Menú hamburguesa */
#menu-toggle {
    display: none; /* Oculta el checkbox */
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    margin-right: 0.5rem;
    cursor: pointer;
    z-index: 100;
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #2c3e50;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Estilos para dispositivos móviles */
@media screen and (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }
    
    .carbon-nav {
        flex-wrap: wrap;
        position: relative;
        margin-bottom: 0;
    }
    
    .carbon-nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: white;
        padding: 0;
        gap: 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 90;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
        pointer-events: none;
    }
    
    /* Cuando el checkbox está marcado, muestra el menú */
    #menu-toggle:checked ~ ul {
        max-height: 300px;
        padding: 1rem 0;
        pointer-events: all;
    }
    
    /* Estilo para el icono de hamburguesa cuando está activo */
    #menu-toggle:checked ~ .hamburger-menu span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    #menu-toggle:checked ~ .hamburger-menu span:nth-child(2) {
        opacity: 0;
    }
    
    #menu-toggle:checked ~ .hamburger-menu span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Ocultar el elemento activo en el menú móvil */
    .carbon-nav ul li a.active {
        display: none;
    }
    
    /* Mantener visible el enlace activo */
    .mobile-active-tab {
        display: flex;
        margin-left: auto;
        margin-right: auto;
        padding: 0.8rem 1.2rem;
        border-radius: 20px 20px 0 0;
        margin-bottom: 0;
        font-weight: bold;
    }
    
    /* Colores para el tab activo en móvil */
    .mobile-active-tab.como-soy-tab {
        background: var(--color-nonmetal);
    }
    
    .mobile-active-tab.donde-estoy-tab {
        background: var(--color-noble-gas);
    }
    
    .mobile-active-tab.historia-tab {
        background: var(--color-alkali-metal);
    }
    
    .mobile-active-tab.jugamos-tab {
        background: var(--color-halogen);
    }
    
    .mobile-active-tab.creadoras-tab {
        background: var(--color-transition-metal);
    }

    
    /* Mostrar el tab activo solo en móvil */

}

@media screen and (min-width: 769px) {
    .mobile-active-tab {
        display: none;
    }


}

/*Banner rosa con fondo de imagen de aldebaran*/

  .info {

    width: 100vw;
    left: 50%;
    right: 50%;
    padding: 5rem 0;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7)),url('./public/aldebaran-pink-unsplash.jpg') no-repeat center center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    margin-bottom: 3rem;
}


.info-content {
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}


/* Estilos para el diseño de dos columnas */

.two-column-section {
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
    align-items: center;
}

.column-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align:justify;
}

@media (max-width: 768px) {
    .two-column-section {
      grid-template-columns: 1fr;
      gap: 1rem;
      margin: 1rem 0;
    }
  }

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    height: 100%;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}



.image-container:hover img {
    transform: scale(1.05);
}



@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Estilos para la flecha de navegación */
.next-page-arrow {
    position: relative;
    margin: 2rem auto;
    background-color: rgba(255, 255, 255, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 100;
    cursor: pointer;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.next-page-arrow.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.next-page-arrow:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.next-page-arrow i {
    font-size: 1.5rem;
    color: #2c3e50;
}

/* Asegurar que la flecha sea visible en todas las páginas */
.como-soy .next-page-arrow,
.donde-estoy .next-page-arrow,
.historia .next-page-arrow,
.jugamos .next-page-arrow {
    display: flex;
}

@media (max-width: 768px) {
    .next-page-arrow {
        width: 40px;
        height: 40px;
        margin: 1.5rem auto;
    }
    
    .next-page-arrow i {
        font-size: 1.2rem;
    }
}

