/* CONFIGURACIÓN GENERAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(to bottom, #0d0d0d, #1a1a1a);
  color: #f1f1f1;
  overflow-x: hidden;
}

/* NAVEGACIÓN */
header {
  background: rgba(0, 0, 0, 0.95);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.05);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #f1f1f1;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  width: 0%;
  height: 2px;
  background: #00ffe1;
  position: absolute;
  bottom: -4px;
  left: 0;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: #00ffe1;
}

/* SLIDER CON TEXTO SOBRE FONDO */
.slider {
  position: relative;
  height: 70vh;
  overflow: hidden;
}

.slide {
  opacity: 0;
  transition: opacity 1s ease;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  color: #fff;
  height: 100%;
  display: flex;
  padding: 2rem;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide .overlay {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), transparent);
  z-index: 1;
}

.slider-text {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 40%;
  padding: 2rem;
}

.slider-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.slider-text p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.slider-text button {
  padding: 0.8rem 2rem;
  border: none;
  background: #00ffe1;
  color: #000;
  font-weight: bold;
  border-radius: 25px;
  cursor: pointer;
}

.slider-left,
.slider-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: #ccc;
  cursor: pointer;
  z-index: 3;
  padding: 0.5rem;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
}

.slider-left:hover,
.slider-right:hover {
  color: #00ffe1;
}

.slider-left {
  left: 1rem;
}

.slider-right {
  right: 1rem;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

/* CONTENIDO PRINCIPAL */
.contenido {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 4rem 2rem;
  gap: 2rem;
  background: #121212;
}

.texto {
  flex: 1;
  min-width: 300px;
  font-size: 1.2rem;
  line-height: 1.6;
}

.imagen {
  flex: 1;
  min-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.imagen img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 255, 225, 0.1);
  transition: transform 0.3s ease;
}

.imagen img:hover {
  transform: scale(1.03);
}

/* PIE DE PÁGINA */
footer {
  text-align: center;
  padding: 2rem;
  background: #0a0a0a;
  font-size: 0.9rem;
  color: #888;
  border-top: 1px solid #222;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .slider-text {
    max-width: 90%;
    padding: 1rem;
    text-align: center;
  }

  .slider-text h2 {
    font-size: 1.8rem;
  }

  .slider-text p {
    font-size: 1rem;
  }

  .slide {
    justify-content: center;
  }

  .contenido {
    flex-direction: column;
  }

  .nav-links {
    gap: 1rem;
    flex-direction: column;
    align-items: center;
  }

  .slider-left,
  .slider-right {
    font-size: 2rem;
  }
}
