/* =============================================
   VARIABLES Y CONFIGURACIÓN BASE
   ============================================= */
:root {
  --bg-color: #0a0a0a;
  --terminal-green: #00ff41;
  --dark-green: #003b00;
  --text-accent: #ffffff;
  --link-color: #008f11;
  --surface-color: #1a1a1a;
  --font: "JetBrains Mono", monospace;
  --transition: 0.3s ease;
  --max-width: 1100px;
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--terminal-green);
  font-family: var(--font);
  line-height: 1.6;
  padding: 20px;
  overflow-x: hidden;
}

p{
  margin-top:0.5rem;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =============================================
   NAVEGACIÓN (HEADER)
   ============================================= */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--terminal-green);
  padding-bottom: 10px;
  margin-bottom: 40px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 5px 10px;
  transition: var(--transition);
}

.nav-links a:hover {
  background: var(--terminal-green);
  color: var(--bg-color);
  box-shadow: 0 0 10px var(--terminal-green);
}

/* =============================================
   TARJETA DE PERFIL (TERMINAL)
   ============================================= */
.profile-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.profile-card {
  background: var(--surface-color);
  border: 1px solid var(--terminal-green);
  width: 100%;
  max-width: 800px;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 30px;
}

.terminal-header {
  background: #333;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  height: 12px;
  width: 12px;
  border-radius: 50%;
}

.red {
  background: #ff5f56;
}

.yellow {
  background: #ffbd2e;
}

.green {
  background: #27c93f;
}

.title {
  color: #ccc;
  font-size: 0.8rem;
  margin-left: 10px;
}

.profile-content {
  padding: 30px;
}

.profile-header-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.profile-image img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid var(--terminal-green);
  object-fit: cover;
}

h1,
h2,
h3,
h4 {
  color: var(--text-accent);
  text-shadow: 0 0 5px var(--terminal-green);
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1rem 0;
}

.skills li::before {
  content: "> ";
}

/* =============================================
   MULTIMEDIA (PELÍCULAS Y CARRUSEL)
   ============================================= */
.media-section {
  width: 100%;
  margin-top: 2rem;
}

.contenedor-peliculas {
  width: 100%;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px;
}

iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--terminal-green);
  margin-bottom: 10px;
}

.parrafo-resumido {
    max-height: calc(1.6em * 3); /* para q no se corte el texto*/
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.parrafo-completo {
    max-height: 62.5rem;
    overflow: hidden;
    transition: max-height 0.3s ease;
}


/* CARRUSEL MEJORADO */
.carrusel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0 50px;
  margin: 1.5rem 0;
}

.discos-favoritos {
  display: flex;
  gap: 15px;
  transition: transform 0.5s ease;
}

.disco-item {
  flex: 0 0 calc(50% - 15px);
  /* Por defecto 2 discos */
  text-align: center;
}

.disco-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--dark-green);
}

.carrusel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--terminal-green);
  color: var(--bg-color);
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
}

.prev {
  left: 5px;
}

.next {
  right: 5px;
}

.carrusel-btn:disabled {
  opacity: 0.3;
}

/* =============================================
   FOOTER Y BOTONES
   ============================================= */
.site-footer {
  background: var(--surface-color);
  padding: 2rem;
  text-align: center;
  margin-top: 3rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1rem 0;
}

.nav-button {
  display: inline-block;
  border: 1px solid var(--terminal-green);
  color: var(--terminal-green);
  padding: 10px 25px;
  transition: var(--transition);
}

.nav-button:hover {
  background: var(--terminal-green);
  color: var(--bg-color);
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 600px) {
  .disco-item {
    flex: 0 0 100%;
  }

  .profile-header-flex {
    flex-direction: column;
  }
}

@media (min-width: 900px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .disco-item {
    flex: 0 0 calc(33.33% - 15px);
  }
}

@media (min-width: 1200px) {
  .disco-item {
    flex: 0 0 calc(20% - 15px);
  }
}