/* Contenedor principal */
#inicio-dual {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  min-height: 100vh; /* ocupa toda la pantalla en escritorio */
}

/* Bloques de opción */
.opcion {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.opcion picture,
.opcion img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* recorta sin deformar */
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.opcion:hover img {
  transform: scale(1.05); /* zoom suave */
}

/* Overlay con título y descripción */
.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;   /* centra verticalmente */
  align-items: center;       /* centra horizontalmente */
  text-align: center;
  color: #fff;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
  z-index: 2;
  padding: 20px;
}

.overlay h2 {
  font-size: 2.5em;
  margin-bottom: 10px;
  line-height: 1.2; /* mejor espaciado */
}

.overlay p {
  font-size: 1.2em;
  margin-bottom: 15px;
  max-width: 80%;   /* evita que se extienda demasiado */
}

/* Botón */
.overlay .btn {
  background: #e30613; /* rojo Yamaha */
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.overlay .btn:hover {
  background: #b00010;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
  #inicio-dual {
    flex-direction: column;
    height: auto;
  }

  .opcion {
    height: auto;
    min-height: 300px;
  }

  .opcion picture,
  .opcion img {
    width: 100%;
    height: auto;       /* que se adapte al alto natural */
    max-height: 500px;  /* límite para que no se alargue demasiado */
    object-fit: cover;
    object-position: center;
  }

  .overlay h2 {
    font-size: 1.8em;   /* más pequeño en móvil */
  }

  .overlay p {
    font-size: 1em;
    max-width: 90%;     /* más ancho pero controlado */
  }
}

