/* Global Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
}

header {
    padding: 2rem 1rem;
    background-color: #111;
}

/* Header Content */
.header-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1.5rem;
}

/*iconos*/

.text-content {
    max-width: 60%; /* Ajusta el tamaño del texto para que ocupe menos espacio */
}

.pitch {
    margin-bottom: 1rem; /* Espacio entre el párrafo y los íconos */
}

.technologies {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap; /* Permite que los íconos pasen a otra línea si no caben */
}

.technologies i {
    font-size: 1.8rem; /* Tamaño de los íconos */
    color: gold; /* Color dorado */
    transition: transform 0.3s, color 0.3s;
}

.technologies i:hover {
    transform: scale(1.2); /* Efecto de zoom al pasar el mouse */
    color: #ff4081; /* Cambia a otro color en hover */
}

.image-content img {
    border-radius: 10px;
    width: 150px; /* Ajusta el tamaño de la imagen */
    height: auto;
}

/* --- Enlaces sociales NUEVOS debajo del pitch --- */
.social-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin: 2rem 0 0.5rem;;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  font-weight: 600;
  color: #0077b6; /* Azul claro legible */
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: goldenrod; /* Hover del texto, combina con la paleta */
}

/* Íconos con el MISMO estilo que .technologies i */
.social-links i {
    font-size: 1.5rem;
    color: gold;           /* dorado por defecto */
    transition: transform 0.3s, color 0.3s;
}

.social-links i:hover {
    transform: scale(1.2); /* zoom */
    color: #ff4081;        /* rosa en hover, igual que technologies */
}

/* --- Tipografías y layout de header --- */

.header-content .text-content {
    flex: 1 1 400px;
    max-width: 600px;
    padding: 1rem;
}

.language-switcher {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin: 0 0 1.4rem;
    border: 2px solid gold;
    border-radius: 8px;
    overflow: hidden;
    background-color: #070707;
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.24);
}

.language-option {
    min-width: 112px;
    padding: 0.7rem 1rem;
    border: 0;
    border-right: 1px solid rgba(255, 215, 0, 0.45);
    background-color: #181818;
    color: #f4f4f4;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.language-option:last-child {
    border-right: 0;
}

.language-option:hover {
    background-color: #2b2b2b;
    color: gold;
}

.language-option:focus-visible {
    outline: 3px solid #ff4081;
    outline-offset: -3px;
}

.language-option.is-active {
    background-color: gold;
    color: #111;
    box-shadow: inset 0 -4px 0 #ff4081;
}

.header-content .text-content h1 {
    font-size: 2.5rem;
    margin: 0;
}

.header-content .text-content p {
    font-size: 1rem;
    margin: 10px 0;
    color: #ccc;
}

.header-content .pitch {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 1rem;
}

.header-content .image-content {
    flex: 1 1 300px;
    text-align: center;
}

.header-content .image-content img {
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 20%;
    border: 3px solid #fff;
}

/* Project Section */
/* Video Container Fix */
.project {
    display: flex; /* Diseño en dos columnas */
    flex-wrap: wrap; /* Permite que los elementos se adapten en dispositivos pequeños */
    margin: 20px auto;
    background-color: #111;
    border-radius: 8px;
    overflow: hidden;
    max-width: 1200px;
}

.project img, 
.project iframe, 
.project video {
    flex: 0 0 40%; /* La imagen/video ocupa el 40% del ancho del contenedor */
    max-width: 40%; /* Evita que crezca más del 40% */
    height: auto; /* Mantiene las proporciones */
    object-fit: cover; /* Ajusta para que se vea bien en el espacio */
}

.project-info {
    flex: 1; /* Ocupa el resto del espacio */
    padding: 20px;
    text-align: left;
}

.project-info h3 {
    margin: 0 0 10px;
    font-size: 1.5rem;
}

.project-info p {
    margin: 5px 0;
    color: #aaa;
}

.project-info p.roles-line {
    color: #fff;
    font-weight: 700;
}

.roles-label {
    color: goldenrod;
}

.project-info a {
    color: #00bcd4;
    text-decoration: none;
    font-weight: bold;
}

.image-content a {
    color: #00bcd4;
    text-decoration: none;
    font-weight: bold;
}

/* Hover Effects */
.project:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.project-info a:hover {
    color: #ff4081;
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    background-color: #111;
    color: #777;
}

/* Responsive Styles */

/* For Tablets and Smaller Screens */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .language-switcher {
        justify-content: center;
        margin: 0 auto 1.25rem;
        max-width: 100%;
    }

    .language-option {
        min-width: 96px;
        padding: 0.65rem 0.75rem;
    }

    .header-content .pitch {
        font-size: 1rem;
    }

    .header-content .image-content img {
        max-width: 150px;
    }

    .project {
        flex-direction: column; /* Cambia a diseño en una sola columna */
    }

    .project img, 
    .project iframe, 
    .project video {
        flex: 0 0 100%; /* Imagen/video ocupa el 100% en pantallas pequeñas */
        max-width: 100%; /* Se asegura de que no se desborde */
    }

    .project-info {
        padding: 10px;
        text-align: center; /* Centra el texto en dispositivos pequeños */
    }
}

/* For Large Screens */
@media (min-width: 1200px) {
    header {
        padding: 3rem 2rem;
    }

    .header-content .text-content h1 {
        font-size: 3rem;
    }

    .project-info h3 {
        font-size: 1.8rem;
    }
}

.highlight {
    color: gold; /* Aplica el color dorado */
    font-weight: bold; /* Opcional: agrega énfasis */
}

.technologies {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.technologies i {
    font-size: 2rem; /* Tamaño del ícono */
    color: gold; /* Color dorado para resaltar */
    transition: transform 0.3s, color 0.3s;
}

.technologies i:hover {
    transform: scale(1.2); /* Efecto de zoom al pasar el mouse */
    color: #ff4081; /* Color diferente al pasar el mouse */
}

/* --- ESTILOS PARA EL SISTEMA DE PESTAÑAS --- */

/* Contenedor principal de las pestañas visibles */
.tabs-display {
    display: flex;
    justify-content: center;
    gap: 1rem; /* Espacio entre las pestañas */
    margin: 2rem auto;
    max-width: 1200px;
}

/* Estilo de cada pestaña (el label) */
.tab-label {
    padding: 10px 20px;
    background-color: #222; /* Color de pestaña inactiva */
    color: #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    border-bottom: 3px solid #444; /* Borde inferior para dar profundidad */
    font-weight: bold;
}

/* Efecto hover para las pestañas */
.tab-label:hover {
    background-color: #333;
    color: #fff;
}

/* Ocultamos los inputs de radio reales, ya que interactuamos a través de los labels */
.tab-input {
    display: none;
}

/* --- LA MAGIA OCURRE AQUÍ --- */

/* Por defecto, ocultamos todos los contenedores de proyectos */
.projects-content {
    display: none;
}

/* 
  Regla para mostrar el contenido: (CORREGIDA)
  Si el input con id 'tab-single-player' está seleccionado (:checked),
  buscamos su hermano (`~`) que tenga la clase '.single-player' y lo mostramos.
*/
#tab-single-player:checked ~ .projects-content.single-player {
    display: block;
}

#tab-multiplayer:checked ~ .projects-content.multiplayer {
    display: block;
}

#tab-javascript:checked ~ .projects-content.javascript {
    display: block;
}

/* 
  Regla para estilizar la pestaña activa:
  Si el input 'tab-single-player' está seleccionado,
  buscamos su hermano `.tabs-display` y dentro de él, el label correspondiente,
  y le aplicamos el estilo de "activo".
*/
#tab-single-player:checked ~ .tabs-display .tab-label[for="tab-single-player"],
#tab-multiplayer:checked ~ .tabs-display .tab-label[for="tab-multiplayer"],
#tab-javascript:checked ~ .tabs-display .tab-label[for="tab-javascript"] {
    background-color: gold; /* Color de la pestaña activa */
    color: #111; /* Texto oscuro para que contraste */
    border-bottom-color: #ff4081; /* Borde inferior de color para resaltar */
}
