/* --- VARIABLES --- */
:root {
  --color-texto-mutado: #8da392;
}

/* --- CONTENEDORES --- */
.mariana-secciones {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 30px 20px !important;
}

.seccion-interna {
  width: 100%;
}

.separador-terminal {
  border: none;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--terminal-green),
    var(--terminal-green) 10px,
    transparent 10px,
    transparent 20px
  );
  opacity: 0.2;
  margin: 10px 0;
}

/* --- ESTILOS DE TEXTO --- */
.prompt-verde {
  color: var(--terminal-green);
  font-weight: bold;
  margin-right: 5px;
}

.code-symbol-green {
  color: var(--terminal-green);
  font-weight: 900;
  text-shadow: 0 0 5px var(--terminal-green);
}

.role-subtitle {
  color: var(--text-accent);
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  role-subtitle {
    font-size: 1rem;    
  }

  h2 {
    font-size: 1.2rem;    

  .tag-verde {
    font-size: 1rem;     
  }

  .code-symbol-green {
    font-size: 1.2rem;    
  }
}
}

.tag-verde {
  color: var(--terminal-green);
  font-size: 1rem;
  margin-left: 10px;
  margin-bottom: 0.5rem;
  font-weight: normal;
  text-shadow: 0 0 5px rgba(0, 255, 65, 0.4);
}

.description {
  color: var(--color-texto-mutado);
  font-size: 0.95rem;
  text-align: justify;
  line-height: 1.8;
}

/* --- SECCION SOBRE MI --- */
.profile-header-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  text-align: left;
}

.info-personal-basica {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  align-items: center;
}

.profile-data-box {
  font-size: 1.1rem;
  color: var(--terminal-green);
  text-align: left;
}

.profile-data-box p {
  margin: 5px 0;
  font-weight: bold;
}

@media (max-width: 600px) {
  .profile-data-box {
    font-size: 0.8rem;
  }
}

.glitch-effect {
  width: 200px;
  height: 200px;
  border-radius: 10px;
  padding: 3px;
  background: linear-gradient(
    135deg,
    rgb(16, 16, 28) 0%,
    #009765 25%,
    rgb(21, 18, 23) 50%,
    #006b43 75%,
    #023733 100%
  );
  position: relative;
  overflow: hidden;
  cursor: default;
}

.foto-perfil {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  transition: transform 300ms ease-in-out;
}

.glitch-effect:hover .foto-perfil {
  transform: scale(1.05);
}

.avatar-texto {
  position: absolute;
  bottom: 3px;
  left: 3px;
  right: 3px;
  padding: 10px 0;
  background-color: rgba(16, 16, 28, 0.9);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: all 250ms ease-in-out;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.avatar-texto p {
  margin: 0;
  color: var(--terminal-green);
  font-weight: bold;
  font-size: 0.9rem;
}

.glitch-effect:hover .avatar-texto {
  visibility: visible;
  opacity: 1;
}

.info-personal-detallada {
  margin-top: 30px;
}

.social-links-mariana {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  justify-content: center;
}

.social-links-mariana .nav-button {
  font-size: 0.85rem;
  padding: 8px 16px;
}

/* --- SECCION HABILIDADES --- */
.skills-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.skills-category {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* para mostrar/ ocultar Machine Learning en mobile */
.texto-corto {
  display: none;
}

.skills-terminal {
  display: grid;
  grid-template-columns: repeat(2, auto);
  list-style: none;  
  gap: 15px 20px;
  font-size: 0.95rem;
  color: var(--color-texto-mutado);
  padding: 0;
  margin: 0;
  justify-content:center;
  max-width: 100%;   
  overflow: hidden;
  box-sizing: border-box; 
}

.skills-terminal li {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  transition: color 0.3s ease;
  cursor: default;
  overflow: hidden;       
  min-width: 0;  /* para q funcione flex-shrink */
}

.skills-terminal i {
  font-size: 2rem;
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.skills-terminal li:hover {
  color: var(--text-accent);
}

.skills-terminal li:hover i {
  transform: translateY(-4px) scale(1.1);
  filter: drop-shadow(0px 4px 6px rgba(0, 255, 65, 0.2));
}

.skills-terminal li::after {
  content: "_";
  color: var(--terminal-green);
  margin-left: 2px;
  opacity: 0;
}

.skills-terminal li:hover::after {
  opacity: 1;
  animation: blink 1s step-end infinite;
}

.skills-terminal--learning {
  grid-template-columns: repeat(2, auto);
  justify-content: center;
}

@media (max-width: 600px) {
  .texto-completo {
    display: none;
  }
  .texto-corto {
    display: inline;
  }

  .role-subtitle{
    font-size: 0.8rem;
  }

  h2 {font-size: 1.3 rem;}

  .skills-terminal li i{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* --- SECCION PELICULAS --- */
.peliculas-posters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
  margin-top: 20px;
}

.poster-item {
  width: 30%;
  max-width: 140px;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.poster-item.activo {
  border-color: var(--terminal-green);
  box-shadow: 0 0 12px rgba(0, 255, 65, 0.4);
  transform: translateY(-5px);
}

.poster-img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.poster-item:hover .poster-img {
  transform: scale(1.05);
}

.poster-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 8px 0;
  background-color: rgba(16, 16, 28, 0.9);
  color: var(--terminal-green);
  text-align: center;
  font-size: 0.75rem;
  font-weight: bold;
  opacity: 0;
  visibility: hidden;
  transition: all 250ms ease-in-out;
}

.poster-item:hover .poster-overlay {
  visibility: visible;
  opacity: 1;
}

.pelicula-info-display {
  display: flex;
  flex-direction: column;
  background: rgba(16, 16, 28, 0.4);
  border: 1px solid rgba(0, 255, 65, 0.15);
  border-radius: 8px;
  padding: 15px;
  gap: 20px;
}

.pelicula-trailer {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 65, 0.2);
}

.pelicula-trailer iframe {
  width: 100%;
  height: 100%;
  border: none;
}

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

/* --- SECCION DISCOS FAVORITOS --- */
.discos-favoritos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-top: 30px;
}

.disco-item {
  display: flex;
  flex-direction: column;
  background: rgba(16, 16, 28, 0.4);
  border: 1px solid rgba(0, 255, 65, 0.15);
  border-radius: 8px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  min-width: 0;
}

.disco-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 255, 65, 0.15);
  border-color: rgba(0, 255, 65, 0.4);
}

.disco-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
}

.disco-album {
  color: var(--text-accent);
  font-size: 1rem;
  font-weight: bold;
  margin: 0 0 5px 0;
}

.disco-meta {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}

.disco-autor,
.disco-year {
  color: var(--terminal-green);
  font-size: 0.8rem;
  font-weight: bold;
}

.disco-desc {
  color: var(--color-texto-mutado);
  font-size: 0.75rem;
  line-height: 1.4;
  margin: 0;
}

.disco-img-container {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-top: 1px solid rgba(0, 255, 65, 0.2);
}

.disco-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 300ms ease-in-out;
}

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

.reproducir-texto {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px 0;
  background-color: rgba(16, 16, 28, 0.95);
  color: var(--terminal-green);
  text-align: center;
  font-size: 0.85rem;
  font-weight: bold;
  opacity: 0;
  visibility: hidden;
  transition: all 250ms ease-in-out;
}

.disco-item:hover .reproducir-texto {
  visibility: visible;
  opacity: 1;
}

/* --- BREAKPOINTS --- */

@media (min-width: 400px){
  /* Los estilos solo se aplican desde 400px*/
  .discos-favoritos{
    grid-template-columns: 1fr;
  }
}
@media (min-width: 600px) {
  /* Los estilos solo se aplican desde 400px*/
  .mariana-secciones {
    padding: 20px 25px !important;
  }

  .skills-terminal {
    grid-template-columns: repeat(3, auto);
    gap: 15px 40px;
  }

  .discos-favoritos {
    grid-template-columns: 1fr 1fr;    
  }
}

@media (min-width: 768px) {
  .mariana-secciones {
    padding: 50px 60px !important;
  }
  .discos-favoritos {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills-terminal {
    grid-template-columns: repeat(4, 1fr);
    justify-content: start;
  }

  .skills-terminal--learning {
    grid-template-columns: repeat(4, auto);
    justify-content: start;
  }
  
}

@media (min-width: 900px) {
  .profile-header-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 50px;
    align-items: center;
  }


  .info-personal-basica {
    align-items: flex-start;
    margin-top: 15px;
  }

  .skills-terminal {
    grid-template-columns: repeat(4, 1fr);
    justify-content: start;
  }

  .skills-terminal--learning {
    grid-template-columns: repeat(4, auto);
    justify-content: start;
  }

  .social-links-mariana {
    justify-content: flex-start;
  }

  /* peliculas: trailer a la izq y texto a la derecha */
  .pelicula-info-display {
    flex-direction: row;
    align-items: center;
    padding: 20px;
  }

  .pelicula-trailer {
    width: 60%;
  }

  .pelicula-detalles {
    width: 40%;
    text-align: left;
    padding-left: 10px;
  }

  .pelicula-detalles .disco-meta {
    justify-content: flex-start;
  }

  /* discos de musica: en 3 columnas */
  .discos-favoritos {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .disco-info {
    text-align: left;
  }

  .disco-meta {
    justify-content: flex-start;
  }
}

@media (min-width: 1200px) {
  .discos-favoritos {
    gap: 20px;
  }

  
}
