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

body {
  font-family: 'Poppins', sans-serif;
  background-color: #161616;
  color: #FAF4EA;
  line-height: 1.6;
}

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.video-background {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  top: 0;
  left: 0;
  z-index: -2;
  filter: brightness(0.75); /* más oscuro */
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.95));
  top: 0;
  left: 0;
  z-index: -1;
}

nav {
  position: absolute;
  top: 20px;
  right: 20px;
}

.hamburger {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bar {
  width: 30px;
  height: 3px;
  background-color: #faf4ea;
}

.menu-links {
  display: none;
  flex-direction: column;
  background: #444444;
  padding: 12px;
  margin-top: 10px;
}

.menu-links.show {
  display: flex;
}

.menu-links a {
  color: #faf4ea;
  text-decoration: none;
  padding: 10px 0;
  font-weight: 600;
}

/* LOGO Y TEXTOS */
.logo-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.logo-animated {
  max-width: 300px;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
  box-shadow: none;
}

.logo-animated:hover {
  transform: scale(1.05) rotate(1deg);
}

.slogan {
  font-size: 1.8rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin-bottom: 5px;
  color: #faf4ea;
  text-shadow: #161616;
}

.subtext {
  font-size: 1.1rem;
  font-weight: 400;
  color: #faf4ea;
  text-shadow: #080808;
}

/* SECCIONES */
.section-wrapper {
  max-width: 1140px;
  margin: auto;
  text-align: center;
  color: #0c0c0c;
}

.section {
  padding: 60px 80px;
}

.section-dark {
  background-color: #faf4ea;
}

.section-transparent {
  background-color: #e2dcd0;
}

.section-light {
  background-color: #faf4ea;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 20px;
  color: #080808;
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 30px;
  margin-top: 20px;
  text-align: center;
  color: #222;
}

.skill-item i {
  font-size: 36px;
  color: #222;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.icon-hover:hover {
  transform: scale(1.2) rotate(5deg);
}

.skill-item h3 {
  font-size: 1rem;
  font-weight: 500;
  color: #080808;
}

/* CONTACTO */
.contact-button {
  margin-top: 20px;
  display: inline-block;
  padding: 12px 24px;
  background-color: #080808;
  color: #faf4ea;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
}

.contact-button:hover {
  background-color: #666;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 20px;
  background-color: #080808;
}

.footer img {
  width: 50px;
  margin: 5px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .logo-animated {
    width: 300px;
  }

  .slogan {
    font-size: 1.4rem;
    
  }

  .subtext {
    font-size: .8rem;
    padding:0px, 30px,
  }

  .menu-links a {
    font-size: 1.2rem;
    padding: 8px 0;
  }

  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* BOTÓN DE MÚSICA */
.music-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #222;
  color: #faf4ea;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: background-color 0.3s;
}

.music-btn:hover {
  background-color: #161616;
}