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

body {
  font-family: 'Playfair Display', serif;
  background-color: #f9f9f9;
  color: #1a1a1a;
  overflow-x: hidden;
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  z-index: -1;
}

/* Nombre principal más fino y gris claro */
.hero-content h1 {
  font-family: 'Raleway', sans-serif;
  font-weight: 200;
  font-size: 3rem;
  color: #888;
  letter-spacing: 3px;
}

/* Flecha animada */
.scroll-arrow {
  width: 30px;
  height: 30px;
  border-bottom: 2px solid #888;
  border-right: 2px solid #888;
  transform: rotate(45deg);
  margin: 40px auto 0;
  animation: arrowMove 2s infinite ease-in-out;
}

@keyframes arrowMove {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50% { transform: rotate(45deg) translate(0, 15px); }
}

/* Portfolio */
.portfolio {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 120px;
  padding: 100px 10%;
}

.portfolio-item {
  display: flex;
  align-items: center;
  gap: 60px;
}

.portfolio-item.reverse {
  flex-direction: row-reverse;
}

.portfolio-item video {
  width: 50%;
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.portfolio-item video:hover {
  transform: scale(1.02);
}

.portfolio-item .text {
  width: 50%;
}

.portfolio-item h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #222;
}

.portfolio-item p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #444;
}

/* Responsive */
@media (max-width: 900px) {
  .portfolio-item,
  .portfolio-item.reverse {
    flex-direction: column;
  }

  .portfolio-item video,
  .portfolio-item .text {
    width: 100%;
  }
}
